/*
 * Sainte-Anne Romagné Theme — Main Stylesheet
 * Palette officielle de l'école
 */

/* ============================================================
   1. CSS Custom Properties (Design Tokens)
   ============================================================ */
:root {
    /* ── Palette officielle ────────────────────────────────── */

    /* Primary : Bleu-cyan clair #89cad2                       */

     --primary:          #f4b100;
    --primary-dark:     hsl(44, 100%, 28%);   /* #8f6600 — hover, texte sur fond clair */
    --primary-light:    hsl(44, 100%, 60%);   /* #f7c133 — variation claire */
    --primary-muted:    hsl(44, 100%, 94%);   /* #fef7e0 — fond teinté très clair */

    /* Secondary : Or/Jaune vif #f4b100                       */
    --secondary:        #d7da5e;
    --secondary-mid:   #ba3277;   /* #c28e00 — version mid */
    /* hsl(61, 63%, 28%) */
    --secondary-dark:  hsl(61, 63%, 35%);   /* #8f6600 — version foncée */
    --secondary-light:  hsl(61, 63%, 70%);   /* #f7c133 — version claire */
    --secondary-muted:  hsl(61, 63%, 94%);   /* #fef7e0 — fond teinté très clair */

    /* Accent : Rose fuchsia #ba3277                          */
    --accent:           #ba3277;
    --accent-dark:      hsl(323, 57%, 35%);   /* #91265d — hover */
    --accent-light:     hsl(323, 57%, 70%);   /* #d97ab5 — variation claire */
    --accent-muted:     hsl(323, 57%, 94%);   /* #f8e0ee — fond teinté très clair */

    /* ── Alias brand (rétro-compat) ────────────────────────── */
    --emerald:          var(--primary);
    --emerald-light:    var(--primary-muted);
    --mustard:          var(--secondary);
    --mustard-dark:     var(--secondary-mid);
    --mustard-light:    var(--secondary-muted);

    /* ── Neutral / Typography ──────────────────────────────── */
    --foreground:       hsl(220, 20%, 18%);   /* Quasi-noir neutre */
    --muted-fg:         hsl(220, 10%, 48%);   /* Gris moyen */

    /* ── Backgrounds ───────────────────────────────────────── */
    --bg-white:         #ffffff;
    --bg-warm:          hsl(186, 30%, 97%);   /* Blanc légèrement cyan */
    --bg-section:       hsl(186, 30%, 96%);   /* Fond section teinté cyan très clair */
    --bg-secondary:     var(--secondary-dark);   /* Fond sombre doré */

    /* ── Borders ────────────────────────────────────────────── */
    --border:           hsl(186, 20%, 87%);

    /* ── Border radius ──────────────────────────────────────── */
    --radius:           1rem;
    --radius-sm:        0.75rem;
    --radius-full:      9999px;

    /* ── Shadows ────────────────────────────────────────────── */
    --shadow-card:      0 4px 6px -1px rgb(0 0 0 / 0.09), 0 2px 4px -2px rgb(0 0 0 / 0.07);
    --shadow-lg:        0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.08);

    /* ── Spacing ────────────────────────────────────────────── */
    --container-max:    1400px;
    --section-py:       5rem;

    /* ── Transitions ─────────────────────────────────────────── */
    --transition:       all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
                 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--foreground);
    background-color: var(--bg-white);
    line-height: 1.625;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

/* ============================================================
   3. Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;           /* Plus bold — esprit dépliant */
    line-height: 1.2;
    color: var(--foreground);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    line-height: 1.625;
    color: var(--muted-fg);
}

/* ============================================================
   4. Layout Utilities
   ============================================================ */
.sa-container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.sa-section {
    padding-block: var(--section-py);
}

.sa-section--muted {
    background-color: var(--bg-section);
}

.sa-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Layout deux colonnes texte + image (ou texte + contenu) */
.sa-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sa-two-col--gap-md {
    gap: 3rem;
}

.sa-two-col--align-start {
    align-items: start;
}

/* Colonne image : sera repoussée sous le texte sur mobile */
.sa-two-col__img {
    order: 0; /* par défaut, l'ordre DOM est respecté */
}

.sa-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.sa-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.sa-flex {
    display: flex;
    align-items: center;
}

.sa-flex-col {
    display: flex;
    flex-direction: column;
}

.sa-gap-sm { gap: 0.5rem; }
.sa-gap-md { gap: 1rem; }
.sa-gap-lg { gap: 1.5rem; }
.sa-gap-xl { gap: 2rem; }

.sa-text-center { text-align: center; }

/* ============================================================
   5. Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.8);
}
.btn-outline:hover {
    background-color: rgba(255,255,255,0.15);
}

/* Bouton ghost sombre — utilisé sur fond clair (hero photo) */
.btn-ghost {
    background-color: var(--secondary);
    color: var(--accent);
    border-color: var(--border);
}
.btn-ghost:hover {
    background-color: hsl(210, 20%, 96%);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--foreground);
    border-color: var(--secondary);
}
.btn-secondary:hover {
    background-color: hsl(40, 95%, 48%);
    border-color: hsl(40, 95%, 48%);
    transform: translateY(-1px);
}

/* ============================================================
   6. Cards
   ============================================================ */
.sa-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: var(--transition);
}

.sa-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.sa-card__body {
    padding: 1.5rem;
}

.sa-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.sa-card__icon--primary {
    background-color: var(--secondary-muted);
    color: var(--secondary-dark);
}
.sa-card__icon--secondary {
    background-color: var(--secondary-muted);
    color: var(--secondary-dark);
}
.sa-card__icon--accent {
    background-color: var(--accent-muted);
    color: var(--accent-dark);
}
.sa-card__icon--secondary {
    background-color: var(--secondary-muted);
    color: var(--secondary-dark);
}
.sa-card__icon--accent {
    background-color: var(--accent-muted);
    color: var(--accent-dark);
}

.sa-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.sa-card__text {
    color: var(--muted-fg);
    font-size: 0.9375rem;
}

/* ============================================================
   7. Section Headings
   ============================================================ */
.sa-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.sa-section-header__label {
    display: inline-block;
    background-color: var(--emerald-light);
    color: var(--secondary-mid);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.sa-section-header__title {
    color: var(--foreground);
    margin-bottom: 1rem;
}

.sa-section-header__subtitle {
    color: var(--muted-fg);
    max-width: 48rem;
    margin-inline: auto;
    font-size: 1.0625rem;
}

/* ============================================================
   8. Hero Sections
   ============================================================ */

/* ─── Hero de base (pages internes — conservé) ─── */
.sa-hero {
    background: linear-gradient(135deg, var(--secondary-mid) 0%, var(--secondary) 100%);
    color: #fff;
    padding-block: 5rem;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    text-align: center;
}

.sa-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(45, 106, 79, 0.92) 0%,
        rgba(26, 60, 46, 0.88) 100%);
}

.sa-hero__content {
    position: relative;
    z-index: 1;
}

.sa-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.sa-hero__title {
    color: #fff;
    margin-bottom: 1.25rem;
}

.sa-hero__subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 1.125rem;
    max-width: 42rem;
    margin-inline: auto;
    margin-bottom: 2rem;
}

.sa-hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Decorative blobs */
.sa-hero__blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(40px);
    pointer-events: none;
}
.sa-hero__blob--1 {
    width: 400px;
    height: 400px;
    background: var(--mustard);
    top: -100px;
    right: -100px;
}
.sa-hero__blob--2 {
    width: 300px;
    height: 300px;
    background: var(--emerald);
    bottom: -80px;
    left: -80px;
}

/* ─── Hero photo (homepage) ─── */
.sa-hero--photo {
    /* Fallback si pas d'image */
    background-color: hsl(210, 20%, 92%);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* Écrase le ::before du hero de base */
    color: var(--foreground);
    min-height: 70svh;
    display: flex;
    align-items: center;
    text-align: left;
    padding-block: 8rem;
    margin-top: 60px;
    overflow: hidden;
}

/* Annule le pseudo-overlay coloré hérité */
.sa-hero--photo::before {
    display: none;
}

/* Overlay dégradé blanc cassé à gauche → transparent à droite */
.sa-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(248, 245, 240, 0.97) 0%,
        rgba(248, 245, 240, 0.88) 30%,
        rgba(248, 245, 240, 0.80) 55%,
        rgba(248, 245, 240, 0.45) 80%,
        rgba(248, 245, 240, 0.10) 100%
    );
    z-index: 0;
}

/* Fallback sans image : fond clair uni */
.sa-hero--no-photo {
    background: var(--secondary-muted);
}
.sa-hero--no-photo .sa-hero__overlay {
    display: none;
}

.sa-hero--photo .sa-hero__content {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 1.5rem;
    width: 100%;
}

.sa-hero--photo .sa-hero__title {
    color: var(--foreground);
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    line-height: 1.1;
    max-width: 18ch;
    margin-bottom: 1.25rem;
}

.sa-hero__title-accent {
    color: var(--secondary-mid);
}

.sa-hero--photo .sa-hero__subtitle {
    color: var(--muted-fg);
    margin-inline: 0;
    max-width: 36rem;
    font-size: 1.125rem;
    margin-bottom: 2.25rem;
}

.sa-hero--photo .sa-hero__actions {
    justify-content: flex-start;
}

/* Mascotte décorative hero — desktop : absolute bas droite */
.sa-hero__mascotte {
    position: absolute;
    bottom: 0;
    right: clamp(2rem, 6vw, 8rem);
    width: clamp(140px, 14vw, 210px);
    height: auto;
    object-fit: contain;
    /* légèrement sortante vers le bas pour un effet "qui surgit" */
    transform: translateY(18%);
    /* au-dessus de l'overlay mais sous le contenu texte */
    z-index: 2;
    /* Légère ombre pour la détacher du fond */
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.18));
    pointer-events: none;
    user-select: none;
}

/* Mascotte pages internes (sa-page-hero) — même logique que le hero homepage */
.sa-page-hero__mascotte {
    position: absolute;
    bottom: 0;
    right: clamp(2rem, 6vw, 8rem);
    width: clamp(80px, 10vw, 120px);
    height: auto;
    object-fit: contain;
    transform: translateY(18%);
    z-index: 2;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.15));
    pointer-events: none;
    user-select: none;
}

/* ============================================================
   9. Navigation
   ============================================================ */
.sa-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.sa-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
}

.sa-nav__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: var(--foreground);
    text-decoration: none;
}

.sa-nav__brand-icon {
    width: auto;
    height: 120px;
    /* background: linear-gradient(135deg, var(--primary), var(--primary-dark)); */
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
}

.sa-nav__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.sa-nav__brand-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--foreground);
}

.sa-nav__brand-sub {
    font-size: 0.75rem;
    color: var(--muted-fg);
    font-weight: 400;
}

.sa-nav__menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sa-nav__link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--muted-fg);
    text-decoration: none;
    transition: var(--transition);
}

.sa-nav__link:hover,
.sa-nav__link.current-menu-item,
.sa-nav__link.current_page_item {
    color: var(--secondary-dark);
    background-color: var(--secondary-muted);
}

.sa-nav__link.current-menu-item .sa-nav__link-dot,
.sa-nav__link.current_page_item .sa-nav__link-dot {
    display: block;
}

.sa-nav__link-dot {
    display: none;
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
}

.sa-nav__phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--secondary-mid);
    color: #fff !important;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.sa-nav__phone:hover {
    background-color: var(--secondary);
}

/* Hamburger */
.sa-nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
}

.sa-nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--foreground);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile nav */
.sa-nav__mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
}

.sa-nav__mobile.is-open {
    display: block;
}

.sa-nav__mobile-link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
    color: var(--foreground);
}

.sa-nav__mobile-link:last-child {
    border-bottom: none;
}

.sa-nav__mobile-link:hover {
    color: var(--primary-dark);
}

/* ============================================================
   10. Footer
   ============================================================ */
.sa-footer {
    background: linear-gradient(160deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: rgba(255,255,255,0.85);
    padding-block: 4rem;
}

.sa-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.sa-footer__brand-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.sa-footer__brand-sub {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1rem;
}

.sa-footer__brand-desc {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.sa-footer__heading {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.sa-footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.sa-footer__link {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.sa-footer__link:hover {
    color: var(--emerald);
    padding-left: 4px;
}

.sa-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.75rem;
}

.sa-footer__contact-icon {
    flex-shrink: 0;
    width: 1rem;
    margin-top: 0.15rem;
    color: var(--accent);
}

.sa-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 3rem;
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ============================================================
   11. Page Hero (internal pages)
   ============================================================ */
.sa-page-hero {
    background: linear-gradient(135deg, var(--secondary-mid) 0%, var(--secondary) 100%);
    padding-block: 5rem;
    text-align: center;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    margin-top: 3rem; /* nav height */
    overflow: hidden;
}

.sa-page-hero__content {
    position: relative;
    z-index: 1;
}

.sa-page-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.25rem;
}

.sa-page-hero__title {
    color: #fff;
    margin-bottom: 1rem;
}

.sa-page-hero__subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 1.0625rem;
    max-width: 40rem;
    margin-inline: auto;
}

/* ============================================================
   12. Value Cards (Accueil)
   ============================================================ */
.values-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: left;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.values-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.values-card--primary   { border-top-color: var(--emerald); }
.values-card--secondary { border-top-color: var(--mustard); }
.values-card--accent    { border-top-color: var(--accent); }

/* Cercle coloré teinté autour de l'icône */
.values-card__emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.25rem;
}

.values-card--primary   .values-card__emoji { background: var(--secondary-muted); }
.values-card--secondary .values-card__emoji { background: var(--primary-muted); }
.values-card--accent    .values-card__emoji { background: var(--accent-muted); }

.values-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.values-card__text {
    color: var(--muted-fg);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ============================================================
   13. Section CTA Inscription (accueil)
   ============================================================ */
.sa-cta-section {
    background: linear-gradient(135deg, var(--secondary-mid) 0%, var(--secondary) 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Blob décoratif moutarde en arrière-plan — esprit dépliant */
.sa-cta-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--mustard);
    opacity: 0.08;
    top: -200px;
    right: -150px;
    pointer-events: none;
}
.sa-cta-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--emerald);
    opacity: 0.12;
    bottom: -100px;
    left: -80px;
    pointer-events: none;
}

.sa-cta-section__title {
    color: #fff;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.sa-cta-section__text {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    position: relative;
    z-index: 1;
}

.sa-cta-section__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Bouton principal moutarde, coins très arrondis */
.sa-cta-section__btn-primary {
    background-color: var(--mustard);
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: var(--radius-full);
    padding: 0.75rem 1.75rem;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: var(--transition);
}
.sa-cta-section__btn-primary:hover {
    background-color: var(--mustard-dark);
    border-color: var(--mustard-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 168, 76, 0.4);
    color: var(--secondary);
}

/* Bouton secondaire outline blanc */
.sa-cta-section__btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-full);
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
}
.sa-cta-section__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    transform: translateY(-2px);
}

/* ============================================================
   14. Level Cards (section Niveaux — accueil)
   ============================================================ */
.sa-levels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.sa-level-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
}

.sa-level-card__title {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.sa-level-card__subtitle {
    font-size: 0.875rem;
    color: var(--muted-fg);
}

/* ============================================================
   14. Info Items (lists with icons)
   ============================================================ */
.sa-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.sa-info-item__icon-wrap {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.sa-info-item__icon-wrap--primary {
    background-color: var(--secondary-muted);
}

.sa-info-item__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--foreground);
}

.sa-info-item__text {
    color: var(--muted-fg);
    font-size: 0.9375rem;
}

/* ============================================================
   14. Feature Rows (icon + text side by side)
   ============================================================ */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-row--reverse {
    direction: rtl;
}

.feature-row--reverse > * {
    direction: ltr;
}

/* ============================================================
   15. Classes Page Styles
   ============================================================ */
.class-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.class-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.class-card__badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.class-card__badge--maternelle {
    background-color: var(--primary-muted);
    color: var(--primary-dark);
}

.class-card__badge--elementaire {
    background-color: var(--secondary-muted);
    color: var(--secondary-dark);
}

.class-card__name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.class-card__age {
    color: var(--muted-fg);
    font-size: 0.875rem;
}

.class-group__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--emerald);
    display: inline-block;
}

/* ============================================================
   15b. Classes — Section vignettes équipe
   ============================================================ */

/* Grille auto-fill, min 260px par vignette */
.sa-equipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* Vignette individuelle */
.sa-classe-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.sa-classe-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Bande de couleur en haut selon le type */
.sa-classe-card__header {
    padding: 1rem 1.25rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sa-classe-card__header--maternelle {
    background: var(--primary-muted);
    border-bottom: 2px solid var(--primary);
}

.sa-classe-card__header--elementaire {
    background: var(--secondary-muted);
    border-bottom: 2px solid var(--secondary);
}

/* Sigle de la classe (TPS-PS, CP-CE1…) */
.sa-classe-card__sigle {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    color: var(--foreground);
}

/* Badge type maternelle / élémentaire */
.sa-classe-card__type {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    margin-left: auto;
}

.sa-classe-card__type--maternelle {
    background: var(--primary);
    color: #fff;
}

.sa-classe-card__type--elementaire {
    background: var(--secondary);
    color: #fff;
}

/* Corps de la vignette */
.sa-classe-card__body {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

/* Ligne info (icône + texte) */
.sa-classe-card__row {
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
    font-size: 0.9rem;
    line-height: 1.45;
}

.sa-classe-card__row-icon {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--muted-fg);
}

.sa-classe-card__row-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-fg);
    margin-bottom: 0.15rem;
}

.sa-classe-card__row-value {
    color: var(--foreground);
    white-space: pre-line; /* respecte les sauts de ligne du textarea */
}

/* Responsive */
@media (max-width: 768px) {
    .sa-equipe-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   16. Actualités Page
   ============================================================ */
.actualite-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: var(--transition);
}

.actualite-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.actualite-card__cat {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
    background-color: var(--secondary-muted);
    color: var(--secondary-dark);
}

.actualite-card__body {
    padding: 1.5rem;
}

.actualite-card__date {
    font-size: 0.8125rem;
    color: var(--muted-fg);
    margin-bottom: 0.5rem;
}

.actualite-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.actualite-card__excerpt {
    color: var(--muted-fg);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.actualite-card__link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--secondary-mid);
    text-decoration: none;
}

.actualite-card__link:hover {
    text-decoration: underline;
}

/* ============================================================
   17. Contact Page
   ============================================================ */
.contact-info-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-block: 1rem;
    border-bottom: 1px solid var(--border);
}

.contact-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-info-item:first-child {
    padding-top: 0;
}

.contact-info-item__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--secondary-muted);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.contact-info-item__label {
    font-size: 0.8125rem;
    color: var(--muted-fg);
    margin-bottom: 0.2rem;
}

.contact-info-item__value {
    font-weight: 600;
    color: var(--foreground);
}

.contact-info-item__value a {
    color: var(--secondary-mid);
}

.contact-info-item__value a:hover {
    text-decoration: underline;
}

/* Contact form */
.sa-form {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 2rem;
}

.sa-form__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.sa-form__group {
    margin-bottom: 1.25rem;
}

.sa-form__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.375rem;
}

.sa-form__label span {
    color: var(--accent);
}

.sa-form__input,
.sa-form__select,
.sa-form__textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 4px);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--foreground);
    background-color: var(--bg-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.sa-form__input:focus,
.sa-form__select:focus,
.sa-form__textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px var(--secondary-muted);
}

.sa-form__textarea {
    min-height: 8rem;
    resize: vertical;
}

/* ---- Contact Form 7 — reset & intégration thème ---- */

/* CF7 wrap le tout dans .wpcf7 > form.wpcf7-form
   On neutralise les styles par défaut de CF7 et on
   applique le design system du thème. */

/* Supprime le spinner CF7 qui déforme le bouton */
.wpcf7 .ajax-loader { display: none !important; }

/* Le wrapper du formulaire */
.sa-cf7-wrapper .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* CF7 enveloppe chaque champ dans un <p> — on le rend identique à .sa-form__group */
.sa-cf7-wrapper .wpcf7-form > p,
.sa-cf7-wrapper .wpcf7-form .sa-form__group > p {
    margin: 0 0 1.25rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

/* Neutralise le <p> wrapper CF7 à l'intérieur de nos .sa-form__group */
.sa-cf7-wrapper .sa-form__group {
    margin-bottom: 0;
}

/* Le label injecté par le filtre PHP */
.sa-cf7-wrapper .sa-form__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.375rem;
}

.sa-cf7-wrapper .sa-required {
    color: var(--accent);
}

/* Les spans CF7 autour des inputs sont inline-block par défaut — on les passe full-width */
.sa-cf7-wrapper .wpcf7-form span.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* Inputs & textarea */
.sa-cf7-wrapper .wpcf7-form input[type="text"],
.sa-cf7-wrapper .wpcf7-form input[type="email"],
.sa-cf7-wrapper .wpcf7-form input[type="tel"],
.sa-cf7-wrapper .wpcf7-form input[type="url"],
.sa-cf7-wrapper .wpcf7-form input[type="number"],
.sa-cf7-wrapper .wpcf7-form textarea,
.sa-cf7-wrapper .sa-form__input,
.sa-cf7-wrapper .sa-form__textarea {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: calc(var(--radius) - 4px);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--foreground);
    background-color: var(--bg-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.sa-cf7-wrapper .wpcf7-form input[type="text"]:focus,
.sa-cf7-wrapper .wpcf7-form input[type="email"]:focus,
.sa-cf7-wrapper .wpcf7-form input[type="tel"]:focus,
.sa-cf7-wrapper .wpcf7-form textarea:focus,
.sa-cf7-wrapper .sa-form__input:focus,
.sa-cf7-wrapper .sa-form__textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px var(--secondary-muted);
}

/* Champ invalide */
.sa-cf7-wrapper .wpcf7-form input.wpcf7-not-valid,
.sa-cf7-wrapper .wpcf7-form textarea.wpcf7-not-valid {
    border-color: hsl(0, 84%, 60%);
    box-shadow: 0 0 0 3px hsl(0, 84%, 93%);
}

.sa-cf7-wrapper .wpcf7-form textarea,
.sa-cf7-wrapper .sa-form__textarea {
    min-height: 8rem;
    resize: vertical;
}

/* Message d'erreur sous un champ */
.sa-cf7-wrapper .wpcf7-not-valid-tip {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8125rem;
    color: hsl(0, 84%, 45%);
}

/* Bouton submit — reprend exactement .btn.btn-primary du thème */
.sa-cf7-wrapper .wpcf7-form input[type="submit"],
.sa-cf7-wrapper .wpcf7-form .wpcf7-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background-color: var(--secondary-mid);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    letter-spacing: 0.01em;
    margin-top: 0.5rem;
    -webkit-appearance: none;
    appearance: none;
}

.sa-cf7-wrapper .wpcf7-form input[type="submit"]:hover,
.sa-cf7-wrapper .wpcf7-form .wpcf7-submit:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px hsl(186 40% 35% / 0.35);
}

.sa-cf7-wrapper .wpcf7-form input[type="submit"]:active,
.sa-cf7-wrapper .wpcf7-form .wpcf7-submit:active {
    transform: translateY(0);
}

/* Messages de retour CF7 (succès / erreur globale) */
.sa-cf7-wrapper .wpcf7-response-output {
    margin: 1rem 0 0;
    padding: 0.875rem 1rem;
    border-radius: calc(var(--radius) - 4px);
    font-size: 0.9375rem;
    line-height: 1.5;
    border: 1.5px solid transparent;
}

/* Succès */
.sa-cf7-wrapper .wpcf7-response-output.wpcf7-mail-sent-ok {
    background-color: hsl(120, 60%, 94%);
    color: hsl(120, 60%, 22%);
    border-color: hsl(120, 60%, 72%);
}

/* Erreur de validation */
.sa-cf7-wrapper .wpcf7-response-output.wpcf7-validation-errors,
.sa-cf7-wrapper .wpcf7-response-output.wpcf7-acceptance-missing {
    background-color: hsl(0, 84%, 96%);
    color: hsl(0, 84%, 35%);
    border-color: hsl(0, 84%, 78%);
}

/* Erreur d'envoi mail */
.sa-cf7-wrapper .wpcf7-response-output.wpcf7-mail-sent-ng,
.sa-cf7-wrapper .wpcf7-response-output.wpcf7-aborted {
    background-color: hsl(40, 95%, 94%);
    color: hsl(40, 80%, 25%);
    border-color: hsl(40, 95%, 65%);
}

/* ============================================================
   18. Horaires — double tableau Maternelle / Primaire
   ============================================================ */

/* Grille côte à côte sur desktop, empilée sur mobile */
.sa-schedules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Card conteneur de chaque tableau */
.sa-schedule-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    border: 1px solid var(--border);
}

/* En-tête de la card (titre + icône) */
.sa-schedule-card__header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.sa-schedule-card__header--maternelle {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.sa-schedule-card__header--primaire {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-mid) 100%);
}

/* Tableau intérieur */
.sa-hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.sa-hours-table thead th {
    text-align: left;
    padding: 0.625rem 1rem;
    background-color: var(--bg-section);
    color: var(--muted-fg);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
}

.sa-hours-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--foreground);
    vertical-align: middle;
}

.sa-hours-table td:first-child {
    font-weight: 600;
    color: var(--primary-dark);
}

.sa-hours-table tr:last-child td {
    border-bottom: none;
}

.sa-hours-table tr:nth-child(even) td {
    background-color: var(--bg-warm);
}

/* Cellule "fermé" / tiret */
.sa-hours-table td.sa-hours-table__closed {
    color: var(--muted-fg);
    font-style: italic;
}

/* Note de bas de tableau */
.sa-schedule-card__note {
    padding: 0.625rem 1rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--muted-fg);
    border-top: 1px solid var(--border);
    background: var(--bg-section);
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    line-height: 1.5;
}

/* ── Responsive mobile ─────────────────────────────────────── */
@media (max-width: 640px) {
    .sa-schedules-grid {
        grid-template-columns: 1fr;
    }

    /* Transformation du tableau en liste de blocs "stacked" */
    .sa-hours-table thead {
        display: none; /* on cache les th */
    }

    .sa-hours-table,
    .sa-hours-table tbody,
    .sa-hours-table tr,
    .sa-hours-table td {
        display: block;
        width: 100%;
    }

    .sa-hours-table tr {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border);
    }

    .sa-hours-table tr:last-child {
        border-bottom: none;
    }

    .sa-hours-table tr:nth-child(even) {
        background-color: var(--bg-warm);
    }

    /* Affiche le label de colonne via data-label */
    .sa-hours-table td {
        padding: 0.2rem 0;
        border: none;
        display: flex;
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .sa-hours-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--muted-fg);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        min-width: 5rem;
        flex-shrink: 0;
        padding-top: 0.1em;
    }

    .sa-hours-table td:first-child::before { content: none; }
    .sa-hours-table td:first-child {
        font-size: 0.9375rem;
        font-weight: 700;
        margin-bottom: 0.25rem;
    }
}

/* ============================================================
   18b. Tableau Garderie & Étude (périscolaire)
   ============================================================ */

.sa-periscolaire {
    margin-top: 2.5rem;
}

.sa-periscolaire__intro {
    font-size: 1rem;
    color: var(--foreground);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

/* Card wrapper */
.sa-periscolaire__card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    border: 1px solid var(--border);
}

/* En-tête accent */
.sa-periscolaire__header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, hsl(323, 57%, 44%) 100%);
}

/* Tableau */
.sa-periscolaire__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.sa-periscolaire__table thead th {
    text-align: left;
    padding: 0.625rem 1.25rem;
    background-color: var(--bg-section);
    color: var(--muted-fg);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
}

.sa-periscolaire__table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.6;
    color: var(--foreground);
}

.sa-periscolaire__table tr:last-child td {
    border-bottom: none;
}

.sa-periscolaire__table tr:nth-child(even) td {
    background-color: var(--bg-warm);
}

/* Colonne service : nom en gras + couleur accent */
.sa-periscolaire__table td:first-child {
    font-weight: 700;
    color: var(--accent);
    width: 28%;
}

/* Cellule vide */
.sa-periscolaire__table td.sa-peri__empty {
    color: var(--muted-fg);
    font-style: italic;
}

/* Label de colonne mobile via data-label */
@media (max-width: 640px) {
    .sa-periscolaire__table thead { display: none; }

    .sa-periscolaire__table,
    .sa-periscolaire__table tbody,
    .sa-periscolaire__table tr,
    .sa-periscolaire__table td {
        display: block;
        width: 100%;
    }

    .sa-periscolaire__table tr {
        padding: 0.875rem 1.25rem;
        border-bottom: 1px solid var(--border);
    }

    .sa-periscolaire__table tr:last-child { border-bottom: none; }

    .sa-periscolaire__table tr:nth-child(even) {
        background-color: var(--bg-warm);
    }

    .sa-periscolaire__table td {
        padding: 0.2rem 0;
        border: none;
    }

    .sa-periscolaire__table td:first-child {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .sa-periscolaire__table td:not(:first-child) {
        display: flex;
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .sa-periscolaire__table td:not(:first-child)::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--muted-fg);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        min-width: 4.5rem;
        flex-shrink: 0;
        padding-top: 0.15em;
    }
}

/* ============================================================
   18c. Tarifs
   ============================================================ */

.sa-tarifs {
    margin-top: 2.5rem;
}

/* Grille de tuiles : auto-fit, min 180px */
.sa-tarifs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

/* Tuile individuelle */
.sa-tarifs__item {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 1.5rem 1.25rem 1.25rem;
    text-align: center;
    border-top: 3px solid var(--primary);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Intitulé (Année Scolaire, Cantine…) */
.sa-tarifs__label {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted-fg);
    margin: 0;
}

/* Montant mis en avant */
.sa-tarifs__montant {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.1;
    margin: 0;
}

/* Note optionnelle */
.sa-tarifs__note {
    font-size: 0.8125rem;
    color: var(--muted-fg);
    margin: 0;
}

/* ============================================================
   19. Facebook CTA Block
   ============================================================ */
.sa-facebook-cta {
    background: linear-gradient(135deg, #1877F2 0%, #0b5ccc 100%);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    color: #fff;
}

.sa-facebook-cta__title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.sa-facebook-cta__text {
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.5rem;
}

.btn-facebook {
    background-color: #fff;
    color: #1877F2;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-facebook:hover {
    background-color: #f0f2f5;
    transform: translateY(-2px);
}

/* ============================================================
   20. 404 Page
   ============================================================ */
.sa-404 {
    min-height: calc(100svh - 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
    margin-top: 4rem;
}

.sa-404__number {
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: 800;
    color: var(--emerald);
    line-height: 1;
    margin-bottom: 1rem;
}

.sa-404__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: 1rem;
}

.sa-404__text {
    color: var(--muted-fg);
    max-width: 30rem;
    margin-inline: auto;
    margin-bottom: 2rem;
}

/* ============================================================
   21. Badges / Tags
   ============================================================ */
.sa-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.875rem;
    border-radius: var(--radius-full);
}

.sa-badge--primary {
    background-color: var(--secondary-muted);
    color: var(--secondary-dark);
}

.sa-badge--secondary {
    background-color: var(--primary-muted);
    color: var(--primary-dark);
}

/* ============================================================
   22. Divider
   ============================================================ */
.sa-divider {
    height: 1px;
    background-color: var(--border);
    margin-block: 2rem;
}

/* ============================================================
   23. Skip to content
   ============================================================ */
.sa-skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--secondary-mid);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-weight: 600;
}

.sa-skip-link:focus {
    top: 1rem;
}

/* ============================================================
   24. Single Actualité
   ============================================================ */
.sa-actu-single {
    max-width: 800px;
    margin-inline: auto;
}

.sa-actu-single__image-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.sa-actu-single__image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.sa-actu-single__body {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
}

.sa-actu-single__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.sa-actu-single__date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: var(--muted-fg);
}

.sa-actu-single__content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--foreground);
}

.sa-actu-single__content p {
    margin-bottom: 1.25rem;
}

.sa-actu-single__content h2,
.sa-actu-single__content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--foreground);
    font-weight: 700;
}

.sa-actu-single__content h2 { font-size: 1.4rem; }
.sa-actu-single__content h3 { font-size: 1.15rem; }

.sa-actu-single__content ul,
.sa-actu-single__content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.sa-actu-single__content li { margin-bottom: 0.35rem; }

.sa-actu-single__content img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin-block: 1rem;
}

.sa-actu-single__content blockquote {
    border-left: 4px solid var(--emerald);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--emerald-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--muted-fg);
}

.sa-actu-single__content a {
    color: var(--secondary-mid);
    text-decoration: underline;
}

/* Prev / Next nav */
.sa-actu-single__nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.sa-actu-single__nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--foreground);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    flex: 1;
    min-width: 0;
    max-width: 48%;
}

.sa-actu-single__nav-link:hover {
    border-color: var(--emerald);
    background: var(--emerald-light);
    color: var(--secondary-mid);
}

.sa-actu-single__nav-link--next {
    justify-content: flex-end;
    text-align: right;
}

.sa-actu-single__nav-link span {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sa-actu-single__nav-link small {
    font-size: 0.75rem;
    color: var(--muted-fg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sa-actu-single__nav-link strong {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Breadcrumb */
.sa-breadcrumb {
    font-size: 0.875rem;
    color: var(--muted-fg);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.sa-breadcrumb a {
    color: var(--secondary-mid);
    text-decoration: none;
}

.sa-breadcrumb a:hover { text-decoration: underline; }

.sa-breadcrumb__sep { color: var(--border); }

/* ============================================================
   25. Éléments décoratifs — Esprit Dépliant
   ============================================================ */

/*
 * Séparateur diagonal SVG entre sections
 * Usage : <div class="sa-wave sa-wave--down"> ou --up
 * Couleur contrôlée via --wave-color
 */
.sa-wave {
    display: block;
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
}
.sa-wave svg {
    display: block;
    width: 100%;
}

/* Fond muted avec légère teinte verte chaude */
.sa-section--muted {
    background-color: var(--bg-section);
}

/* Fond chaud "papier" — rappel fond clair du dépliant */
.sa-section--warm {
    background-color: var(--bg-warm);
}

/* Fond vert forêt foncé — sections sombres signature */
.sa-section--secondary {
    background: linear-gradient(135deg, var(--secondary-mid) 0%, var(--secondary) 100%);
    color: #fff;
}
.sa-section--secondary h2,
.sa-section--secondary h3,
.sa-section--secondary h4 {
    color: #fff;
}
.sa-section--secondary p {
    color: rgba(255,255,255,0.82);
}

/*
 * Badge "pill" décoratif — même style que le dépliant
 * Couleur moutarde sur fond vert
 */
.sa-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--mustard);
    color: var(--secondary);
    font-size: 0.8125rem;
    font-weight: 800;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/*
 * Trait décoratif sous-titre — soulignement moutarde
 * Usage : <span class="sa-underline-accent">mot</span>
 */
.sa-underline-accent {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}
.sa-underline-accent::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--mustard);
    border-radius: 2px;
    opacity: 0.85;
}

/*
 * Cercle décoratif "blob" flottant — positionné en absolute
 * dans un parent position:relative overflow:hidden
 */
.sa-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.07;
    filter: blur(60px);
}
.sa-blob--mustard { background: var(--mustard); }
.sa-blob--emerald { background: var(--emerald); }
.sa-blob--secondary  { background: var(--secondary-mid); }

/*
 * Ligne décorative verticale — séparateur de section
 * avec couleur moutarde (esprit dépliant)
 */
.sa-section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--mustard), var(--emerald));
    border-radius: 2px;
    margin: 0 auto 2rem;
}

.sa-section-divider--left {
    margin-left: 0;
}

/* ============================================================
   26. Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .sa-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .sa-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .sa-footer__grid { grid-template-columns: 1fr 1fr; }
    .feature-row { grid-template-columns: 1fr; gap: 2rem; }
    .feature-row--reverse { direction: ltr; }
    .sa-two-col { gap: 2.5rem; }
}

@media (max-width: 768px) {
    :root { --section-py: 3rem; }

    .sa-grid-2 { grid-template-columns: 1fr; }
    .sa-grid-3 { grid-template-columns: 1fr; }
    .sa-grid-4 { grid-template-columns: 1fr; }
    .sa-footer__grid { grid-template-columns: 1fr; gap: 2rem; }

    /* Deux colonnes → empilement vertical, image toujours sous le texte */
    .sa-two-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .sa-two-col__img {
        order: 1; /* image passe après le texte (order:0 par défaut) */
    }

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

    .sa-nav__menu,
    .sa-nav__phone {
        display: none;
    }

    .sa-nav__toggle {
        display: flex;
    }

    .sa-hero--photo {
        text-align: center;
        min-height: 70svh;
    }

    .sa-hero__overlay {
        background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.88) 0%,
            rgba(255, 255, 255, 0.72) 50%,
            rgba(255, 255, 255, 0.50) 100%
        );
    }

    .sa-hero--photo .sa-hero__subtitle {
        margin-inline: auto;
    }

    .sa-hero--photo .sa-hero__actions {
        justify-content: center;
    }

    /* Mascotte mobile : absolute bas centré */
    .sa-hero__mascotte {
        position: absolute;
        bottom: 0;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(18%);
        width: clamp(80px, 28vw, 200px);
        margin: 0;
    }

    .sa-footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .sa-page-hero { padding-block: 5rem; }
    .sa-hero--photo { padding-block: 6rem; min-height: 60svh; margin-top: 50px;overflow: hidden; }
    .sa-levels-grid { grid-template-columns: 1fr; }
    .contact-info-card,
    .sa-form { padding: 1.5rem; }
    .sa-hero__mascotte { width: clamp(70px, 24vw, 160px); }

    /* Mascotte pages internes mobile : absolute bas centré */
    .sa-page-hero__mascotte {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(18%);
        width: clamp(70px, 20vw, 100px);
    }

    /* Associations mobile */
    .sa-asso-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .sa-asso-bureau__members {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   20. Page Associations
   ============================================================ */

/* Section wrapper */
.sa-asso-section {
    background: var(--bg-white);
}
.sa-asso-section--alt {
    background: var(--bg-section);
}

/* En-tête association : icône + texte intro côte à côte */
.sa-asso-header {
    display: flex;
    align-items: flex-start;
    gap: 1.75rem;
    margin-bottom: 2rem;
}

.sa-asso-header__logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-muted);
}
.sa-asso-header__logo--apel {
    background: hsl(320, 40%, 94%);
}

.sa-asso-header__title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0 0 0.5rem;
    line-height: 1.15;
}
.sa-asso-header__title--apel {
    color: var(--accent);
}
.sa-asso-header__intro {
    font-size: 1.0625rem;
    color: var(--text);
    line-height: 1.65;
    margin: 0;
}

/* Liste à puces missions/opérations */
.sa-asso-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.sa-asso-list__item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
}
.sa-asso-list__item svg {
    flex-shrink: 0;
    margin-top: 0.3rem;
}

/* Texte libre entre liste et bureau */
.sa-asso-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    margin: 0 0 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-section);
    border-left: 3px solid var(--primary);
    border-radius: 0 0.5rem 0.5rem 0;
}
.sa-asso-section--alt .sa-asso-text {
    background: var(--bg-white);
    border-left-color: var(--accent);
}

/* Slogan APEL */
.sa-asso-slogan {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--accent);
    text-align: center;
    margin: 0 0 1.75rem;
    padding: 1rem 1.5rem;
    background: hsl(320, 40%, 96%);
    border-radius: 0.75rem;
    line-height: 1.5;
}

/* Bloc bureau */
.sa-asso-bureau {
    background: var(--bg-section);
    border-radius: 1rem;
    padding: 1.75rem 2rem;
    margin: 0 0 2rem;
}
.sa-asso-section--alt .sa-asso-bureau {
    background: var(--bg-white);
}
.sa-asso-bureau--apel {
    border-top: 3px solid var(--accent);
}
.sa-asso-bureau:not(.sa-asso-bureau--apel) {
    border-top: 3px solid var(--primary);
}

.sa-asso-bureau__title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-fg);
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.sa-asso-bureau__members {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2rem;
}
.sa-asso-bureau__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    padding: 0.375rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
    line-height: 1.5;
}
.sa-asso-bureau__row:last-child {
    border-bottom: none;
}
.sa-asso-bureau__row--membres {
    grid-column: 1 / -1;
}
.sa-asso-bureau__row dt {
    font-weight: 700;
    color: var(--text);
    flex-shrink: 0;
}
.sa-asso-bureau__row dt::after {
    content: ' :';
}
.sa-asso-bureau__row dd {
    margin: 0;
    color: var(--text);
}

/* Email CTA */
.sa-asso-email {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: var(--primary-muted);
    border: 1.5px solid var(--primary);
    border-radius: 0.625rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}
.sa-asso-email a {
    color: var(--primary-dark);
    text-decoration: none;
}
.sa-asso-email a:hover {
    text-decoration: underline;
}
.sa-asso-email--apel {
    background: hsl(320, 40%, 94%);
    border-color: var(--accent);
}
.sa-asso-email--apel a {
    color: var(--accent);
}
