:root {
    --color-white: #ffffff;
    --color-text: #000000;
    --color-navy: #002442;
    --color-navy-soft: #0a3a73;
    --color-lavender: #7F96FF;
    --color-yellow: #efe57f;
    --color-sand: #e8e0d7;
    --color-coral: #f97d67;
    --color-bg: #F7F5F3;
    --color-border: rgba(3, 42, 86, 0.12);
    --container: 1280px;
    --container-narrow: 960px;
	--container-wide: 1440px;
    --gutter: 24px;
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 48px;
    --shadow-card: 0 8px 24px rgba(3, 42, 86, 0.08);
    --font-body: "Work Sans", sans-serif;
    --font-heading: "Work Sans", sans-serif;
	--font-main: "Work Sans", sans-serif;
    --header-height: 128px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--color-text);
    background: var(--color-bg);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.1;
	font-weight: 500;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem;
    font-family: var(--font-main);
    line-height: 1.05;
    font-weight: 600;
	letter-spacing: -4.5%;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); }

.site-container {
    width: min(calc(100% - (var(--gutter) * 2)), var(--container));
    margin-inline: auto;
}

.page-section { padding: clamp(3rem, 8vw, 7rem) 0; }
.stack-lg > * + * { margin-top: 24px; }
.eyebrow {
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .75rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: transparent;
    color: var(--color-white);
}
.site-header__inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.site-branding__link { font-weight: 700; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }

.hero-home__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
}
.hero-home__text { max-width: 48ch; }
.hero-home__shape,
.feature-card__thumb {
    min-height: 320px;
    border-radius: 80px;
    background: linear-gradient(135deg, rgba(150,162,255,.35), rgba(249,125,103,.35));
}
.hero-home__shape { min-height: 520px; }

.wp-block-button__link,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--color-navy);
    color: var(--color-white);
    font-weight: 600;
	font-size: 14px;
}
.button-secondary {
    background: transparent;
    color: var(--color-navy);
    border: 1px solid var(--color-navy);
}

.section-intro {
    width: min(calc(100% - (var(--gutter) * 2)), var(--container-narrow));
}

.section-cards--dark {
    background: var(--color-navy);
    color: var(--color-white);
}
.cards-grid {
    display: grid;
    gap: 24px;
}
.cards-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.info-card,
.archive-card {
    padding: 28px;
    border-radius: var(--radius-md);
    background: var(--color-white);
    color: var(--color-text);
    box-shadow: var(--shadow-card);
}
.info-card--yellow { background: var(--color-yellow); }
.info-card--lavender { background: var(--color-lavender); }
.info-card--sand { background: var(--color-sand); }

.feature-card {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: center;
    padding: 32px;
    border-radius: var(--radius-md);
    background: var(--color-white);
    box-shadow: var(--shadow-card);
}
.feature-card--coral { background: var(--color-coral); color: var(--color-white); }
.feature-card--coral .button-secondary {
    border-color: var(--color-white);
    color: var(--color-white);
}

.entry-content > * {
    width: min(100%, var(--container-narrow));
    margin-inline: auto;
}
.entry-content > .alignwide {
    width: min(100%, var(--container));
}
.entry-content > .alignfull {
    width: 100%;
}

.site-footer {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 28px 0;
}
.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
}

@media (max-width: 960px) {
    .hero-home__grid,
    .feature-card,
    .cards-grid--3,
    .site-footer__inner {
        grid-template-columns: 1fr;
        display: grid;
    }

    .site-header__inner {
        flex-wrap: wrap;
        padding: 16px 0;
    }

    .menu {
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero-home__shape {
        min-height: 360px;
    }
}

/* ── Header Figma ─────────────────────── */
.site-header {
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  padding: 0;
  gap: 0;
  align-items: stretch;
}
.site-branding {
  background: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.site-nav-wrapper {
  background: var(--color-navy);
  padding: 0 32px;
  display: flex;
  align-items: center;
  position: relative;
  max-height: 58px;
}
.menu--primary {
  gap: 24px;
  align-items: center;
}
.menu--primary > li > a {
  color: var(--color-lavender);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}
.menu--primary > li > a:hover {
  color: var(--color-white);
}
.menu--primary > li.menu-btn-contact > a {
  background: var(--color-lavender);
  color: var(--color-navy);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: opacity 0.2s;
}
.menu--primary > li.menu-btn-contact > a:hover {
  opacity: 0.85;
  color: var(--color-navy);
}
.menu--primary > li.menu-btn-inscription {
  position: absolute;
  top: 100%;
  right: 20px;
}
.menu--primary > li.menu-btn-inscription > a {
  background: var(--color-coral);
  color: #EAE0D8;
  padding: 10px 22px;
  border-radius: 15px;
  font-weight: 600;
  display: block;
  transition: opacity 0.2s;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.menu--primary > li.menu-btn-inscription > a:hover {
  opacity: 0.85;
}


/* ═══════════════════════════════════════════════════════════
   MENU HAMBURGER — NAVIGATION MOBILE
   ═══════════════════════════════════════════════════════════ */

/* Bouton hamburger — masqué sur desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    flex-shrink: 0;
}
.nav-toggle__bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
/* Animation hamburger vers X */
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
    /* Afficher le bouton hamburger */
    .nav-toggle {
        display: flex;
        background: var(--color-navy);
        border-radius: 6px;
    }
    .nav-toggle[aria-expanded="true"] {
        background: transparent;
    }

    /* Nav wrapper transparent sur mobile */
    .site-nav-wrapper {
        justify-content: flex-end;
        padding: 0 16px;
        max-height: none;
        background: transparent;
    }

    /* Menu mobile — caché par défaut */
    .site-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-navy);
        z-index: 1000;
        overflow-y: auto;
        padding: 80px 32px 40px;
        flex-direction: column;
        align-items: flex-start;
    }
    .site-nav.is-open {
        display: flex;
    }

    /* Items du menu en colonne */
    .menu--primary {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
        width: 100%;
    }
    .menu--primary > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .menu--primary > li > a {
        display: block;
        padding: 16px 0;
        font-size: 18px;
        color: var(--color-white);
    }
    .menu--primary > li > a:hover {
        color: var(--color-lavender);
    }
    /* Bouton Contact */
    .menu--primary > li.menu-btn-contact > a {
        display: inline-block;
        margin: 8px 0;
        padding: 12px 28px;
        background: var(--color-lavender);
        color: var(--color-navy);
        border-radius: 999px;
    }
    /* Bouton Inscription repositionné */
    .menu--primary > li.menu-btn-inscription {
        position: static;
        width: 100%;
        border-bottom: none;
    }
    .menu--primary > li.menu-btn-inscription > a {
        display: inline-block;
        margin: 16px 0 0;
        border-radius: 15px;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
    }

    /* Bloquer le scroll body quand menu ouvert */
    body.nav-open {
        overflow: hidden;
    }
}
