/*
*   /assets/css/ag-2027.css
*   Page d'inscription Assemblée Générale Blue Whale 2027
*/

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }

:root {
    --bw-navy: #115083;
    --bw-teal: #3b98ac;
    --bw-aqua: #63cbc4;
    --bw-green: #b9ce65;
    --bw-ice: #87c4c7;
    --bw-white: #ffffff;
    --bw-error: #b3261e;
}

.ag2027 *,
.ag2027 *::before,
.ag2027 *::after { box-sizing: border-box; }

body.ag2027 {
    margin: 0;
    background: var(--bw-navy);
    color: var(--bw-white);
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.ag2027 a { color: inherit; }
.ag2027 strong { font-weight: 700; }
.ag-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero ---------- */
.ag-hero { background: var(--bw-navy); }
.ag-hero { padding: 16px 16px 0; }
.ag-hero img { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; }

/* ---------- Sections ---------- */
.ag-section { position: relative; padding: 16px 16px 100px; text-align: center; }
.ag-section--intro { background: var(--bw-navy); }
.ag-section--programme { background: var(--bw-teal); padding-top: 32px; }
.ag-section--form { background: var(--bw-aqua); padding-top: 8px; color: var(--bw-navy); }
.ag-section--merci { min-height: 50vh; padding-top: 56px; }

.ag-container { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.ag-section p { margin: 0 0 1em; }

.ag-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 90px; display: block; }

.ag-lead { font-size: clamp(1.35rem, 4vw, 1.75rem); font-weight: 700; line-height: 1.3; }

.ag2027 h2 {
    margin: 0 0 .6em;
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    font-weight: 700;
    line-height: 1.25;
    color: inherit;
}
.ag-deadline { margin: 28px 0 0 !important; font-size: clamp(1.15rem, 3.5vw, 1.4rem); line-height: 1.35; }

/* ---------- Bulle infos pratiques ---------- */
.ag-bubble {
    position: relative;
    margin: 28px auto 8px;
    max-width: 520px;
    padding: 28px 28px 22px;
    background: var(--bw-white);
    color: var(--bw-navy);
    border-radius: 6px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(20, 40, 70, .18);
}
.ag-bubble::after {
    content: "";
    position: absolute;
    left: 48px;
    bottom: -26px;
    border-style: solid;
    border-width: 0 0 28px 30px;
    border-color: transparent transparent transparent var(--bw-white);
}
.ag-bubble__row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.ag-bubble__row p { margin: 0 !important; font-size: 1.1rem; line-height: 1.35; }
.ag-bubble__row strong { font-size: 1.2rem; }
.ag-icon { flex: 0 0 40px; width: 40px; height: 40px; color: var(--bw-navy); }
.ag-bubble__note { margin: 6px 0 0 !important; padding-left: 56px; font-size: .9rem; font-weight: 600; }

/* ---------- Formulaire ---------- */
.ag-form {
    margin: 28px auto 0;
    padding: 28px 24px;
    background: var(--bw-white);
    border-radius: 14px;
    text-align: left;
    color: var(--bw-navy);
    box-shadow: 0 10px 30px rgba(20, 40, 70, .12);
}
.ag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.ag-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.ag-field--full { grid-column: 1 / -1; }
.ag-field--full:not(.ag-grid > *) { margin-top: 18px; }

.ag-form label,
.ag-form legend,
.ag-label { font-weight: 600; font-size: .95rem; margin: 0; }
.ag-label small { font-weight: 400; }

.ag-form input[type="text"],
.ag-form input[type="email"],
.ag-form input[type="tel"],
.ag-form select,
.ag-form textarea {
    width: 100%;
    margin: 0;
    padding: 11px 16px;
    border: 2px solid #d3e3e8;
    border-radius: 10px;
    background: #f7fbfc;
    color: var(--bw-navy);
    font: inherit;
    font-size: 1rem;
    line-height: 1.4;
    box-shadow: none;
}
.ag-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--bw-navy) 50%), linear-gradient(135deg, var(--bw-navy) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.ag-form textarea { resize: vertical; min-height: 90px; }
.ag-form input:focus,
.ag-form select:focus,
.ag-form textarea:focus { outline: none; border-color: var(--bw-teal); background: var(--bw-white); box-shadow: 0 0 0 3px rgba(59, 152, 172, .25); }

.ag-choice { margin: 24px 0 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ag-choice legend { width: 100%; margin-bottom: 10px; }
.ag-choice label { position: relative; cursor: pointer; font-weight: 400; }
.ag-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ag-choice label span {
    display: inline-block;
    padding: 10px 18px;
    border: 2px solid #d3e3e8;
    border-radius: 999px;
    background: #f7fbfc;
    transition: background .15s, border-color .15s, color .15s;
}
.ag-choice label:hover span { border-color: var(--bw-teal); }
.ag-choice input:checked + span { background: var(--bw-navy); border-color: var(--bw-navy); color: var(--bw-white); font-weight: 600; }
.ag-choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(59, 152, 172, .45); }

.ag-cond { margin-top: 4px; }
.ag-cond .ag-cond { margin-top: 20px; }
.js .ag-cond[hidden] { display: none; }

.accompagnant { position: relative; padding: 16px; margin: 12px 0; background: #eef7f8; border-radius: 10px; }
.accompagnant label { display: flex; flex-direction: column; gap: 6px; }
.accompagnant .remove-accompagnant { grid-column: 1 / -1; justify-self: start; }

.ag-btn {
    display: inline-block;
    padding: 14px 32px;
    border: 0;
    border-radius: 999px;
    background: var(--bw-navy);
    color: var(--bw-white);
    font: inherit;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background .15s, transform .15s;
}
.ag-btn:hover { background: #0c3d65; transform: translateY(-1px); }
.ag-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.ag-btn--ghost { margin-top: 4px; padding: 9px 18px; font-size: .95rem; font-weight: 600; background: transparent; color: var(--bw-navy); border: 2px solid var(--bw-navy); }
.ag-btn--ghost:hover { background: var(--bw-navy); color: var(--bw-white); }
.ag-btn[hidden] { display: none; }

.ag-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: .9rem; font-weight: 600; text-decoration: underline; cursor: pointer; }

.ag-form__legal { margin: 18px 0 0 !important; font-size: .8rem; opacity: .8; }
.ag-form__actions { margin-top: 20px; text-align: center; }
.ag-form__error { margin: 0 0 20px !important; padding: 12px 16px; border-radius: 10px; background: #fdecea; color: var(--bw-error); font-weight: 600; }

.ag-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.ag-footer { padding: 8px 16px 48px; text-align: center; background: var(--bw-navy); }
.ag-footer p { max-width: 560px; margin: 0 auto 28px; }
.ag-footer__contact { font-size: .95rem; }
.ag-footer a:hover { text-decoration: none; }
.ag-footer img { display: block; width: 120px; height: auto; margin: 12px auto 0; }

/* Carte badge SIVAL */
.ag-sival {
    position: relative;
    max-width: 560px;
    margin: 40px auto 44px;
    padding: 56px 28px 26px;
    border: 2px solid rgba(185, 206, 101, .55);
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03));
}
.ag-sival__icon {
    position: absolute;
    top: -32px;
    left: 50%;
    width: 64px;
    height: 64px;
    margin-left: -32px;
    padding: 12px;
    border-radius: 50%;
    background: var(--bw-green);
    color: var(--bw-navy);
    box-shadow: 0 0 0 6px var(--bw-navy);
}
.ag2027 .ag-sival__title { margin: 0 0 .4em; font-size: 1.4rem; color: var(--bw-white); }
.ag-sival p { margin: 0 auto 22px; max-width: 420px; }
.ag-sival__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 999px;
    background: var(--bw-green);
    color: var(--bw-navy) !important;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
    transition: transform .15s, box-shadow .15s, background .15s;
}
.ag-sival__btn svg { width: 22px; height: 22px; transition: transform .15s; }
.ag-sival__btn:hover { background: #c8db78; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .28); }
.ag-sival__btn:hover svg { transform: translateX(4px); }
.ag-sival__btn:focus-visible { outline: 3px solid var(--bw-white); outline-offset: 3px; }

/* Au programme */
.ag-programme { max-width: 560px; margin: 0 auto 36px; }
.ag2027 .ag-programme h2 { margin-bottom: .4em; font-size: 1.4rem; color: var(--bw-green); }
.ag-programme p { margin: 0 auto; }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
    body.ag2027 { font-size: 16px; }
    .ag-section { padding-bottom: 90px; }
    .ag-wave { height: 56px; }
    .ag-grid { grid-template-columns: 1fr; }
    .ag-form { padding: 22px 16px; }
    .ag-bubble { padding: 22px 18px 18px; }
    .ag-bubble__note { padding-left: 0; }
    .ag-bubble__row { gap: 12px; }
    .ag-bubble__row p, .ag-bubble__row strong { font-size: .95rem; }
    .ag-icon { flex-basis: 32px; width: 32px; height: 32px; }
    .ag-choice label, .ag-choice label span { width: 100%; }
    .ag-btn:not(.ag-btn--ghost) { width: 100%; }
    .ag-sival { padding: 52px 18px 22px; }
    .ag-sival__btn { width: 100%; justify-content: center; padding: 15px 18px; font-size: 1rem; }
}
