*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #8FA89E;
    --color-primary-dark: #4A6B65;
    --color-secondary: #C4B5A5;
    --color-accent: #C4856A;
    --color-bg: #B8CAC5;
    --color-text: #2C2C2C;
    --color-text-light: #2C3532;
    --color-light: #f0f4ef;
    --color-white: #fff;
    --color-border: #d6e2d3;
    --max-width: 1100px;
    --font-main: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --anim-ease: cubic-bezier(.22, .61, .36, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.75;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color .2s;
}

a:hover {
    color: #3d5636;
}

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

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
    background: transparent;
    border-bottom: 1px solid transparent;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background .4s var(--anim-ease),
                border-color .4s var(--anim-ease),
                box-shadow .4s var(--anim-ease);
}

.site-header.is-scrolled {
    background: var(--color-white);
    border-bottom-color: var(--color-border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    transition: height .3s var(--anim-ease);
}

.site-header.is-scrolled .header-inner {
    height: 56px;
}

.logo {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: .2px;
    transition: color .3s var(--anim-ease);
}

.logo:hover {
    text-decoration: none;
}

.site-header.is-scrolled .logo {
    color: var(--color-primary);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0;
    height: 100%;
}

.main-nav li {
    display: flex;
    align-items: center;
}

.main-nav a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1.3rem;
    color: var(--color-white);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .8px;
    text-transform: uppercase;
    transition: color .25s var(--anim-ease);
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 1.3rem;
    right: 1.3rem;
    bottom: 0;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--anim-ease);
}

.main-nav a:hover {
    text-decoration: none;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

.main-nav a.active {
    font-weight: 600;
}

.site-header.is-scrolled .main-nav a {
    color: var(--color-primary-dark);
}

.site-header.is-scrolled .main-nav a:hover,
.site-header.is-scrolled .main-nav a.active {
    color: var(--color-primary);
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
    background: image-set(
        url('/img/header.webp') type('image/webp'),
        url('/img/header.jpg') type('image/jpeg')
    ) no-repeat center center;
    background-size: cover;
    color: var(--color-white);
    text-align: center;
    padding: calc(5.5rem + 68px) 1.5rem 5.5rem;
    margin-top: -68px;
    min-height: 500px;
    position: relative;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: .5rem;
    letter-spacing: -.5px;
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--color-secondary);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: .3px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto 50px;
}

.hero p {
    font-size: 1rem;
    opacity: .85;
    max-width: 600px;
    margin: 0 auto .6rem;
    font-weight: 300;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: absolute;
    bottom: -45px;
    left: 0;
    right: 0;
    padding: 1rem;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: .75rem 2rem;
    border: 2px solid var(--color-primary);
    border-radius: 5px;
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .3px;
    cursor: pointer;
    transition: background .25s, color .25s, border-color .25s, box-shadow .25s, transform .25s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-white);
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, .4);
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.btn-footer {
    background: var(--color-primary);
    color: var(--white-white);
    border-color: var(--color-primary);
    font-size: .8rem;
    padding: .6rem 1.5rem;
    margin-top: .5rem;
}

.btn-footer:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-white);
}

/* ================================================================
   HIGHLIGHT CARDS
   ================================================================ */
.home-highlights {
    padding: 5rem 0;
    background: var(--color-light);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.highlight-card {
    display: block;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 2rem;
    text-align: left;
    transition: box-shadow .3s, transform .3s;
    color: var(--color-text);
}

.highlight-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, .07);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--color-text);
}

.highlight-card h3 {
    color: var(--color-primary);
    margin-bottom: .5rem;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .55rem;
}

.highlight-card h3 svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.highlight-card p {
    color: var(--color-text-light);
    font-size: .93rem;
    margin-bottom: 1rem;
    line-height: 1.65;
}

.card-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* ================================================================
   PAGE HEADER
   ================================================================ */
.page-header {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 3.5rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -.3px;
}

/* ================================================================
   CONTENT SECTIONS
   ================================================================ */
.content {
    padding: 4.5rem 0;
}

.content h2 {
    font-size: 2rem;
    color: var(--color-primary-dark);
    margin-bottom: 1.25rem;
    margin-top: 3rem;
    font-weight: 600;
    position: relative;
    padding-bottom: .6rem;
}

.content h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--color-primary-dark);
    border-radius: 1px;
}

.content h2:first-child {
    margin-top: 0;
}

.section-alt {
    padding: 4.5rem 0;
    background: var(--color-light);
}

.section-alt h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    font-weight: 600;
    position: relative;
    padding-bottom: .6rem;
}

.section-alt h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
}

.text-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
}

.text-content p:last-child {
    margin-bottom: 0;
}

.indications-list-container {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1.75rem;
    text-align: left;
    transition: box-shadow .3s;
}

/* ================================================================
   LISTS
   ================================================================ */
.indications-list,
.session-steps {
    margin: 1rem 0 1.5rem 1.5rem;
    line-height: 1.9;
}

.indications-list li,
.session-steps li {
    padding: .15rem 0;
}

/* ================================================================
   AUDIENCE / SERVICES GRID
   ================================================================ */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 1.5rem;
}

.audience-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1.75rem;
    text-align: left;
    transition: box-shadow .3s;
}

.audience-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.audience-card h3 {
    color: var(--color-primary);
    margin-bottom: .4rem;
    font-size: .88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.audience-card p {
    color: var(--color-text-light);
    font-size: .93rem;
    line-height: 1.65;
}

/* ================================================================
   HOME APPROACH
   ================================================================ */
.home-approach {
    padding: 5rem 0;
}

.home-approach h2 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: .6rem;
}

.home-approach h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
}

.home-approach .text-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
}

.section-title-centered {
    text-align: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-weight: 600;
}

/* ================================================================
   ENGAGEMENTS
   ================================================================ */
.home-engagements {
    padding: 5rem 0;
}

.home-engagements h2 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: .6rem;
}

.home-engagements h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
}

.engagements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.engagement-card {
    background: var(--color-light);
    border-radius: 6px;
    padding: 1.75rem;
    text-align: left;
    transition: box-shadow .3s;
}

.engagement-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.engagement-card h3 {
    color: var(--color-primary);
    margin-bottom: .5rem;
    font-size: .88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.engagement-card p {
    color: var(--color-text-light);
    font-size: .93rem;
    line-height: 1.65;
}

/* ================================================================
   CTA SECTIONS
   ================================================================ */
.home-cta {
    padding: 5rem 0;
    background: var(--color-primary);
}

.cta-box {
    text-align: center;
    color: var(--color-white);
}

.cta-box h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.cta-box p {
    font-size: 1.05rem;
    opacity: .85;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.75;
}

.cta-box .btn {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
    font-size: .95rem;
    padding: .85rem 2.5rem;
}

.cta-box .btn:hover {
    background: var(--color-light);
    border-color: var(--color-light);
    color: var(--color-primary);
}

.cta-inline {
    margin-top: 2rem;
}

/* ================================================================
   ABOUT EXTRAS
   ================================================================ */
.about-tagline {
    color: var(--color-text-light);
    font-size: .95rem;
    margin-bottom: 1rem;
}

.about-closing-section {
    text-align: center;
    padding: 1rem 0;
}

.about-closing-section .btn {
    margin-top: 1rem;
}

/* ================================================================
   VIDEO EMBED
   ================================================================ */
.video-embed {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 2.5rem auto;
    padding-bottom: 56.25%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .1);
}

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

.video-facade {
    display: block;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
    font: inherit;
}

.video-facade picture,
.video-facade img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-facade-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .25);
    transition: background .2s ease;
}

.video-facade-play svg {
    width: 72px;
    height: 72px;
    color: white;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .4));
}

.video-facade:hover .video-facade-play,
.video-facade:focus-visible .video-facade-play {
    background: rgba(0, 0, 0, .4);
}

/* ================================================================
   ABOUT
   ================================================================ */
.about-intro {
    display: flex;
    gap: 3rem;
    align-items: center;
    padding: 1rem 0;
}

.about-photo {
    flex-shrink: 0;
}

.photo-placeholder {
    width: 200px;
    height: 250px;
    background: image-set(
        url('/img/profile.webp') type('image/webp'),
        url('/img/profile.png') type('image/png')
    ) no-repeat center center;
    background-size: cover;
    border-radius: 5%;
}

.about-summary h2 {
    font-size: 1.7rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.about-highlights {
    list-style: none;
}

.about-highlights li {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .4rem 0;
    color: var(--color-text);
    font-size: 1rem;
}

.about-highlights li svg {
    width: 22px;
    height: 22px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.about-story p {
    font-size: 1.02rem;
}

.about-closing {
    margin-top: 1.5rem;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--color-primary);
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 3.5rem 0 0;
    margin-top: auto;
}

.site-footer .container {
    max-width: 1600px;
    padding: 0 3rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-bottom: 2.5rem;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: .8rem;
    margin-bottom: .75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.footer-col p {
    font-size: .9rem;
    line-height: 1.6;
    margin-bottom: .5rem;
}

.footer-col address {
    font-style: normal;
    font-size: .9rem;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    padding: .2rem 0;
}

.footer-col a {
    color: var(--color-white);
    font-size: .88rem;
    transition: color .2s;
}

.footer-col a:hover {
    color: var(--color-white);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 1.25rem 0;
    text-align: center;
    font-size: .82rem;
}

/* ================================================================
   ICONS
   ================================================================ */

.icon-left {
    margin-right: 10px;
    width: 30px;
    height: 30px;
}

.icon-right {
    margin-left: 10px;
    width: 30px;
    height: 30px;
}

.grid-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 1.5rem;
}

.grid-section img {
    border-radius: 6px;
}

/* ================================================================
   CONTENU DES PAGES (sous-titres, stats, listes)
   ================================================================ */
.section-subtitle {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin: 2.75rem 0 1.1rem;
}

.section-subtitle:first-of-type {
    margin-top: 1.25rem;
}

.subtitle-icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.stat-callout {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent);
    border-radius: 6px;
    padding: 1.75rem 2rem;
    margin: 1.75rem 0 2.5rem;
}

.stat-callout-title {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--color-text-light);
    margin-bottom: 1.35rem;
}

.stat-callout-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1.25rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1.15;
}

.stat-label {
    font-size: .85rem;
    color: var(--color-text-light);
}

.feature-list {
    list-style: none;
    margin: 1rem 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1rem 1.15rem;
    transition: box-shadow .3s;
}

.feature-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.feature-item svg {
    width: 26px;
    height: 26px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.feature-item span {
    font-size: .95rem;
    line-height: 1.5;
}

.audience-card h3 {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.audience-card h3 svg {
    width: 22px;
    height: 22px;
    color: var(--color-primary);
    flex-shrink: 0;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: .75rem 0;
        gap: .5rem;
    }

    .main-nav ul {
        height: auto;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
    }

    .main-nav a {
        height: auto;
        padding: .5rem .75rem;
        font-size: .72rem;
    }

    .main-nav a::after {
        left: .75rem;
        right: .75rem;
    }

    .site-header.is-scrolled .header-inner {
        height: auto;
    }

    .hero {
        padding: 3.5rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

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

    .content,
    .section-alt {
        padding: 3rem 0;
    }

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

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

    .about-intro {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .about-highlights li {
        text-align: left;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .stat-callout-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-callout {
        padding: 1.5rem 1.25rem;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes nav-link-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Apparition des liens de navigation en cascade au chargement */
.nav-anim .main-nav li {
    animation: nav-link-in .5s var(--anim-ease) both;
}

.nav-anim .main-nav li:nth-child(1) { animation-delay: .15s; }
.nav-anim .main-nav li:nth-child(2) { animation-delay: .25s; }
.nav-anim .main-nav li:nth-child(3) { animation-delay: .35s; }
.nav-anim .main-nav li:nth-child(4) { animation-delay: .45s; }

/* Reveal au scroll des sections de contenu */
[data-reveal-target="item"] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--anim-ease),
                transform .7s var(--anim-ease);
    transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal-target="item"].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Apparition du hero au chargement de la page */
.hero [data-reveal-target="item"] {
    opacity: 0;
    transform: none;
    transition: none;
}

.hero h1[data-reveal-target="item"].is-visible {
    animation: hero-rise .8s var(--anim-ease) .1s both;
}

.hero .hero-actions[data-reveal-target="item"].is-visible {
    animation: hero-rise .8s var(--anim-ease) .35s both;
}

/* Sur mobile, le header garde un fond opaque : sa hauteur variable
   (logo + menu sur plusieurs lignes) ne permet pas de superposition propre. */
@media (max-width: 768px) {
    .hero {
        margin-top: 0;
    }

    .site-header {
        background: var(--color-white);
        border-bottom-color: var(--color-border);
    }

    .site-header .logo {
        color: var(--color-primary);
    }

    .site-header .main-nav a {
        color: var(--color-primary-dark);
    }

    .site-header .main-nav a:hover,
    .site-header .main-nav a.active {
        color: var(--color-primary);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .site-header,
    .header-inner,
    .logo,
    .main-nav a,
    .main-nav a::after {
        transition: none;
    }

    .nav-anim .main-nav li {
        animation: none;
    }

    [data-reveal-target="item"],
    .hero [data-reveal-target="item"],
    .hero h1[data-reveal-target="item"].is-visible,
    .hero .hero-actions[data-reveal-target="item"].is-visible {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}
