* {
    box-sizing: border-box;
}

:root {
    --green: #587160;
    --blue: #25a8d0;
    --blue-light: #8bdcf3;
    --blue-dark: #2f8fae;
    --text: #202a2e;
    --white: #ffffff;
    --background: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--background);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.site-header {
    padding: 10px 0 8px;
    text-align: center;
}

.site-header h1 {
    margin: 0;
    color: #5B7995;               /* noir */
    font-family: Cambria, Georgia, serif;
    font-size: 2.2rem;
    font-weight: 700;          /* gras */
    line-height: 1.1;
}

.home {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 55px;
    align-items: center;
    padding: 30px 0 40px;
}

.home-image {
    width: 270px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15);
}

.home-content {
    min-width: 0;
}

.tagline {
    margin: 0 0 26px;
    color: var(--blue);
    font-family: Cambria, Georgia, serif;
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 700;
    line-height: 1.15;
}

.home-content p {
    margin: 0 0 18px;
    font-size: 1.08rem;
    line-height: 1.75;
}

.home-menu {
    display: grid;
    grid-template-columns: repeat(2, 260px);
    justify-content: start;
    gap: 20px 26px;
    margin-top: 32px;
}

.home-menu a {
    display: flex;
    min-height: 60px;
    align-items: center;        /* centrage vertical */
    justify-content: center;    /* centrage horizontal */
    padding: 8px 16px;

    color: #17323b;
    background: linear-gradient(180deg, #9be4f5, #66c9e6);
    border: 1px solid var(--blue-dark);
    border-radius: 10px;

    box-shadow:
        0 4px 0 var(--blue-dark),
        0 6px 12px rgba(37, 168, 208, 0.18);

    font-family: Cambria, Georgia, serif;
    font-size: 1.45rem;         /* plus gros */
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.home-menu a:hover,
.home-menu a:focus-visible {
    transform: translateY(-2px);

    box-shadow:
        0 8px 0 var(--blue-dark),
        0 14px 22px rgba(37, 168, 208, 0.24);

    outline: none;
}

.video-section {
    padding: 35px 0 70px;
    text-align: center;
}

.video-section h2 {
    margin-bottom: 18px;
    font-size: 2rem;
}

.video-link {
    display: block;
    max-width: 400px;
    margin: 0 auto;
    text-decoration: none;
}

.video-placeholder {
    position: relative;
    display: grid;
    min-height: 320px;
    place-items: center;
    overflow: hidden;
    padding: 30px;

    color: var(--white);
    background:
        linear-gradient(rgba(21, 55, 65, 0.42), rgba(21, 55, 65, 0.72)),
        linear-gradient(135deg, #1d6d82, #5c7d63);

    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.play-button {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    padding-left: 7px;

    color: var(--white);
    background: rgba(37, 168, 208, 0.92);
    border: 4px solid var(--white);
    border-radius: 50%;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 2.8rem;
    line-height: 1;

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.video-text {
    position: absolute;
    right: 20px;
    bottom: 20px;
    left: 20px;

    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
}

.video-link:hover .play-button,
.video-link:focus-visible .play-button {
    transform: scale(1.06);
}

.video-link:focus-visible {
    outline: 4px solid var(--blue);
    outline-offset: 5px;
    border-radius: 18px;
}

.site-footer {
    padding: 22px 16px;
    color: var(--white);
    background: var(--green);
    text-align: center;
}

@media screen and (max-width: 800px) {

    .site-header {
        padding-top: 18px;
    }

    .home {
        display: flex;
        flex-direction: column;
        gap: 26px;
        padding-top: 20px;
    }

    .home-content {
        display: contents;
    }

    /* 1 - Texte de présentation */
    .home-text {
        order: 1;
        text-align: center;
    }

    .home-text p {
        text-align: left;
    }

    /* 2 - Les quatre boutons */
    .home-menu {
        order: 2;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        width: 100%;
        margin: 0;
    }

    .home-menu a {
        min-height: 64px;
        padding: 8px;
        font-size: 1.15rem;
    }

    /* 3 - La vidéo */
    .video {
        order: 3;
        width: 100%;
    }

    /* 4 - L’image */
    .home-image {
        order: 4;
        width: min(340px, 82%);
        margin: 0 auto;
    }
}

@media screen and (max-width: 480px) {

    .container {
        width: min(94%, 1180px);
    }

    .site-header h1 {
        font-size: 2.4rem;
    }

    .tagline {
        font-size: 1.75rem;
    }

    .home-content p {
        font-size: 1rem;
        line-height: 1.65;
    }

    .video-placeholder {
        min-height: 210px;
    }

    .play-button {
        width: 74px;
        height: 74px;
        font-size: 2.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}
/* =========================================================
   PAGE ADHÉSION
   Toutes les règles sont limitées à .adhesion-page afin de
   ne pas modifier la page d'accueil ni les autres pages.
   ========================================================= */

.adhesion-page {
    min-height: 100vh;
    background: #f7fbfc;
}

.adhesion-page .adhesion-main {
    padding: 28px 0 60px;
}

.adhesion-page .adhesion-card {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 34px;
    background: var(--white);
    border: 1px solid #d8e5e9;
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(32, 42, 46, 0.10);
}

.adhesion-page .adhesion-title {
    margin: 0 0 10px;
    color: var(--blue);
    font-family: Cambria, Georgia, serif;
    font-size: clamp(2rem, 4vw, 2.7rem);
    line-height: 1.15;
    text-align: center;
}

.adhesion-page .adhesion-intro {
    max-width: 620px;
    margin: 0 auto 28px;
    color: #526168;
    font-size: 1.05rem;
    line-height: 1.65;
    text-align: center;
}

.adhesion-page .adhesion-form {
    display: grid;
    gap: 22px;
}

.adhesion-page .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
}

.adhesion-page .form-field {
    min-width: 0;
}

.adhesion-page .form-field--full {
    grid-column: 1 / -1;
}

.adhesion-page .form-field label,
.adhesion-page .form-field legend {
    display: block;
    margin: 0 0 8px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
}

.adhesion-page .required {
    color: #b13d3d;
}

.adhesion-page .form-field input[type="text"],
.adhesion-page .form-field input[type="email"],
.adhesion-page .form-field input[type="tel"],
.adhesion-page .form-field input[type="number"] {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    color: var(--text);
    background: var(--white);
    border: 1px solid #9fb2ba;
    border-radius: 9px;
    font: inherit;
    font-size: 1rem;
}

.adhesion-page .form-field input::placeholder {
    color: #819097;
}

.adhesion-page .form-field input:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(37, 168, 208, 0.20);
}

.adhesion-page fieldset.form-field {
    margin: 0;
    padding: 0;
    border: 0;
}

.adhesion-page .choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.adhesion-page .choice {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 10px 12px;
    color: var(--text);
    background: #f8fcfd;
    border: 1px solid #c8d9df;
    border-radius: 9px;
    font-weight: 400;
    cursor: pointer;
}

.adhesion-page .choice:hover {
    border-color: var(--blue-dark);
}

.adhesion-page .choice:has(input:checked) {
    background: #e6f7fc;
    border-color: var(--blue-dark);
    box-shadow: inset 0 0 0 1px var(--blue-dark);
}

.adhesion-page .choice input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--blue-dark);
}

.adhesion-page .adhesion-actions {
    margin-top: 4px;
}

.adhesion-page .adhesion-submit {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    color: #17323b;
    background: linear-gradient(180deg, #9be4f5, #66c9e6);
    border: 1px solid var(--blue-dark);
    border-radius: 10px;
    box-shadow:
        0 4px 0 var(--blue-dark),
        0 6px 12px rgba(37, 168, 208, 0.18);
    font-family: Cambria, Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
}

.adhesion-page .adhesion-submit:hover,
.adhesion-page .adhesion-submit:focus-visible {
    transform: translateY(-2px);
    box-shadow:
        0 7px 0 var(--blue-dark),
        0 12px 20px rgba(37, 168, 208, 0.22);
    outline: none;
}

.adhesion-page .adhesion-submit:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.adhesion-page .form-message {
    display: none;
    margin: 18px 0 0;
    padding: 13px 15px;
    border-radius: 9px;
    font-size: 1rem;
    line-height: 1.45;
}

.adhesion-page .form-message.success {
    display: block;
    color: #225f35;
    background: #eef8f1;
    border: 1px solid #acd1b6;
}

.adhesion-page .form-message.error {
    display: block;
    color: #8c2828;
    background: #fff1f1;
    border: 1px solid #dfb0b0;
}

.adhesion-page .privacy-note {
    margin: 17px 0 0;
    color: #65757c;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.adhesion-page .back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--blue-dark);
    font-weight: 700;
    text-decoration: none;
}

.adhesion-page .back-link:hover,
.adhesion-page .back-link:focus-visible {
    text-decoration: underline;
    outline: none;
}

.adhesion-page .honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media screen and (max-width: 700px) {

    .adhesion-page .adhesion-main {
        padding-top: 20px;
    }

    .adhesion-page .adhesion-card {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .adhesion-page .form-grid {
        grid-template-columns: 1fr;
    }

    .adhesion-page .form-field--full {
        grid-column: auto;
    }

    .adhesion-page .choice-grid {
        grid-template-columns: 1fr;
    }
}

.message-success-title {
    font-size: 22px;
    font-weight: bold;
    color: #2e7d32;
    margin-bottom: 12px;
}

.message-success-text {
    line-height: 1.6;
}

.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.adhesion-page .popup-overlay.visible {
    display: flex !important;
}

.popup-box {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 14px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.popup-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #dff6dd;
    color: #2e7d32;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: bold;
}

.popup-box h3 {
    margin: 0 0 18px;
    color: #2aa8d2;
    font-size: 28px;
}

.popup-box p {
    margin: 12px 0;
    line-height: 1.5;
}

.popup-button {
    display: flex;
    margin: 25px auto 0;
    width: 220px;
}