/* ==========================================================================
   Habitons Autrement — style.css
   Site mono-page pour le collectif Habitons Autrement
   ========================================================================== */

/* ---------- @font-face — Polices auto-hébergées ---------- */

/* Caveat 600 */
@font-face {
    font-family: "Caveat";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/caveat-600-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Caveat";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/caveat-600-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Playfair Display 600 */
@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/playfair-600-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/playfair-600-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Playfair Display 700 */
@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/playfair-700-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/playfair-700-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Source Sans 3 — Regular 400 */
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/sourcesans-400-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/sourcesans-400-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Source Sans 3 — Italic 400 */
@font-face {
    font-family: "Source Sans 3";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/sourcesans-400-italic-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Source Sans 3";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/sourcesans-400-italic-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Source Sans 3 — SemiBold 600 */
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/sourcesans-600-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/sourcesans-600-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Source Sans 3 — Bold 700 */
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/sourcesans-700-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/sourcesans-700-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #3B3226;
    background-color: #FAF7F2;
    /* Subtle paper texture via SVG noise */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: #7A9E7E;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: #5F8263;
}

a:focus-visible {
    outline: 3px solid #7A9E7E;
    outline-offset: 3px;
    border-radius: 3px;
}

::selection {
    background-color: #7A9E7E;
    color: #fff;
}

/* ---------- Typography ---------- */
h1, h2 {
    font-family: "Playfair Display", Georgia, serif;
    color: #3B3226;
    line-height: 1.25;
}

h1 {
    font-weight: 700;
}

h2 {
    font-weight: 600;
}

h3 {
    font-family: "Caveat", serif;
    font-weight: 600;
    color: #6B5E50;
    line-height: 1.3;
}

h4 {
    font-family: "Source Sans 3", sans-serif;
    font-weight: 700;
    color: #3B3226;
}

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

strong {
    font-weight: 700;
}

/* ---------- Layout ---------- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: "Source Sans 3", sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn--primary {
    background-color: #7A9E7E;
    color: #fff;
}

.btn--primary:hover,
.btn--primary:focus {
    background-color: #5F8263;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(122, 158, 126, 0.35);
}

.btn--secondary {
    background-color: transparent;
    color: #C4845C;
    border: 2px solid #C4845C;
}

.btn--secondary:hover,
.btn--secondary:focus {
    background-color: #C4845C;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 132, 92, 0.35);
}

.btn--tertiary {
    background-color: transparent;
    color: #6B5E50;
    border: 2px solid #6B5E50;
}

.btn--tertiary:hover,
.btn--tertiary:focus {
    background-color: #6B5E50;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 94, 80, 0.35);
}

.btn--large {
    padding: 16px 40px;
    font-size: 17px;
}

.btn:focus-visible {
    outline: 3px solid #3B3226;
    outline-offset: 3px;
    border-radius: 8px;
}

.link-accent {
    font-weight: 600;
    font-size: 1.1em;
}

/* ---------- Animations ---------- */
.anim-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .anim-fade {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #FAF7F2;
    border-bottom: 1px solid rgba(221, 213, 201, 0.5);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(59, 50, 38, 0.08);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: #3B3226;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: #7A9E7E;
    background-color: rgba(122, 158, 126, 0.08);
}

.nav-link.active {
    color: #7A9E7E;
}

.nav-link--cta {
    background-color: #7A9E7E;
    color: #fff !important;
    padding: 8px 20px;
}

.nav-link--cta:hover,
.nav-link--cta:focus {
    background-color: #5F8263;
    color: #fff !important;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle-bar {
    display: block;
    width: 26px;
    height: 3px;
    background-color: #3B3226;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    padding-top: 70px; /* header height */
    text-align: center;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px 40px;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6B5E50;
    max-width: 650px;
    margin: 0 auto;
}

.hero-image-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    /* Fusionne le blanc de l'image avec le fond crème — effet aquarelle sur papier */
    mix-blend-mode: multiply;
}

/* Espace sous l'image pour que le dégradé ne chevauche pas l'illustration */
.hero-image-wrapper {
    padding-bottom: 120px;
}

/* Dégradé dans l'espace sous l'image — visible uniquement au scroll */
.hero-image-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(250, 247, 242, 0), #FAF7F2);
    pointer-events: none;
}

/* ==========================================================================
   CARDS — DÉCOUVRIR
   ========================================================================== */
.decouvrir {
    padding: 60px 0 80px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.card {
    background-color: #fff;
    border: 1px solid #DDD5C9;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(59, 50, 38, 0.1);
}

.card-image-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.card-body {
    padding: 28px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: "Caveat", serif;
    font-size: 1.55rem;
    margin-bottom: 0.6rem;
}

.card-text {
    font-size: 0.95rem;
    color: #6B5E50;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.card .btn {
    font-size: 14px;
    padding: 10px 24px;
    margin-top: auto;
    align-self: center;
    text-align: center;
    white-space: nowrap;
}

/* ==========================================================================
   SECTION ÉLUS
   ========================================================================== */
.section-elus {
    padding: 80px 0;
}

.elus-layout {
    display: flex;
    flex-direction: column;
}

.elus-illustration {
    order: -1;
    text-align: center;
    margin-bottom: 2.5rem;
}

.elus-illustration img {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    mix-blend-mode: multiply;
    /* Fond les bords de l'image dans le fond crème */
    -webkit-mask-image:
        linear-gradient(to right, transparent, black 5%, black 95%, transparent),
        linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent, black 5%, black 95%, transparent),
        linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
    mask-composite: intersect;
}

.elus-block {
    margin-bottom: 2rem;
}

.elus-subtitle {
    font-size: 1.7rem;
    margin-bottom: 0.8rem;
}

/* ==========================================================================
   SECTION ATOUTS
   ========================================================================== */
.section-atouts {
    padding: 80px 0;
}

.section-atouts .section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-atouts .section-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background-color: #C4845C;
    margin: 16px auto 0;
}

.atouts-subtitle {
    text-align: center;
    font-family: "Caveat", serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: #6B5E50;
    margin-bottom: 2.5rem;
}

.atouts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.atout-card {
    background-color: #FAF7F2;
    border: 1px solid #DDD5C9;
    border-top: 3px solid;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(59, 50, 38, 0.06);
}

.atout-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.atout-title {
    font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: #3B3226;
    margin: 0 0 10px;
    line-height: 1.4;
}

.atout-text {
    font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
    font-size: 16px;
    color: #6B5E50;
    line-height: 1.6;
    margin: 0;
}

/* Témoignage élu */
.encart-temoignage {
    background-color: #F5F0E8;
    border-left: 4px solid #C4845C;
    border-radius: 0 12px 12px 0;
    padding: 32px;
    margin: 2.5rem 0;
    position: relative;
}

.encart-temoignage::before {
    content: "\201C";
    font-family: "Caveat", serif;
    font-size: 5rem;
    color: #C4845C;
    opacity: 0.3;
    position: absolute;
    top: 8px;
    left: 16px;
    line-height: 1;
}

.encart-title {
    font-family: "Caveat", serif;
    font-size: 1.4rem;
    color: #C4845C;
    margin-bottom: 1rem;
}

.temoignage-quote {
    padding-left: 20px;
}

.temoignage-quote p {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #3B3226;
}

.temoignage-auteur {
    text-align: right;
    margin-top: 1rem;
    font-style: normal;
    font-size: 0.95rem;
    color: #6B5E50;
}

.temoignage-contexte {
    margin-top: 1.2rem;
    padding: 20px 24px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #3B3226;
}

.temoignage-buttons {
    display: flex;
    gap: 16px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.temoignage-buttons .btn {
    font-size: 14px;
    padding: 10px 24px;
}

.encart-link {
    margin-top: 1rem;
    font-size: 0.95rem;
}

/* Exemple concret */
.encart-exemple {
    border: 1px solid #DDD5C9;
    border-radius: 12px;
    padding: 24px;
    margin: 2rem 0;
}

.encart-exemple-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
}

.encart-exemple-title {
    font-family: "Source Sans 3", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #3B3226;
    margin: 0;
}

.encart-exemple p {
    font-size: 0.95rem;
}

/* CTA élus */
.elus-cta {
    text-align: center;
    margin: 2.5rem 0;
    padding: 32px;
    background-color: rgba(122, 158, 126, 0.06);
    border-radius: 12px;
}

.elus-cta p {
    margin-bottom: 1rem;
}

.elus-cta-question {
    font-family: "Caveat", serif;
    font-size: 1.6rem;
    color: #7A9E7E;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.elus-cta-detail {
    font-size: 1.05rem;
    color: #6B5E50;
    line-height: 1.7;
}

.elus-links {
    font-size: 0.95rem;
    line-height: 2;
}

/* ==========================================================================
   SECTION CONCEPT
   ========================================================================== */
.section-concept {
    padding: 80px 0;
    background-color: rgba(240, 245, 241, 0.3);
}

.concept-layout {
    display: flex;
    flex-direction: column;
}

.concept-illustration {
    order: -1;
    text-align: center;
    margin-bottom: 2.5rem;
}

.concept-illustration img {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    mix-blend-mode: multiply;
    -webkit-mask-image:
        linear-gradient(to right, transparent, black 5%, black 95%, transparent),
        linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent, black 5%, black 95%, transparent),
        linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
    mask-composite: intersect;
}

.concept-block {
    margin-bottom: 2rem;
}

.concept-subtitle {
    font-size: 1.7rem;
    margin-bottom: 0.8rem;
}

.pilier {
    margin-bottom: 1.5rem;
    padding-left: 20px;
    border-left: 3px solid #7A9E7E;
}

.pilier h4 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.pilier p {
    font-size: 0.95rem;
    color: #6B5E50;
}

.concept-encart {
    background-color: #fff;
    border: 1px solid #DDD5C9;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 1rem 0;
}

.concept-encart p {
    font-size: 0.95rem;
    margin: 0;
}

.concept-links {
    font-size: 0.95rem;
    line-height: 2;
    margin-top: 2rem;
}

/* Vidéo façade */
.video-facade {
    margin: 2.5rem 0;
}

.video-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(59, 50, 38, 0.12);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.video-wrapper:hover .video-thumbnail {
    transform: scale(1.03);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.video-wrapper:hover .video-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   SECTION REJOINDRE
   ========================================================================== */
.section-rejoindre {
    padding: 80px 0;
}

.rejoindre-layout {
    display: flex;
    flex-direction: column;
}

.rejoindre-illustration {
    order: -1;
    text-align: center;
    margin-bottom: 2.5rem;
}

.rejoindre-illustration img {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    mix-blend-mode: multiply;
    -webkit-mask-image:
        linear-gradient(to right, transparent, black 5%, black 95%, transparent),
        linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent, black 5%, black 95%, transparent),
        linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
    mask-composite: intersect;
}

.rejoindre-block {
    margin-bottom: 2rem;
}

.rejoindre-cta-text {
    font-size: 1.15rem;
    margin-top: 1.5rem;
}

/* Collectif */
.collectif {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #DDD5C9;
}

.collectif-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.profils-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 2rem;
}

.profil-card {
    background-color: #fff;
    border: 1px solid #DDD5C9;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
}

.profil-portrait {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 3px solid #DDD5C9;
}

.profil-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profil-name {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.profil-competence {
    display: block;
    font-family: "Source Sans 3", sans-serif;
    font-style: italic;
    color: #7A9E7E;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.profil-text {
    font-size: 0.93rem;
    color: #6B5E50;
    line-height: 1.65;
    text-align: left;
}

.collectif-ouverture {
    text-align: center;
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #6B5E50;
}

/* Profil mystère */
.profil-mystere {
    text-align: center;
    margin-bottom: 2rem;
}

.profil-portrait--mystere {
    width: 100px;
    height: 100px;
    border-color: #C4845C;
    border-style: dashed;
}

.mystere-text {
    font-family: "Caveat", serif;
    font-size: 1.4rem;
    color: #C4845C;
    margin-top: 8px;
}

.collectif-cta {
    text-align: center;
    margin-top: 2rem;
}

/* ==========================================================================
   SECTION CONTACT
   ========================================================================== */
.section-contact {
    padding: 80px 0;
    background-color: rgba(240, 245, 241, 0.3);
}

.contact-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #6B5E50;
    margin-bottom: 3rem;
}

.contact-layout {
    display: flex;
    flex-direction: column;
}

.contact-illustration {
    order: -1;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-illustration img {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    mix-blend-mode: multiply;
    -webkit-mask-image:
        linear-gradient(to right, transparent, black 5%, black 95%, transparent),
        linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent, black 5%, black 95%, transparent),
        linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
    mask-composite: intersect;
    position: sticky;
    top: 100px;
}

/* Form */
.contact-form {
    background-color: #fff;
    border: 1px solid #DDD5C9;
    border-radius: 16px;
    padding: 40px;
}

/* Honeypot hidden */
.form-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: #3B3226;
}

.required {
    color: #C4845C;
}

.optional {
    font-weight: 400;
    color: #6B5E50;
    font-size: 0.85rem;
}

.form-input {
    width: 100%;
    font-family: "Source Sans 3", sans-serif;
    font-size: 16px;
    color: #3B3226;
    background-color: #FAF7F2;
    border: 1px solid #DDD5C9;
    border-radius: 8px;
    padding: 12px 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #7A9E7E;
    box-shadow: 0 0 0 3px rgba(122, 158, 126, 0.15);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B5E50' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-checkbox {
    margin-top: 4px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #7A9E7E;
}

.form-label--checkbox {
    font-weight: 400;
    font-size: 0.88rem;
    color: #6B5E50;
    line-height: 1.5;
}

.form-submit {
    margin-top: 2rem;
    text-align: center;
}

/* Feedback */
.form-feedback {
    margin-top: 1.5rem;
    padding: 0;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
    transition: opacity 0.3s ease;
}

.form-feedback--success {
    padding: 16px;
    background-color: #F0F5F1;
    color: #3B6E3F;
    border: 1px solid #7A9E7E;
}

.form-feedback--error {
    padding: 16px;
    background-color: #FDF2F0;
    color: #9E3A2A;
    border: 1px solid #C4845C;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: #EDE8DF;
    padding: 48px 0 32px;
    border-top: 1px solid #DDD5C9;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    margin: 0 auto 12px;
    height: 50px;
    width: auto;
}

.footer-tagline {
    font-size: 0.95rem;
    color: #6B5E50;
    margin-bottom: 1.2rem;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: #6B5E50;
}

.footer-links a:hover {
    color: #7A9E7E;
}

.footer-sep {
    margin: 0 10px;
    color: #DDD5C9;
}

.footer-ambassadeur {
    font-size: 0.9rem;
    color: #6B5E50;
    margin-bottom: 0.5rem;
}

.footer-email {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: #6B5E50;
    margin-top: 1rem;
}

/* ==========================================================================
   LEGAL PAGES (mentions-legales, politique-confidentialite)
   ========================================================================== */
.page-legal {
    padding-top: 110px;
    padding-bottom: 80px;
    min-height: 60vh;
}

.page-legal-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.legal-section p,
.legal-section li {
    font-size: 0.95rem;
    color: #6B5E50;
    line-height: 1.7;
}

.legal-section ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.4rem;
}

/* ==========================================================================
   IMAGE PLACEHOLDERS
   When actual images are missing, display grey placeholder with filename
   ========================================================================== */
img[src$=".jpg"],
img[src$=".png"] {
    background-color: #E0DCD6;
    min-height: 80px;
}

/* ==========================================================================
   RESPONSIVE — TABLET (768px)
   ========================================================================== */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    /* Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: rgba(250, 247, 242, 0.98);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 16px 24px 24px;
        border-bottom: 1px solid #DDD5C9;
        box-shadow: 0 8px 24px rgba(59, 50, 38, 0.1);
        gap: 4px;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 16px;
        width: 100%;
    }

    .nav-link--cta {
        text-align: center;
        margin-top: 8px;
    }

    /* Cards */
    .cards-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Section illustrations — plus petites sur tablette */
    .elus-illustration img,
    .concept-illustration img,
    .rejoindre-illustration img,
    .contact-illustration img {
        max-height: 300px;
        object-fit: cover;
    }

    /* Atouts */
    .atouts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-atouts {
        padding: 60px 0;
    }

    /* Profils */
    .profils-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 2rem;
    }

    /* Contact form */
    .contact-form {
        padding: 28px 20px;
    }
}

/* ==========================================================================
   RESPONSIVE — MOBILE (480px)
   ========================================================================== */
@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 0 16px;
    }

    .hero-content {
        padding: 40px 16px 24px;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .section-title {
        font-size: 1.55rem;
    }

    .decouvrir,
    .section-elus,
    .section-concept,
    .section-rejoindre,
    .section-contact {
        padding: 50px 0;
    }

    .elus-subtitle,
    .concept-subtitle {
        font-size: 1.4rem;
    }

    .atouts-grid {
        grid-template-columns: 1fr;
    }

    .section-atouts {
        padding: 50px 0;
    }

    .encart-temoignage {
        padding: 24px 20px;
    }

    .btn--large {
        padding: 14px 28px;
        font-size: 15px;
    }

    .collectif-title {
        font-size: 1.6rem;
    }

    .profil-portrait {
        width: 120px;
        height: 120px;
    }
}