/* Feuille assemblée par src/build.py (ne pas modifier : modifier les feuilles sources). */
/* ---- site.css ---- */
/* Impulsio : feuille de style commune (une seule main). */

@font-face { font-family: Montserrat; src: url(../../fonts/Montserrat-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Montserrat; src: url(../../fonts/Montserrat-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Montserrat; src: url(../../fonts/Montserrat-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Montserrat; src: url(../../fonts/Montserrat-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Montserrat; src: url(../../fonts/Montserrat-ExtraBold.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: Montserrat; src: url(../../fonts/Montserrat-Black.woff2) format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: Montserrat; src: url(../../fonts/Montserrat-BoldItalic.woff2) format('woff2'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(../../fonts/JetBrainsMono-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat Repli"; src: local("Arial"); size-adjust: 112%; ascent-override: 92%; descent-override: 24%; }

:root {
  --navy: #112B3C;
  --nuit: #0A1A26;
  --abysse: #06121B;
  --papier: #F3F3F1;
  --blanc: #FFFFFF;
  --orange: #F66B0E;
  --orange-btn: #E35F0A;
  --encre: var(--navy);
  --mention: #56677A;
  --mention-sombre: #9DB0BF;
  --ligne: rgba(17, 43, 60, .12);
  --ligne-sombre: rgba(255, 255, 255, .12);
  --vert: #1F9D63;
  --f: Montserrat, "Montserrat Repli", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease-sortie: cubic-bezier(.22, 1, .36, 1);
  --ease-doux: cubic-bezier(.16, 1, .3, 1);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);
  --ease-rideau: cubic-bezier(.77, 0, .18, 1);
  --ease-rebond: cubic-bezier(.34, 1.56, .64, 1);
  --gouttiere: clamp(20px, 4.6vw, 72px);
  --max: 1380px;
  --entete-h: 78px;
  --t-xl: clamp(2.55rem, 1.2rem + 5.4vw, 6.4rem);
  --t-l: clamp(2.05rem, 1.25rem + 3.3vw, 4.4rem);
  --t-m: clamp(1.45rem, 1.1rem + 1.3vw, 2.2rem);
  --t-s: clamp(1.15rem, 1.02rem + .45vw, 1.4rem);
  --chapo: clamp(1.08rem, .98rem + .45vw, 1.32rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
html.rm:focus-within { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--f);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--encre);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.025em; line-height: 1.04; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.evitement { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.evitement:focus { top: 12px; }
.lecteur { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.conteneur { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gouttiere); }

/* ---------- Sections ---------- */
.s { position: relative; padding-block: clamp(84px, 11vw, 170px); }
.s-papier { background: var(--papier); }
.s-blanc { background: var(--blanc); }
.s-nuit { background: var(--nuit); color: #fff; }
.s-nuit .mention, .s-nuit .chapo { color: var(--mention-sombre); }

/* ---------- Typographie ---------- */
.titre-xl { font-size: var(--t-xl); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.titre-l { font-size: var(--t-l); font-weight: 800; letter-spacing: -.03em; line-height: 1.03; }
.titre-m { font-size: var(--t-m); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.titre-s { font-size: var(--t-s); font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.chapo { font-size: var(--chapo); line-height: 1.6; color: var(--mention); max-width: 40em; }
.mention { color: var(--mention); }
.point { color: var(--orange); }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0; }
.texte p + p { margin-top: 1em; }
.texte { max-width: 38em; }
.texte strong { font-weight: 700; }

/* Titres découpés en mots pour l'apparition */
.js .decoupe .mot { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js .decoupe .mot > span { display: inline-block; transform: translateY(108%); transition: transform 1s var(--ease-doux); transition-delay: calc(var(--i, 0) * 45ms); }
.js .decoupe.est-vu .mot > span { transform: none; }
.js [data-apparait] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-sortie), transform .95s var(--ease-doux); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-apparait].est-vu { opacity: 1; transform: none; }
html.rm .decoupe .mot > span, html.rm [data-apparait] { transform: none !important; opacity: 1 !important; transition: none !important; }

/* ---------- Boutons et liens ---------- */
.btn {
  --fond: var(--navy); --texte: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 54px; padding: .9em 1.55em; border-radius: 999px; border: 0;
  background: var(--fond); color: var(--texte); text-decoration: none; cursor: pointer;
  font-family: var(--f); font-weight: 700; font-size: 1rem; line-height: 1.2; letter-spacing: -.005em;
  transition: transform .45s var(--ease-doux), background-color .3s, box-shadow .45s var(--ease-doux);
  will-change: transform;
}
.btn .fleche { width: 1.05em; height: 1.05em; transition: transform .45s var(--ease-doux); }
.btn:hover .fleche { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--orange { --fond: var(--orange-btn); --texte: #fff; }
.btn--orange:hover { --fond: #d45607; }
.btn--navy:hover { --fond: #0b1f2c; }
.btn--blanc { --fond: #fff; --texte: var(--navy); }
.btn--ligne { --fond: transparent; --texte: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--petit { min-height: 44px; padding: .65em 1.2em; font-size: .9375rem; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { box-shadow: 0 14px 30px -12px rgba(10, 26, 38, .45); }
}
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; } }

.lien {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 700; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  padding-bottom: 3px; transition: background-size .5s var(--ease-doux);
}
.lien:hover { background-size: 0 1.5px; background-position: 100% 100%; }
.lien .fleche { width: 1em; height: 1em; transition: transform .45s var(--ease-doux); }
.lien:hover .fleche { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }

/* ---------- En-tête ---------- */
.entete { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--navy); transition: transform .5s var(--ease-doux), color .15s; }
.entete::before {
  content: ""; position: absolute; inset: 0; background: rgba(243, 243, 241, .86);
  opacity: 0; transition: opacity .35s; border-bottom: 1px solid var(--ligne);
}
/* Par défaut (sans script) : texte navy, lisible sur un haut de page clair.
   Pages à héros sombre : la classe sur-sombre est posée dans le HTML par le générateur, puis suivie par site.js. */
.entete.fond::before { opacity: 1; }
.entete.sur-sombre { color: #fff; }
.entete.sur-sombre::before { opacity: 0; }
.entete.sur-sombre.sur-sombre-plein::before { background: rgba(10, 26, 38, .82); border-color: var(--ligne-sombre); opacity: 1; }
@media (min-width: 1081px) {
  .entete.fond::before, .entete.sur-sombre-plein::before { -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); }
}
.entete.cache { transform: translateY(-100%); }
.entete-in { position: relative; display: flex; align-items: center; gap: 28px; height: var(--entete-h); max-width: var(--max); margin-inline: auto; padding-inline: var(--gouttiere); }
.entete-logo { position: relative; display: block; width: 132px; flex: none; }
.entete-logo img { width: 100%; transition: opacity .15s; }
.entete-logo .logo-blanc { position: absolute; inset: 0; opacity: 0; }
.entete.sur-sombre .logo-blanc { opacity: 1; }
.entete.sur-sombre .logo-navy { opacity: 0; }
.nav { margin-left: auto; }
.nav-liste { display: flex; gap: 6px; align-items: center; }
.nav-lien {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border: 0; background: none; cursor: pointer;
  font-weight: 600; font-size: .9375rem; text-decoration: none; color: inherit; border-radius: 999px; transition: color .25s;
}
.nav-lien svg { transition: transform .35s var(--ease-doux); }
.nav-lien[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-lien:hover, .nav-lien[aria-current="page"] { color: var(--orange); }
.entete-actions { display: flex; align-items: center; gap: 18px; }
.langue, .connexion { font-weight: 600; font-size: .9375rem; text-decoration: none; transition: color .25s; }
.langue { font-family: var(--mono); font-size: .875rem; letter-spacing: .04em; }
.langue:hover, .connexion:hover { color: var(--orange); }
.burger { display: none; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease-doux), top .45s var(--ease-doux); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 27px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* Méga-menu produits */
.nav-produits { position: static; }
.mega {
  position: absolute; left: 50%; top: calc(var(--entete-h) - 8px); width: min(1160px, calc(100vw - 2 * var(--gouttiere)));
  transform: translate(-50%, -10px); opacity: 0; visibility: hidden; pointer-events: none;
  background: #fff; color: var(--navy); border-radius: 24px; padding: 18px;
  box-shadow: 0 40px 80px -30px rgba(6, 18, 27, .45), 0 0 0 1px var(--ligne);
  transition: opacity .3s, transform .45s var(--ease-doux), visibility 0s .45s;
}
.nav-produits.ouvert .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition: opacity .3s, transform .45s var(--ease-doux), visibility 0s; }
.mega-liste { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.mega-item { display: grid; gap: 4px; padding: 10px 10px 16px; border-radius: 16px; text-decoration: none; transition: background-color .25s; }
.mega-item:hover, .mega-item:focus-visible { background: var(--papier); }
.mega-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; transition: transform .6s var(--ease-doux); }
.mega-item:hover img { transform: translateY(-4px) scale(1.04); }
.mega-nom { font-weight: 700; font-size: .9375rem; line-height: 1.25; }
.mega-desc { font-size: .8125rem; line-height: 1.4; color: var(--mention); }

/* Menu mobile */
.menu-mobile { display: none; }
@media (max-width: 1080px) {
  .nav, .connexion, .entete-cta { display: none; }
  .burger { display: block; }
  .entete-actions { margin-left: auto; gap: 8px; }
  .menu-mobile {
    display: block; position: fixed; inset: 0; z-index: -1; background: var(--nuit); color: #fff;
    overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s;
  }
  .entete.menu-ouvert .menu-mobile { opacity: 1; visibility: visible; transition: opacity .35s, visibility 0s; }
  .entete.menu-ouvert { color: #fff; }
  .entete.menu-ouvert::before { opacity: 0; }
  .entete.menu-ouvert .logo-blanc { opacity: 1; }
  .entete.menu-ouvert .logo-navy { opacity: 0; }
  .entete.menu-ouvert.fond::before { opacity: 0; }
  .menu-mobile-in { padding: calc(var(--entete-h) + 12px) var(--gouttiere) 40px; display: grid; gap: 28px; }
  .menu-mobile-titre { font-family: var(--mono); font-size: .8125rem; color: var(--mention-sombre); }
  .menu-mobile-produits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-top: -14px; }
  .menu-mobile-produits .mega-item { padding: 6px 0 10px; }
  .menu-mobile-produits .mega-item img { width: 62%; margin-bottom: 4px; }
  .menu-mobile-produits .mega-nom { font-size: 1rem; }
  .entete.menu-ouvert .menu-mobile-produits li, .entete.menu-ouvert .menu-mobile-liens li { animation: menu-monte .7s var(--ease-doux) both; }
  .menu-mobile-produits li:nth-child(2) { animation-delay: 40ms !important; }
  .menu-mobile-produits li:nth-child(3) { animation-delay: 80ms !important; }
  .menu-mobile-produits li:nth-child(4) { animation-delay: 120ms !important; }
  .menu-mobile-produits li:nth-child(5) { animation-delay: 160ms !important; }
  .menu-mobile-produits li:nth-child(6) { animation-delay: 200ms !important; }
  .menu-mobile-liens li { animation-delay: 240ms !important; }
  .menu-mobile-produits .mega-item:hover { background: none; }
  .menu-mobile-produits .mega-desc { color: var(--mention-sombre); }
  .menu-mobile-liens { display: grid; gap: 4px; border-top: 1px solid var(--ligne-sombre); padding-top: 18px; }
  .menu-mobile-liens a { display: block; padding: 8px 0; font-weight: 700; font-size: 1.375rem; text-decoration: none; }
  body.menu-bloque { overflow: hidden; }
}
@media (max-width: 420px) { .entete-logo { width: 116px; } }
@keyframes menu-monte { from { opacity: 0; transform: translateY(24px); } }
html.rm .menu-mobile li { animation: none !important; }

/* ---------- Scènes 3D ---------- */
.scene3d { position: relative; }
.vue-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.scene3d .repli { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .6s; }
.scene3d.gl-pret .repli { opacity: 0; }
html.sans-gl .scene3d .repli { opacity: 1 !important; }

/* Bandeau de consentement aux cookies (mesure d'audience) : discret, en bas à droite, Refuser et Accepter
   de même poids */
.cookies-bandeau { position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 250; display: flex; justify-content: flex-end; pointer-events: none; }
.cookies-bandeau[hidden] { display: none; }
.cookies-corps { pointer-events: auto; width: min(420px, 100%); padding: 20px 22px; border-radius: 16px; background: #fff; color: var(--navy); box-shadow: 0 24px 60px -24px rgba(6, 18, 27, .45), 0 0 0 1px rgba(17, 43, 60, .08); }
.cookies-titre { margin: 0 0 6px; font-weight: 700; font-size: 1.0625rem; }
.cookies-corps p { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--mention); }
.cookies-corps p a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.cookies-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.cookies-actions .btn { width: 100%; justify-content: center; }
@media (prefers-reduced-motion: no-preference) { .cookies-bandeau:not([hidden]) .cookies-corps { animation: cookies-entree .4s var(--ease-doux) both; } }
@keyframes cookies-entree { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Écran d'accueil : le logo sur fond nuit le temps que la 3D de la page se prépare (au moins 1 s au premier
   passage, quelques dixièmes ensuite, 3,2 s au plus) ; puis fondu, la page apparaît prête. */
.ecran-accueil { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; align-content: center; gap: 28px; background: var(--abysse); transition: opacity .55s var(--ease-sortie), visibility 0s .55s; }
.ecran-accueil img { width: min(210px, 50vw); height: auto; animation: accueil-logo 1.1s var(--ease-doux) both; }
.ecran-accueil i { position: relative; display: block; width: min(150px, 38vw); height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.ecran-accueil i::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: left; animation: accueil-barre 2.6s cubic-bezier(.2, .7, .2, 1) .15s both; }
@keyframes accueil-logo { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes accueil-barre { to { transform: scaleX(.94); } }
html.accueil-fini .ecran-accueil { opacity: 0; visibility: hidden; pointer-events: none; }
html.accueil-fini .ecran-accueil i::after { transform: scaleX(1); transition: transform .3s; }
html:not(.accueil-fini) body { overflow: hidden; }
html:not(.js) .ecran-accueil { display: none; }
html.rm .ecran-accueil img, html.rm .ecran-accueil i::after { animation: none; }
/* 3D possible : pas d'image d'attente (son cadrage n'est jamais exactement celui de la 3D, d'où un
   décalage au démarrage) ; la scène apparaît en fondu, déjà en place. L'image revient si la 3D échoue
   (sans-gl) ou tarde (repli-secours, posé par site.js). */
html.gl:not(.sans-gl) .scene3d:not(.repli-secours) .repli { opacity: 0; transition: none; }
.scene3d > .vue-gl { transition: opacity .7s var(--ease-sortie); }
.scene3d:not(.gl-vu) > .vue-gl { opacity: 0; }   /* fondu dès la première image réellement rendue */
html.sans-gl .vue-gl { display: none; }

/* ---------- Chiffres ---------- */
.chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(24px, 4vw, 64px); }
.chiffre-val { display: flex; align-items: baseline; gap: .06em; font-weight: 800; font-size: clamp(2.8rem, 1.6rem + 4vw, 5.4rem); letter-spacing: -.04em; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chiffre-val small { font-size: .45em; letter-spacing: -.02em; }
.chiffre-pre { display: block; font-size: .875rem; font-weight: 600; color: var(--mention); margin-bottom: 6px; }
.chiffre-lib { margin-top: 12px; font-size: .9375rem; line-height: 1.45; color: var(--mention); max-width: 15em; }
.s-nuit .chiffre-lib, .s-nuit .chiffre-pre { color: var(--mention-sombre); }
@media (max-width: 860px) { .chiffres { grid-template-columns: 1fr 1fr; } }
.odo { display: inline-flex; overflow: hidden; height: 1em; line-height: 1; }
.odo-col { display: flex; flex-direction: column; align-self: flex-start; transition: transform 1.6s var(--ease-doux); transition-delay: calc(var(--c, 0) * 90ms); }
/* chaque chiffre garde exactement 1em : Safari (iPhone) les écrasait, la colonne montait trop haut */
.odo-col span { display: block; flex: 0 0 1em; height: 1em; line-height: 1; }

/* ---------- Logos ---------- */
.defile { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.defile-piste { display: flex; width: max-content; animation: defile 38s linear infinite; }
.defile:hover .defile-piste { animation-play-state: paused; }
.defile-groupe { display: flex; align-items: center; gap: clamp(48px, 7vw, 110px); padding-right: clamp(48px, 7vw, 110px); }
.defile-groupe img { height: clamp(38px, 4.4vw, 58px); width: auto; opacity: .9; }
.s-nuit .defile-groupe img, .logos-blancs img { filter: brightness(0) invert(1); opacity: .82; }
@keyframes defile { to { transform: translateX(-50%); } }
html.rm .defile-piste { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
html.rm .defile-groupe { flex-wrap: wrap; justify-content: center; row-gap: 28px; padding-right: 0; }
html.rm .defile-groupe + .defile-groupe { display: none; }
html.rm .defile { -webkit-mask-image: none; mask-image: none; }

/* ---------- Pied de page ---------- */
.pied { background: var(--abysse); color: #fff; padding: clamp(70px, 9vw, 120px) 0 36px; }
.pied-haut { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 48px; }
.pied-logo { width: 190px; margin-bottom: 22px; }
.pied-marque p { color: var(--mention-sombre); max-width: 26em; font-size: .9375rem; }
.pied-titre { font-family: var(--mono); font-size: .8125rem; color: var(--mention-sombre); margin-bottom: 16px; }
.pied-col ul { display: grid; gap: 10px; font-size: .9375rem; }
.pied-col a { text-decoration: none; transition: color .25s; }
.pied-col a:hover { color: var(--orange); }
.pied-reseaux { display: flex; gap: 18px; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--ligne-sombre); font-size: .8125rem; color: var(--mention-sombre); }
.pied-bas a { text-decoration: none; }
.pied-bas a:hover { color: #fff; }
.pied-cookies { padding: 0; border: 0; background: none; font: inherit; color: inherit; line-height: inherit; cursor: pointer; transition: color .25s; }
.pied-cookies:hover { color: #fff; }
@media (max-width: 980px) { .pied-haut { grid-template-columns: 1fr 1fr; } .pied-marque { grid-column: 1 / -1; } }
@media (max-width: 520px) { .pied-haut { grid-template-columns: 1fr; } }

/* Badge officiel Codexe (Site CODEXE/badge/badge-codexe.html), dinosaure qui saute au survol */
.pied-credit { margin: 0; }
.codexe-badge{--codexe-h:16px;display:inline-flex;align-items:center;gap:.45em;position:relative;color:inherit;text-decoration:none;font:600 .8em/1 system-ui,sans-serif;letter-spacing:.02em;white-space:nowrap}
.codexe-badge:hover,.codexe-badge:focus-visible{text-decoration:none}
.codexe-badge .codexe-wm{height:var(--codexe-h);width:auto;display:block;position:relative;z-index:1}
.codexe-badge .codexe-dino{position:absolute;left:-.1em;bottom:calc(var(--codexe-h) * .05);height:calc(var(--codexe-h) * .95);width:auto;opacity:0;transform:translate(.4em,0);transition:transform .32s steps(6,end),opacity .12s;pointer-events:none;image-rendering:pixelated}
.codexe-badge:hover .codexe-dino,.codexe-badge:focus-visible .codexe-dino{opacity:1;animation:codexe-saut .62s steps(8,end) 1;transform:translate(calc(var(--codexe-h) * -1.9),0)}
@keyframes codexe-saut{0%{transform:translate(.4em,0)}35%{transform:translate(calc(var(--codexe-h) * -1),calc(var(--codexe-h) * -.9))}70%{transform:translate(calc(var(--codexe-h) * -1.9),0)}85%{transform:translate(calc(var(--codexe-h) * -1.9),calc(var(--codexe-h) * -.25))}100%{transform:translate(calc(var(--codexe-h) * -1.9),0)}}
@media (prefers-reduced-motion:reduce){.codexe-badge .codexe-dino{transition:none;animation:none!important}}

/* ---- legal.css ---- */
/* Pages de texte : mentions légales, confidentialité, CGV, tutoriels clients, page introuvable.
   Une colonne d'environ 65 caractères, titres hiérarchisés, listes, liens soulignés. */

.legal { padding-top: calc(var(--entete-h) + clamp(44px, 7vw, 112px)); }
.legal-tete .titre-xl { max-width: 12em; }
.legal-tete .chapo { margin-top: clamp(18px, 2vw, 28px); max-width: 36em; }

/* ---------- Texte long ---------- */
.legal-texte {
  max-width: 65ch; margin-top: clamp(48px, 6vw, 92px);
  font-size: 1.0625rem; line-height: 1.72; overflow-wrap: break-word;
}
.legal-texte > :first-child { margin-top: 0; }
.legal-texte h2 {
  margin-top: 2.6em; scroll-margin-top: calc(var(--entete-h) + 24px);
  font-size: clamp(1.32rem, 1.12rem + .8vw, 1.72rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.18;
}
.legal-texte h3 {
  margin-top: 1.9em; scroll-margin-top: calc(var(--entete-h) + 24px);
  font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3;
}
.legal-texte h2 + p, .legal-texte h3 + p, .legal-texte h2 + ul, .legal-texte h3 + ul, .legal-texte h2 + h3 { margin-top: .75em; }
.legal-texte p, .legal-texte ul { margin-top: 1em; }
.legal-texte ul { padding-left: 1.3em; }
.legal-texte li + li { margin-top: .45em; }
.legal-texte li::marker { color: var(--orange); }
.legal-texte strong { font-weight: 700; }
.legal-texte a:not(.btn) { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .25s; }
.legal-texte a:not(.btn):hover { color: var(--orange-btn); }
.legal-texte .legal-note { color: var(--mention); font-size: .9375rem; }
.legal-texte hr { margin: 2.6em 0 0; border: 0; border-top: 1px solid var(--ligne); }
.legal-a-completer { font-weight: 700; color: var(--orange-btn); }

/* ---------- Tutoriels clients ---------- */
.tutos { max-width: 920px; margin-top: clamp(44px, 5vw, 80px); border-top: 1px solid var(--ligne); }
.tuto {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 32px; align-items: center;
  padding-block: 26px; border-bottom: 1px solid var(--ligne);
}
.tuto-titre { font-size: var(--t-s); font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.tuto-portee { grid-column: 1; color: var(--mention); font-size: .9375rem; }
.tuto .lien { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; }
.tutos-note { margin-top: 28px; max-width: 65ch; color: var(--mention); font-size: .9375rem; }
@media (max-width: 640px) {
  .tuto { grid-template-columns: minmax(0, 1fr); padding-block: 22px; }
  .tuto .lien { grid-column: 1; grid-row: auto; margin-top: 10px; justify-self: start; }
}

/* ---------- Page introuvable ---------- */
.introuvable-bloc + .introuvable-bloc { margin-top: clamp(56px, 7vw, 104px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--ligne); }
.introuvable-bloc .chapo { margin-top: clamp(16px, 1.8vw, 24px); }
.introuvable-bloc .actions { margin-top: clamp(26px, 3vw, 38px); }
.introuvable-autre .titre-l { font-size: var(--t-m); }
.legal-tete .actions { margin-top: clamp(24px, 2.6vw, 34px); }
