/* 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}}

/* ---- page-contact.css ---- */
/* Page contact : héros sombre avec une carte NFC qui tourne. */

.contact-heros { padding-top: calc(var(--entete-h) + clamp(48px, 7vw, 110px)); padding-bottom: clamp(56px, 7vw, 110px); overflow: hidden; }
.contact-heros-grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.contact-heros .titre-l { max-width: 11.5em; }
.contact-heros .chapo { margin-top: 26px; }
.contact-heros .actions { margin-top: 36px; }
.contact-heros-tel { color: #fff; font-family: var(--mono); font-weight: 500; font-size: 1rem; letter-spacing: .02em; }
.contact-heros-carte { width: 100%; aspect-ratio: 5 / 4; max-height: 520px; }
@media (max-width: 860px) {
  .contact-heros-grille { grid-template-columns: 1fr; }
  .contact-heros-carte { aspect-ratio: 4 / 3; max-width: 520px; margin: -8px auto -24px; }
}

/* ---- composants/contact.css ---- */
/* Bloc contact commun (accueil, pages produits, contact, équipe) et son envoi en carte NFC. */

.contact-grille {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 112px); align-items: start;
}
.contact-intro { padding-top: clamp(4px, 1vw, 16px); }
.contact-questions { margin-top: 28px; }
.contact-accroche { margin-top: 20px; font-weight: 700; font-size: clamp(1.12rem, 1.02rem + .4vw, 1.32rem); line-height: 1.45; max-width: 24em; }
.contact-coord { display: grid; gap: 14px; margin-top: clamp(36px, 4vw, 56px); font-weight: 600; font-size: 1.0625rem; line-height: 1.45; }
.contact-adresse { text-decoration: none; transition: color .25s; }
.contact-adresse:hover { color: var(--orange); }
@media (max-width: 980px) {
  .contact-grille { grid-template-columns: 1fr; }
}

/* ---------- Formulaire ---------- */
.contact-scene { position: relative; }
.contact-form {
  position: relative; z-index: 1; container-type: inline-size;
  display: grid; gap: clamp(22px, 2.2vw, 30px);
  background: #fff; border-radius: 28px; padding: clamp(24px, 3.4vw, 52px);
}
.contact-duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 2.2vw, 30px) 28px; }
@container (max-width: 520px) { .contact-duo { grid-template-columns: 1fr; } }
.contact-champ { position: relative; min-width: 0; margin: 0; padding: 0; border: 0; transform-origin: 50% 0; }
.contact-champ > label, .contact-champ > legend { display: block; padding: 0; font-weight: 600; font-size: .875rem; line-height: 1.3; color: var(--mention); }
.contact-facultatif { font-weight: 500; color: #8a98a5; margin-left: 4px; }
.contact-champ input[type="text"], .contact-champ input[type="email"], .contact-champ input[type="tel"], .contact-champ textarea {
  display: block; width: 100%; margin: 0; padding: .5em 0 .6em; border: 0; border-radius: 0;
  border-bottom: 1.5px solid rgba(17, 43, 60, .2);
  background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat;
  font: 600 1.0625rem/1.4 var(--f); color: var(--navy);
  transition: background-size .5s var(--ease-doux), border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.contact-champ textarea { resize: vertical; min-height: 7.2em; line-height: 1.55; }
.contact-champ input:focus, .contact-champ textarea:focus { outline: none; background-size: 100% 2px; border-color: transparent; }
.contact-champ input:focus-visible, .contact-champ textarea:focus-visible { outline: none; }
.contact-champ.est-invalide input, .contact-champ.est-invalide textarea { border-bottom-color: #c23b28; }
.contact-erreur { margin-top: 7px; font-size: .8125rem; font-weight: 600; line-height: 1.35; color: #b9321f; }

.contact-options { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; margin-top: 10px; }
@container (max-width: 520px) { .contact-options { grid-template-columns: 1fr; } }
.contact-options label { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; cursor: pointer; font-weight: 500; font-size: .96875rem; line-height: 1.4; }
.contact-options input {
  flex: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 50%;
  border: 1.5px solid rgba(17, 43, 60, .35); background: #fff; cursor: pointer;
  -webkit-appearance: none; appearance: none; transition: border-color .25s, box-shadow .35s var(--ease-rebond), background-color .25s;
}
.contact-options input:checked { border-color: var(--orange); background: var(--orange); box-shadow: inset 0 0 0 4px #fff; }
.contact-options input:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.contact-options label:hover input:not(:checked) { border-color: var(--navy); }
.contact-choix.est-invalide .contact-options input:not(:checked) { border-color: #c23b28; }

.contact-piege { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }

.contact-pied { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; }
.contact-rgpd { max-width: 30em; font-size: .8125rem; line-height: 1.5; color: var(--mention); }
.contact-rgpd a { color: inherit; font-weight: 600; }
.contact-envoyer { flex: none; }
@container (max-width: 520px) {
  .contact-pied { flex-direction: column; align-items: stretch; }
  .contact-envoyer { width: 100%; }
}
.contact-echec { font-size: .9375rem; font-weight: 600; line-height: 1.5; color: #b9321f; }
.contact-echec a { color: inherit; }

/* ---------- Envoi animé ---------- */
.contact-scene.anime { overflow-y: clip; }
.contact-scene.anime .contact-form { background: transparent; }
.contact-morph { position: absolute; inset: 0; z-index: 0; pointer-events: none; display: none; }
.contact-scene.anime .contact-morph { display: block; }
.contact-morph-peau { position: absolute; inset: 0; background: #fff; }
.contact-morph canvas { position: absolute; display: block; max-width: none; opacity: 0; }
.contact-3d {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none;
  visibility: hidden; opacity: 0;
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 13%); mask-image: linear-gradient(to top, transparent 0, #000 13%);
}
.contact-scene.anime .contact-3d { visibility: visible; }

.contact-merci { position: absolute; left: 0; right: 0; z-index: 3; display: grid; justify-items: start; gap: 14px; outline: none; }
.contact-merci[hidden] { display: none; }
.contact-merci-texte { max-width: 34em; color: var(--mention); }
.contact-merci-texte strong { color: var(--navy); font-weight: 700; overflow-wrap: anywhere; }
.contact-merci .btn { margin-top: 10px; }

/* Version simple (mouvement réduit, sans WebGL) : la confirmation remplace le formulaire. */
.contact-scene.envoye-simple .contact-form { display: none; }
.contact-scene.envoye-simple .contact-merci { position: static; background: #fff; border-radius: 28px; padding: clamp(28px, 3.4vw, 52px); }
.contact-scene.envoye-simple .contact-merci.apparait { animation: contact-apparait .6s var(--ease-sortie) both; }
@keyframes contact-apparait { from { opacity: 0; transform: translateY(16px); } }
html.rm .contact-scene.envoye-simple .contact-merci.apparait { animation: none; }
.contact-morph-ombre { position: absolute; opacity: 0; box-shadow: 0 22px 34px -14px rgba(10, 26, 38, .32), 0 4px 10px -4px rgba(10, 26, 38, .12); }

/* ---------- Rendez-vous : agenda Cal.com sous le formulaire ---------- */
.contact-rdv { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(28px, 4vw, 72px); align-items: start; margin-top: clamp(64px, 8vw, 120px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--ligne); scroll-margin-top: calc(var(--entete-h) + 16px); }
.contact-rdv-texte p { margin-top: 14px; color: var(--mention); max-width: 30em; }
.contact-rdv-cadre { position: relative; min-height: 660px; }
.contact-rdv-attente { position: absolute; inset: 0 auto auto 0; margin: 0; color: var(--mention); font-size: .9375rem; transition: opacity .4s; }
.contact-rdv-cadre.charge .contact-rdv-attente { opacity: 0; pointer-events: none; }
.contact-rdv-inline { width: 100%; min-height: 660px; }
@media (max-width: 900px) {
  .contact-rdv { grid-template-columns: minmax(0, 1fr); }
  .contact-rdv-cadre, .contact-rdv-inline { min-height: 760px; }
}
