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

/* ---- produit.css ---- */
/* Pages produits Impulsio : gabarit commun (héros 3D, récit au défilement, blocs, confiance,
   plateforme, autres produits). Les visuels propres à chaque produit sont dans composants/produit-*.css. */

/* ---------- Héros ---------- */
.p-heros { position: relative; background: var(--nuit); color: #fff; overflow: clip; isolation: isolate; }
.p-heros-scene { position: absolute; inset: 0; z-index: 0; }
.p-heros-scene .repli { left: 44%; width: 52%; }
.p-heros-in { position: relative; z-index: 1; display: flex; align-items: center; min-height: max(640px, 100svh); padding-top: calc(var(--entete-h) + 40px); padding-bottom: clamp(56px, 8vh, 96px); pointer-events: none; }
.p-heros-texte { max-width: min(36rem, 47%); }
.p-heros-texte > * { pointer-events: auto; }
.p-heros-titre { font-size: clamp(2.6rem, 1.1rem + 4.4vw, 5.6rem); }
.p-heros-titre--long { font-size: clamp(2.35rem, 1rem + 3.5vw, 4.6rem); }
.p-heros .chapo { margin-top: 26px; color: var(--mention-sombre); max-width: 31em; }
.p-heros .actions { margin-top: 36px; }
.p-heros .btn--ligne .fleche { transform: rotate(90deg); }
.p-heros .btn--ligne:hover .fleche { transform: rotate(90deg) translateX(3px); }
.p-faits { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 44px; font-size: .8125rem; color: var(--mention-sombre); }
.p-faits li { position: relative; display: flex; align-items: center; gap: 10px; }
.p-faits svg { width: 15px; height: 15px; flex: none; color: var(--orange); }
.p-aide { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .js .p-aide {
    display: flex; align-items: center; gap: 10px; position: absolute; z-index: 1; right: max(var(--gouttiere), calc((100vw - var(--max)) / 2 + var(--gouttiere))); bottom: clamp(26px, 5vh, 48px);
    font-size: .8125rem; color: var(--mention-sombre); pointer-events: none; transition: opacity .6s var(--ease-sortie);
  }
  .p-aide svg { width: 34px; height: 14px; }
  .p-aide .fl-g { animation: p-aide-g 2.8s var(--ease-inout) infinite; }
  .p-aide .fl-d { animation: p-aide-d 2.8s var(--ease-inout) infinite; }
  .p-a-glisse .p-aide { opacity: 0; }
  html.sans-gl .p-aide, html.rm .p-aide { display: none; }
  .p-glissable { cursor: grab; -webkit-user-select: none; user-select: none; }
  .p-glissable.p-glisse { cursor: grabbing; }
}
@keyframes p-aide-g { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-3px); } }
@keyframes p-aide-d { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }

@media (max-width: 899px) {
  .p-heros { padding-top: calc(var(--entete-h) - 6px); }
  /* le sol lumineux de la scène se fond dans le fond de la section, sans arête */
  .p-heros-scene { position: relative; inset: auto; height: clamp(290px, 86vw, 500px); }
  .p-heros-scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; z-index: 1; background: linear-gradient(rgba(10, 26, 38, 0), var(--nuit) 92%); pointer-events: none; }
  .p-heros-scene .repli { left: 0; width: 100%; }
  .p-heros-in { min-height: 0; padding-top: 34px; padding-bottom: 76px; }
  .p-heros-texte { max-width: 40rem; }
  .p-heros .chapo { margin-top: 18px; }
  .p-heros .actions { margin-top: 28px; }
  .p-faits { margin-top: 32px; }
}
@media (max-width: 520px) {
  .p-heros .actions .btn { width: 100%; }
}

/* ---------- Récit « Comment ça marche » ---------- */
.p-comment { background: var(--papier); }
.p-recit-colle { padding-block: clamp(84px, 11vw, 150px); }
.p-recit-grille { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.p-recit-scene { position: relative; height: min(76vh, 760px); min-height: 440px; }
.p-recit-scene .repli { object-fit: contain; }
.p-comment .chapo { margin-top: 18px; }
.p-recit .p-etapes { position: relative; margin-top: clamp(30px, 5vh, 52px); padding-left: 58px; display: grid; gap: clamp(8px, 2vh, 20px); }
.p-rail { position: absolute; left: 15px; top: 30px; bottom: 30px; width: 2px; background: var(--ligne); border-radius: 2px; overflow: hidden; }
.p-rail-plein { position: absolute; inset: 0; background: var(--orange); transform: scaleY(0); transform-origin: 50% 0; }
.p-etape { position: relative; padding: 14px 0; transition: opacity .5s var(--ease-sortie); }
.p-etape h3 { font-size: var(--t-s); font-weight: 800; letter-spacing: -.015em; line-height: 1.22; }
.p-etape p { margin-top: 8px; color: var(--mention); font-size: 1rem; line-height: 1.6; max-width: 30em; }
.p-etape-marque {
  position: absolute; left: -58px; top: 14px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--papier); box-shadow: inset 0 0 0 2px rgba(17, 43, 60, .22);
  transition: background-color .4s, box-shadow .4s;
}
.p-etape-marque::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: rgba(17, 43, 60, .3); transition: transform .5s var(--ease-rebond), background-color .3s; }
.p-etape-marque svg { position: absolute; inset: 7px; width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transform: scale(0); transition: transform .55s var(--ease-rebond); }
.js .p-etape { opacity: .42; }
.js .p-etape.actif, .js .p-etape.coche { opacity: 1; }
.p-etape.actif .p-etape-marque { box-shadow: inset 0 0 0 2px var(--orange); }
.p-etape.actif .p-etape-marque::before { background: var(--orange); animation: p-pouls 1.6s var(--ease-inout) infinite; }
.p-etape.coche .p-etape-marque { background: var(--orange); box-shadow: inset 0 0 0 2px var(--orange); }
.p-etape.coche .p-etape-marque::before { transform: scale(0); animation: none; }
.p-etape.coche .p-etape-marque svg { transform: scale(1); }
@keyframes p-pouls { 0%, 100% { transform: scale(1); } 50% { transform: scale(.6); } }

/* grand écran : la scène reste en place pendant que l'on défile */
@media (min-width: 900px) {
  .js .p-recit { height: 320vh; }
  .js .p-recit-colle { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-block: calc(var(--entete-h) * .6) 24px; }
  .js .p-recit-grille { width: 100%; }
  .js .p-etape { cursor: pointer; }
  .js .p-recit-scene { height: min(82vh, 800px); }
}
@media (min-width: 900px) and (max-height: 760px) {
  .js .p-comment .titre-l { font-size: clamp(2rem, 1rem + 2.4vw, 3.2rem); }
  .js .p-etape p { font-size: .9375rem; line-height: 1.5; }
  .js .p-recit .p-etapes { margin-top: 22px; gap: 4px; }
}
/* petites hauteurs d'écran : pas d'épinglage, le récit se joue tout seul */
@media (min-width: 900px) and (max-height: 599px) {
  .js .p-recit { height: auto; }
  .js .p-recit-colle { position: static; height: auto; padding-block: 90px; }
  .js .p-recit-scene { height: 520px; }
}

/* étroit : vraie colonne verticale, la scène reste en haut et les étapes passent dessous */
@media (max-width: 899px) {
  .p-recit-grille { grid-template-columns: minmax(0, 1fr); gap: 0; align-items: start; }
  .p-recit-texte { display: contents; }
  .p-comment .titre-l { order: 0; }
  .p-comment .chapo { order: 1; }
  .p-recit-scene { order: 2; height: clamp(280px, 40svh, 460px); min-height: 0; margin-top: 30px; }
  .p-recit .p-etapes { order: 3; margin-top: 18px; gap: 0; }
  .js .p-recit-scene { position: sticky; top: 58px; z-index: 2; background: var(--papier); margin-top: 64px; }
  .js .p-recit-scene::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 60px; background: var(--papier); }
  .js .p-etape { min-height: max(220px, calc(52svh - 68px)); padding-top: 22px; }
  .p-rail { top: 34px; }
}
html.rm .p-etape { opacity: 1 !important; }
html.rm .p-recit { height: auto !important; }
html.rm .p-recit-colle { position: static !important; height: auto !important; }
html.rm .p-recit-scene { position: relative !important; }

/* ---------- Blocs de texte du produit ---------- */
.p-bloc-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.p-bloc--inverse .p-bloc-visuel { order: -1; }
.p-bloc .titre-l { max-width: 12em; }
.p-bloc .texte { margin-top: 30px; font-size: 1.0625rem; }
.p-bloc .texte p:first-child { font-size: var(--chapo); line-height: 1.55; color: var(--encre); font-weight: 500; }
.p-bloc .texte p + p { color: var(--mention); }
.p-bloc .texte strong { color: var(--encre); }
.p-bloc .actions { margin-top: 36px; }
.p-bloc-visuel { position: relative; }
@media (max-width: 899px) {
  .p-bloc-grille { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .p-bloc--inverse .p-bloc-visuel { order: 0; }
}

/* Défilé des usages */
.p-usages { position: relative; padding-left: 0; }
.p-usages-pre { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--mention); font-size: var(--chapo); }
.p-usages-pre svg { width: 26px; height: 26px; flex: none; color: var(--orange); overflow: visible; }
.p-usages-pre svg path { transform-origin: 4px 13px; }
.p-usages.bip .p-usages-pre svg path { animation: p-bip .7s var(--ease-sortie); }
.p-usages.bip .p-usages-pre svg path:nth-child(2) { animation-delay: 60ms; }
.p-usages.bip .p-usages-pre svg path:nth-child(3) { animation-delay: 120ms; }
@keyframes p-bip { 0% { opacity: .25; transform: scale(.7); } 60% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }
.p-usages-fenetre { position: relative; margin-top: 10px; }
.p-usages-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.p-usages-liste li { font-weight: 800; font-size: clamp(2rem, 1.1rem + 3vw, 4rem); letter-spacing: -.03em; line-height: 1.08; color: var(--encre); }
.p-usages-liste li span::after { content: "."; color: var(--orange); }
.p-usages--anime .p-usages-fenetre { overflow: hidden; }
.p-usages--anime .p-usages-liste { gap: 0; transition: transform .85s cubic-bezier(.3, 1.32, .5, 1); will-change: transform; }
.p-usages--anime .p-usages-liste li { display: flex; align-items: flex-start; opacity: .14; transition: opacity .5s var(--ease-sortie); }
.p-usages--anime .p-usages-liste li.ici { opacity: 1; }
.p-usages-trait { display: block; height: 2px; margin-top: 18px; background: var(--ligne); position: relative; overflow: hidden; border-radius: 2px; }
.p-usages-trait::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; }
.p-usages.bip .p-usages-trait::after { animation: p-trait 2.2s linear; }
@keyframes p-trait { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Exemples de personnalisation : rendus 3D sur fond transparent, posés sur la page, jamais recadrés
   (largeur de colonne, hauteur auto). Deux colonnes par défaut ; --4 : quatre, deux lignes de deux en
   dessous de 760 px ; --1 : un seul visuel. */
.p-photos { margin: clamp(56px, 8vw, 110px) 0 0; }
.p-photos-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); align-items: end; }
.p-photos-liste--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.p-photos-liste--1 { grid-template-columns: minmax(0, 1fr); max-width: 340px; }
.p-photos-liste img { display: block; width: 100%; height: auto; }
.p-photos figcaption { margin-top: 12px; font-size: .875rem; color: var(--mention); }
@media (max-width: 760px) {
  .p-photos-liste--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
}

/* ---------- Pourquoi faire confiance ---------- */
.p-confiance .titre-l { max-width: 14em; }
.p-arguments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 6vw, 80px) clamp(32px, 5vw, 80px); margin-top: clamp(56px, 7vw, 96px); }
.p-arguments--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1000px; }
.p-argument { position: relative; padding-top: 30px; }
.p-argument::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ligne); transform-origin: 0 50%; }
.js .p-argument::before { transform: scaleX(0); transition: transform 1.2s var(--ease-doux) calc(var(--d, 0) * 90ms); }
.js .p-argument.est-vu::before { transform: none; }
.p-argument h3 { margin-top: 22px; font-size: var(--t-s); font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.p-argument p { margin-top: 10px; color: var(--mention); font-size: 1rem; line-height: 1.6; max-width: 26em; }
@media (max-width: 1000px) { .p-arguments { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .p-arguments, .p-arguments--2 { grid-template-columns: minmax(0, 1fr); gap: 44px; } }
html.rm .p-argument::before { transform: none !important; }

/* Micro-scènes dessinées (une par argument) */
.p-micro { width: 172px; height: 108px; overflow: visible; color: var(--navy); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p-micro .acc { stroke: var(--orange); }
.p-micro .plein { fill: var(--navy); stroke: none; }
.p-micro .plein-acc { fill: var(--orange); stroke: none; }
.p-micro .gris { stroke: #A7B3BD; }
.p-micro .fin { stroke-width: 1.4; }
.p-micro text { font-family: var(--mono); font-size: 9px; fill: var(--mention); stroke: none; letter-spacing: 0; }
.p-micro [pathLength] { stroke-dasharray: 100 120; }
.js .p-micro .trace { stroke-dashoffset: 102; }
.js .est-vu .p-micro .trace { animation: m-trace 1.3s var(--ease-doux) forwards; animation-delay: calc(var(--k, 0) * 140ms + 200ms); }
.js .p-micro .pop { opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: 50% 50%; }
.js .est-vu .p-micro .pop { animation: m-pop .7s var(--ease-rebond) forwards; animation-delay: calc(var(--k, 0) * 140ms + 300ms); }
@keyframes m-trace { to { stroke-dashoffset: 0; } }
@keyframes m-pop { to { opacity: 1; transform: none; } }
html.rm .p-micro * { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; transform: none !important; }

/* ---------- Plateforme ---------- */
.p-plateforme-grille { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.p-plateforme .texte { margin-top: 28px; color: var(--mention-sombre); }
.p-plateforme .texte p:first-child { color: #fff; font-size: var(--chapo); line-height: 1.55; font-weight: 500; }
.p-plateforme .actions { margin-top: 36px; }
.p-plateforme-scene { position: relative; aspect-ratio: 6 / 5; }
.p-plateforme-scene .repli { object-fit: contain; }
@media (max-width: 899px) {
  .p-plateforme-grille { grid-template-columns: minmax(0, 1fr); }
  .p-plateforme-scene { aspect-ratio: 1 / 1; max-height: 520px; width: 100%; }
}

/* ---------- Les autres produits ---------- */
.p-autres-liste { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 56px); margin-top: clamp(44px, 5vw, 76px); }
.p-autre { display: grid; text-decoration: none; color: inherit; }
.p-autres-objet { position: relative; display: block; aspect-ratio: 1 / 1; }
.p-autres-objet .repli { transition: transform .7s var(--ease-rebond), opacity .6s; }
.p-autres-nom { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ligne); font-weight: 700; font-size: 1.0625rem; line-height: 1.25; transition: border-color .4s; }
.p-autres-nom .fleche { display: inline-block; width: 16px; height: 16px; margin-left: 6px; vertical-align: -2px; color: var(--orange); transition: transform .45s var(--ease-doux); }
.p-autres-desc { margin-top: 6px; font-size: .9375rem; line-height: 1.45; color: var(--mention); }
@media (hover: hover) and (pointer: fine) {
  .p-autre:hover .p-autres-objet:not(.gl-pret) .repli { transform: translateY(-12px); }
  .p-autre:hover .p-autres-nom { border-color: var(--orange); }
  .p-autre:hover .fleche { transform: translateX(4px); }
}
.p-autre:focus-visible .p-autres-nom { border-color: var(--orange); }
body[data-page="carte"] .p-autres [data-produit="carte"],
body[data-page="uniqual"] .p-autres [data-produit="uniqual"],
body[data-page="uniqual-plus"] .p-autres [data-produit="uniqual-plus"],
body[data-page="enseigne"] .p-autres [data-produit="enseigne"],
body[data-page="evenementiel"] .p-autres [data-produit="evenementiel"],
body[data-page="goodies"] .p-autres [data-produit="goodies"] { display: none; }
@media (max-width: 1080px) { .p-autres-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 52px; } }
@media (max-width: 620px) { .p-autres-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; row-gap: 40px; } .p-autres-nom { font-size: 1rem; } .p-autres-desc { font-size: .875rem; } }

/* Visuel animé propre à chaque produit : cadre commun */
.p-anim { position: relative; width: 100%; aspect-ratio: 1 / 1; }
.p-anim .scene3d, .p-anim-scene { position: absolute; inset: 0; }
.p-anim-legende { position: absolute; z-index: 2; pointer-events: none; }

/* Mouvements propres à chaque micro-scène (déclenchés à l'apparition de l'argument) */
.p-micro .m-tombe, .p-micro .m-barre, .p-micro .m-epingle, .p-micro .m-bouton, .p-micro .m-allume, .p-micro .m-teinte, .p-micro .m-bloc-a, .p-micro .m-bloc-b, .p-micro .m-rayon, .p-micro .m-anneau, .p-micro .m-ondes path { transform-box: fill-box; }
.js .est-vu .m-eco .m-tombe { animation: m-tombe 1.1s cubic-bezier(.55, 0, .75, .3) forwards; animation-delay: calc(var(--k) * 260ms + 500ms); }
@keyframes m-tombe { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 18% { transform: translate(2px, -3px) rotate(-4deg); } 82% { opacity: 1; } 100% { transform: translate(4px, 46px) rotate(14deg); opacity: 0; } }
.p-micro .m-ondes path { transform-origin: 0 50%; }
.js .est-vu .m-eco .m-ondes path, .js .est-vu .m-compatible .m-ondes path { animation: m-onde 2.4s var(--ease-sortie) infinite; animation-delay: 2.2s; }
.js .est-vu .m-ondes path:nth-child(2) { animation-delay: 2.32s; }
.js .est-vu .m-ondes path:nth-child(3) { animation-delay: 2.44s; }
@keyframes m-onde { 0%, 55%, 100% { opacity: 1; transform: none; } 20% { opacity: .2; transform: scale(.75); } }
.m-gestion .m-bouton { fill: #fff; stroke: var(--navy); stroke-width: 2; transform: translateX(17px); }
.m-gestion .m-inter:nth-of-type(4) { --k: 3; } .m-gestion .m-inter:nth-of-type(5) { --k: 5; } .m-gestion .m-inter:nth-of-type(6) { --k: 7; }
.js .m-gestion .m-allume { opacity: 0; }
.js .m-gestion .m-bouton { transform: none; }
.js .est-vu .m-gestion .m-allume { animation: m-fondu .35s ease forwards; animation-delay: calc(var(--k, 0) * 160ms + 700ms); }
.js .est-vu .m-gestion .m-bouton { animation: m-inter .6s var(--ease-rebond) forwards; animation-delay: calc(var(--k, 0) * 160ms + 650ms); }
@keyframes m-inter { to { transform: translateX(17px); } }
@keyframes m-fondu { to { opacity: 1; } }
html.rm .m-gestion .m-bouton { transform: translateX(17px) !important; }
.p-micro .m-barre { transform-origin: 50% 100%; }
.js .p-micro .m-barre { transform: scaleY(0); }
.js .est-vu .p-micro .m-barre { animation: m-barre .9s var(--ease-rebond) forwards; animation-delay: calc(var(--k, 0) * 110ms + 250ms); }
@keyframes m-barre { to { transform: none; } }
.js .p-micro .m-epingle { opacity: 0; transform: translateY(-26px); }
.js .est-vu .p-micro .m-epingle { animation: m-epingle .8s var(--ease-rebond) forwards; animation-delay: calc(var(--k, 0) * 140ms + 300ms); }
@keyframes m-epingle { 40% { opacity: 1; } to { opacity: 1; transform: none; } }
.p-micro .m-anneau { transform-origin: 50% 50%; opacity: 0; }
.js .est-vu .p-micro .m-anneau { animation: m-anneau 2.2s var(--ease-sortie) infinite 1.8s; }
@keyframes m-anneau { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(2.2); } }
.m-normandie .m-rayon { stroke-dasharray: 3 3.4; transform-origin: 50% 50%; }
.js .m-normandie .m-rayon { opacity: 0; transform: scale(.2) rotate(-90deg); }
.js .est-vu .m-normandie .m-rayon { animation: m-rayon 1.1s var(--ease-rebond) forwards 1.5s; }
@keyframes m-rayon { to { opacity: 1; transform: none; } }
.js .m-perso .m-teinte { opacity: 0; }
.js .est-vu .m-perso .m-teinte { animation: m-fondu .5s ease forwards 1.3s; }
.js .est-vu .m-perso .m-bloc-a { animation: m-bloc-a .8s var(--ease-rebond) forwards 1.6s; }
.js .est-vu .m-perso .m-bloc-b { animation: m-bloc-b .8s var(--ease-rebond) forwards 1.6s; }
@keyframes m-bloc-a { to { transform: translateY(18px); } }
@keyframes m-bloc-b { to { transform: translateY(-18px); } }
html.sans-gl .p-plateforme-scene, html:not(.js) .p-plateforme-scene { display: none; }
html.sans-gl .p-plateforme-grille, html:not(.js) .p-plateforme-grille { grid-template-columns: minmax(0, 1fr); }

/* Liste cochée commune aux visuels (même repère que les étapes du récit) */
.p-coches { display: grid; gap: 10px; }
.p-coches li { position: relative; display: flex; align-items: center; min-height: 32px; padding-left: 44px; font-weight: 700; font-size: 1rem; color: var(--navy); transition: opacity .5s var(--ease-sortie); }
.p-coches .p-etape-marque { left: 0; top: 50%; margin-top: -16px; }
.js .p-anime-coches .p-coches li { opacity: .45; }
.js .p-anime-coches .p-coches li.coche { opacity: 1; }
.p-coches li.coche .p-etape-marque, html:not(.js) .p-coches .p-etape-marque, html.rm .p-coches .p-etape-marque, .p-coches--fini .p-etape-marque { background: var(--orange); box-shadow: inset 0 0 0 2px var(--orange); }
.p-coches li.coche .p-etape-marque::before, html:not(.js) .p-coches .p-etape-marque::before, html.rm .p-coches .p-etape-marque::before { transform: scale(0); }
.p-coches li.coche .p-etape-marque svg, html:not(.js) .p-coches .p-etape-marque svg, html.rm .p-coches .p-etape-marque svg { transform: scale(1); }
html.rm .p-coches li { opacity: 1 !important; }
.p-photos--visuel { margin-top: clamp(40px, 5vw, 64px); }

/* bloc de texte seul (sans visuel) : il prend toute la largeur, en colonne de lecture confortable */
.p-bloc-grille > .p-bloc-texte:only-child { grid-column: 1 / -1; max-width: 46rem; }
.p-photos-liste--1.p-photos-liste--large { max-width: 560px; }

/* ---- composants/produit-enseigne.css ---- */
/* Enseigne connectée : l'enseigne seule en studio, de jour (ouvert) et de nuit (fermé),
   puis deux vraies enseignes installées chez des clients. */
.p-jn { margin: 0; aspect-ratio: auto; }
.p-jn .p-anim-scene { position: relative; inset: auto; aspect-ratio: 5 / 4; border-radius: 14px; overflow: hidden; background: #e8ebee; transition: background-color 1.2s var(--ease-inout); }
.p-jn.nuit .p-anim-scene { background: #141c24; }
.p-jn .p-anim-scene .repli { object-fit: contain; }
.p-jn-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 20px; }
.p-jn-bascule { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--papier); box-shadow: inset 0 0 0 1px var(--ligne); }
.p-jn-bascule button { position: relative; z-index: 1; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: none; cursor: pointer; font-weight: 700; font-size: .9375rem; color: var(--navy); transition: color .35s, background-color .35s; }
.p-jn-bascule button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.p-jn-statut { font-size: .9375rem; color: var(--mention); font-weight: 600; min-height: 1.6em; }
.p-jn-nuit { display: none; }
.p-jn.nuit .p-jn-jour { display: none; }
.p-jn.nuit .p-jn-nuit { display: inline; }
html:not(.js) .p-jn-barre { display: none; }

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