/* Copyright Pascal Evrard / Agence digitale afondlacom' 2026 - Copie même partielle interdite. */
/* =========================================================
   OCTEA CONCIERGERIE - Design system
   Mobile-first. Une seule feuille de style, pas de framework.
   ========================================================= */

/* ---------- 1. Polices (auto-hébergées) ---------- */
@font-face {
    font-family: "General Sans";
    src: url("/ressources/polices/GeneralSans-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "General Sans";
    src: url("/ressources/polices/GeneralSans-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "General Sans";
    src: url("/ressources/polices/GeneralSans-Semibold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "General Sans";
    src: url("/ressources/polices/GeneralSans-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
/* Plus Jakarta Sans : police des éléments STRUCTURANTS/interface (titres H1-H4, surtitres,
   navigation, boutons/CTA) - voir "--font-heading" ci-dessous. General Sans reste la police du
   CONTENU DE LECTURE (paragraphes, textes longs, formulaires, mentions légales...), via
   "--font-base", inchangée. Auto-hébergée comme les autres polices, sous-jeu latin uniquement
   (suffit pour le français : les caractères accentués de base sont dans Latin-1, U+0000-00FF).
   4 graisses réellement utilisées quelque part sont chargées (400/500/600/700) : jamais de
   graisse synthétique (fausse boldification par le navigateur) sur cette famille - tout élément
   en Jakarta doit rester sur l'une de ces 4 valeurs réelles. */
@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("/ressources/polices/PlusJakartaSans-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("/ressources/polices/PlusJakartaSans-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("/ressources/polices/PlusJakartaSans-Semibold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("/ressources/polices/PlusJakartaSans-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
/* Cal Sans : réservée au premier niveau du menu principal (voir ".main-nav__list > .main-nav__item"
   plus bas) - jamais utilisée ailleurs sur le site, qui reste sur Plus Jakarta Sans/General Sans.
   Une seule graisse existe réellement pour cette police chez Google Fonts (400, "Regular") : c'est
   exactement le fichier utilisé par la démo repérée par Pascal, malgré ce qu'affiche sa propre feuille
   de style (elle demande aussi 500/600/700, mais Google Fonts ne sert que le 400 en retour - toute
   graisse demandée retombe donc sur ce même fichier). Licence SIL OFL. */
/* Golos Text (SIL OFL, Google Fonts) : police variable 400-700, sous-ensemble latin. Utilisée
   uniquement par la section de bienvenue de l'accueil (".welcome"). */
@font-face {
    font-family: "Golos Text";
    src: url("/ressources/polices/GolosText-Variable.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Cal Sans";
    src: url("/ressources/polices/CalSans-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
/* ---------- 2. Jetons de conception (couleurs, espacements...) ---------- */
/* Pour remplacer le thème actuel par un autre : ne modifier QUE les valeurs de ce bloc
   ":root" (couleurs, polices, espacements, arrondis, ombres). Tout le reste de cette feuille de
   style (plus de 1500 lignes) consomme exclusivement ces jetons via var(--...) - aucune couleur
   ni valeur n'est codée en dur ailleurs. Changer un thème se résume donc à changer les valeurs
   ci-dessous, sans toucher au reste du fichier ni à aucune page PHP. */
:root {
    --color-brand: #CA9E5A;
    --color-brand-hover: #AC864D;
    --color-brand-soft: #F4E9D8;
    --color-text: #1F1D1B;
    --color-text-soft: #5C574E;
    --color-background: #FFFFFF;
    --color-surface: #FAF7F2;
    --color-border: #E5E0D8;
    --color-focus: #8A6A32;
    /* Texte/icônes posés sur un fond saturé (boutons pleins, photo du hero, hover coloré) :
       jeton unique plutôt que "#fff" en dur à chaque endroit - un futur changement de thème
       n'a qu'une seule valeur à revoir pour que tous ces contextes restent lisibles ensemble. */
    --color-on-dark: #FFFFFF;
    /* Mêmes teintes que "--color-text"/"--color-on-dark" ci-dessus, mais en triplet R,G,B : la
       seule façon d'injecter un jeton à l'intérieur d'un rgba() pour un dégradé/halo semi-
       transparent (voile sur les photos du hero, glassmorphism au survol...). Garder les deux
       jeux de jetons synchronisés si l'un des deux change. */
    --color-text-rgb: 31, 29, 27;
    --color-on-dark-rgb: 255, 255, 255;
    --color-error: #B3423A;
    --color-error-soft: #F7E9E8;
    --color-error-soft-text: #7A2E28;
    --color-success-soft: #EAF3EA;
    --color-success-soft-text: #2C5A2C;

    --font-base: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    /* Éléments structurants/interface (titres, surtitres, navigation, boutons/CTA) - jamais le
       contenu de lecture, qui reste sur "--font-base" ci-dessus. Le General Sans reste toujours
       le second choix de la pile : si jamais Plus Jakarta Sans ne se chargeait pas, le rendu
       retombe sur la police du reste du site plutôt que sur une police système générique. */
    --font-heading: "Plus Jakarta Sans", "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 3rem;
    --space-6: 4.5rem;
    --space-7: 6rem;

    /* Échelle d'arrondis commune, cohérente avec la forme capsule des boutons : du plus petit
       composant (--radius-sm) aux grands blocs/images (--radius-lg), jusqu'à la capsule
       complète des boutons (--radius-pill). Remplace l'ancienne variable unique "--radius". */
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-pill: 999px;
    --container-max: 1344px; /* 1280px de contenu + 2 × 32px de marge */
    --header-container-max: 1560px;
    --mobile-cta-height: 64px;
    --header-height: 72px;
    /* Décalage du panneau de navigation plein écran ("main-nav", position:fixed) une fois le
       header compacté au scroll - voir ".site-header.is-scrolled" : les deux changent ensemble
       via ce jeton, pour que le panneau démarre toujours pile sous le header réellement affiché,
       compact ou non, sans avoir à mesurer sa hauteur en JS. */
    --header-height-compact: 56px;

    --shadow-soft: 0 2px 24px rgba(var(--color-text-rgb), 0.06);
    --transition: 180ms ease;
    /* Durée dédiée au header compact au scroll : volontairement plus longue que "--transition"
       (réservée aux micro-interactions) pour rester "premium", jamais brutale. */
    --header-transition-duration: 320ms;
    --header-transition: var(--header-transition-duration) ease-in-out;
}

/* ---------- 3. Réinitialisation ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
    margin: 0;
    font-family: var(--font-base);
    color: var(--color-text);
    background: var(--color-background);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
/* Garantit que l'attribut HTML natif "hidden" gagne toujours, quelle que soit la spécificité
   des classes utilitaires (.btn, .privacy__panel, etc. définissent leur propre "display"). */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-text);
    color: var(--color-on-dark);
    padding: var(--space-1) var(--space-2);
    z-index: 200;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
    left: 0;
}

/* ---------- 4. Typographie ---------- */
/* Titres structurants (H1-H4) en Plus Jakarta Sans (voir "--font-heading") : General Sans reste
   la police du contenu (paragraphes, "p", ".lede", ".prose" plus bas, tous sur "--font-base" par
   héritage du "body", non touché ici). Graisse plafonnée à 600 (au lieu du 700 d'origine) : seule
   la graisse réellement chargée pour Plus Jakarta Sans (voir "1. Polices") - un 700 laisserait le
   navigateur synthétiser un faux gras, ce qu'on s'interdit explicitement sur cette famille. */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 var(--space-2);
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }
p { margin: 0 0 var(--space-2); }
.lede {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--color-text-soft);
}
/* Modificateur ciblé - PAS une modification de ".lede" elle-même, qui est réutilisée telle
   quelle sur la quasi-totalité des pages du site (villes, services, contact, blog, 404...) : la
   toucher aurait réduit des paragraphes qui n'étaient pas concernés par cette demande. Réservé
   aux 5 chapô d'introduction de la page d'accueil (les deux diapositives du hero + les 3
   sections suivantes), toujours en plus de la classe ".lede" (même couleur, même graisse,
   General Sans inchangés - seule la taille change). Desktop : -3px net par rapport aux 20px
   d'origine (donc 17px) - un premier passage à -5px (15px) s'est révélé trop marqué, remonté de
   +2px ici. Même principe en dessous : la réduction reste atténuée plutôt que -3px partout,
   pour rester nettement lisible (16px en tablette comme en mobile, au lieu de 18/16,8px
   d'origine). */
.lede--intro {
    font-size: clamp(1rem, 1.6vw, 1.0625rem);
}
.prose { max-width: 68ch; }
/* Retour à la ligne éditorial maîtrisé pour un titre stratégique : le second segment reste en
   flux normal (donc pleinement fluide) tant que l'espace manque, et ne devient un vrai retour à
   la ligne qu'à partir du palier où la coupure voulue reste lisible sans mot isolé ni
   débordement - jamais de "br" figé qui casserait le responsive. Le palier par défaut (768px)
   peut être resserré au cas par cas via un modificateur si un titre précis a besoin d'un seuil
   différent. */
.title-break { display: inline; }
@media (min-width: 768px) {
    .title-break { display: block; }
}
.title-break--wide { display: inline; }
@media (min-width: 700px) {
    .title-break--wide { display: block; }
}
/* Même mécanisme que ".title-break" ci-dessus, mais pour un paragraphe (pas un titre) : coupure
   maîtrisée sur les écrans où l'espace le permet, flux normal/fluide en dessous (mobile se
   redistribue naturellement, sans composition imposée). Utilisé uniquement là où un retour à la
   ligne précis a été demandé - n'affecte aucun autre paragraphe du site. */
.text-break { display: inline; }
@media (min-width: 700px) {
    .text-break { display: block; }
}
.text-break--always { display: block; } /* retour à la ligne aussi sur smartphone */
.prose p, .prose ul, .prose ol { margin-bottom: var(--space-2); }
.prose a:not(.btn) {
    color: var(--color-brand-hover);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.prose a:not(.btn):hover { color: var(--color-brand); }
.prose ul { list-style: disc; padding-left: 1.25em; }
.prose ol { list-style: decimal; padding-left: 1.25em; }
.prose ul li, .prose ol li { margin-bottom: var(--space-1); }
.eyebrow {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-brand-hover);
    margin-bottom: var(--space-1);
}

/* ---------- 5. Mise en page ---------- */
.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-2);
}
@media (min-width: 768px) {
    .container { padding-inline: var(--space-4); }
}
.section { padding-block: var(--space-6); }
.section--surface { background: var(--color-surface); }
.section--brand-soft { background: var(--color-brand-soft); }
.section-head { max-width: 46rem; margin-bottom: var(--space-4); }
.section-head--center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: var(--space-3); }
@media (min-width: 700px) {
    .grid--2 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

/* ---------- 6. Boutons & appels à l'action ---------- */
/* Système à deux familles :
   - ".btn--primary" (Type 1) : capsule pleine, pour une action principale/transactionnelle
     (ex. "Demander une prestation"). Géométrie partagée par tous les boutons via le rayon de
     la classe de base - ".btn--outline" reste donc visuellement cohérent (même silhouette en
     capsule) sans pour autant devenir une action principale.
   - ".btn--arrow" (Type 2) : capsule à contour + pastille circulaire accentuée avec une flèche,
     pour une action secondaire de découverte/navigation (ex. "En savoir plus"). N'est PAS
     appliquée automatiquement à ".btn--ghost", qui reste le lien texte discret déjà utilisé
     pour des usages hétérogènes (bandeau cookies, administration du blog, filtres) où une
     grande capsule avec flèche n'aurait pas de sens. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.95em 2em;
    border-radius: var(--radius-pill);
    /* Plus Jakarta Sans 500 (voir "--font-heading") : tous les boutons/CTA du site, y compris
       chaque occurrence de "Demander une prestation" (header, hero, bandeau mobile, sections de
       contenu...), puisqu'ils partagent tous cette classe de base. 500 plutôt que le 600
       d'origine (General Sans) : le premier niveau du menu peut se permettre 600 pour structurer
       la navigation, un CTA reste volontairement plus sobre. */
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.02rem;
    border: 1px solid transparent;
    min-height: 48px;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn--primary {
    background: var(--color-brand);
    color: var(--color-on-dark);
}
.btn--primary:hover { background: var(--color-brand-hover); }
.btn--primary:active { transform: scale(0.97); }
.btn--outline {
    border-color: var(--color-border);
    color: var(--color-text);
    background: transparent;
}
.btn--outline:hover { border-color: var(--color-brand); color: var(--color-brand-hover); }
.btn--ghost {
    color: var(--color-brand-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
    padding-inline: 0;
    min-height: auto;
}
/* Type 2 : contour capsule discret + pastille circulaire accent avec flèche diagonale. La
   pastille et la flèche sont générées en CSS (::after), sans balisage supplémentaire, afin de
   pouvoir remplacer ".btn--ghost" sur un lien existant par un simple changement de classe. */
.btn--arrow {
    position: relative;
    background: transparent;
    border-color: var(--color-border);
    color: var(--color-text);
    padding-right: 3.1em;
}
.btn--arrow::after {
    content: "";
    flex: none;
    width: 1.9em;
    height: 1.9em;
    margin-left: 0.4em;
    border-radius: 50%;
    background: var(--color-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center / 46% no-repeat;
    position: absolute;
    right: 0.35em;
    top: 50%;
    transform: translate(0, -50%);
    transition: background-color var(--transition), transform var(--transition);
}
.btn--arrow:hover {
    border-color: var(--color-brand);
}
.btn--arrow:hover::after {
    background-color: var(--color-brand-hover);
    transform: translate(0.15em, calc(-50% - 0.1em)) scale(1.05);
}
@media (prefers-reduced-motion: reduce) {
    .btn--arrow:hover::after { transform: translate(0, -50%); }
}

/* ---------- 7. En-tête & navigation ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    /* Opaque plutôt que translucide : un backdrop-filter ici créerait un bloc englobant
       pour le menu mobile (position: fixed, imbriqué dans ce header), qui casserait
       son positionnement en plein écran (bug CSS classique, cf. spécification backdrop-filter). */
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    /* Hauteur minimale plutôt que fixe : le bloc de marque vertical (poulpe + nom + slogan)
       est plus haut qu'un logo simple, et sa hauteur varie encore par palier responsive
       (cf. règles ".brand__*" ci-dessus) - une hauteur figée le couperait. */
    height: auto;
    min-height: var(--header-height);
    transition: min-height var(--header-transition), transform 0.5s ease;
    /* Corrige un tremblement du bandeau à la remontée : ce header est "sticky" et sa hauteur
       change pendant la transition compact ↔ normal. Comme il se trouve au tout début du
       document, faire varier sa hauteur déplace tout le contenu qui suit - et le "scroll
       anchoring" du navigateur (Chrome/Firefox) compense automatiquement en ajustant
       "window.scrollY" pendant l'animation pour garder le contenu visuellement stable. Ce
       correctif de la page se répercutait ensuite dans le script qui lit "window.scrollY" pour
       décider de l'état compact (voir "principal.js") : chaque micro-ajustement de scrollY
       provoqué par l'animation elle-même repassait le seuil dans un sens puis dans l'autre,
       provoquant plusieurs allers-retours de classe pendant une seule remontée. "overflow-anchor:
       none" désactive ce mécanisme de compensation pour ce bloc précis : la taille du header peut
       changer sans jamais faire bouger la position de défilement en retour. */
    overflow-anchor: none;
}
/* Mobile/tablette (menu burger) : l'en-tête glisse doucement hors de l'écran quand on descend dans
   la page, et redescend dès qu'on remonte (classe ".is-hidden" posée par "principal.js", jamais
   quand le menu est ouvert). Desktop : toujours visible. */
@media (max-width: 1479px) {
    .site-header.is-hidden { transform: translateY(-100%); }
}
/* Pas de ligne de séparation quand l'en-tête touche directement le hero-slider (accueil) :
   le slider a déjà son propre cadre (marge + coins arrondis), cette bordure ferait doublon. */
.site-header:has(+ main .hero-slider),
.site-header:has(+ main .page-hero) {
    border-bottom-color: transparent;
}
/* Ce plancher (repris par ".site-header__inner" juste en dessous) doit lui aussi être réduit en
   header compact : sans cette ligne, "min-height" ici imposerait toujours au moins 72px au
   header dans son ensemble, quelle que soit la taille réelle du logo et du contenu réduits -
   empêchant le header de descendre sous 72px et cassant au passage le calage du panneau de
   navigation plein écran (qui se cale, lui, sur "--header-height-compact"). */
.site-header.is-scrolled { min-height: var(--header-height-compact); }
.site-header__inner {
    height: auto;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding-block: var(--space-1);
    transition: min-height var(--header-transition), padding-block var(--header-transition);
}
/* Header compact au scroll (classe posée par "principal.js" dès que la page quitte le tout
   haut) : réduction de la ligne principale (voir aussi ".brand__logo" ci-dessous). Pas de saut : chaque propriété qui change est transitionnée, jamais basculée en
   "display:none" ou en valeur figée. "--header-height-compact" pilote aussi le décalage du
   panneau de navigation plein écran (".main-nav" plus bas) pour qu'il reste calé juste sous le
   header, quelle que soit sa hauteur du moment. */
.site-header.is-scrolled .site-header__inner {
    min-height: var(--header-height-compact);
    padding-block: 0.3rem;
}
/* Bloc de marque : un seul SVG horizontal (pieuvre à gauche, « OCTEA CONCIERGERIE » et slogan à
   droite). Mobile/tablette : le logo ne rétrécit jamais au scroll (l'en-tête se cache, voir plus haut). Il est plus grand sur mobile et tablette (menu burger, largeur disponible ~300px)
   qu'en desktop, où il reprend la taille de pieuvre de l'ancien logo empilé (62px). Largeur
   automatique pour ne jamais déformer le dessin. */
.brand { display: flex; align-items: center; }
.brand__logo {
    height: 48px;
    width: auto;
    transition: height var(--header-transition);
}
@media (min-width: 560px) {
    .brand__logo { height: 60px; }
}
@media (min-width: 1480px) {
    .brand__logo { height: 62px; }
    .site-header.is-scrolled .brand__logo { height: 36px; }
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    color: var(--color-text);
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    content: "";
    display: block;
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: currentColor;
    position: relative;
    transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle__bar::before { position: absolute; top: -7px; }
.nav-toggle__bar::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: rotate(-45deg) translate(5px, -5px); }

.main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--color-background);
    overflow-y: auto;
    padding: var(--space-3) var(--space-2) var(--space-7);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition), top var(--header-transition);
}
/* Reste calé sous le header réellement affiché : voir ".site-header.is-scrolled" et le jeton
   "--header-height-compact" plus haut - évite tout écart ou chevauchement si le panneau plein
   écran est ouvert alors que la page est déjà scrollée (header compact actif). */
.site-header.is-scrolled .main-nav { top: var(--header-height-compact); }
.main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.main-nav__list { display: flex; flex-direction: column; }
.main-nav__item { border-bottom: 1px solid var(--color-border); }
.main-nav__list a {
    display: block;
    padding: var(--space-2) 0;
}
/* Premier niveau (liens et boutons de sous-menu), mobile comme desktop : Cal Sans 17px 500. Les
   liens des sous-menus ont leur propre style (".main-nav__submenu a"). */
.main-nav__list > .main-nav__item > a,
.main-nav__list > .main-nav__item > .main-nav__trigger {
    font-family: "Cal Sans", var(--font-heading);
    font-size: 17px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}
.main-nav__list a[aria-current="page"] { color: var(--color-brand-hover); }
.main-nav__cta { margin-top: var(--space-3); }

/* Bouton à divulgation d'un sous-menu ("La conciergerie", "Nos services", "Secteurs
   d'intervention") : mêmes proportions qu'un lien de premier niveau, mais un vrai <button>
   pour rester utilisable au clavier et au tactile (jamais un simple survol). */
.main-nav__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-1);
    width: 100%;
    padding: var(--space-2) 0;
    background: none;
    border: none;
    color: var(--color-text);
    text-align: left;
}
.main-nav__trigger.is-active { color: var(--color-brand-hover); }
/* Chevron de sous-menu en trait, en SVG intégré (pas de police d'icônes), noir à 50 % d'opacité.
   Mobile/tablette : 24px. Le dessin est en viewBox 12 affiché à 24px (×2), donc un trait de 0.5
   dans le SVG donne 1px à l'écran. Le desktop a sa propre taille (voir le palier 1480px). */
.main-nav__caret {
    flex: none;
    width: 24px;
    height: 24px;
    opacity: 0.5;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23000000' stroke-width='0.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform var(--transition);
}
.main-nav__trigger[aria-expanded="true"] .main-nav__caret {
    transform: rotate(180deg);
}
/* Accordéon mobile : le sous-menu s'insère simplement dans le flux vertical. */
.main-nav__submenu {
    padding-left: var(--space-2);
    padding-bottom: var(--space-1);
}
.main-nav__submenu a {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    /* 400 : comparé en direct à 500, le 400 donne une hiérarchie immédiatement lisible face au
       premier niveau (taille + graisse + couleur atténuée cumulées), tout en restant
       parfaitement lisible à cette taille - revérifié après le passage du premier niveau à 600
       (l'écart de graisse est donc plus net encore, sans devenir excessif à l'usage). */
    font-weight: 400;
    padding: var(--space-1) 0;
    color: var(--color-text-soft);
}

/* Le palier de bascule vers la navigation desktop (menu sur une ligne, sous-menus déroulants)
   est fixé à 1480px plutôt qu'à un seuil plus bas : en dessous, la largeur ne suffit pas à
   accueillir la navigation (6 entrées, avec sous-menus) ET le bouton d'appel à l'action sur une
   même ligne, ce qui produisait un état intermédiaire disgracieux (menu sur une ligne, bouton
   retombant seul en dessous, cf. correctif - vérifié par mesure réelle, pas seulement visuelle).
   Le menu mobile (accordéon plein écran) couvre donc cette plage sans état cassé, et la bascule
   desktop coïncide avec l'agrandissement du logo, l'apparition de la barre de coordonnées et le
   conteneur élargi : tout arrive proprement en même temps. */
@media (min-width: 1480px) {
    .nav-toggle { display: none; }
    .main-nav {
        position: static;
        inset: auto;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        padding: 0;
        overflow: visible;
        /* Ni "flex:1" ni un simple "gap" sur le conteneur parent : le groupe nav+CTA garde sa
           largeur intrinsèque (liste + bouton, sans grandir) et c'est "margin-left:auto" qui
           absorbe tout l'espace disponible AVANT lui - donc entre le bloc de marque et le
           début du menu, jamais entre "Contact" et le CTA. Avec un "flex:1" ici (ancienne
           version), c'était la LISTE elle-même qui grandissait pour remplir l'espace restant,
           déplaçant le vide entre le dernier lien et le CTA au lieu de l'endroit voulu
           (cf. correctif de répartition du header). */
        flex: 0 0 auto;
        margin-left: auto;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        justify-content: flex-end;
        row-gap: var(--space-2);
        column-gap: var(--space-4);
    }
    .main-nav__list {
        flex: 0 1 auto;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: var(--space-3);
        min-width: 0;
    }
    .main-nav__item { border-bottom: none; }
    /* Règle commune aux liens simples ET aux boutons de sous-menu : même boîte (inline-flex,
       centrage vertical, hauteur minimale et interligne identiques) pour qu'aucun des deux
       ne paraisse plus haut ou plus bas que l'autre - la différence venait du lien simple
       (bloc, interligne hérité de 1.6) et du bouton (flex, centré) n'ayant pas le même modèle
       de boîte, pas d'un décalage à corriger lien par lien. */
    .main-nav__list a,
    .main-nav__trigger {
        display: inline-flex;
        align-items: center;
        padding: 0;
        border: none;
        min-height: 2.4rem;
        line-height: 1;
        font-size: 1rem;
    }
    /* Chevron desktop : 8px, trait de ~1,5px, valeurs calibrées à l'écran de Pascal (ne pas recalculer
       à distance). */
    .main-nav__caret {
        width: 8px;
        height: 8px;
        margin-top: 2px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23000000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    }
    .main-nav__list > .main-nav__item > a:not([aria-current="page"]),
    .main-nav__list > .main-nav__item > .main-nav__trigger {
        color: #1C1C1D;
    }
    .main-nav__cta { margin: 0; flex: 0 0 auto; }
    /* Le bouton d'en-tête affiche le numéro de téléphone : rond blanc + icône smartphone dorée,
       puis le numéro. */
    .main-nav__phone { display: inline-flex; align-items: center; gap: 0.6em; white-space: nowrap; }
    .main-nav__phone-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: none;
        width: 28px;
        height: 28px;
        margin-left: -0.6em;
        border-radius: 50%;
        background: #fff;
        color: var(--color-brand);
    }
    .main-nav__phone-icon svg { width: 16px; height: 16px; }
    /* La respiration entre le bloc de marque et le menu vient du "margin-left:auto" de
       ".main-nav" ci-dessus, pas d'un gap ici : un gap sur ce conteneur s'ajouterait en plus
       du "margin-left:auto" (les deux ne doivent pas cumuler leurs effets). */
    .site-header__inner { flex-wrap: nowrap; }
    /* Le bouton d'appel à l'action du header reprend le style ".btn--primary" du site (couleur,
       texte, forme), mais dans un gabarit réduit : à taille pleine, il dominait visuellement le
       logo et la navigation (cf. correctif d'équilibre du header). Les autres CTA du site
       (formulaire, sections de contenu...) ne sont pas concernés, cette règle ne cible que le
       bouton du header. */
    .main-nav__cta .btn--primary {
        padding: 0 1.5em;
        height: 42px;
        min-height: 0;
        font-size: 15px;
        font-weight: 700;
        transition: padding var(--header-transition), min-height var(--header-transition), font-size var(--header-transition);
    }
    /* Légèrement resserré en header compact, jamais au point de paraître déséquilibré à côté
       d'une navigation qui, elle, ne change pas de taille. */
    .site-header.is-scrolled .main-nav__cta .btn--primary {
        padding: 0.55em 1.2em;
        min-height: 38px;
        font-size: 0.88rem;
        font-weight: 700;
    }

    /* Sous-menus en menu déroulant plutôt qu'en accordéon : le bouton garde la taille d'un
       lien de premier niveau (voir règle commune ci-dessus), le panneau se positionne juste
       en dessous. */
    .main-nav__item--has-children { position: relative; }
    .main-nav__trigger {
        width: auto;
        gap: 0.4em;
    }
    /* Réglages inspirés de la démo Rivora (coins à peine arrondis, pas d'ombre, bordure fine),
       mais largeur qui s'adapte au contenu ("Qui sommes-nous"/"Pourquoi Octea" n'a pas besoin
       du même menu large que "Nos services") plutôt que la largeur fixe de la démo (190px,
       pensée pour des libellés anglais courts, qui faisait mal retomber "Hôtels & établissements
       haut de gamme", "Intendance de résidences secondaires"...). "max-width" évite qu'un
       libellé exceptionnellement long n'élargisse le menu au-delà du raisonnable. */
    .main-nav__submenu {
        position: absolute;
        top: calc(100% + var(--space-2));
        left: 0;
        z-index: 110;
        width: max-content;
        max-width: 320px;
        padding: 0;
        background: var(--color-background);
        border: 1px solid var(--color-border);
        border-radius: 4px;
        /* Indispensable avec les coins arrondis : sans ça, la couleur de survol (pleine largeur)
           du premier/dernier lien dépasserait des coins en angle droit, hors du cadre arrondi. */
        overflow: hidden;
        box-shadow: none;
    }
    .main-nav__submenu a {
        /* "display:block; width:100%" indispensable : sans ça, le lien garde le "inline-flex"
           hérité de la règle commune premier niveau/sous-menu plus haut, qui ne le fait large
           que de son propre texte - la couleur de survol ne remplissait alors qu'une bande
           étroite au lieu de toute la largeur de la ligne. */
        display: block;
        width: 100%;
        font-size: 14px;
        color: var(--color-text);
        padding: 10px 15px;
        border-radius: 0;
    }
    .main-nav__submenu a:hover,
    .main-nav__submenu a:focus-visible { background: var(--color-brand); color: var(--color-on-dark); }
}

/* Grand écran : le conteneur du header exploite une largeur propre, supérieure à celle des contenus éditoriaux (--container-max, inchangé
   partout ailleurs sur le site), pour éviter les grandes marges blanches inutilisées de part et
   d'autre du logo et de la navigation. */
@media (min-width: 1480px) {
    .site-header__inner {
        max-width: var(--header-container-max);
    }
}

/* ---------- 8. Bandeau d'accueil & carrousel ---------- */
/* Les valeurs de base sont celles du smartphone ; le palier 700px les remplace par celles des
   tablettes et ordinateurs. */
.hero-slider {
    position: relative;
    overflow: hidden;
    margin-inline: 7px;
    /* Smartphone : coins hauts carrés (le slider touche le bandeau du menu), coins bas arrondis. */
    border-radius: 0 0 14px 14px;
}

/* Les diapositives sont superposées dans une même cellule de grille : le rail prend la hauteur de
   la plus haute, sans jamais rogner le texte. Hauteur minimale, smartphone : 192px de moins qu'à
   partir de 700px (rognés en bas). */
.hero-slider__track {
    display: grid;
    min-height: calc(max(64vh, 32rem) - 192px);
}

/* Diapositive : seul l'état affiché (aria-hidden="false") est visible et cliquable. Le texte, le
   bouton et le voile ne font que s'effacer/apparaître (1,5s) ; seule la photo bouge (voir
   ".hero-slide__media"). Jamais de "display:none" : les diapositives restent en place. */
.hero-slide {
    grid-area: 1 / 1;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--color-on-dark);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 1.5s ease;
}
.hero-slide[aria-hidden="false"] {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}
/* Voile chaud (brun-caramel foncé, teinte dorée de la marque) qui fait ressortir le texte. */
.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(74, 44, 18, 0.12) 0%, rgba(58, 32, 12, 0.3) 100%);
    z-index: 0;
}

/* Photo : effet « creative » de la référence Rivora, 1,5s, seul mouvement du hero. Entrante : elle
   recule de 130 % à 100 % (animation, pour qu'elle se joue dès le chargement de la page). Sortante
   (".is-leaving", posée par "carrousel.js") : elle grossit jusqu'à 110 % en s'effaçant. Le cadre
   ".hero-slider" (overflow:hidden) rogne le débord. Cadrage vertical à 25 % : on rogne un peu le
   haut de la photo pour laisser voir davantage le bas. */
.hero-slide__media {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}
.hero-slide[aria-hidden="false"] .hero-slide__media { animation: hero-zoom-in 1.5s ease both; }
.hero-slide.is-leaving .hero-slide__media { animation: hero-zoom-out 1.5s ease both; }
@keyframes hero-zoom-in  { from { transform: scale(1.3); } to { transform: scale(1); } }
@keyframes hero-zoom-out { from { transform: scale(1); } to { transform: scale(1.1); } }
.hero-slide__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
}
@media (prefers-reduced-motion: reduce) {
    .hero-slide__media { animation: none !important; }
}

/* Contenu : le décalage à gauche (paliers plus bas) est une marge, jamais un padding, qui
   rognerait la largeur utile en border-box. */
.hero-slide__content {
    position: relative;
    z-index: 1;
    padding: 1.25rem var(--space-2) 1.75rem;
    max-width: 46rem;
    /* Halo très léger pour détacher le texte de la photo (surtitre, titre, paragraphe ; pas le CTA). */
    --hero-text-halo: 0 1px 3px rgba(0, 0, 0, 0.22), 0 6px 18px rgba(0, 0, 0, 0.16);
}
.hero-slide__content .eyebrow {
    font-family: "Cal Sans", var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0;
    margin-bottom: var(--space-2);
    text-shadow: var(--hero-text-halo);
}
/* Titre : même style pour le <h1> (diapositive 1) et le <h2> (diapositive 2), en Cal Sans. Les
   coupures de ligne sont dans le HTML (".title-break--wide"). */
.hero-slide__title {
    color: var(--color-on-dark);
    font-family: "Cal Sans", var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
    margin: 0 0 var(--space-3);
    text-shadow: var(--hero-text-halo);
}
/* Chrome/Edge/Safari : le gras simulé de Cal Sans épaissit les lettres sans les écarter (Firefox
   les écarte) ; on rétablit l'espacement. Firefox est exclu via "-moz-appearance". */
@supports not (-moz-appearance: none) {
    .hero-slide__title { letter-spacing: 0.025em; }
}
.hero-slide__content .lede {
    color: var(--color-brand-soft);
    margin-bottom: var(--space-3);
    text-shadow: var(--hero-text-halo);
}
/* Boutons : 42px de haut, marges latérales réduites, gras 700 pour le bouton principal. */
.hero-slide__content .btn {
    height: 42px;
    min-height: 0;
    padding-block: 0;
    padding-inline: 1.4em;
}
.hero-slide__content .btn--primary { font-weight: 700; }

/* Indicateurs de diapositive : traits fins générés par "carrousel.js", centrés sur la largeur du
   hero ; l'actif est plus clair et plus large. */
.hero-slider__dots {
    position: absolute;
    z-index: 2;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
}
.hero-slider__dot {
    width: 56px;
    height: 3px;
    border-radius: 2px;
    background: rgba(var(--color-on-dark-rgb), 0.4);
    border: none;
    padding: 0;
    transition: background var(--transition), width var(--transition);
}
.hero-slider__dot[aria-current="true"] { background: var(--color-on-dark); width: 72px; }

/* Smartphone : l'image est plus haute (elle descend plus bas) et le texte se cale en bas de la diapositive, sous les visages ;
   le titre est coupé en deux lignes et l'ombre du texte est très légère. */
@media (max-width: 699px) {
    .hero-slider__track { min-height: 32rem; }
    .hero-slide { align-items: flex-end; }
    .hero-slide__content { padding-bottom: 3rem; --hero-text-halo: 0 1px 2px rgba(0, 0, 0, 0.1); }
    .hero-slide__title .title-break--wide,
    .hero-slide__content .eyebrow-break { display: block; }
    .hero-slide:first-child .hero-slide__media img { object-position: 40% 25%; }  /* les deux visages restent dans le cadre */
}

/* Tablettes et ordinateurs : slider plus haut, coins arrondis, texte décalé à droite. */
@media (min-width: 700px) {
    .hero-slider { border-radius: 14px; }
    .hero-slider__track { min-height: max(64vh, 32rem); }
    .hero-slider__dots { bottom: var(--space-3); }
    .hero-slide__content {
        max-width: 475px;
        padding: var(--space-5) var(--space-4) var(--space-6) 0;
        margin-inline-start: 6rem;
    }
}
@media (min-width: 768px) {
    .hero-slide__content { padding-block: 3.5rem; }
}
/* À partir de 900px le titre se désolidarise de la colonne de texte ("width:max-content", plafonné
   par "max-width") et peut la dépasser : l'image couvre toute la diapositive. Ses tailles montent
   ensuite par paliers, chacune vérifiée sans débordement (2 lignes). */
@media (min-width: 900px) {
    .hero-slide__content { margin-inline-start: 10rem; }
    .hero-slide__title { width: max-content; max-width: 820px; }
}
@media (min-width: 1024px) {
    .hero-slide__title { max-width: 950px; }
}
@media (min-width: 1200px) {
    .hero-slide__content { margin-inline-start: 16rem; }
    .hero-slide__title { max-width: 1000px; font-size: 3.5rem; }   /* 56px */
}
@media (min-width: 1280px) {
    .hero-slide__title { max-width: 1070px; font-size: 4rem; }     /* 64px */
}
@media (min-width: 1366px) {
    .hero-slide__title { max-width: 1150px; font-size: 4.5rem; }   /* 72px */
}
/* 104px : les titres sont courts. La largeur est plafonnée à l'espace restant à droite du texte :
   une ligne passe à la suivante plutôt que de déborder. */
@media (min-width: 1440px) {
    .hero-slide__title { max-width: min(1300px, calc(100vw - 296px)); font-size: 6.5rem; }
}

/* ---------- 8b. Section de bienvenue (sous le slider) ---------- */
/* Reprise de la section « Welcome » de la démo Rivora (valeurs relevées en direct) : deux photos qui
   se chevauchent à gauche, texte à droite. Smartphone : photos au-dessus du texte. */
.welcome {
    padding-block: 40px 0; /* pas de marge basse : la section suivante a la sienne (comme la démo) */
}
.welcome__inner {
    display: grid;
    gap: 29px;
    align-items: center;
}
.welcome__images {
    position: relative;
    padding-bottom: 48px;
}
.welcome__img {
    width: 60%;
    height: auto;
    aspect-ratio: 370 / 499;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}
.welcome__img--front {
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05), 0 24px 35.2px rgba(0, 0, 0, 0.1);
}
.welcome__img--back {
    position: absolute;
    right: 0;
    bottom: 0;
}
.welcome__text {
    font-family: "Golos Text", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.9;
    color: #59585D;
}
.welcome__text p { margin: 0 0 20px; }
.welcome__eyebrow {
    display: block;
    margin-bottom: 20px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-brand);
}
.welcome__title {
    margin: 0 0 25px;
    font-family: "Cal Sans", Helvetica, Arial, sans-serif;
    font-size: 36px;
    font-weight: 500;
    line-height: 1.2;
    color: #1C1C1D;
}
/* Bouton doré des sections d'accueil (démo Rivora) */
.btn-gold {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 6px 20px;
    border: 0;
    border-radius: 30px;
    cursor: pointer;
    background: var(--color-brand);
    color: #FFFFFF;
    font-family: "Golos Text", Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    transition: background var(--transition);
}
.btn-gold:hover,
.btn-gold:focus-visible { background: var(--color-brand-hover); }
.btn-gold--line { border: 1px solid var(--color-border); background: #FFFFFF; color: #1C1C1D; }
.btn-gold--line:hover,
.btn-gold--line:focus-visible { border-color: var(--color-brand); background: #FFFFFF; color: var(--color-brand-hover); }
@media (min-width: 900px) {
    .welcome { padding-block: 100px 0; }
    .welcome__inner { grid-template-columns: 1fr 1fr; gap: 48px; }
    .welcome__title { font-size: 48px; }
}

/* ---------- 8c. Sections « Rivora » (bienvenue exceptée) ---------- */
/* Valeurs relevées en direct sur la démo Rivora. Classes communes : ".rv" (section), ".rv-head" (en-tête
   centré), ".rv-eyebrow", ".rv-title", ".rv-lede". */
.rv {
    padding-block: 40px;
    font-family: "Golos Text", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.9;
    color: #59585D;
}
.rv-head {
    margin-bottom: 44px;
    text-align: center;
}
.rv-head--short { margin-bottom: 8px; }
.rv-eyebrow {
    display: block;
    margin-bottom: 20px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-brand);
}
.rv-eyebrow--tight { margin-bottom: 2px; }
.rv-title {
    margin: 0 0 25px;
    font-family: "Cal Sans", Helvetica, Arial, sans-serif;
    font-size: 36px;
    font-weight: 500;
    line-height: 1.2;
    color: #1C1C1D;
}
.rv-lede {
    max-width: 626px;
    margin: 0 auto;
}
.rv-lede p { margin: 0; }
.rv-lede p + p { margin-top: 20px; }
@media (min-width: 900px) {
    .rv { padding-block: 100px; }
    .rv-title { font-size: 48px; }
}

/* Services « Explore Room » : grille de 2 colonnes (1 sur smartphone), photo 3:2 arrondie, ligne d'infos, titre. */
.explore__grid {
    display: grid;
    gap: 28.8px;
}
.explore__card { display: block; }
.explore__media {
    display: block;
    overflow: hidden;
    border-radius: 16px;
}
.explore__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 0.5s;
}
.explore__card:hover .explore__media img { transform: scale(1.2); }
.explore__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0 8px;
    font-size: 15px;
}
.explore__where { display: inline-flex; align-items: center; gap: 8px; }
.explore__icon { width: 18px; height: 18px; flex: none; }
.explore__more { font-weight: 700; color: var(--color-brand); }
.explore__name {
    margin: 0 0 8px;
    font-family: "Cal Sans", Helvetica, Arial, sans-serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.5;
    color: #1C1C1D;
}
.explore__card p { margin: 0; }
.explore__cta {
    margin-top: 28.8px;
    text-align: center;
}
@media (min-width: 768px) {
    .explore__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- 8d. Section à fond parallaxe ---------- */
/* Reprise de la section à fond parallaxe de la démo Rivora (valeurs relevées en direct) : photo en
   fond qui défile plus lentement que la page (voir "principal.js"), voile brun, grand mot à gauche,
   texte à droite. Blocs empilés sur smartphone. */
.parallax {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-inline: 8px;
    padding-block: 40px;
    border-radius: 16px;
    color: #F8F9FA;
    font-family: "Golos Text", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.9;
}
/* La hauteur et le décalage de la photo sont calculés par "principal.js" (parallaxe) ; sans script,
   elle couvre simplement la section. */
.parallax__img {
    position: absolute;
    left: 0;
    top: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}
.parallax::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(75, 60, 55, 0.3);
}
.parallax p { margin: 0; }
.parallax__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28.8px;
    align-items: center;
}
.parallax__side { text-align: center; }
.parallax__big {
    font-family: "Cal Sans", Helvetica, Arial, sans-serif;
    font-size: 64px; /* smartphone : « Wimereux » à 96px dépasserait la largeur de l'écran */
    font-weight: 500;
    line-height: 1.2;
    color: #FFFFFF;
}
.parallax__title {
    margin: 0 0 24px;
    font-family: "Cal Sans", Helvetica, Arial, sans-serif;
    font-size: 40px;
    font-weight: 500;
    line-height: 1.5;
    color: #FFFFFF;
}
.parallax__main p { margin-bottom: 24px; }
.parallax__main p a { text-decoration: underline; }
.parallax__main p:last-child { margin-bottom: 0; }
@media (min-width: 768px) {
    .parallax__big { font-size: 96px; }
}
@media (min-width: 992px) {
    .parallax { padding-block: 100px; }
    .parallax__row {
        grid-template-columns: 5fr 7fr;
        gap: 0;
        margin-inline: -24px;
    }
    .parallax__side,
    .parallax__main { padding-inline: 24px; }
}

/* ---------- 8e. Chiffres, offres, FAQ, blog (démo Rivora) ---------- */
/* « Hotel Facilities » : grande photo + 3 cartes de chiffres + 1 photo. Les cartes blanches reçoivent un
   liseré discret, la page étant blanche (le fond de la démo est gris clair). */
.facts__grid,
.facts__cards {
    display: grid;
    gap: 28.8px;
}
.facts__photo,
.facts__card--photo {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    border-radius: 16px;
}
.facts__photo img,
.facts__card--photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.facts__caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 16px;
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: #FFFFFF;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}
.facts__caption svg { flex: none; width: 14px; height: 14px; }
.facts__card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 60px;
    padding: 30px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: #FFFFFF;
}
.facts__card small {
    display: block;
    border-bottom: 1px solid #DEE2E6;
    font-size: 14px;
    line-height: 30.4px;
    text-transform: uppercase;
}
.facts__card p { margin: 0; }
/* Légende sur deux lignes au maximum : on réserve leur place pour que les chiffres restent alignés d'une carte à l'autre. */
.facts__card p:last-child { min-height: 3.8em; }
.facts__card--photo { display: none; } /* comme la démo : masquée sur smartphone */
.facts__num {
    font-family: "Cal Sans", Helvetica, Arial, sans-serif;
    font-size: 48px;
    font-weight: 500;
    line-height: 1.2;
    color: #1C1C1D;
}
.facts__num span { color: var(--color-brand); }
@media (min-width: 768px) {
    .facts__grid,
    .facts__cards { grid-template-columns: 1fr 1fr; }
    .facts__card { aspect-ratio: 1; gap: 0; }
    .facts__card--photo { display: block; min-height: 0; padding: 0; border: 0; }
}

/* « Latest Hotel Offers » : 3 colonnes, chacune une photo et un bloc de texte brun (celui du milieu est
   inversé). */
.deals__grid {
    display: grid;
    gap: 28.8px;
}
.deal {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
}
.deal__media { display: block; flex: none; overflow: hidden; }
.deal__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 407 / 610;
    object-fit: cover;
    transition: transform 0.5s;
}
.deal:hover .deal__media img { transform: scale(1.1); }
.deal__body {
    display: block;
    flex: 1;
    padding: 40px;
    background: #574640;
    color: #F8F9FA;
}
.deal__body h3 {
    margin: 0 0 10px;
    font-family: "Cal Sans", Helvetica, Arial, sans-serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.5;
    color: #FFFFFF;
}
.deal__body p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.6);
}
@media (min-width: 992px) {
    .deals__grid { grid-template-columns: repeat(3, 1fr); }
    .deal:nth-child(2) .deal__body { order: -1; }
}

/* FAQ : titre à gauche, questions en accordéon (éléments <details>, sans script) à droite. */
.faq__row {
    display: grid;
    gap: 28.8px;
}
.faq__item { border-bottom: 1px solid #DDDDDD; }
.faq__item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 15px 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 30.4px;
    color: #1C1C1D;
    cursor: pointer;
    list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: "";
    flex: none;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%231C1C1D' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform var(--transition);
}
.faq__item[open] summary::after { transform: rotate(180deg); }
.faq__item p { margin: 0 0 15px; }
.faq__item a { color: var(--color-brand-hover); text-decoration: underline; }
@media (min-width: 992px) {
    .faq__row { grid-template-columns: 1fr 1fr; gap: 28.8px 48px; }
}

/* « News & Articles » : 4 cartes (2 de 992 à 1199px, 1 sur smartphone), photo carrée, pastille de date. */
.news__grid {
    display: grid;
    gap: 28.8px;
}
.news__media {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 16px;
    background: var(--color-surface);
}
.news__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.news__card:hover .news__media img { transform: scale(1.1); }
.news__date {
    position: absolute;
    top: 24px;
    left: 24px;
    padding: 16px 16px 8px;
    border-radius: 4.8px;
    background: rgba(0, 0, 0, 0.15);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #FFFFFF;
    font-weight: 600;
    text-align: center;
}
.news__date strong {
    display: block;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}
.news__card h3 {
    margin: 24px 0 10px;
    font-family: "Cal Sans", Helvetica, Arial, sans-serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.5;
    color: #1C1C1D;
}
.news__card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
@media (min-width: 992px) {
    .news__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1200px) {
    .news__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 8f. Bandeau photo pleine largeur (démo Rivora) ---------- */
/* La hauteur suit celle de la photo (format d'origine) ; bouton rond doré au centre, comme le bouton de
   lecture de la démo, qui mène ici à la page « Qui sommes-nous ». Smartphone : cadrage plus haut. */
.banner {
    position: relative;
    margin-inline: 8px;
    overflow: hidden;
    border-radius: 16px;
}
.banner img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 35% 30%;
}
/* Le cercle reste centré sur la photo ; la légende est posée sous lui. */
.banner__cta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.banner__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-brand);
    color: #FFFFFF;
    transition: background var(--transition), transform var(--transition);
}
.banner__btn svg { width: 32px; height: 32px; }
.banner__cta:hover .banner__btn,
.banner__cta:focus-visible .banner__btn {
    background: var(--color-brand-hover);
    transform: scale(1.06);
}
.banner__label {
    position: absolute;
    top: 100%;
    left: 50%;
    margin-top: 12px;
    transform: translateX(-50%);
    /* Même police et même taille que le grand mot « Wimereux » (96px) sur grand écran ; elle suit la
       largeur de l'écran en dessous, pour rester dans la hauteur du bandeau. */
    font-family: "Cal Sans", Helvetica, Arial, sans-serif;
    font-size: clamp(36px, 6vw, 96px);
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    color: #FFFFFF;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 8px 30px rgba(0, 0, 0, 0.35);
}
@media (min-width: 768px) {
    .banner img { aspect-ratio: auto; }
    .banner__btn { width: 120px; height: 120px; }
    .banner__btn svg { width: 40px; height: 40px; }
    .banner__label { margin-top: 16px; }
}

/* Signature latérale discrète : colonne sociale commune aux deux slides, positionnée en dehors
   du rail qui défile ("hero-slider__track") au même titre que les flèches/puces ci-dessus -
   elle ne fait donc partie d'aucune diapositive en particulier et reste ainsi rigoureusement à
   la même position, quelle que soit la diapositive affichée. Masquée sur petit smartphone pour
   ne jamais concurrencer le bandeau d'action fixe ni le contenu éditorial. */
.hero-slider__social {
    display: none;
}
@media (min-width: 700px) {
    .hero-slider__social {
        position: absolute;
        z-index: 2;
        left: var(--space-3);
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
    }
    .hero-slider__social-link {
        display: inline-flex;
        color: rgba(var(--color-on-dark-rgb), 0.88);
    }
    .hero-slider__social-link svg { width: 19px; height: 19px; }
    a.hero-slider__social-link:hover,
    a.hero-slider__social-link:focus-visible {
        color: var(--color-on-dark);
    }
    /* Trait vertical fin sous la colonne sociale - élément de composition emprunté à la
       référence graphique, purement décoratif. */
    .hero-slider__social-line {
        width: 1px;
        height: 64px;
        background: rgba(var(--color-on-dark-rgb), 0.35);
    }
}

/* ---------- 8g. Bandeau de titre des pages intérieures (démo Rivora, about.html) ---------- */
/* Même cadre, même photo parallaxe et même voile que ".parallax" (les deux classes se cumulent dans le HTML). Titre centré, fil d'Ariane collé en bas au centre. */
.page-hero { text-align: center; }
.page-hero__eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-brand);
}
.page-hero__title {
    margin: 0 0 25px;
    font-family: "Cal Sans", Helvetica, Arial, sans-serif;
    font-size: min(8vw, 60px);
    font-weight: 500;
    line-height: 1.2;
    color: #FFFFFF;
}
.page-hero__crumb {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px 5px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 13px;
    font-weight: 500;
    line-height: 21px;
    color: #FFFFFF;
    white-space: nowrap;
}
.page-hero__crumb ol {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}
.page-hero__crumb li + li::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 2.500 7.500 6 4 9.500' fill='none' stroke='%23CA9E5A' stroke-width='1.400' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Le titre d'un article, parfois très long, est écourté avec « … » : il rétrécit pour que le fil reste dans le bandeau. */
.page-hero__crumb { max-width: calc(100% - 16px); }
.page-hero__crumb ol { max-width: 100%; }
.page-hero__crumb li { display: flex; align-items: center; flex: none; }
.page-hero__crumb li:last-child { flex: 0 1 auto; min-width: 0; }
.page-hero__crumb [aria-current] { max-width: 520px; overflow: hidden; text-overflow: ellipsis; }
.page-hero__crumb a { opacity: 0.6; transition: opacity 0.5s; }
.page-hero__crumb a:hover,
.page-hero__crumb a:focus-visible { opacity: 1; }

/* ---------- 8h. Page « Qui sommes-nous » (démo Rivora, about.html) ---------- */
/* Présentation : photo large + petite photo qui la chevauche en bas à droite, texte à côté. */
.about__row {
    display: grid;
    gap: 28.8px;
    align-items: center;
}
.about__images {
    position: relative;
    padding: 0 48px 48px 0;
}
.about__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2000 / 1271;
    object-fit: cover;
    border-radius: 16px;
}
.about__img--small {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 40%;
    aspect-ratio: 1;
    object-position: 50% 20%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05), 0 24px 35.2px rgba(0, 0, 0, 0.1);
}
.about__text p { margin: 0; }
.about__text p + p { margin-top: 20px; }
.about__text a { color: var(--color-brand-hover); text-decoration: underline; }
@media (min-width: 992px) {
    .about__row { grid-template-columns: 626fr 610fr; gap: 44px; }
}

/* Interlocutrice : fond doré très clair arrondi, photo carrée et nom. */
.team {
    margin: 0 8px 8px;
    border-radius: 16px;
    background: var(--color-surface);
}
.team__card {
    max-width: 363px;
    margin-inline: auto;
    text-align: center;
}
.team__card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.team__card .team__logo {
    aspect-ratio: 1;
    padding: 20px;
    object-fit: contain;
    background: #FFFFFF;
}
.team__body { padding: 16px; }
.team__name {
    margin: 0;
    font-family: "Cal Sans", Helvetica, Arial, sans-serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.5;
    color: #1C1C1D;
}
.team__body p { margin: 0 0 8px; }
.team__card + .rv-lede { margin-top: 24px; text-align: center; }
.team--wide .rv-lede { max-width: 800px; }
@media (min-width: 992px) {
    .team__card { max-width: 298px; }
}
/* Photo paysage (Qui sommes-nous) : la carte garde la hauteur de l'ancienne photo portrait 975 × 1200. Sur ordinateur elle
   s'élargit (550 × 367 px) ; sur smartphone la photo est recadrée sur Marion, à la même hauteur qu'avant. */
.team__card--landscape img { aspect-ratio: 975 / 1200; object-fit: cover; object-position: 40% 50%; }
@media (min-width: 992px) {
    .team__card--landscape { max-width: 550px; }
    .team__card--landscape img { aspect-ratio: 3 / 2; }
}

/* ---------- 8i. Page de service (démo Rivora, room-single.html) ---------- */
/* Bandeau d'infos (fond doré très clair), colonne de texte avec photo et listes à coches, carte d'appel à
   l'action à droite, puis trois autres services (cartes ".explore__card" de l'accueil, en 3 colonnes). */
.svc__bar {
    margin-bottom: 24px;
    padding: 24px;
    border-radius: 16px;
    background: var(--color-surface);
    font-size: 18px;
    font-weight: 500;
}
.svc__fact {
    position: relative;
    padding: 8px 0 8px 30px;
    line-height: 1.3;
}
.svc__fact svg {
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    color: #1C1C1D;
}
.svc__price {
    margin: 0;
    font-family: "Cal Sans", Helvetica, Arial, sans-serif;
    font-size: 40px;
    font-weight: 500;
    line-height: 1;
    color: #1C1C1D;
}
.svc__row {
    display: grid;
    gap: 40px;
}
.svc__photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 837 / 558;
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: 16px;
}
.svc__photo--inline { margin: 24px 0; }
.svc__trio {
    display: grid;
    gap: 24px;
    margin: 0 0 16px;
}
.svc__trio figure { margin: 0; }
.svc__trio img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    margin-bottom: 12px;
    border-radius: 16px;
}
.svc__trio figcaption { font-size: 15px; line-height: 1.6; }
.svc__main p { margin: 0 0 16px; }
.svc__main h3,
.svc__side h3 {
    margin: 24px 0 16px;
    font-family: "Cal Sans", Helvetica, Arial, sans-serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.5;
    color: #1C1C1D;
}
.svc__main a { color: var(--color-brand-hover); text-decoration: underline; }
.svc__list {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}
.svc__list li {
    position: relative;
    margin-bottom: 5px;
    padding-left: 30px;
    line-height: 1.6;
    break-inside: avoid;
}
.svc__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.500 4.800 9 10 3.200' fill='none' stroke='%23CA9E5A' stroke-width='1.600' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.svc__side {
    align-self: start;
    padding: 40px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: #FFFFFF;
}
.svc__side h3 { margin-top: 0; }
.svc__side p { margin: 0 0 16px; }
.svc__side a:not(.btn-gold) { color: var(--color-brand-hover); font-weight: 600; }
.svc__more { margin-top: 40px; }
.svc__more-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.svc__more-title {
    margin: 0;
    font-family: "Cal Sans", Helvetica, Arial, sans-serif;
    font-size: 40px;
    font-weight: 500;
    line-height: 1.2;
    color: #1C1C1D;
}
@media (min-width: 768px) {
    .svc__list { column-count: 2; column-gap: 24px; }
    .svc__trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .explore__grid--track { --card: calc((100% - 28.8px) / 2); }
}
@media (min-width: 992px) {
    .svc__bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
    }
    .svc__row { grid-template-columns: 837fr 395fr; gap: 48px; }
    .explore__grid--track { --card: calc((100% - 57.6px) / 3); }
    /* Carte collée sous l'en-tête pendant le défilement ; elle s'arrête avec la ligne, avant « Autres services ». */
    .svc__side { position: sticky; top: calc(var(--header-height) + 32px); }
    .svc__more { margin-top: 77px; }
}

/* Défilement horizontal des cartes (flèches ".slider-nav" + balayage tactile) : une carte par écran sur smartphone, la
   suivante dépasse pour montrer qu'il y en a d'autres. */
.explore__grid--track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.explore__grid--track::-webkit-scrollbar { display: none; }
.explore__grid--track.is-auto { scroll-snap-type: none; }
.explore__grid--track .explore__card {
    flex: 0 0 var(--card, 85%);
    scroll-snap-align: start;
}
.slider-nav { display: flex; gap: 8px; flex: none; }
.slider-nav__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: var(--color-brand);
    color: #FFFFFF;
    cursor: pointer;
    transition: background var(--transition), opacity var(--transition);
}
.slider-nav__btn svg { width: 18px; height: 18px; }
.slider-nav__btn:hover:not(:disabled),
.slider-nav__btn:focus-visible { background: var(--color-brand-hover); }
.slider-nav__btn:disabled { opacity: 0.4; cursor: default; }

/* ---------- 8j. Pages villes (démo Rivora, gallery.html et offers.html) ---------- */
/* Textes d'introduction à 800 px ; galerie de photos 3:2 (4 colonnes, 2 sur smartphone) ; les cartes d'offres sont les
   ".deal" de l'accueil. */
.city-wide .rv-lede { max-width: 800px; }
.city-wide .rv-lede + .btn-gold { margin-top: 20px; } /* même écart texte-bouton que dans le bloc de bienvenue */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.gallery__item {
    display: block;
    overflow: hidden;
    border-radius: 16px;
}
.gallery__item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 0.5s;
}
.gallery__item:hover img { transform: scale(1.1); }
@media (min-width: 768px) {
    .gallery__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Vue d'ensemble des secteurs : cartes « .explore__card » sur 4 colonnes (2 sur tablette, 1 sur smartphone). */
@media (min-width: 1200px) {
    .explore__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 8k. Blog : liste et article (démo Rivora, blog.html et blog-single.html) ---------- */
/* Liste : cartes « .news__card » de l'accueil, filtres par catégorie et pagination. Article : titre dans le bandeau, texte à
   gauche, colonne collante à droite (recherche, articles liés, catégories). Pas de commentaires. */
.blog-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 24px 0 44px;
}
.blog-filter__item {
    padding: 6px 18px;
    border: 1px solid var(--color-border);
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: #1C1C1D;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.blog-filter__item:hover,
.blog-filter__item.is-active {
    border-color: var(--color-brand);
    background: var(--color-brand);
    color: #FFFFFF;
}
.pager {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 44px;
}
.pager__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 42px;
    border-radius: 6px;
    font-weight: 700;
    color: #1C1C1D;
}
.pager__item:hover { color: var(--color-brand-hover); }
.pager__item.is-active { background: var(--color-brand); color: #FFFFFF; }

.page-hero--article .page-hero__title {
    max-width: 845px;
    margin-inline: auto;
    font-size: min(8vw, 48px);
}

.blog-layout {
    display: grid;
    gap: 40px;
}
.blog-read__meta {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.6;
}
.article-body > :first-child { margin-top: 0; }
.article-body p { margin: 0 0 20px; }
.article-body h2,
.article-body h3 {
    margin: 32px 0 10px;
    font-family: "Cal Sans", Helvetica, Arial, sans-serif;
    font-weight: 500;
    color: #1C1C1D;
}
.article-body h2 { font-size: 26px; line-height: 1.5; }
.article-body h3 { font-size: 20px; line-height: 1.5; }
.article-body ul,
.article-body ol { margin: 0 0 20px; padding-left: 24px; }
.article-body li { margin-bottom: 6px; }
.article-body li::marker { color: var(--color-brand); font-weight: 700; }
.article-body a { color: var(--color-brand-hover); text-decoration: underline; }
.article-body img { max-width: 100%; height: auto; border-radius: 16px; }

.widget { margin: 0 0 30px; padding: 0 0 30px; }
.widget:last-child { margin-bottom: 0; padding-bottom: 0; }
.widget h4 {
    margin: 0 0 10px;
    font-family: "Cal Sans", Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.6;
    color: #1C1C1D;
}
.blog-related { display: grid; gap: 24px; }
/* Dans la colonne collante, les articles liés restent compacts (photo 16:10, sans résumé) pour que la colonne tienne dans la fenêtre. */
.blog-related .news__media { aspect-ratio: 16 / 10; }
.blog-related .news__card h3 { margin-top: 16px; font-size: 22px; }
.blog-related .news__card p { display: none; }
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}
.blog-tags li { margin: 3px 0; }
.blog-tags a {
    display: inline-block;
    margin: 0 2px;
    padding: 5px 10px 7px;
    border-radius: 5px;
    background: var(--color-brand);
    font-size: 12px;
    line-height: 1.9;
    color: #FFFFFF;
    transition: background var(--transition);
}
.blog-tags a:hover { background: var(--color-brand-hover); }

.blog-search__form { display: flex; gap: 8px; }
.blog-search__input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #FFFFFF;
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
    color: #1C1C1D;
}
.blog-search__input:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 1px; }
.blog-search__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: var(--color-brand);
    color: #FFFFFF;
    cursor: pointer;
    transition: background var(--transition);
}
.blog-search__btn:hover,
.blog-search__btn:focus-visible { background: var(--color-brand-hover); }
.blog-search__btn svg { width: 20px; height: 20px; }
.blog-search__status { margin: 10px 0 0; font-size: 14px; line-height: 1.6; }
.blog-search__status:empty { display: none; }
.blog-search__results { margin: 6px 0 0; padding: 0; list-style: none; }
.blog-search__results a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #DDDDDD;
}
.blog-search__title {
    display: block;
    font-weight: 600;
    line-height: 1.4;
    color: #1C1C1D;
}
.blog-search__results a:hover .blog-search__title { color: var(--color-brand-hover); }
.blog-search__meta { display: block; margin-top: 2px; font-size: 13px; }

@media (min-width: 992px) {
    .blog-layout { grid-template-columns: 837fr 395fr; gap: 48px; align-items: start; }
    .blog-side { position: sticky; top: 104px; } /* « top » ajusté par principal.js quand la colonne dépasse la fenêtre */
}

/* ---------- 8l. Contact et assistant de demande (démo Rivora, contact.html) ---------- */
/* Contact : texte et coordonnées à gauche, panneau doré très clair à droite. Le panneau accueille l'assistant de demande :
   un bouton de démarrage, puis une question à la fois (glissement horizontal), un récapitulatif et l'envoi.
   Pensé d'abord pour le smartphone : zones à toucher de 52 à 56 px, champs à 16 px (pas de zoom automatique sur iPhone). */
.contact__row {
    display: grid;
    gap: 40px;
}
.contact__items {
    display: grid;
    gap: 28px 24px;
    margin: 30px 0 0;
}
.contact__item {
    position: relative;
    min-height: 60px;
    padding-left: 80px;
}
.contact__icon {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--color-brand);
    color: #F8F9FA;
}
.contact__icon svg { width: 28px; height: 28px; }
.contact__item h3 {
    margin: 0;
    font-family: "Cal Sans", Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    color: #1C1C1D;
}
.contact__item p { margin: 0; line-height: 1.6; }
.contact__item a { color: var(--color-brand-hover); font-weight: 600; }
.contact__notes { margin-top: 30px; }
.contact__notes p { margin: 0 0 16px; }
.contact__notes a { color: var(--color-brand-hover); text-decoration: underline; }
.contact__panel {
    order: -1; /* smartphone : l'assistant passe avant les coordonnées */
    padding: 24px;
    border-radius: 16px;
    background: var(--color-surface);
}

.contact__panel--solo { max-width: 760px; margin-inline: auto; }
.contact__after { margin-top: 24px; font-size: 15px; }
.contact__after a { color: var(--color-brand-hover); text-decoration: underline; }

.wizard { color: #59585D; }
.wizard__start,
.wizard__done { padding: 12px 0; text-align: center; }
.wizard__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 16px;
    background: var(--color-brand);
    color: #FFFFFF;
}
.wizard__badge svg { width: 30px; height: 30px; }
.wizard__title {
    margin: 0 0 10px;
    font-family: "Cal Sans", Helvetica, Arial, sans-serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.3;
    color: #1C1C1D;
}
.wizard__lead { max-width: 460px; margin: 0 auto 24px; }
.wizard__hint { margin: 16px 0 0; font-size: 14px; line-height: 1.6; }
.wizard__done .btn-gold { margin-top: 32px; }
.wizard__hint a { color: var(--color-brand-hover); text-decoration: underline; }

.wizard__top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.wizard__back {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1.5px solid var(--color-border);
    border-radius: 50%;
    background: #FFFFFF;
    color: #1C1C1D;
    cursor: pointer;
}
.wizard__back svg { width: 20px; height: 20px; }
.wizard__progress { flex: 1; height: 6px; overflow: hidden; border-radius: 3px; background: var(--color-border); }
.wizard__bar { display: block; width: 0; height: 100%; background: var(--color-brand); transition: width 0.35s ease; }
.wizard__count { font-size: 14px; font-weight: 600; white-space: nowrap; color: #1C1C1D; }

.wizard__viewport {
    position: relative;
    margin: -4px;
    overflow: hidden;
    transition: height 0.3s ease;
}
.wizard__step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 4px;
    border: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(48px);
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0s 0.35s;
}
.wizard__step.is-before { transform: translateX(-48px); }
.wizard__step.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0s;
}
.wizard__step:focus { outline: none; }
.wizard__step legend {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    padding: 0;
    font-family: "Cal Sans", Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.35;
    color: #1C1C1D;
}
.wizard__sub { margin: 0 0 18px; font-size: 15px; line-height: 1.6; }

.wizard__choices { display: grid; gap: 10px; }
.wizard__choices--row { grid-template-columns: 1fr 1fr; }
.wizard__choice { position: relative; display: block; cursor: pointer; }
.wizard__choice input { position: absolute; opacity: 0; pointer-events: none; }
.wizard__choice span {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 10px 16px 10px 52px;
    border: 1.5px solid var(--color-border);
    border-radius: 14px;
    background: #FFFFFF;
    font-weight: 600;
    line-height: 1.4;
    color: #1C1C1D;
    transition: border-color var(--transition), background var(--transition);
}
.wizard__choice span::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    border: 2px solid #C9C2B6;
    border-radius: 6px;
    background: #FFFFFF center / 14px no-repeat;
    transition: background-color var(--transition), border-color var(--transition);
}
.wizard__choice input[type="radio"] + span::before { border-radius: 50%; }
.wizard__choice input:checked + span { border-color: var(--color-brand); background: var(--color-brand-soft); }
.wizard__choice input[type="checkbox"]:checked + span::before {
    border-color: var(--color-brand);
    background-color: var(--color-brand);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.500 4.800 9 10 3.200' fill='none' stroke='%23FFFFFF' stroke-width='1.800' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.wizard__choice input[type="radio"]:checked + span::before {
    border-color: var(--color-brand);
    background-color: var(--color-brand);
    box-shadow: inset 0 0 0 4px #FFFFFF;
}
.wizard__choice input:focus-visible + span { outline: 2px solid var(--color-brand); outline-offset: 2px; }

.wizard__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.wizard__chip {
    min-height: 46px;
    padding: 8px 18px;
    border: 1.5px solid var(--color-border);
    border-radius: 30px;
    background: #FFFFFF;
    font: inherit;
    font-weight: 600;
    color: #1C1C1D;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}
.wizard__chip:hover,
.wizard__chip.is-active { border-color: var(--color-brand); background: var(--color-brand-soft); }

.wizard__label { display: block; margin: 14px 0 6px; font-size: 15px; font-weight: 600; line-height: 1.5; color: #1C1C1D; }
.wizard__input {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    background: #FFFFFF;
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
    color: #1C1C1D;
}
.wizard__input:focus { border-color: var(--color-brand); outline: 2px solid var(--color-brand-soft); }
.wizard__input[aria-invalid] { border-color: var(--color-error); }
.wizard__input--area { min-height: 130px; resize: vertical; }
.wizard__pair { display: grid; gap: 4px 12px; }

.wizard__counters { display: grid; gap: 12px; }
.wizard__counter {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 8px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: 14px;
    background: #FFFFFF;
}
.wizard__counter-label { flex: 1; font-weight: 600; color: #1C1C1D; }
.wizard__counter button {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1.5px solid var(--color-brand);
    border-radius: 50%;
    background: #FFFFFF;
    font-size: 24px;
    line-height: 1;
    color: var(--color-brand-hover);
    cursor: pointer;
    transition: background var(--transition);
}
.wizard__counter button:hover { background: var(--color-brand-soft); }
.wizard__counter output { min-width: 32px; font-size: 22px; font-weight: 700; text-align: center; color: #1C1C1D; }

.wizard__summary { margin: 0 0 18px; }
.wizard__summary > div { padding: 12px 0; border-bottom: 1px solid #DDDDDD; }
.wizard__summary dt { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-brand-hover); }
.wizard__summary dd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 2px 0 0; line-height: 1.6; color: #1C1C1D; overflow-wrap: anywhere; }
.wizard__edit {
    flex: none;
    min-height: 32px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    color: var(--color-brand-hover);
    cursor: pointer;
}
.wizard__consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1.5px solid var(--color-border);
    border-radius: 12px;
    background: #FFFFFF;
    font-size: 15px;
    line-height: 1.6;
    cursor: pointer;
}
.wizard__consent input { flex: none; width: 22px; height: 22px; margin-top: 3px; accent-color: var(--color-brand); }
.wizard__consent a { color: var(--color-brand-hover); text-decoration: underline; }

.wizard__error { display: none; margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--color-error-soft); font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--color-error-soft-text); }
.wizard__error.is-visible { display: block; }
/* Boutons d'action collés au bas de l'écran tant que l'assistant est à l'écran : sur smartphone, « Continuer » reste toujours à portée de pouce,
   même quand la liste de choix dépasse la hauteur de l'écran. */
.wizard__actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: grid;
    gap: 8px;
    margin: 12px -4px -4px;
    padding: 14px 4px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--color-surface) 78%, rgba(250, 247, 242, 0));
}
.wizard__next { justify-content: center; }
.wizard__next:disabled { opacity: 0.6; cursor: default; }
.wizard__skip {
    min-height: 44px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: underline;
    color: #59585D;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .wizard__step,
    .wizard__step.is-active,
    .wizard__viewport,
    .wizard__bar { transition: none; }
}
@media (min-width: 576px) {
    .contact__items { grid-template-columns: 1fr 1fr; }
    .wizard__pair { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
    .contact__panel { padding: 40px; }
    .wizard__step legend { font-size: 26px; }
    .wizard__actions { grid-template-columns: auto auto; justify-content: space-between; align-items: center; }
    .wizard__next { padding-inline: 36px; }
}
@media (min-width: 992px) {
    .contact__row { grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
    .contact__text { padding-right: 40px; }
    .contact__panel { order: 0; }
}

/* ---------- 8m. Pages légales (démo Rivora, blog-single.html) ---------- */
/* Même mise en page que l'article de blog : texte à gauche, colonne collante à droite (sommaire et autres pages légales). */
.legal__intro { font-size: 18px; line-height: 1.7; color: #1C1C1D; }
.legal-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: legal; }
.legal-toc li { counter-increment: legal; border-bottom: 1px solid #DDDDDD; }
.legal-toc a {
    display: block;
    padding: 10px 0 10px 34px;
    position: relative;
    font-weight: 600;
    line-height: 1.5;
    color: #1C1C1D;
    transition: color var(--transition);
}
.legal-toc a::before { content: counter(legal, decimal-leading-zero); position: absolute; left: 0; color: var(--color-brand); }
.legal-toc a:hover { color: var(--color-brand-hover); }
.legal h2 { scroll-margin-top: 110px; }
@media (max-width: 991px) { .legal-toc { display: none; } }

/* Page 404 : message centré sous le bandeau de titre. */
.notfound { max-width: 860px; text-align: center; }
.notfound p { margin: 0 0 30px; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- 9. Cartes ---------- */
.card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    height: 100%;
}
.card h3 { margin-bottom: var(--space-1); }
.card--surface { background: var(--color-surface); border-color: transparent; }
/* Une carte/encadré suivi directement d'un paragraphe éditorial (ex. les deux plages
   d'Audresselles avant le texte du Grand Site des Deux-Caps) a besoin d'une séparation nette
   avec ce qui suit, sans agrandir la carte elle-même ni la section : marge appliquée au
   paragraphe suivant, pas à la grille. */
.grid--2 + .prose,
.grid--3 + .prose { margin-top: var(--space-5); }

/* Liste de prestations resserrée : l'ancien espacement (gap 1rem + padding 0,5rem de chaque
   élément, soit 2rem entre deux lignes) paraissait trop aéré pour une simple liste à puces.
   Densité réduite d'environ moitié tout en gardant une puce et un texte bien dissociés. */
.value-list { display: grid; gap: 0.4rem; }
.value-list li {
    display: flex;
    gap: var(--space-2);
    align-items: flex-start;
    padding-block: 0.3rem;
}
.value-list__icon {
    flex: none;
    width: 28px;
    height: 28px;
    color: var(--color-brand-hover);
}

/* ---------- 10. Emplacements photo ---------- */
.photo-placeholder {
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-soft);
    width: 100%;
    padding: var(--space-2);
}
.photo-placeholder__icon {
    font-size: 1.8rem;
    color: var(--color-brand);
    margin-bottom: var(--space-1);
}
.photo-placeholder__text {
    font-size: 0.78rem;
    line-height: 1.5;
    max-width: 22rem;
}
.photo-placeholder__text code {
    font-size: 0.72rem;
    background: var(--color-brand-soft);
    padding: 1px 5px;
    border-radius: 4px;
}
.photo-real {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
}
.photo-real img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Mention légale associée à une photo montrant une boisson alcoolisée (loi Évin) : volontairement
   discrète (petite taille, minuscules, faible contraste) sans être dissimulée. */
.photo-legal-note {
    margin-top: 0.4em;
    font-size: 0.66rem;
    line-height: 1.4;
    color: var(--color-text-soft);
    text-transform: lowercase;
    text-align: center;
}

/* ---------- 11. Formulaires ---------- */
.form-field { margin-bottom: var(--space-3); }
.form-field label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 0.4em;
}
.form-field__hint { font-size: 0.82rem; color: var(--color-text-soft); margin-top: 0.35em; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="date"],
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 0.85em 1em;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-background);
    color: var(--color-text);
    min-height: 48px;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
    border-color: var(--color-brand);
}
.form-field.has-error input, .form-field.has-error textarea {
    border-color: var(--color-error);
}
.form-field__error {
    color: var(--color-error);
    font-size: 0.85rem;
    margin-top: 0.35em;
}
.checkbox-group { display: grid; gap: 0.6em; }
.checkbox-group label { display: flex; align-items: flex-start; gap: 0.6em; font-weight: 500; }
.checkbox-group input { margin-top: 0.3em; width: 18px; height: 18px; flex: none; }
.form-grid { display: grid; gap: var(--space-2); }
@media (min-width: 640px) {
    .form-grid--2 { grid-template-columns: 1fr 1fr; }
}
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success, .form-error-banner {
    padding: var(--space-2);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
}
.form-success { background: var(--color-success-soft); color: var(--color-success-soft-text); }
.form-error-banner { background: var(--color-error-soft); color: var(--color-error-soft-text); }

/* ---------- 12. Pied de page ---------- */
/* Mise en page du pied de page de la démo Rivora (fond brun, coins arrondis, 3 blocs sur une ligne), avec
   toutes les informations du site : secteurs, coordonnées, partage, liens et mentions légales. */
.site-footer {
    margin: 0 8px 8px;
    padding-top: 60px;
    border-radius: 16px;
    background: #4B3C37;
    color: #F8F9FA;
    font-family: "Golos Text", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.9;
}
.site-footer a { color: inherit; }
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--color-brand); }
.site-footer__top {
    display: grid;
    gap: 40px;
    text-align: center;
}
.site-footer__title {
    margin: 0 0 10px;
    font-family: "Cal Sans", Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    color: #FFFFFF;
}
.site-footer p,
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer__cities ul {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    gap: 0 32px;
    text-align: left;
}
.site-footer__logo { display: block; width: 380px; max-width: 100%; height: auto; margin: 0 auto; }
.site-footer__social {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}
.site-footer__social-link { display: inline-flex; color: rgba(255, 255, 255, 0.6); }
.site-footer__social-link svg { width: 18px; height: 18px; }
.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 32px;
    margin-top: 40px;
}
.site-footer__sub {
    margin-top: 50px;
    padding: 20px 0 calc(20px + var(--mobile-cta-height));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer__sub-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 32px;
    text-align: center;
}
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; }
@media (min-width: 960px) {
    .site-footer { padding-top: 100px; }
    .site-footer__sub { padding-bottom: 20px; }
}
@media (min-width: 992px) {
    .site-footer__top {
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }
    .site-footer__cities .site-footer__title { text-align: left; }
    .site-footer__cities ul { justify-content: start; }
    .site-footer__contact { justify-self: end; }
}

/* ---------- 12b. Bouton « remonter en haut » (démo Rivora) ---------- */
/* 40px, doré, rond, à 20px des bords ; il apparaît en glissant depuis le bas dès 100px de défilement (classe
   ".show" posée par "principal.js") et grossit de 10 % au survol. Smartphone : relevé au-dessus du bandeau
   d'actions fixe. */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: -40px;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 30px;
    background: var(--color-brand);
    color: #FFFFFF;
    opacity: 0;
    visibility: hidden;
    transition: bottom 0.5s, opacity 0.5s, transform 0.5s, visibility 0s 0.5s;
}
.back-to-top svg { width: 18px; height: 18px; }
.back-to-top.show {
    bottom: calc(20px + var(--mobile-cta-height));
    opacity: 1;
    visibility: visible;
    transition: bottom 0.5s, opacity 0.5s, transform 0.5s, visibility 0s;
}
.back-to-top:hover,
.back-to-top:focus-visible { transform: scale(1.1); }
@media (min-width: 960px) {
    .back-to-top.show { bottom: 20px; }
}

/* ---------- 13. Bandeau d'actions fixe sur smartphone ---------- */
.mobile-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    display: flex;
    gap: 8px;
    padding: 10px var(--space-2);
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    background: var(--color-background);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 18px rgba(var(--color-text-rgb), 0.06);
}
/* Gabarit réduit et dédié : le bouton plein du système général (padding généreux, pensé pour
   une largeur de bureau ou de section) ne tient plus à deux dans un bandeau de 320-390px de
   large une fois agrandi - même forme capsule et même couleur, mais un padding/texte adaptés
   à cet espace contraint. */
.mobile-cta .btn {
    flex: 1;
    white-space: nowrap;
    padding: 0.6em 1em;
    font-size: 0.85rem;
    min-height: 48px;
}
.mobile-cta__phone { flex: 0.8 1 0; }
.mobile-cta__phone svg { width: 17px; height: 17px; flex: none; }
body.has-mobile-cta { padding-bottom: var(--mobile-cta-height); }
body.keyboard-open .mobile-cta { display: none; }
@media (min-width: 960px) {
    .mobile-cta { display: none; }
    body.has-mobile-cta { padding-bottom: 0; }
}

/* ---------- 14. Carte des préférences de cookies ---------- */
/* Petite carte claire en bas à gauche : fond blanc, filet fin, ombre légère. Sur smartphone elle prend la largeur
   de l'écran, au-dessus du bandeau d'actions fixe (« --mobile-cta-height »). */
.privacy {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(16px + var(--mobile-cta-height) + env(safe-area-inset-bottom));
    z-index: 150;
    max-height: calc(100vh - 32px - var(--mobile-cta-height));
    overflow-y: auto;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 8px 32px rgba(var(--color-text-rgb), 0.12);
}
@media (min-width: 960px) {
    .privacy { left: 24px; right: auto; bottom: 24px; width: 360px; }
}
.privacy__title { margin: 0 24px 6px 0; font-family: "Cal Sans", Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 500; line-height: 1.4; color: #1C1C1D; }
.privacy__text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--color-text-soft); }
.privacy__text a { color: var(--color-brand-hover); text-decoration: underline; }
.privacy__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    width: 28px;
    height: 28px;
    padding: 5px;
    border: 0;
    background: none;
    color: var(--color-text-soft);
    cursor: pointer;
}
.privacy__close:hover { color: var(--color-brand-hover); }
.privacy__panel { margin-top: 14px; border-top: 1px solid var(--color-border); }
.privacy__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}
.privacy__label { display: grid; gap: 2px; font-size: 14px; line-height: 1.4; color: #1C1C1D; }
.privacy__label small { font-size: 13px; color: var(--color-text-soft); }
.privacy__always { flex: none; font-size: 13px; font-weight: 600; color: var(--color-brand-hover); }
.privacy__switch {
    appearance: none;
    flex: none;
    position: relative;
    width: 42px;
    height: 24px;
    margin: 0;
    border-radius: 12px;
    background: #D8D3CA;
    cursor: pointer;
    transition: background var(--transition);
}
.privacy__switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FFFFFF;
    transition: transform var(--transition);
}
.privacy__switch:checked { background: var(--color-brand); }
.privacy__switch:checked::after { transform: translateX(18px); }
.privacy__switch:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.privacy__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 16px; }
.privacy__link {
    padding: 8px 4px;
    border: 0;
    background: none;
    font-family: "Golos Text", Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.privacy__link:hover { color: var(--color-brand-hover); }

/* Smartphone : tous les blocs à fond (photos, cartes, pied de page) ont la largeur du diaporama d'accueil (7px de marge). Le titre
   « Ma vision de la conciergerie » (Qui sommes-nous) est centré comme « Octea » au-dessus. */
@media (max-width: 699px) {
    .parallax, .banner, .team, .site-footer { margin-inline: 7px; }
    .parallax--vision .parallax__title { text-align: center; }
    /* Titres des sections photo : 2px de moins et interligne resserré ; cartes d'offres (bas brun) : titre et texte centrés. */
    .parallax__title { font-size: 38px; line-height: 1.25; }
    /* « Un accompagnement, » doit tenir sur une seule ligne (il faut 9,86px de largeur par px de police, avec une marge de 5% pour les autres navigateurs) : la taille suit la largeur de l'écran. */
    .parallax__title--fit { font-size: min(38px, calc((100vw - 46px) / 10.4)); }
    .deal__body { text-align: center; }
    /* Cartes et photos : même espace à gauche et à droite que le diaporama (7px au lieu des 16px du texte, soit 9px de moins). */
    .explore__grid:not(.explore__grid--track), .facts__cards, .deals__grid, .news__grid, .about__images, .welcome__images { margin-inline: -9px; }
    .svc__bar, .svc__side, .contact__panel, .blog-related { margin-inline: -9px; }
    .article-body img { max-width: calc(100% + 18px); margin-inline: -9px; }
    .facts__photo, .facts__card--photo { margin-inline: -9px; }
    .svc__trio img { width: calc(100% + 18px); max-width: none; margin-inline: -9px; }
    /* Dans les encarts crème (déjà à 7px), photos de la galerie et carte de Marion jusqu'aux bords de l'encart ; la carte de Marion garde sa hauteur (421px). */
    .team .gallery__grid { margin-inline: -16px; }
    .team__card--landscape { max-width: none; margin-inline: -16px; }
    .team__card--landscape img { aspect-ratio: auto; height: 421px; }
    .svc__photo { width: calc(100% + 18px); max-width: none; margin-inline: -9px; }
    .explore__grid--track { margin-inline: -9px; }
}

/* ---------- 15. Fil d'Ariane ---------- */
.breadcrumbs {
    font-size: 0.82rem;
    color: var(--color-text-soft);
    padding-block: var(--space-2);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.4em; }
.breadcrumbs a:hover { color: var(--color-brand-hover); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.4em; color: var(--color-border); }

/* ---------- 16. Actualités & conseils (blog) ---------- */
.article-card__cover { margin-bottom: var(--space-2); }
.article-card__category {
    /* Étiquette courte de catégorie, même famille que ".eyebrow"/".footer-heading" (interface,
       pas contenu de lecture) - graisse plafonnée à 600 (aucun 700 chargé pour Plus Jakarta
       Sans, voir "1. Polices"). ".article-meta"/".article-body" ci-dessous restent en General
       Sans : ce sont, eux, du contenu de lecture (date/auteur, corps de l'article). */
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-brand-hover);
}
.article-meta { color: var(--color-text-soft); font-size: 0.85rem; }
.article-body { font-size: 1.05rem; }
.article-body h2 { margin-top: var(--space-5); }
.article-body h3 { margin-top: var(--space-4); }
.article-body figure { margin: var(--space-3) 0; }
.article-body figcaption { font-size: 0.82rem; color: var(--color-text-soft); margin-top: 0.5em; }

/* ---------- 17. Liste des secteurs (pied de page + page mère) ---------- */
/* Repli discret pour resserrer le paragraphe d'intro et la liste de villes juste en dessous
   (voir ".city-list"), sans toucher à ".section-head" ailleurs sur le site : un peu moins d'air
   qu'avant, mais toujours un vrai espacement de section. */
.section-head--tight { margin-bottom: var(--space-3); }
/* Liste de villes éditoriale - chaque destination est un lien avec un contour fin (nom + petite
   pastille flèche), en flux libre ("flex-wrap") plutôt qu'une grille à colonnes fixes. Le nombre
   d'éléments par ligne se déduit naturellement de la largeur disponible et de la longueur de
   chaque nom, sans forcer un découpage 4+3 particulier. Les 7 destinations reçoivent
   rigoureusement le même traitement (contour, cercle, flèche, couleur, survol) : la priorité de
   Wimereux est déjà indiquée dans le texte au-dessus, elle n'a pas besoin d'être répétée par une
   différence graphique ici. */
.city-list {
    display: flex;
    flex-wrap: wrap;
    column-gap: var(--space-3);
    row-gap: var(--space-3);
}
.city-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.5em 0.5em 0.5em 1.1em;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-background);
    color: var(--color-text);
    font-weight: 500;
    transition: border-color var(--transition);
}
.city-link:hover,
.city-link:focus-visible {
    border-color: var(--color-brand);
}
/* Pastille circulaire fine avec flèche diagonale : même langage graphique que ".btn--arrow"
   (Type 2), mais à l'échelle d'un simple lien de liste plutôt que d'un gros bouton capsule -
   contour fin plutôt que remplissage plein, pas de padding de bouton. Un seul jeu de valeurs,
   partagé par les 7 villes sans exception. */
.city-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 1.7em;
    height: 1.7em;
    border-radius: 50%;
    border: 1px solid var(--color-brand);
    color: var(--color-brand);
    transition: background-color var(--transition), color var(--transition);
}
.city-link__icon svg { width: 46%; height: 46%; transition: transform var(--transition); }
.city-link:hover .city-link__icon,
.city-link:focus-visible .city-link__icon {
    background: var(--color-brand);
    color: var(--color-on-dark);
}
.city-link:hover .city-link__icon svg,
.city-link:focus-visible .city-link__icon svg {
    transform: translate(0.12em, -0.12em);
}

/* Grandes cartes encadrées d'origine : conservées telles quelles pour "secteurs-intervention.php"
   (page mère "Secteurs d'intervention"), qui les utilise encore - seule la présentation de la
   section équivalente sur la page d'accueil a été remplacée par ".city-list"/".city-link"
   ci-dessus, à titre de test. Ne pas supprimer tant que cette page mère n'a pas été revue elle
   aussi. */
.city-grid { display: grid; gap: var(--space-2); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .city-grid { grid-template-columns: repeat(4, 1fr); } }
.city-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: var(--space-2);
    transition: border-color var(--transition);
}
.city-card:hover { border-color: var(--color-brand); }

/* ---------- 18. Utilitaires ----------
   Remplacent les styles en ligne (interdits par la Content-Security-Policy du site,
   qui n'autorise ni script-src ni style-src en "unsafe-inline"). */
.u-center { text-align: center; }
.maintenance-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3);
}
.maintenance-screen__logo {
    /* img est display:block globalement (voir règle "img, svg" plus haut) : text-align:center
       du parent ne centre donc pas l'image toute seule, il lui faut ses propres marges auto. */
    margin-inline: auto;
    margin-bottom: var(--space-4);
    height: auto;
}
.u-mt-0 { margin-top: 0; }
.u-mt-4 { margin-top: var(--space-4); }
.u-mb-4 { margin-bottom: var(--space-4); }
.u-pt-4 { padding-top: var(--space-4); }
.u-w-full { width: 100%; }
.u-justify-center { justify-content: center; }
.u-align-center { align-items: center; }
.u-color-soft { color: var(--color-text-soft); }
.u-color-error { color: var(--color-error); }
.u-color-inherit { color: inherit; }
.u-fw-400 { font-weight: 400; }
.u-fw-600 { font-weight: 600; }
.u-text-lg { font-size: 1.3rem; }
.u-text-md { font-size: 1.1rem; }
.u-text-sm { font-size: 0.85rem; }
.u-max-32ch { max-width: 32ch; }
.u-max-36 { max-width: 36rem; }
.u-max-40-center { max-width: 40rem; margin-inline: auto; }
.u-max-44 { max-width: 44rem; }
.u-max-44-center { max-width: 44rem; margin-inline: auto; }
.u-max-52-center { max-width: 52rem; margin-inline: auto; }
.u-max-420 { max-width: 420px; }
.u-no-margin { margin: 0; }

/* Ratios fixes des emplacements photo (voir composants/fonctions.php::photo_placeholder) :
   remplace l'ancien "style=aspect-ratio:...", incompatible avec la CSP. */
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-5  { aspect-ratio: 4 / 5; }
.ratio-4-3  { aspect-ratio: 4 / 3; }
.ratio-8-5  { aspect-ratio: 8 / 5; }

/* Surtitre posé sur la photo du hero : blanc, en minuscules (majuscule initiale seulement) */
.eyebrow--on-dark { color: var(--color-on-dark); text-transform: none; }

/* Administration du blog */
.admin-card--login { max-width: 380px; margin-inline: auto; margin-top: var(--space-6); }
.installer-shell { max-width: 480px; margin-inline: auto; padding-block: var(--space-4); }
.installer-shell__logo { height: auto; margin-bottom: var(--space-3); }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- 19. Administration du blog ---------- */
.admin-shell {
    background: var(--color-surface);
    max-width: 900px;
    margin-inline: auto;
    padding: var(--space-4) var(--space-2);
}
.admin-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}
.admin-shell table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-background);
}
.admin-shell th, .admin-shell td {
    padding: .6em .8em;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    font-size: .92rem;
}
.admin-shell .tag {
    font-size: .72rem;
    font-weight: 700;
    padding: .2em .6em;
    border-radius: var(--radius-pill);
    background: var(--color-brand-soft);
    color: var(--color-brand-hover);
}
