/* ===================================
   Nindo Training - CSS Design System
   WCAG AA compliant + animation-ready
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Comfortaa:wght@600;700&display=swap');

:root {
    /* Couleurs Nindo Training — charte sakura (marine profond + or rose) */
    --primary: #b4727f;
    --primary-light: #ce989d;
    --primary-dark: #8e5562;
    --secondary: #0b3a75;      /* marine du visuel */
    --secondary-dark: #141a2e; /* coin sombre du visuel */
    --accent: #d4a0a0;
    --navy: #0b3a75;
    --navy-mid: #12315f;
    --navy-deep: #141a2e;
    --rose-gold: #d4a0a0;
    --rose-gold-light: #f0c8c6;
    --gradient-navy: linear-gradient(100deg, var(--navy) 0%, var(--navy-mid) 62%, var(--navy-deep) 100%);
    --font-accent: 'Comfortaa', 'Inter', system-ui, sans-serif;

    /* Accent d'action — chroma relevé, réservé aux CTA et jauges (reco 1d) */
    --cta: #cc3355;            /* repli sRGB */
    --cta: oklch(0.62 0.19 12);
    --cta-dark: #a82643;       /* repli sRGB */
    --cta-dark: oklch(0.54 0.18 12);
    --shadow-cta: 0 6px 18px rgba(180, 40, 70, 0.34);

    /* Étoiles d'avis (Google) */
    --star: #f5a623;

    /* Texte (contraste WCAG AA) */
    --text: #1D1D1D;
    --text-muted: #4B5563;     /* contraste 7.7:1 sur blanc */
    --text-light: #4B5563;     /* alias retro-compat */
    --text-on-dark: #F9FAFB;
    --text-muted-on-dark: #D1D5DB;

    /* Surfaces */
    --bg: #FFFFFF;
    --bg-gray: #F9FAFB;
    --bg-soft: #F3F4F6;
    --border: #E5E7EB;
    --border-strong: #D1D5DB;

    /* Etats */
    --focus-ring: 0 0 0 3px rgba(180, 114, 127, 0.45);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(45, 55, 97, 0.08);
    --shadow-lg: 0 12px 32px rgba(45, 55, 97, 0.14);
    --shadow-glow: 0 8px 28px rgba(180, 114, 127, 0.22);

    /* Tokens */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-power: cubic-bezier(0.16, 1, 0.3, 1);

    /* Typographie */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* === Accessibility utilities === */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 0.875rem 1.5rem;
    background: var(--secondary-dark);
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-md);
}

.skip-link:focus {
    left: 1rem;
    top: 0;
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

:focus {
    outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* === Navigation === */
.navbar {
    background: var(--secondary-dark);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: box-shadow 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.navbar.is-scrolled {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

/* Header transparent en surimpression du hero plein écran (accueil) */
.navbar--transparent {
    position: fixed;
    left: 0;
    right: 0;
    background: transparent;
    box-shadow: none;
    transition: background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.navbar--transparent.is-scrolled {
    background: var(--secondary-dark);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    min-height: 44px;
    padding: 0.25rem 0;
}

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

.nav-logo-text {
    font-size: 1.125rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.01em;
}

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

.nav-menu > li {
    list-style: none;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    position: relative;
    transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0.875rem;
    right: 0.875rem;
    bottom: 0.4rem;
    height: 2px;
    background: var(--primary-light);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s var(--ease-out);
}

.nav-link:hover {
    color: var(--primary-light);
    background: rgba(255, 255, 255, 0.04);
}

.nav-link[aria-current="page"] {
    color: var(--primary-light);
}

.nav-link[aria-current="page"]::after,
.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    margin-left: 0.5rem;
}

/* Hamburger (mobile) */
.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-light);
}

.nav-toggle svg {
    width: 22px;
    height: 22px;
}

/* === Buttons === */
.btn {
    padding: 0.875rem 1.75rem;
    min-height: 48px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
        background 0.25s var(--ease-out), color 0.25s var(--ease-out),
        border-color 0.25s var(--ease-out);
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
    text-align: center;
    will-change: transform;
}

.btn:active {
    transform: translateY(1px) scale(0.99);
}

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

.btn-primary:hover {
    background: var(--cta-dark);
    border-color: var(--cta-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-cta);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--secondary-dark);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--bg-soft);
}

.btn-lg {
    padding: 1.0625rem 2.25rem;
    font-size: 1.0625rem;
    min-height: 56px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

/* === Hero Section === */
.hero {
    background: var(--gradient-navy);
    color: white;
    padding: 6.5rem 1.5rem 7rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 560px;
    height: 560px;
    max-width: 90vw;
    max-height: 90vw;
    background-image: url('/images/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.07;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

.hero > * {
    position: relative;
    z-index: 1;
}

/* Watermark décoratif (slot data-hero-watermark) :
   grille géométrique fine + halos colorés animés.
   Le logo .hero::before reste visible grâce au mix-blend-mode. */
[data-hero-watermark] {
    pointer-events: none;
    overflow: hidden;
}

[data-hero-watermark]::before,
[data-hero-watermark]::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Grille géométrique — discipline, structure, précision Nindo */
[data-hero-watermark]::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at center, black 0%, transparent 78%);
    mask-image: radial-gradient(ellipse 70% 80% at center, black 0%, transparent 78%);
    opacity: 0.9;
}

/* Halos colorés — énergie chaude qui pulse lentement */
[data-hero-watermark]::after {
    background:
        radial-gradient(circle at 18% 28%, rgba(206, 152, 157, 0.45) 0%, transparent 38%),
        radial-gradient(circle at 82% 72%, rgba(180, 114, 127, 0.40) 0%, transparent 42%),
        radial-gradient(circle at 50% 110%, rgba(180, 114, 127, 0.35) 0%, transparent 50%);
    mix-blend-mode: soft-light;
    animation: hero-glow 18s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

@keyframes hero-glow {
    0%   { transform: translate(0, 0) scale(1);      opacity: 0.85; }
    50%  { transform: translate(-2%, -1%) scale(1.06); opacity: 1; }
    100% { transform: translate(2%, 1%) scale(1.04);   opacity: 0.92; }
}

/* Variante dark mode : halos un peu plus marqués sur fond sombre */
[data-theme="dark"] [data-hero-watermark]::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
}

/* Respect strict de prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    [data-hero-watermark]::after { animation: none; }
}

/* Et de la préférence utilisateur via data-motion="reduce" (settings FAB) */
[data-motion="reduce"] [data-hero-watermark]::after { animation: none; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero p {
    font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
    max-width: 640px;
    margin: 0 auto 2rem;
    opacity: 0.96;
}

.hero-actions {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Ligne de réassurance sous les CTA du hero (reco 1a) */
.hero p.hero-reassurance {
    margin: 1rem auto 0;
    font-size: 0.9375rem;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-reassurance svg {
    color: #7ee0a8;
    flex-shrink: 0;
}

.hero-reassurance sup {
    font-size: 0.7em;
}

/* Bandeau témoignage remonté sous le hero (reco 1a) */
.hero-proof {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    flex-wrap: wrap;
}

.hero-proof-stars {
    display: inline-flex;
    gap: 0.15rem;
    flex-shrink: 0;
}

.hero-proof-quote {
    margin: 0;
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text);
    flex: 1 1 320px;
    min-width: 0;
}

.hero-proof-author {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-left: auto;
    white-space: nowrap;
}

.hero-proof-author strong {
    color: var(--secondary-dark);
}

@media (max-width: 640px) {
    .hero-proof-author {
        margin-left: 0;
    }
}

/* === Hero plein écran + carrousel photos (accueil) === */
.hero--home {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 7rem;
    padding-bottom: 5rem;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
    width: 100%;
}

.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.1s var(--ease-out);
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero--media .hero-overlay {
    background: var(--secondary-dark);
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--secondary-dark) 84%, transparent) 0%,
        color-mix(in srgb, var(--secondary) 72%, transparent) 45%,
        color-mix(in srgb, var(--primary) 60%, transparent) 100%);
}

.hero--media::before {
    opacity: 0;
}

/* Vidéo de fond plein écran */
.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Preuve sociale (note Google) au-dessus du titre */
.hero-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.hero-rating-stars {
    color: var(--star);
    letter-spacing: 1px;
}

.hero-rating strong {
    font-weight: 800;
}

/* Points de navigation du carrousel */
.hero-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.hero-dot.is-active {
    background: #fff;
    transform: scale(1.25);
}

/* === Stats carrées === */
.stats-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

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

.stat-card {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.stat-num {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 800;
    color: var(--secondary-dark);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 900px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}

/* === Profils « Fait pour toi si… » === */
.profile-card {
    padding: 2rem;
    text-align: left;
}
.profile-emoji {
    display: block;
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 1rem;
}

/* === Parcours 01/02/03 === */
.journey {
    list-style: none;
    padding: 0;
    margin: 2.5rem 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.journey-step {
    padding: 2.25rem 1.75rem 1.75rem;
    position: relative;
}
.journey-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
@media (max-width: 780px) {
    .journey { grid-template-columns: 1fr; }
}

/* === Badge responsable (aperçu équipe) === */
.coach-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}
.coach-card--lead {
    border: 2px solid var(--primary-light);
}

/* === Citation / philosophie === */
.quote-section {
    text-align: center;
    background: var(--bg-soft);
}
.quote-mark {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 5rem;
    line-height: 0.6;
    height: 2.75rem;
    color: var(--primary);
    opacity: 0.45;
    margin-bottom: 1rem;
}
.quote-text {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--secondary-dark);
    margin: 0 0 1.5rem;
}
.quote-author {
    color: var(--text-muted);
    font-weight: 600;
}

/* === Témoignages (fond couleur du site, cartes blanches) === */
.testimonials-section {
    background: var(--secondary-dark);
}
.testimonials-section .section-eyebrow {
    color: var(--primary-light);
}
.testimonials-section .section-title {
    color: #fff;
}
.testimonial-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
}
.testimonial-stars {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 1rem;
}
.testimonial-text {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    margin: 0 0 1.5rem;
    flex: 1;
}
/* Avis longs : extrait de 7 lignes (cartes de même hauteur) + « Lire la suite » */
.testimonial-quote { margin: 0; }
.testimonial-quote:not(.is-open) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
    line-clamp: 7;
    overflow: hidden;
}
.testimonial-more {
    margin-top: 0.625rem;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.testimonial-more:hover { color: var(--primary); }
.testimonial-more:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
.testimonial-avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.testimonial-name {
    margin: 0;
    font-weight: 700;
    color: var(--secondary-dark);
}
.testimonial-verified {
    margin: 0.15rem 0 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.testimonial-verified svg {
    color: var(--primary);
}

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-soft {
    background: var(--bg-gray);
}

/* Section « Nous trouver » — carte + coordonnées (config/nindo.php) */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 2.5rem;
    align-items: stretch;
    margin-top: 2.5rem;
}
.location-info { display: flex; flex-direction: column; gap: 1.5rem; }
.location-item { display: flex; gap: 0.875rem; align-items: flex-start; }
.location-item > svg { flex-shrink: 0; margin-top: 2px; }
.location-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.location-value { color: var(--text); line-height: 1.6; margin: 0; }
.location-value--link { color: var(--primary); font-weight: 600; text-decoration: none; }
.location-value--link:hover { text-decoration: underline; }
.location-link {
    display: inline-block;
    margin-top: 0.4rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
}
.location-link:hover { text-decoration: underline; }
.location-hours { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.location-hours li {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    color: var(--text);
    font-size: 0.9375rem;
    max-width: 340px;
}
.location-hours li span:last-child { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.location-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    min-height: 360px;
}
.location-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.location-map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 360px;
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-soft);
}
@media (max-width: 820px) {
    .location-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .location-map { min-height: 300px; }
}

.section-eyebrow {
    text-align: center;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.875rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--secondary-dark);
}

.section-lead {
    text-align: center;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 3rem;
    font-size: 1.0625rem;
}

/* === Cards === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
        border-color 0.35s var(--ease-out);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-light);
}

.card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--bg-soft);
}

.card-img-wrap img,
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-out);
}

.card:hover .card-img-wrap img,
.card:hover .card-img {
    transform: scale(1.04);
}

.card-img {
    aspect-ratio: 16 / 10;
    height: auto;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.125rem;
    box-shadow: var(--shadow-glow);
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.625rem;
    color: var(--secondary-dark);
}

.card-text {
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex: 1;
    line-height: 1.65;
}

.card-link {
    margin-top: auto;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: gap 0.25s var(--ease-out);
}

.card-link:hover {
    gap: 0.625rem;
}

/* === Forms === */
.form-group {
    margin-bottom: 1.5rem;
}

/* Bascule Éditer / Aperçu de l'éditeur d'article (reco 1f) */
.editor-tabs {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    margin-bottom: 1.5rem;
    background: var(--bg-soft);
    border-radius: 0.5rem;
}

.editor-tabs button {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1.1rem;
    border-radius: 0.375rem;
    background: transparent;
    color: var(--text-muted);
    transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.editor-tabs button.is-active {
    background: var(--bg);
    color: var(--secondary-dark);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-dark);
    font-size: 0.9375rem;
}

.form-required {
    color: var(--primary);
    margin-left: 0.125rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    min-height: 48px;
    border: 2px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: white;
    transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.form-control::placeholder {
    color: #9CA3AF;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.form-control[aria-invalid="true"],
.form-control.is-invalid {
    border-color: #DC2626;
}

.form-help {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-error {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.875rem;
    color: #B91C1C;
    font-weight: 600;
}

textarea.form-control {
    min-height: 160px;
    resize: vertical;
    line-height: 1.6;
}

/* === Alerts === */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.alert svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #6EE7B7;
}

.alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

.alert-info {
    background: #EFF6FF;
    color: #1E3A8A;
    border: 1px solid #93C5FD;
}

/* === Footer === */
.footer {
    background: var(--gradient-navy);
    color: var(--text-on-dark);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}
.footer > :not(.sakura) { position: relative; z-index: 1; }

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 3rem;
}

@media (max-width: 900px) {
    .footer-content { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand img {
    height: 56px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-social {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-on-dark);
    transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-brand p {
    color: var(--text-muted-on-dark);
    line-height: 1.6;
    max-width: 320px;
}

.footer h3 {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: white;
    margin-bottom: 1rem;
}

.footer ul:not(.footer-social) {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer ul:not(.footer-social) li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-muted-on-dark);
}

.footer ul:not(.footer-social) li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.footer a {
    color: var(--text-muted-on-dark);
    text-decoration: none;
    transition: color 0.25s var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 1.5rem 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: var(--text-muted-on-dark);
    font-size: 0.875rem;
}

/* === Admin === */
.admin-sidebar {
    background: var(--secondary-dark);
    min-height: calc(100vh - 70px);
    padding: 2rem 1rem;
}

.admin-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    transition: background 0.25s var(--ease-out);
    min-height: 44px;
    line-height: 1.5;
}

.admin-menu a:hover,
.admin-menu a.active {
    background: var(--primary);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table th {
    background: var(--secondary-dark);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.table td {
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.table tr:hover td {
    background: var(--bg-gray);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.badge-published {
    background: #D1FAE5;
    color: #065F46;
}

.badge-draft {
    background: #FEF3C7;
    color: #92400E;
}

.badge-featured {
    background: var(--primary);
    color: white;
}

/* === Animation utilities === */
.reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity 0.7s var(--ease-power), transform 0.7s var(--ease-power);
    will-change: transform, opacity;
}

.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.no-js .reveal {
    opacity: 1;
    transform: none;
}

/* Progressive fallback : si JS n'a pas tagué la page après ~250ms, on révèle tout */
.js-loaded .reveal:not(.is-visible) {
    transition-delay: 0.05s;
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-soft) 0%, var(--border) 50%, var(--bg-soft) 100%);
    background-size: 1000px 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: var(--radius-sm);
}

/* === Modal / Dialog === */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    z-index: 999;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-panel {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 480px;
    width: 100%;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

/* === Responsive === */
@media (max-width: 960px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-menu {
        position: fixed;
        inset: 0;
        background: var(--secondary-dark);
        flex-direction: column;
        align-items: stretch;
        padding: 5rem 1.5rem 2rem;
        gap: 0.5rem;
        z-index: 99;
        transform: translateX(100%);
        transition: transform 0.35s var(--ease-out);
        overflow-y: auto;
    }

    .nav-menu.is-open {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.125rem;
        padding: 0.875rem 1rem;
        min-height: 52px;
        border-radius: var(--radius-md);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link[aria-current="page"] {
        background: rgba(180, 114, 127, 0.18);
    }

    .nav-cta {
        margin-top: 0.75rem;
        margin-left: 0;
    }

    .nav-cta .btn {
        width: 100%;
    }

    .hero {
        padding: 4rem 1.25rem 4.5rem;
    }

    .section {
        padding: 3.5rem 0;
    }

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

    .nav-logo img {
        height: 40px;
    }

    .footer {
        padding-top: 3rem;
        margin-top: 4rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer ul {
        align-items: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .skeleton {
        animation: none !important;
        background: var(--bg-soft);
    }

    html {
        scroll-behavior: auto;
    }
}

/* ===================================
   ───────────  MAGIC LAYER  ───────────
   Kinetic, Tilt, Marquee, FAB, Dark mode,
   WOD banner, Activités split.
   =================================== */

/* Kinetic title */
.word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding: 0.05em 0.05em;
    margin: -0.05em -0.05em;
    line-height: inherit;
}
.word-inner {
    display: inline-block;
    will-change: transform;
}
.tabular {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}
[data-magnetic] {
    will-change: transform;
}

/* 3D tilt cards */
[data-tilt] {
    transform-style: preserve-3d;
}
[data-tilt] .card-icon,
[data-tilt] .card-title,
[data-tilt] .pricing-amount {
    transform: translateZ(20px);
    transform-style: preserve-3d;
}

/* Marquee */
.marquee {
    overflow: hidden;
    padding: 1.75rem 0;
    background: var(--secondary-dark);
    color: white;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent);
}
.marquee-track {
    display: flex;
    gap: 2rem;
    align-items: center;
    white-space: nowrap;
    animation: marquee-flow 40s linear infinite;
    will-change: transform;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
    animation-play-state: paused;
}
.marquee-item {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}
.marquee-dot {
    color: var(--primary-light);
    font-size: 1.25rem;
}
@keyframes marquee-flow {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-33.333%, 0, 0); }
}

/* WOD banner */
.wod-banner {
    background: var(--gradient-navy);
    padding: 2.5rem 0;
    color: white;
    position: relative;
    overflow: hidden;
    border-block: 3px solid var(--rose-gold);
}
.wod-banner > .container { position: relative; z-index: 1; }
.wod-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.wod-clock {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
    line-height: 1;
    text-align: center;
}
.wod-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.5rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
@media (max-width: 880px) {
    .wod-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        text-align: center;
    }
}

/* Activités split */
.activities-split {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    min-height: calc(100vh - 80px);
}
.activities-nav {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    padding: 3rem 1.5rem;
    border-right: 1px solid var(--border);
    background: var(--bg);
}
.activities-nav-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}
.activities-nav ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    counter-reset: activity;
}
.activities-nav a {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out);
    align-items: center;
}
.activities-nav a:hover {
    background: var(--bg-soft);
    color: var(--secondary-dark);
}
.activities-nav a.is-active {
    background: var(--primary);
    color: white;
}
.activities-nav .num {
    font-variant-numeric: tabular-nums;
    opacity: 0.6;
    font-size: 0.875rem;
}
.activities-nav a.is-active .num {
    opacity: 0.9;
}
.activity-panel {
    min-height: calc(100vh - 80px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 4rem 3rem;
    gap: 3rem;
    border-bottom: 1px solid var(--border);
}
.activity-panel:last-child { border-bottom: 0; }
.activity-image {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--secondary-dark), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    color: white;
}
.activity-image svg { width: 40%; height: 40%; opacity: 0.9; }
.activity-image.has-photo { overflow: hidden; }
.activity-image.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.activity-text h2 {
    font-size: clamp(1.875rem, 3.2vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--secondary-dark);
    margin-bottom: 0.75rem;
}
.activity-text .lead {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.0625rem;
    margin-bottom: 1rem;
}

/* Niveau + tarif visibles sans cliquer (reco 1b) */
.activity-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.badge-level {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    line-height: 1.2;
}

.badge-level--green { color: #1f7a4d; background: #def0e6; }
.badge-level--amber { color: #8a6a2e; background: #f3ead8; }
.badge-level--slate { color: #3f4a5e; background: #e7eaf0; }

.activity-price {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--secondary-dark);
    padding-left: 0.625rem;
    border-left: 1px solid var(--border-strong);
}

[data-theme="dark"] .badge-level--green { color: #6ee7b7; background: #064e3b; }
[data-theme="dark"] .badge-level--amber { color: #fcd34d; background: #78350f; }
[data-theme="dark"] .badge-level--slate { color: #cbd5e1; background: #334155; }
[data-theme="dark"] .activity-price { color: var(--text-on-dark); }
.activity-text ul {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.activity-text ul li {
    display: flex;
    gap: 0.5rem;
    color: var(--text);
    font-size: 0.9375rem;
}
.activity-text ul svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 1px;
}
@media (max-width: 880px) {
    .activities-split { grid-template-columns: 1fr; min-height: auto; }
    .activities-nav { display: none; }
    .activity-panel {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }
    .activity-image { aspect-ratio: 16 / 10; max-width: 100%; }
}

/* Theme toggle (in navbar) */
.theme-toggle {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-out);
    margin-right: 0.5rem;
    view-transition-name: theme-toggle;
}
.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(15deg);
}
.theme-toggle svg { width: 20px; height: 20px; }

/* Settings FAB */
.fab-wrap {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 90;
}
.fab {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: var(--secondary-dark);
    color: white;
    border: 0;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.fab:hover {
    transform: scale(1.05) rotate(15deg);
    box-shadow: var(--shadow-lg);
}
.fab:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}
.fab svg { width: 24px; height: 24px; }
.fab-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.75rem);
    width: 300px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    color: var(--text);
}
.fab-panel h2 {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--secondary-dark);
    margin-bottom: 1.25rem;
}
.fab-panel fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 1.25rem 0;
}
.fab-panel fieldset:last-child { margin-bottom: 0; }
.fab-panel legend {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.fab-segmented {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}
.fab-segmented.cols-3 { grid-template-columns: repeat(3, 1fr); }
.fab-option {
    background: var(--bg-soft);
    border: 2px solid transparent;
    color: var(--text);
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
    font-family: inherit;
    min-height: 44px;
}
.fab-option:hover { background: var(--border); }
.fab-option[aria-pressed="true"] {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.fab-toggle {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    padding: 0.5rem 0;
}
.fab-toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}
.fab-text-sm { font-size: 0.875rem; }
.fab-text-md { font-size: 1rem; }
.fab-text-lg { font-size: 1.125rem; }

/* Forced reduced-motion (via Settings) */
[data-motion="reduce"] *,
[data-motion="reduce"] *::before,
[data-motion="reduce"] *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}
[data-motion="reduce"] .reveal {
    opacity: 1 !important;
    transform: none !important;
}
[data-motion="reduce"] .marquee-track {
    animation: none !important;
    flex-wrap: wrap;
    justify-content: center;
}
[data-motion="reduce"] [data-magnetic] {
    transform: none !important;
}

/* Reduced-motion specific marquee fallback */
@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none !important;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* === DARK MODE === */
[data-theme="dark"] {
    --bg: #0F1219;
    --bg-gray: #161A24;
    --bg-soft: #1F2433;
    --text: #F1F3F8;
    --text-muted: #B6BCC8;
    --text-light: #B6BCC8;
    --border: #2A2F3D;
    --border-strong: #3A4050;
    --primary-light: #d8a5aa;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 8px 28px rgba(180, 114, 127, 0.35);
}
[data-theme="dark"] .navbar { background: #0A0D14; }
[data-theme="dark"] .card { background: var(--bg-gray); }
[data-theme="dark"] .form-control {
    background: var(--bg-gray);
    color: var(--text);
    border-color: var(--border-strong);
}
[data-theme="dark"] .form-control::placeholder { color: #6B7280; }
[data-theme="dark"] .marquee { background: #0A0D14; }
[data-theme="dark"] .badge-published { background: #064E3B; color: #6EE7B7; }
[data-theme="dark"] .badge-draft { background: #78350F; color: #FCD34D; }
[data-theme="dark"] .alert-success { background: #052E1F; color: #6EE7B7; border-color: #064E3B; }
[data-theme="dark"] .alert-error { background: #2A0F0F; color: #FCA5A5; border-color: #7F1D1D; }
[data-theme="dark"] .alert-info { background: #0E1A33; color: #93C5FD; border-color: #1E3A8A; }
[data-theme="dark"] .pricing-card--featured {
    background: linear-gradient(180deg, var(--bg-gray) 0%, #2a1c20 100%);
}
[data-theme="dark"] .activities-nav { background: var(--bg); }
[data-theme="dark"] .fab { background: var(--primary); }
[data-theme="dark"] .skeleton {
    background: linear-gradient(90deg, var(--bg-soft) 0%, var(--border-strong) 50%, var(--bg-soft) 100%);
    background-size: 1000px 100%;
}

/* View Transitions API (graceful degradation) */
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 240ms;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
::view-transition-old(root) { animation-name: nindo-vt-out; }
::view-transition-new(root) { animation-name: nindo-vt-in; }
@keyframes nindo-vt-out {
    to { opacity: 0; transform: translateY(-8px); }
}
@keyframes nindo-vt-in {
    from { opacity: 0; transform: translateY(8px); }
}
.nav-logo img { view-transition-name: nindo-logo; }
[data-vt-name] { view-transition-name: var(--vt-name); }

@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none !important;
    }
}

/* Hide FAB panel on print */
@media print {
    .fab-wrap, .marquee, .wod-banner { display: none !important; }
}

/* Mobile FAB position (bottom-left to avoid Help button on planning) */
@media (max-width: 768px) {
    body.has-help-fab .fab-wrap {
        right: auto;
        left: 1.25rem;
    }
}

/* === Print === */
@media print {
    .navbar,
    .footer,
    .nav-toggle,
    .modal-backdrop,
    .modal {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* === Habillage sombre de l'accueil (fond bleu nuit + cartes blanches) === */
.home-dark {
    background: var(--secondary-dark);
}

/* Sections : fond transparent pour laisser voir le navy */
.home-dark .section-soft,
.home-dark .stats-section,
.home-dark .quote-section,
.home-dark .testimonials-section {
    background: transparent;
}

/* Textes de section en clair sur le navy */
.home-dark .section-eyebrow { color: var(--primary-light); }
.home-dark .section-title { color: #fff; }
.home-dark .section-lead { color: var(--text-muted-on-dark); }
.home-dark .quote-text { color: #fff; }
.home-dark .quote-author { color: var(--text-muted-on-dark); }
.home-dark .quote-mark { opacity: 0.6; }

/* Cartes blanches à contenu sombre (comme les témoignages) */
.home-dark .card {
    background: #fff;
    border-color: transparent;
}

/* Stats : chiffres dorés + libellés majuscules, directement sur le navy (sans carte) */
.home-dark .stat-card {
    background: transparent;
    border: 0;
    aspect-ratio: auto;
    padding: 1rem 0.75rem;
}
.home-dark .stat-num {
    color: var(--star);
}
.home-dark .stat-label {
    color: var(--text-muted-on-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* Section « Nous trouver » : coordonnées lisibles sur navy */
.home-dark .location-label { color: var(--primary-light); }
.home-dark .location-value,
.home-dark .location-hours li { color: var(--text-on-dark); }
.home-dark .location-hours li span:last-child { color: var(--text-muted-on-dark); }

/* Pas d'écart blanc entre l'accueil sombre et le footer (la marge du footer révélait le fond du body) */
body:has(.home-dark) {
    background: var(--secondary-dark);
}
body:has(.home-dark) .footer {
    margin-top: 0;
}
