/* ============================================================
   MON PRODUCTEUR -- Section Styles
   ============================================================ */

/* Grands titres en police « display » (script de marque, ex. Kaushan Script),
   comme l'ancien site + le logo. La nav, les boutons, les cartes et les
   formulaires gardent la police d'interface (--font-heading, lisible). */
h1, h2,
.block-slider__title,
.block-cta__title {
    font-family: var(--font-display, var(--font-heading));
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.15;
}

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    background-color: var(--color-text);
    color: var(--color-bg);
}

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

.hero__bg img,
.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Radial mask that follows the cursor.
   --mx / --my are updated in JS as mouse moves. Default = center.
   The spotlight is a dark layer with a transparent "hole" over the cursor,
   so the video appears brighter around the mouse and darker everywhere else. */
.hero__spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        circle at var(--mx, 50%) var(--my, 50%),
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.55) 22%,
        rgba(0, 0, 0, 0.82) 55%,
        rgba(0, 0, 0, 0.92) 100%
    );
    transition: background 120ms linear;
}

@media (hover: none), (pointer: coarse) {
    /* No mouse/trackpad on touch devices, so the cursor-follow halo can't
       animate and just reads as a dead vignette. Drop the radial "halo" and
       keep a flat, even tint purely for text legibility over the video. */
    .hero__spotlight {
        background: rgba(0, 0, 0, 0.42);
        transition: none;
    }
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: var(--space-lg);
}

.hero__logo {
    width: 280px;
    max-width: 60vw;
    margin-inline: auto;
    margin-bottom: var(--space-xl);
    filter: brightness(0) invert(1);
}

.hero__tagline {
    font-family: var(--font-body);
    font-size: var(--text-xl);
    font-weight: 400;
    font-style: italic;
    opacity: 0.9;
    max-width: 500px;
    margin-inline: auto;
    line-height: 1.5;
    /* Hero toujours sur fond sombre → texte clair fixe (indépendant du thème) */
    color: #fff;
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: #fff;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
    text-decoration: none;
}

.hero__scroll:hover {
    opacity: 1;
    color: #fff;
}

.hero__scroll-text {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background-color: currentColor;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 0.6; }
    50%      { transform: scaleY(0.5); opacity: 1; }
}

/* ----------------------------------------------------------
   Concept
   ---------------------------------------------------------- */
.concept {
    background-color: var(--color-bg);
}

.section__intro {
    max-width: 700px;
    margin-inline: auto;
    text-align: center;
}

.section__intro p {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--color-muted);
}

.concept__highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    text-align: center;
}

.concept__highlight {
    padding: var(--space-lg);
}

.concept__highlight-icon {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
    color: var(--color-accent);
}

.concept__highlight h3 {
    font-size: var(--text-base);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-sm);
}

.concept__highlight p {
    font-size: var(--text-sm);
    color: var(--color-muted);
}

@media (max-width: 768px) {
    .concept__highlights {
        grid-template-columns: 1fr;
    }
}

/* ----------------------------------------------------------
   Menu
   ---------------------------------------------------------- */
.menu-section {
    background-color: var(--color-surface);
}

.menu-section__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.menu-section__item {
    text-align: center;
    padding: var(--space-lg);
}

.menu-section__item h3 {
    font-size: var(--text-base);
    margin-bottom: var(--space-sm);
    color: var(--color-accent);
}

.menu-section__item p {
    font-size: var(--text-sm);
    color: var(--color-muted);
    font-style: italic;
}

.menu-section__cta {
    text-align: center;
    margin-top: var(--space-xl);
}

/* ----------------------------------------------------------
   Boutique
   ---------------------------------------------------------- */
.boutique {
    background-color: var(--color-bg);
}

.boutique__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

/* ----------------------------------------------------------
   Ambiance
   ---------------------------------------------------------- */
.ambiance {
    background-color: var(--color-text);
    color: var(--color-bg);
}

.ambiance .section__label {
    color: var(--color-accent);
}

.ambiance h2 {
    color: var(--color-bg);
}

/* Fond sombre → l'intro doit rester lisible (sinon hérite de --color-text foncé) */
.ambiance .section__intro p,
.ambiance .section__intro p:first-of-type {
    color: var(--color-bg);
}

.ambiance__gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.ambiance__photo {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.ambiance__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.ambiance__photo:hover img {
    transform: scale(1.05);
}

/* Feature photo spans 2 columns */
.ambiance__photo--wide {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
}

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

    .ambiance__photo--wide {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .ambiance__gallery {
        grid-template-columns: 1fr;
    }

    .ambiance__photo--wide {
        grid-column: span 1;
        aspect-ratio: 16 / 9;
    }
}

/* ----------------------------------------------------------
   Info (Opening Hours & Location)
   ---------------------------------------------------------- */
.info {
    background-color: var(--color-surface);
}

.info__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.info__hours-table {
    width: 100%;
    border-collapse: collapse;
}

.info__hours-table tr {
    border-bottom: 1px solid var(--color-border);
}

.info__hours-table td {
    padding: var(--space-sm) 0;
    font-size: var(--text-sm);
}

.info__hours-table td:first-child {
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: var(--text-xs);
}

.info__hours-table td:last-child {
    text-align: right;
    color: var(--color-muted);
}

.info__hours-table .is-closed td:last-child {
    color: var(--color-accent);
}

.info__location {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.info__address {
    font-size: var(--text-lg);
    line-height: 1.6;
}

.info__map {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--color-border);
}

.info__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .info__grid {
        grid-template-columns: 1fr;
    }
}

/* ----------------------------------------------------------
   Contact
   ---------------------------------------------------------- */
.contact {
    background-color: var(--color-bg);
    text-align: center;
}

.contact__details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.contact__item {
    font-size: var(--text-lg);
}

.contact__item a {
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.contact__item a:hover {
    color: var(--color-accent);
}

.contact__social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.contact__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--color-text);
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.contact__social-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

.contact__social-link svg {
    width: 20px;
    height: 20px;
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
.site-footer {
    background-color: var(--color-text);
    color: var(--color-bg);
    padding-top: var(--space-2xl, 4rem);
}

/* Les ratios viennent de la composition, par la propriété personnalisée
   --cols — et jamais par un grid-template-columns écrit en dur : c'est ce qui
   laisse la media query de 768px reprendre la main sans !important.
   Le repli 1.6fr 1fr 1fr est la grille historique du pied. */
.site-footer__grid {
    display: grid;
    grid-template-columns: var(--cols, 1.6fr 1fr 1fr);
    gap: var(--space-xl);
    align-items: start;
}

.site-footer__logo {
    height: 48px;
    width: auto;
    margin-bottom: var(--space-md);
}

.site-footer__tagline {
    font-size: var(--text-sm);
    line-height: 1.6;
    opacity: 0.7;
    max-width: 34ch;
}

.site-footer__title {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.6;
    margin-bottom: var(--space-md);
}

.site-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    font-size: var(--text-sm);
}

.site-footer a {
    color: var(--color-bg);
    opacity: 0.85;
    transition: opacity var(--transition-fast), color var(--transition-fast);
}

.site-footer a:hover {
    opacity: 1;
    color: var(--color-accent-dark);
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-2xl, 4rem);
    padding-top: var(--space-md);
    padding-bottom: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: var(--text-xs);
    opacity: 0.7;
}

.site-footer__langs a { margin: 0 0.15em; }

/* ----------------------------------------------------------
   Footer — moteur de zones
   Le pied est composé dans l'admin : des lignes, contenant des colonnes,
   contenant des éléments. Voir includes/footer-layout.php.
   ---------------------------------------------------------- */

/* Une ligne. --fr-pad vient de l'échelle d'espacement partagée (spacingScale),
   posée en propriété personnalisée : un padding et non une marge, sinon un
   fond coloré s'arrêterait avant le bord de la bande. */
.site-footer__row { padding-block: var(--fr-pad, 0); }
.site-footer__row--surface { background-color: var(--color-surface); color: var(--color-text); }

/* Fond « accent » : le texte du thème n'y est pas lisible — même constat que
   pour l'en-tête (2,97:1 mesuré, contre 5,09:1 en blanc). Tout le contenu de
   la ligne bascule donc en blanc, liens et titres compris. */
.site-footer__row--accent { background-color: var(--color-accent); }
.site-footer__row--accent,
.site-footer__row--accent a,
.site-footer__row--accent .site-footer__title { color: #fff; }

/* Ligne pleine largeur : pas de conteneur, mais une respiration latérale. */
.site-footer__full { width: 100%; padding-inline: var(--space-md); }

/* Une cellule. Les éléments s'y empilent — un pied se lit de haut en bas,
   contrairement à la barre d'en-tête. */
.site-footer__col {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    min-width: 0;
}
.site-footer__col--left    { align-items: flex-start; text-align: left; }
.site-footer__col--center  { align-items: center;     text-align: center; }
.site-footer__col--right   { align-items: flex-end;   text-align: right; }
.site-footer__col--between { align-items: flex-start; justify-content: space-between; height: 100%; }

/* Enveloppe d'un élément : neutre, elle ne porte que la classe de visibilité
   (mp-hide-phone…), dont les règles vivent déjà dans base.css. */
.site-footer__item { display: block; max-width: 100%; }

/* ----------------------------------------------------------
   Footer — éléments
   Ce que produisent les réglages de chaque élément. Toute option ajoutée à
   footerItemTypes() a sa règle ICI, sans quoi le réglage s'affiche dans
   l'admin sans rien changer sur le site.
   ---------------------------------------------------------- */
.site-footer__logo--small { height: 32px; }
.site-footer__logo--large { height: 64px; }
.site-footer__tagline--small { font-size: var(--text-xs); }

/* Réseaux sociaux. La classe de base ne porte volontairement aucune
   déclaration : elle sert de crochet — au modificateur ci-dessous, et à
   css/site.css pour un habillage propre à un site. Le rendu en noms est celui
   de `.site-footer__list`, dont elle hérite. */
.site-footer__social--icons { flex-direction: row; flex-wrap: wrap; gap: var(--space-sm); }
.site-footer__social--icons svg { width: 20px; height: 20px; }

/* Bouton d'action : un libellé de bouton ne se coupe pas en deux. */
.site-footer__cta { white-space: nowrap; }

/* Sous-pages du menu, quand elles sont affichées. */
.site-footer__sublist {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-top: var(--space-xs);
    padding-left: var(--space-md);
    opacity: 0.8;
}

/* Liens séparés par « · » : un libellé ne doit pas se couper autour du point. */
.site-footer__legal a { white-space: nowrap; }

/* Le bouton d'action se pose sur le fond sombre du pied : sans cette règle,
   le contour d'un bouton « ghost » prend la couleur de bordure du thème
   clair et disparaît. */
.site-footer .btn--ghost { color: inherit; border-color: currentColor; }

@media (max-width: 768px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    .site-footer__bottom {
        flex-direction: column;
        text-align: center;
    }
    /* Un alignement à droite pensé pour une colonne de 28 % n'a plus de sens
       quand la colonne occupe toute la largeur. */
    .site-footer__col--center,
    .site-footer__col--right {
        align-items: flex-start;
        text-align: left;
    }
}

/* ----------------------------------------------------------
   Section générique (sections créées depuis l'admin)
   ---------------------------------------------------------- */
.section--generic .section__generic-body > * + * {
    margin-top: var(--space-md);
}

/* ----------------------------------------------------------
   Slider (carrousel plein largeur) — bloc « slider »
   ---------------------------------------------------------- */
.block-slider {
    position: relative;
    /* Pleine largeur, même à l'intérieur d'un conteneur (« full-bleed »). */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background-size: cover;
    background-position: center;
    background-color: var(--color-text);
    color: #fff;
    overflow: hidden;
}

.block-slider__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        rgba(15, 18, 11, var(--slider-overlay, 0.45)) 0%,
        rgba(15, 18, 11, calc(var(--slider-overlay, 0.45) * 0.45)) 60%,
        rgba(15, 18, 11, calc(var(--slider-overlay, 0.45) * 0.15)) 100%);
    z-index: 0;
}

.block-slider__track {
    position: relative;
    z-index: 1;
    min-height: clamp(440px, 72vh, 640px);
    display: grid;
}

.block-slider__slide {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.7s ease, transform 0.7s ease, visibility 0.7s;
    padding-block: var(--space-2xl, 4rem);
}

.block-slider__slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.block-slider__inner {
    max-width: 720px;
}

.block-slider__title {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.08;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.block-slider__text {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    margin-top: var(--space-md);
    max-width: 46ch;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.block-slider__btn { margin-top: var(--space-lg); }

.block-slider__dots {
    position: absolute;
    bottom: var(--space-lg);
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    z-index: 2;
}

.block-slider__dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: transparent;
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.block-slider__dot.is-active { background: #fff; transform: scale(1.15); }

/* En mobile : position du fond réglable (défaut = gauche, la zone utile de la photo). */
@media (max-width: 768px) {
    .block-slider { background-position: var(--slider-pos-mobile, left center) !important; }
}

/* Une section qui ne contient qu'un slider : pas de padding (le slider gère tout). */
.section--hero-slider {
    padding-block: 0 !important;
}

/* ----------------------------------------------------------
   Carrousel de témoignages (bloc « testimonials »)
   ---------------------------------------------------------- */
.block-carousel {
    position: relative;
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}
.block-carousel__track { display: grid; }
.block-carousel__item {
    grid-area: 1 / 1;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
}
.block-carousel__item.is-active { opacity: 1; visibility: visible; }
.block-carousel__item blockquote {
    margin: 0;
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    line-height: 1.55;
    font-style: italic;
    color: var(--color-text);
    quotes: "«\00a0" "\00a0»";
}
.block-carousel__item blockquote::before { content: open-quote; color: var(--color-accent); }
.block-carousel__item blockquote::after { content: close-quote; color: var(--color-accent); }
.block-carousel__item figcaption {
    margin-top: var(--space-md);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-accent);
}
.block-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--space-lg);
}
.block-carousel__dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    background: transparent;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}
.block-carousel__dot.is-active { background: var(--color-accent); }

/* ----------------------------------------------------------
   Fond photo de section (sections.bg_image) — cover + overlay
   ---------------------------------------------------------- */
.section--bg {
    background-size: cover;
    background-position: center;
    position: relative;
}
.section--bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-bg);
    opacity: 0.82;
    z-index: 0;
}
/* Tous les enfants directs (en-tête + lignes) passent au-dessus de l'overlay. */
.section--bg > * { position: relative; z-index: 1; }

/* --- Fond vidéo de section --- */
.section--video {
    position: relative;
    overflow: hidden;
}
/* Sélecteur à 2 classes : passe DEVANT les règles « .section--dark/alt > * »
   (même rôle, spécificité (0,1,0)) qui pousseraient sinon la vidéo au-dessus du voile. */
.section--video .section__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;   /* plein cadre sans déformation */
    z-index: 0;
    pointer-events: none;
    /* Fond de repli tant que la vidéo n'est pas prête */
    background: var(--color-surface);
}
/* Voile de lisibilité au-dessus de la vidéo (modéré : la vidéo reste visible). */
.section--video::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-bg);
    opacity: 0.55;
    z-index: 1;
}
/* Contenu au-dessus du voile (l'élément vidéo, lui, reste tout au fond). */
.section--video > *:not(.section__video) { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) {
    /* Respect de « animations réduites » : on masque la vidéo, le poster/repli reste. */
    .section__video { display: none; }
}

/* Badges d'installation de l'app : 3 colonnes centrées. */
.app-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
}
.app-badges a {
    display: inline-flex;
    transition: transform var(--transition-base), filter var(--transition-base);
}
.app-badges a:hover { transform: translateY(-3px); }
.app-badges img { height: 56px; width: auto; }

/* ----------------------------------------------------------
   Variantes de fond de section (sections.bg_variant)
   .section--alt  : fond « surface » (alternance automatique 1 sur 2)
   .section--dark : section mise en valeur (fond vert foncé, texte blanc, centré)
   ---------------------------------------------------------- */

/* Section foncée : call-to-action fort (ex. « Installez l'app »). Fond, dégradé et
   accent suivent les tokens DÉDIÉS --section-dark-* (posés dans :root par
   renderDesignCss), découplés du thème sombre : un site peut garder un thème sombre
   neutre ET des bandeaux d'une couleur de marque. Repli CSS = palette sombre / neutre,
   au cas où la variable manquerait (feuille en cache d'avant cette évolution). */
.section--dark {
    background: linear-gradient(135deg, var(--section-dark-surface, #1D2126) 0%, var(--section-dark-bg, #14171A) 65%);
    color: #fff;
    text-align: center;
}
/* Halo lumineux discret pour donner du relief : teinte d'accent des sections foncées. */
.section--dark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--section-dark-accent, var(--color-accent-dark)) 16%, transparent), transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.section--dark > * { position: relative; z-index: 1; }

.section--dark :is(h1, h2, h3, h4, h5, h6) { color: #fff; }
.section--dark .section__label { color: var(--section-dark-accent, var(--color-accent-dark)); opacity: 0.95; }
.section--dark .divider { background: rgba(255, 255, 255, 0.35); }
.section--dark :is(p, li, .block-card__text) { color: rgba(255, 255, 255, 0.88); }
/* Textes SECONDAIRES sur fond foncé — légendes, libellés, réponses.
   Ils posent `color: var(--color-muted)`, qui vaut #5b6572 en thème CLAIR : un
   gris sombre, illisible sur la bande foncée. Le thème sombre le rendait
   lisible par accident (#9aa4b0), si bien que le défaut ne se voyait qu'en
   plein jour — c'est le cas signalé sur les légendes des « Chiffres clés ».
   Un cran en dessous des paragraphes (.88), pour garder la hiérarchie. */
.section--dark :is(
    .block-stats__label,
    .block-cta__text,
    .block-quote cite,
    .block-video figcaption,
    .block-icon-list__body span,
    .block-accordion__a,
    .block-modgrid__desc
) { color: rgba(255, 255, 255, 0.72); }
.section--dark :is(h1, h2) { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.section--dark a:not(.btn):not(.app-badges a) {
    color: var(--section-dark-accent, var(--color-accent-dark));
    text-decoration: underline;
    text-underline-offset: 3px;
}
/* Le corps générique d'une section foncée respire un peu plus. */
.section--dark .section__generic-body { align-items: center; }


/* ----------------------------------------------------------
   Lignes & grille de colonnes (sections génériques par lignes)
   Les ratios `fr` d'une ligne sont posés en inline via la propriété perso
   --cols (par le gabarit générique). grid-template-columns vit ICI dans la
   feuille de style → les media queries le surchargent SANS !important :
   le responsive (breakpoints + redistribution fluide) est piloté en CSS.
   ---------------------------------------------------------- */
/* Espacement des lignes — multiple de --space-lg, piloté par le réglage
   « Espace ↑ / ↓ » de la ligne. Les valeurs de repli reproduisent exactement
   le comportement d'avant : rien au-dessus de la PREMIÈRE ligne (elle suit la
   marge intérieure de la section), l'écart standard entre deux lignes, rien
   en dessous. Un réglage explicite vaut alors pour toutes, première comprise. */
.section-row {
    margin-top: calc(var(--space-lg) * var(--sp-top, 0));
    margin-bottom: calc(var(--space-lg) * var(--sp-bottom, 0));
}
.section-row + .section-row { margin-top: calc(var(--space-lg) * var(--sp-top, 1)); }
/* ----------------------------------------------------------
   Largeur d'une ligne — UNE SEULE FORMULE

       max-width: min(100%, largeur-du-site × --rw)

   `--site-width` vient de la Charte : 800px, 1024px, 1280px, ou `100%` si le
   site est réglé « Plein écran ». Une fraction de 100% se résout contre le
   contenant — l'écran pour une section pleine largeur, la section pour une
   section contenue : le calcul reste juste dans les quatre réglages.

   Le `min(100%, …)` fait le travail que personne ne voit : sur un téléphone où
   le contenu fait ~311px, « 1/2 de la largeur » vaudrait 155px. Il replie donc
   toutes les fractions à la place disponible, sans media query ni exception.

   --rw vaut 1 par défaut = « Contenue ». Le gabarit n'écrit rien dans ce cas :
   un site qui n'a rien réglé produit le HTML qu'il produisait avant.
   ---------------------------------------------------------- */
.section-row__inner {
    width: 100%;
    max-width: min(100%, calc(var(--site-width, 1200px) * var(--rw, 1)));
    margin-inline: auto;
    padding-inline: var(--space-lg);
}
/* Pleine largeur de l'écran : aucune limite, et pas de marge latérale — c'est
   tout l'intérêt, le contenu touche les bords. */
.section-row--full > .section-row__inner {
    max-width: none;
    padding-inline: 0;
}

.section-cols {
    display: grid;
    grid-template-columns: var(--cols, 1fr);
    gap: var(--space-lg);
    align-items: start;
}
.section-col { min-width: 0; }

/* Tablette : redistribution FLUIDE — les colonnes se réorganisent selon la place
   disponible (auto-fit), au lieu de conserver des ratios rigides. */
@media (max-width: 900px) {
    .section-cols {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    }
}

/* Mobile : une seule colonne, avec inversion d'ordre optionnelle (mobile_reverse). */
@media (max-width: 560px) {
    .section-cols { grid-template-columns: 1fr; }
    .section-cols.section-row--mobile-reverse {
        display: flex;
        flex-direction: column-reverse;
    }
}
