/* Le site public d'un cabinet — couche 2 du contrat de charte (contrat-charte-marque-blanche.md).
   Cette feuille ne connaît aucune couleur de cabinet : tout arrive par /theme.css (`--cab-*`),
   calculé par le serveur depuis les réglages — deux couleurs, une paire de polices, un rayon.
   Les encres sont choisies par luminance côté serveur, à 4,5:1 au moins.
   Aucune ressource extérieure, aucune règle en ligne : la CSP n'en admettrait pas. */
:root {
  /* La couleur principale et ses deux profondeurs, l'accent et ses variantes. */
  --nuit: var(--cab-primaire); --nuit-2: var(--cab-primaire-2); --nuit-3: var(--cab-primaire-3);
  --cuivre: var(--cab-accent); --cuivre-texte: var(--cab-accent-texte); --cuivre-bouton: var(--cab-accent-bouton);
  --cuivre-texte-surface: var(--cab-accent-texte-surface);   /* l'accent posé sur une bande de surface */
  --cuivre-clair: var(--cab-accent-clair); --rose: var(--cab-accent-clair);
  --champagne: var(--cab-surface); --porcelaine: var(--cab-surface-2);
  --porcelaine-3: color-mix(in srgb, var(--cab-surface-2) 82%, var(--cab-accent));
  --blanc: var(--cab-fond); --charbon: color-mix(in srgb, var(--cab-primaire) 20%, #1F1F24);
  /* L'encre et ses gris : mesurés sur le fond clair, aucun ne descend sous 5:1. */
  --encre: color-mix(in srgb, var(--cab-primaire) 10%, #1F1F24); --encre-2: #454B53; --gris: #5B646E; --gris-2: #4A5058;
  --sur-nuit: #E9E4DE; --ligne: rgba(31,31,36,.12);
  --serif: var(--cab-serif); --sans: var(--cab-sans);
  --r: var(--cab-radius); --r-s: max(2px, calc(var(--cab-radius) * .65)); --r-cta: calc(var(--cab-radius) * 2 + 2px); --large: 1180px;
  --ressort: cubic-bezier(.16,1,.3,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.site { margin: 0; background: var(--blanc); color: var(--encre);
  font-family: var(--sans); font-size: 16px; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--cuivre-texte); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: .002em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.06; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.14; }
h3 { font-size: 21px; line-height: 1.25; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--large); margin: 0 auto; padding: 0 26px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--nuit); color: var(--cab-primaire-encre); padding: 10px 14px; border-radius: var(--r-s); z-index: 20; }
/* L'anneau de focus doit se voir sur une photo comme sur la nuit du pied de page : deux tons,
   un clair cerné d'un sombre, plutôt qu'un cuivre qui frôle le seuil sur chaque fond. */
:focus-visible { outline: 2px solid #FDFBFA; outline-offset: 2px; box-shadow: 0 0 0 4px #8A5635; }

/* — Le mot manuscrit : un serif en italique, jamais une police décorative importée — */
.plume { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--cuivre-texte); line-height: 1.3; }
.eyebrow { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gris); font-weight: 600; }

/* — Entête — */
.site-h { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--blanc) 97%, transparent);
  border-bottom: 1px solid var(--ligne);
  transition: box-shadow .4s ease, background-color .4s ease; }
@media (min-width: 901px) {
  .site-h { background: color-mix(in srgb, var(--blanc) 94%, transparent); backdrop-filter: saturate(140%) blur(8px); }
}
.site-h.pose { box-shadow: 0 6px 28px rgba(var(--cab-primaire-rgb),.09); background: color-mix(in srgb, var(--blanc) 98%, transparent); }
.site-h .wrap { display: flex; align-items: center; gap: 26px; height: 74px; }
@media (min-width: 1001px) {
  .site-h .wrap { transition: height .4s var(--ressort); }
  .site-h.pose .wrap { height: 62px; }
}
.logo { display: flex; align-items: center; gap: 11px; color: var(--nuit); }
.logo img { width: 38px; height: 38px; }
/* Le monogramme du premier jour : les initiales dans une plaque à filet de 2 px. */
.logo .mono { display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--nuit);
  border-radius: var(--r-s); font-family: var(--serif); font-size: 17px; font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.logo b { font-family: var(--serif); font-size: 15.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; line-height: 1.15; display: block; }
.logo b i { font-style: normal; display: block; }
.site-nav { display: flex; gap: clamp(15px, 2.1vw, 26px); margin-left: auto; }
.site-nav a { color: var(--encre); font-size: 14.5px; position: relative; padding-bottom: 3px;
  white-space: nowrap; transition: color .28s ease; }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--cuivre); transform: scaleX(0); transform-origin: right center;
  transition: transform .34s var(--ressort); }
.site-nav a:hover { color: var(--cuivre-texte); text-decoration: none; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
/* Les appels à l'action. Chaque fond porte l'encre que le serveur lui a choisie : jamais moins de 4,5:1. */
.cta { display: inline-flex; align-items: center; gap: 8px; background: var(--cab-primaire-bouton); color: #fff;
  padding: 11px 20px; border-radius: var(--r-cta); font-size: 14px; font-weight: 600; border: 1px solid var(--cab-primaire-bouton); }
.cta { transition: background-color .32s ease, border-color .32s ease, color .32s ease,
  transform var(--dur-tick, 140ms) var(--ressort), box-shadow var(--dur-tick, 140ms) ease; }
.cta:hover { background: var(--cuivre-bouton); border-color: var(--cuivre-bouton); color: #fff; text-decoration: none;
  transform: translateY(-2px); box-shadow: 0 10px 22px rgba(var(--cab-accent-rgb),.28); }
.cta:active { transform: translateY(0); box-shadow: none; }
.cta.clair { background: transparent; color: var(--nuit); }
.cta.contour { background: transparent; color: var(--champagne); border-color: color-mix(in srgb, var(--champagne) 50%, transparent); }
.cta.contour:hover { background: var(--champagne); border-color: var(--champagne); color: var(--nuit); }
.cta.clair:hover { background: var(--cab-primaire-bouton); color: #fff; }
.cta.accent { background: var(--cuivre-bouton); border-color: var(--cuivre-bouton); color: #fff; }
.cta.accent:hover { background: var(--cab-primaire-bouton); border-color: var(--cab-primaire-bouton); }
.cta .court { display: none; }
.cta { white-space: nowrap; }

/* — Bandeau d'ouverture — un plan, pas une bannière.
     Fond dans la couleur principale, lumière de l'accent venue de la droite, vignetage et grain.
     Tout est en dégradés : aucune image externe. — */
.hero { position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(540px, 78vh, 760px); display: flex; flex-direction: column; justify-content: center;
  color: var(--sur-nuit);
  background: linear-gradient(168deg, var(--nuit-2) 0%, var(--nuit) 46%, var(--nuit-3) 100%); }
.hero-plans { position: relative; z-index: 1; display: grid; flex: 1; min-height: 0; }
/* Le fondu enchaîné. Le plan qui arrive passe DEVANT et monte seul ; celui qui part garde sa
   pleine opacité tout le temps du fondu, puis s'efface d'un coup une fois caché. */
.hero-plan { position: relative; grid-area: 1 / 1; display: flex; align-items: center; min-width: 0;
  contain: paint; z-index: 1; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0s linear .75s, visibility 0s linear .75s; }
.hero-plan[data-actif] { z-index: 2; opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .75s cubic-bezier(.32,0,.24,1), visibility 0s; }
/* La photo du produit occupe le cadre, sous l'étalonnage. Le sujet est cadré à droite : la gauche
   appartient au texte. Deux couches : le cadre porte la dérive au défilement (écrite par le script
   via le CSSOM), la photo n'a plus de mouvement de caméra — la dérive suffit, et elle ne coûte
   rien à qui a demandé moins d'animations. */
.hero-cadre { position: absolute; inset: -3% 0; overflow: hidden; }
.hero-photo { display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 72% 42%; }
.hero-cadre[data-cadrage="droite-haut"] .hero-photo { object-position: 72% 24%; }
.hero-cadre[data-cadrage="droite-bas"] .hero-photo { object-position: 72% 66%; }
.hero-cadre[data-cadrage="centre-milieu"] .hero-photo { object-position: 50% 46%; }
.hero-cadre[data-cadrage="centre-haut"] .hero-photo { object-position: 50% 26%; }
.hero-cadre[data-cadrage="centre-bas"] .hero-photo { object-position: 50% 68%; }
.hero-cadre[data-cadrage="gauche-milieu"] .hero-photo { object-position: 26% 46%; }
.hero-plan:is([data-actif], [data-sort]) .hero-cadre,
.hero-plan:is([data-actif], [data-sort]) .hero-etalon { will-change: transform; }
.hero-signe { position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  color: color-mix(in srgb, var(--cuivre-clair) 10%, transparent); pointer-events: none; }
.hero-signe .ic { width: min(46vh, 340px); height: min(46vh, 340px); }
/* La devanture du premier jour : la plaque générative du produit, très en retrait, dans l'accent.
   Elle dérive de 6 % au défilement quand le navigateur sait animer au défilement — et reste
   posée pour qui a demandé moins de mouvement. */
.hero-plaque { position: absolute; right: -6vh; top: 50%; width: min(96vh, 620px); height: min(96vh, 620px);
  margin-top: calc(min(96vh, 620px) / -2); color: var(--cuivre-clair); opacity: .28; pointer-events: none; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-plaque { animation: plaque-derive linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
}
@keyframes plaque-derive { from { transform: translateY(0); } to { transform: translateY(6%); } }
/* Sorti de l'écran, le bandeau s'arrête net. */
.hero.dort .hero-onglet .jauge { animation-play-state: paused; }
/* L'étalonnage d'un plan : le voile qui rend le texte lisible sur une photo, la lumière de
   l'accent, le remplissage clair et le vignetage. Immobile : la lumière ne dérive plus en boucle. */
.hero-etalon { position: absolute; inset: 0; pointer-events: none; }
.hero-etalon::after { content: ''; position: absolute; inset: -8% -4%;
  background:
    linear-gradient(92deg, color-mix(in srgb, var(--nuit-3) 88%, transparent) 0%, color-mix(in srgb, var(--nuit-3) 66%, transparent) 34%, color-mix(in srgb, var(--nuit-3) 20%, transparent) 64%, color-mix(in srgb, var(--nuit-3) 42%, transparent) 100%),
    radial-gradient(58% 84% at 78% 62%, color-mix(in srgb, var(--cuivre) 52%, transparent) 0%, color-mix(in srgb, var(--cuivre) 18%, transparent) 42%, transparent 72%),
    radial-gradient(46% 62% at 12% 16%, color-mix(in srgb, var(--rose) 22%, transparent) 0%, transparent 68%),
    radial-gradient(120% 120% at 50% 50%, transparent 34%, color-mix(in srgb, var(--nuit-3) 42%, transparent) 78%, color-mix(in srgb, var(--nuit-3) 72%, transparent) 100%); }
/* Le dégradé ci-dessus est HORIZONTAL : il assombrit la gauche, là où le texte se tient sur un
   grand écran. Sur un téléphone le titre occupe toute la largeur, et sa fin tombait sur la
   partie claire — 2,6:1 mesuré sur le plan Automobile, 1,5:1 pour le sourcil. On repasse donc
   à un voile vertical sous 720 px : le texte est en bas, l'ombre aussi. */
@media (max-width: 720px) {
  .hero-etalon::after {
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--nuit-3) 50%, transparent) 0%, color-mix(in srgb, var(--nuit-3) 80%, transparent) 42%, color-mix(in srgb, var(--nuit-3) 90%, transparent) 100%),
      radial-gradient(58% 84% at 78% 62%, color-mix(in srgb, var(--cuivre) 28%, transparent) 0%, transparent 72%); }
}

/* Le grain : de fines rayures croisées à très faible opacité, comme une pellicule. */
.hero-grain { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: .28;
  background-image:
    repeating-linear-gradient(37deg, rgba(255,255,255,.045) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(-51deg, rgba(0,0,0,.05) 0 1px, transparent 1px 4px); }

.hero-txt { position: relative; z-index: 1; padding: 34px 26px; max-width: 760px; margin-inline: 0; width: 100%;
  padding-left: max(26px, calc((100vw - var(--large)) / 2 + 26px)); }
.hero-sur { color: var(--cuivre-clair); position: relative; padding-top: 18px; }
.hero-sur::before { content: ""; position: absolute; left: 0; top: 0; width: 54px; height: 2px; background: var(--cuivre); }
.hero-txt h1 { color: var(--champagne); text-shadow: 0 2px 26px color-mix(in srgb, var(--nuit-3) 50%, transparent); margin-top: 16px; }
.hero-txt p.lede { font-size: 18.5px; color: color-mix(in srgb, var(--champagne) 82%, transparent); max-width: 470px; margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
/* L'entrée du texte : les lignes du titre se lèvent derrière un cache, 700 ms, 80 ms d'écart.
   Elle se rejoue à chaque plan. Sous `.anim` seulement : sans script, ou si le visiteur a demandé
   moins d'animations, tout est là, d'aplomb, à l'état final. */
.hero-h1 .ligne { display: block; overflow: hidden; padding: .10em 0 .16em; margin: -.10em 0 -.16em; }
.hero-h1 .ligne i { display: block; font-style: normal; }
.anim .hero-plan[data-actif] .hero-sur,
.anim .hero-plan[data-actif] .hero-txt p.lede,
.anim .hero-plan[data-actif] .hero-actions {
  animation: hero-monte .7s var(--ressort) backwards; }
.anim .hero-plan[data-actif] .hero-sur { animation-delay: .08s; }
.anim .hero-plan[data-actif] .hero-txt p.lede { animation-delay: .34s; }
.anim .hero-plan[data-actif] .hero-actions { animation-delay: .42s; }
@keyframes hero-monte { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.anim .hero-plan[data-actif] .hero-h1 .ligne i {
  animation: hero-ligne .7s var(--ressort) backwards; }
.anim .hero-plan[data-actif] .hero-h1 .ligne:nth-child(1) i { animation-delay: .1s; }
.anim .hero-plan[data-actif] .hero-h1 .ligne:nth-child(2) i { animation-delay: .18s; }
.anim .hero-plan[data-actif] .hero-h1 .ligne:nth-child(3) i { animation-delay: .26s; }
.anim .hero-plan[data-actif] .hero-h1 .ligne:nth-child(4) i { animation-delay: .34s; }
@keyframes hero-ligne { from { transform: translateY(105%); } to { transform: none; } }

/* Les onglets : la liste des produits ferme le plan, et la jauge dit le temps qui reste. */
.hero-onglets { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: relative; }
.hero-onglet { position: relative; display: block; text-align: left; background: none; border: 0;
  border-left: 1px solid color-mix(in srgb, var(--cuivre-clair) 20%, transparent); padding: 17px 22px 19px; cursor: pointer;
  font: inherit; color: color-mix(in srgb, var(--sur-nuit) 72%, transparent); transition: color .35s ease, background-color .35s ease; }
.hero-onglet:first-child { border-left: 0; padding-left: 0; }
.hero-onglet:hover { color: var(--champagne); background: color-mix(in srgb, var(--champagne) 5%, transparent); }
.hero-onglet .num { display: block; font-family: var(--mono, ui-monospace, monospace); font-size: 10.5px; letter-spacing: .2em; color: var(--cuivre-clair);
  opacity: .85; margin-bottom: 5px; }
.hero-onglet .nom { display: block; font-family: var(--serif); font-size: 17px; line-height: 1.2; }
.hero-onglet[aria-selected="true"] { color: var(--champagne); }
.hero-onglet[aria-selected="true"] .num { opacity: 1; }
.hero-onglet .jauge { position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--cuivre); transform: scaleX(0); transform-origin: left center; }
.anim .hero-onglet[aria-selected="true"] .jauge { animation: jauge-avance var(--duree, 7s) linear forwards; }
@keyframes jauge-avance { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-onglets.en-pause .jauge { animation-play-state: paused; }
/* Le bouton d'arrêt : un carrousel qui tourne doit pouvoir être arrêté par qui le regarde. */
.hero-pause { position: absolute; right: 0; top: -46px; display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 6px 12px; border: 1px solid color-mix(in srgb, var(--champagne) 40%, transparent); border-radius: var(--r-cta);
  background: color-mix(in srgb, var(--nuit-3) 60%, transparent); color: var(--champagne); font: inherit; font-size: 12.5px; cursor: pointer; }
.hero-pause:hover { background: var(--champagne); color: var(--nuit); }
.hero-pause .ic { width: 16px; height: 16px; }
.hero-pause[aria-pressed="true"] { background: var(--champagne); color: var(--nuit); }

@media (max-width: 1000px) {
  .hero-onglets { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-onglet { padding: 12px 12px 13px; border-left: 1px solid color-mix(in srgb, var(--cuivre-clair) 18%, transparent);
    border-top: 1px solid color-mix(in srgb, var(--cuivre-clair) 18%, transparent); min-height: 62px; }
  .hero-onglet:nth-child(3n+1) { border-left: 0; }
  .hero-onglet:nth-child(-n+3) { border-top: 0; }
  .hero-onglet:first-child { padding-left: 12px; }
  .hero-onglet .nom { font-size: 14px; line-height: 1.25; }
  .hero-onglet .num { font-size: 10px; margin-bottom: 3px; }
  .hero-pause { right: 12px; }
}
@media (max-width: 560px) {
  .hero-onglets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-onglet:nth-child(3n+1) { border-left: 1px solid color-mix(in srgb, var(--cuivre-clair) 18%, transparent); }
  .hero-onglet:nth-child(odd) { border-left: 0; }
  .hero-onglet:nth-child(-n+3) { border-top: 1px solid color-mix(in srgb, var(--cuivre-clair) 18%, transparent); }
  .hero-onglet:nth-child(-n+2) { border-top: 0; }
}

/* La barre des piliers, sous le plan sur fond clair. */
.piliers { background: var(--blanc); border-bottom: 1px solid var(--ligne); }
.piliers .pilier { border-left-color: var(--ligne); }
.piliers .pilier .ic { color: var(--cuivre-texte); }
.piliers .pilier b { color: var(--nuit); }
.piliers .pilier span { color: var(--gris); }

/* La barre des onglets ferme le plan : du verre sur la nuit. Le flou est réservé aux grands
   écrans, où la machine suit ; ailleurs un fond plus dense tient le même rôle pour rien. */
.hero-bas { position: relative; z-index: 5; margin-top: auto;
  background: color-mix(in srgb, var(--nuit-3) 72%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--cuivre-clair) 26%, transparent); }
@media (min-width: 901px) {
  .hero-bas { background: color-mix(in srgb, var(--nuit-3) 44%, transparent); backdrop-filter: saturate(150%) blur(9px); }
}

/* — Le mouvement au défilement. La classe `anim` vient du script : c'est la seule condition
     sous laquelle on ose masquer un bloc. Pas de script, pas de bloc caché. Chaque bloc entre en
     opacité et 12 px vers le haut. — */
.anim [data-monte] { opacity: 0; transform: translateY(12px);
  transition: opacity .7s var(--ressort), transform .7s var(--ressort);
  transition-delay: calc(var(--i, 0) * 80ms); }
.anim [data-monte].vu { opacity: 1; transform: none; }
/* L'arabe entre par sa propre marge : de la droite, comme il se lit. */
.anim .promesse .ar[data-monte] { transform: translate(16px, 12px); }
.anim .promesse .ar[data-monte].vu { transform: none; }

/* — Les quatre piliers, sous le hero, séparés par des filets — */
.piliers-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.pilier { padding: 22px 26px; border-left: 1px solid color-mix(in srgb, var(--cuivre-clair) 20%, transparent); }
.pilier:first-child { border-left: 0; padding-left: 0; }
.pilier .ic { width: 24px; height: 24px; color: var(--cuivre-clair); margin-bottom: 10px; }
.pilier b { display: block; font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--champagne); }
.pilier span { display: block; font-size: 13.5px; color: color-mix(in srgb, var(--sur-nuit) 66%, transparent); margin-top: 4px; line-height: 1.5; }
/* Le ruban : il glisse avec la page, pas en boucle. Sans défilement animé (vieux navigateur,
   mouvement réduit), c'est un bandeau immobile et lisible. */
.bandeau-mots { overflow: hidden; padding: 15px 0; background: var(--champagne);
  border-bottom: 1px solid var(--ligne);
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gris);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.ruban { display: flex; width: max-content; }
.ruban-groupe { display: flex; align-items: center; gap: 34px; flex: none;
  min-width: 100vw; justify-content: space-around; }
.bandeau-mots .ic { width: 13px; height: 13px; color: var(--cuivre-texte-surface); flex: none; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ruban { animation: ruban-glisse linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes ruban-glisse { from { transform: translate3d(0,0,0); } to { transform: translate3d(-30%,0,0); } }

/* — Sections — */
section.bloc { padding: 84px 0; }
/* Le navigateur ne met en page et ne peint que ce qui approche de l'écran.
   La vitrine est une page longue : six cartes produit, la promesse, les valeurs, l'agence, le
   contact. Sans cela, tout est calculé au premier rendu alors que le visiteur ne voit que le
   bandeau. `contain-intrinsic-size` donne une hauteur présumée pour que la barre de défilement
   garde la bonne taille et ne saute pas quand chaque section est réellement peinte.
   Le bandeau en est exclu : il EST le premier écran, et le différer le ferait apparaître vide. */
@supports (content-visibility: auto) {
  section.bloc { content-visibility: auto; contain-intrinsic-size: auto 900px; }
}
section.bloc.creme { background: var(--champagne); }
section.bloc.nuit { background: var(--nuit); color: var(--sur-nuit); }
section.bloc.nuit h2, section.bloc.nuit h3 { color: #fff; }
.tete { max-width: 640px; margin-bottom: 40px; }
.tete.centre { max-width: none; text-align: center; margin-bottom: 34px; }
.tete .eyebrow { position: relative; display: inline-block; padding-top: 17px; }
.tete .eyebrow::before { content: ''; position: absolute; left: 0; top: 0; width: 48px; height: 2px;
  background: var(--cuivre); transform-origin: left center;
  transition: transform .85s .12s var(--ressort); }
.tete.centre .eyebrow::before { left: 50%; margin-left: -24px; transform-origin: center; }
.anim .tete[data-monte] .eyebrow::before { transform: scaleX(0); }
.anim .tete[data-monte].vu .eyebrow::before { transform: scaleX(1); }
section.bloc.nuit .tete .eyebrow::before { background: var(--rose); }
.plume.pied { font-size: 21px; color: var(--rose); margin: 16px 0 0; }
/* `dir="rtl"` aligne à droite DANS la boîte ; pleine largeur, le nom partait à l'autre bout de
   la grille, loin du logo qu'il nomme. La boîte se réduit donc à son texte. */
.pied-ar { display: inline-block; margin: 12px 0 0; color: rgba(255,255,255,.8); font-size: 15px; }
.tete p { color: var(--gris); font-size: 17px; margin-top: 14px; }
section.bloc.nuit .tete p { color: rgba(255,255,255,.72); }

/* — Produits — */
.produits { display: grid; grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); gap: 22px; }
.produit { display: flex; gap: 0; flex-direction: column; background: var(--blanc);
  border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden;
  transition: transform var(--dur-tick, 140ms) var(--ressort), box-shadow var(--dur-tick, 140ms) ease, border-color var(--dur-tick, 140ms) ease; }
.produit:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--cuivre) 34%, transparent);
  box-shadow: 0 12px 30px rgba(var(--cab-primaire-rgb),.11); }
.produit .vitrine .ic, .produit .vitrine { transition: transform .6s var(--ressort); }
.produit:hover .vitrine .ic { transform: scale(1.09); }
.produit .vitrine { height: 148px; position: relative; overflow: hidden;
  background:
    radial-gradient(72% 90% at 78% 18%, color-mix(in srgb, var(--cuivre) 22%, transparent) 0%, transparent 64%),
    linear-gradient(135deg, var(--porcelaine), var(--porcelaine-3)); }
.produit .vitrine img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ressort); }
.produit:hover .vitrine img { transform: scale(1.05); }
.produit .vitrine .ic { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; color: color-mix(in srgb, var(--nuit) 34%, transparent); }
.produit .corps { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.produit h3 { color: var(--nuit); }
.produit .sous { color: var(--gris); font-size: 14px; margin: 4px 0 14px; }
.produit ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 7px; }
.produit li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--encre-2); }
.produit li .ic { width: 16px; height: 16px; color: var(--cuivre-texte); flex: none; margin-top: 3px; }
.produit .cta { align-self: flex-start; margin-top: auto; }

/* — Valeurs, sur fond nuit — */
.valeurs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; text-align: center; }
.valeur { padding: 8px 22px; border-left: 1px solid rgba(255,255,255,.14); }
.valeur:first-child { border-left: 0; }
.valeur .ic { width: 34px; height: 34px; color: var(--rose); margin: 0 auto 14px;
  transition: transform .5s var(--ressort); }
.valeur:hover .ic { transform: translateY(-2px) scale(1.07); }
.valeur b { display: block; font-family: var(--serif); font-size: 20px; color: #fff; font-weight: 500; }
.valeur span { display: block; font-family: var(--serif); font-style: italic; color: var(--rose); font-size: 16px; margin-top: 2px; }
.trait-mots { text-align: center; margin-top: 44px; font-size: 11.5px; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.6); }

/* — Promesse bilingue — l'arabe dans ses faces, jamais espacé — */
.promesse { display: grid; grid-template-columns: 1.15fr 1fr; gap: 54px; align-items: start; }
.promesse .fr h2 { color: var(--nuit); }
.promesse .ar { text-align: right; direction: rtl; }
.promesse .ar h2 { color: var(--nuit); font-size: clamp(24px, 3vw, 34px); }
.promesse .ar p { color: var(--gris-2); }
.mots-cles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr);
  margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--ligne); }
.mot { padding: 0 20px; border-right: 1px solid var(--ligne); }
.mot:first-child { padding-left: 0; }
.mot:last-child { border-right: 0; }
.mot b { display: block; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--nuit); }
.mot span { display: block; color: var(--cuivre-texte-surface); font-size: 15px; margin-top: 4px; }
/* Tout accent écrit sur la bande de surface : la variante assombrie contre la surface. */
section.bloc.creme a, section.bloc.creme .plume, section.bloc.creme .ic { color: var(--cuivre-texte-surface); }

/* — Contact — */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.coords { display: grid; gap: 14px; margin: 0; }
/* `.coords div` attrapait AUSSI le bloc intérieur, qui passait donc en ligne : sur un
   téléphone, le second numéro, le lien d'itinéraire et surtout l'agrément sortaient de l'écran
   sans barre de défilement pour les rattraper. L'agrément est la licence de vente du cabinet :
   il ne peut pas être la première chose rognée. D'où l'enfant direct, et le bloc dedans. */
.coords > div { display: flex; gap: 12px; align-items: flex-start; }
.coords > div > div { display: block; min-width: 0; }
/* Un numéro de téléphone est la cible la plus touchée du site : 44 px, pas 25. */
.coords a { display: inline-block; min-height: 44px; line-height: 44px; }
.coords a.lien-fin { min-height: 44px; }
.coords .ic { width: 19px; height: 19px; color: var(--cuivre-texte); flex: none; margin-top: 3px; }
.coords b { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.carte-devis { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); padding: 30px; }
.carte-devis h3 { color: var(--nuit); margin-bottom: 6px; }
.carte-devis p { color: var(--gris); font-size: 14.5px; }

/* — Pied — */
.site-f { background: var(--charbon); color: rgba(255,255,255,.66); padding: 46px 0 30px; font-size: 14px; }
.site-f .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.site-f h4 { font-family: var(--serif); color: #fff; font-size: 17px; margin: 0 0 12px; font-weight: 500; }
.site-f a { color: rgba(255,255,255,.66); display: block; padding: 3px 0;
  transition: color .28s ease, transform .28s var(--ressort); }
.site-f a:hover { transform: translateX(3px); }
.site-f a:hover { color: var(--rose); text-decoration: none; }
.site-f .logo b { color: #fff; }
.site-f .logo .mono { border-color: #fff; color: #fff; }
.site-f small { font-size: 12px; color: rgba(255,255,255,.72); }
.site-f .bas { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 18px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255,255,255,.62); }
/* Le pied « by QENTRA » : la marque du produit, dans ses propres couleurs — jamais celles du cabinet. */
.site-by { display: inline-flex; align-items: center; color: rgba(255,255,255,.55); letter-spacing: .04em; --p-qassur: var(--qassur-n); }
.site-by .qm-mot { color: rgba(255,255,255,.55); }

@media (max-width: 980px) {
  .piliers-in, .valeurs { grid-template-columns: 1fr 1fr; }
  .pilier:nth-child(odd) { border-left: 0; padding-left: 0; }
  .pilier:nth-child(n+3) { border-top: 1px solid color-mix(in srgb, var(--cuivre-clair) 18%, transparent); }
  .valeur:nth-child(3) { border-left: 0; }
  .promesse, .contact { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .promesse .ar, .promesse .fr { min-width: 0; }
  .mots-cles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 0; }
  .mot { padding: 0 12px; min-width: 0; }
  .mot:first-child { padding-left: 0; }
  .site-f .wrap { grid-template-columns: 1fr 1fr; }
}
/* Le bouton de menu : il n'apparaît que sur les écrans étroits. */
.site-burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; background: none;
  cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.site-burger span { display: block; height: 2px; background: var(--nuit); border-radius: 2px;
  transition: transform .24s var(--ressort), opacity .18s ease; transform-origin: center; }
.site-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.site-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 1000px) {
  .site-h .wrap { gap: 10px; height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 8px; }
  .site-nav { order: 3; width: 100%; margin-left: 0; gap: 8px 20px; flex-wrap: wrap; }
  .site-nav a { font-size: 14.5px; padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
  .site-h .cta { margin-left: auto; padding: 11px 18px; font-size: 14px; min-height: 44px; }
  .site-h .cta .long { display: none; }
  .site-h .cta .court { display: inline; }
  .logo img, .logo .mono { width: 34px; height: 34px; }
  .logo b { font-size: 13.5px; letter-spacing: .12em; }
}
@media (max-width: 720px) {
  .hero { min-height: 0; }
  .hero-txt { padding: 46px 26px 40px; padding-left: 26px; }
  .hero-txt p.lede { font-size: 16.5px; }
  .hero-plaque { opacity: .16; }
  .pilier:first-child { padding-left: 26px; }
  .valeurs { grid-template-columns: 1fr; }
  .piliers-in { grid-template-columns: 1fr 1fr; }
  .pilier { padding: 15px 16px; }
  .pilier:nth-child(odd) { padding-left: 26px; }
  .pilier:nth-child(even) { padding-right: 26px; }
  .pilier b { font-size: 16px; }
  .pilier span { font-size: 12.5px; }
  .pilier .ic { width: 20px; height: 20px; margin-bottom: 7px; }
  .mots-cles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; }
  .mot:nth-child(odd) { padding-left: 0; }
  .mot:nth-child(even) { border-right: 0; }
  .valeur { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .valeur:first-child { border-top: 0; }
  section.bloc { padding: 56px 0; }
  .site-f .wrap { grid-template-columns: 1fr; }
}
/* Moins de mouvement : chaque animation montre son image finale — rien ne tourne, rien n'attend.
   Le script ne pose pas `.anim` dans ce cas ; ces règles couvrent ce qui ne dépend pas du script. */
@media (prefers-reduced-motion: reduce) {
  .anim [data-monte] { opacity: 1; transform: none; transition: none; }
  .anim .hero-plan[data-actif] .hero-sur, .anim .hero-plan[data-actif] .hero-txt p.lede,
  .anim .hero-plan[data-actif] .hero-actions, .anim .hero-plan[data-actif] .hero-h1 .ligne i,
  .anim .hero-onglet[aria-selected="true"] .jauge { animation: none; }
  .hero-onglet[aria-selected="true"] .jauge { transform: scaleX(1); }
  .hero-plan, .hero-plan[data-actif] { transition: none; }
  .cta, .produit, .valeur .ic, .site-nav a::after, .site-f a, .tete .eyebrow::before, .site-h, .site-h .wrap { transition: none; }
  .cta:hover, .produit:hover, .site-f a:hover { transform: none; }
}

/* Une section visée par une ancre s'arrête SOUS la barre collante. En CSS plutôt qu'en script :
   cela vaut aussi pour un lien partagé, pour le retour arrière, et pour qui a désactivé les
   animations — trois chemins où le calcul en JavaScript ne passait pas. */
#particuliers, #professionnels, #agence, #conseil, #contact, #solutions { scroll-margin-top: 96px; }

/* La porte de l'espace assuré, dans la barre : un client qui vient consulter son dossier la cherche là. */
.site-nav .site-espace { position: relative; padding-left: 16px; }
.site-nav .site-espace::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 15px;
  margin-top: -7px; background: color-mix(in srgb, var(--nuit) 18%, transparent); }

/* ---- Ce qu'un téléphone impose : rien sous 12 px, rien à toucher sous 44 px ---- */
@media (max-width: 620px) {
  .site-burger { display: flex; order: 2; margin-left: 8px; }
  /* Le hamburger prenait l'espace libre, le bouton de devis passait à la ligne et l'en-tête
     collant mangeait 122 px de haut. Le devis d'abord, le hamburger après : une seule rangée. */
  .site-h .cta { order: 1; margin-left: auto; }
  .site-nav { display: none; border-top: 1px solid var(--ligne); padding-top: 6px; margin-top: 4px; }
  .site-nav.ouvert { display: flex; flex-direction: column; gap: 0; }
  .site-nav.ouvert a { width: 100%; min-height: 52px; font-size: 16px; padding: 12px 2px;
    border-bottom: 1px solid var(--ligne); }
  .site-nav.ouvert a:last-child { border-bottom: 0; }
  .site-nav a::after { display: none; }
  .site-nav .site-espace { padding-left: 2px; }
  .site-nav .site-espace::before { display: none; }
  .av-body, body.site { font-size: 16px; }
  .cta { min-height: 46px; padding: 12px 20px; font-size: 14.5px; }
  .pilier span { font-size: 13px; }
  .bandeau-mots { font-size: 11.5px; }
  .produit .cta { width: 100%; justify-content: center; }
  .coords, .carte-devis { font-size: 15px; }
  .site-f a { padding: 11px 0; }
  .site-f .bas { font-size: 13px; }
  /* Le seul bouton qui arrête le défilement des plans ne peut pas être la plus petite cible
     de l'écran, ni perdre son mot. */
  .hero-pause { min-height: 44px; padding: 8px 14px; top: -56px; }
  #particuliers, #professionnels, #agence, #conseil, #contact, #solutions { scroll-margin-top: 136px; }
}

/* ---- La bande de confiance : ce qu'un acheteur vérifie avant de lire le reste ---- */
.bande-confiance { background: var(--porcelaine); border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.bande-confiance .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 10px; padding: 12px 20px; font-size: 13px; color: var(--encre-2); text-align: center; }
.bande-confiance i { color: var(--cuivre-texte); font-style: normal; }

/* ---- La barre d'appel du téléphone : deux cibles, pleine largeur, 56 px ---- */
.barre-tel { display: none; }
@media (max-width: 620px) {
  .barre-tel { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9;
    box-shadow: 0 -2px 18px rgba(0, 0, 0, .18); }
  .barre-tel a { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 56px; font-size: 15.5px; font-weight: 600; letter-spacing: .01em; }
  .barre-tel .appel { background: var(--nuit); color: #fff; }
  .barre-tel .wa { background: var(--cuivre-bouton); color: #fff; }
  .barre-tel a:hover { text-decoration: none; }
  .barre-tel .ic { width: 19px; height: 19px; }
  /* La barre ne doit pas couvrir la fin de la page. */
  body.site { padding-bottom: 56px; }
}

/* ---- Le produit phare : au Maroc l'automobile est obligatoire, c'est elle qui amène ---- */
@media (min-width: 1001px) {
  .produits .produit:first-child { grid-column: span 2; }
  .produits .produit:first-child .vitrine { height: 220px; }
}
/* Un produit sans photo : une plaque assumée, pas une image qui aurait raté son chargement.
   C'est le traitement que le bandeau applique déjà à l'Assistance, descendu sur la carte. */
.produit .vitrine:not(:has(img)) { background:
    radial-gradient(76% 92% at 76% 22%, color-mix(in srgb, var(--cuivre) 34%, transparent) 0%, transparent 66%),
    linear-gradient(135deg, var(--nuit), var(--nuit-2)); }
.produit .vitrine:not(:has(img)) .ic { width: 72px; height: 72px; color: var(--cuivre-clair); opacity: 1; }

/* Un pilier qui mène quelque part : même dessin, mais il se comporte comme un lien. */
.piliers .pilier.lien { color: inherit; text-decoration: none; cursor: pointer; }
.piliers .pilier.lien:hover b { color: var(--cuivre-texte); }

/* Qui demande moins de mouvement n'a pas de défilement à arrêter : le bouton n'a plus d'objet. */
@media (prefers-reduced-motion: reduce) { .hero-pause { display: none; } }

/* L'épingle d'itinéraire : une cible franche, pas une icône posée dans le texte. */
.coords a.lien-carte { display: inline-flex; align-items: center; justify-content: center;
  width: 44px; min-height: 44px; margin-left: -10px; color: var(--cuivre-texte); }
.coords a.lien-carte .ic { width: 20px; height: 20px; }
.coords a.lien-carte:hover { color: var(--nuit); }
