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

/* ---- accueil.css ---- */
/* Accueil : film d'ouverture et sections propres à la page. */

/* ---------- Héros : la gamme sur une platine, en studio sombre ---------- */
.heros { position: relative; height: 100svh; min-height: 660px; max-height: 1100px; background: var(--abysse); color: #fff; overflow: hidden; isolation: isolate; }
.heros-scene { position: absolute; inset: 0; }
.heros-scene .repli { object-fit: cover; object-position: 70% 50%; }
.heros-texte { position: absolute; z-index: 2; left: max(var(--gouttiere), calc((100vw - var(--max)) / 2 + var(--gouttiere))); top: 50%; transform: translateY(-54%); width: min(600px, 42vw); }
.heros-texte .chapo { color: var(--mention-sombre); margin-top: 26px; max-width: 34em; }
.heros-texte .actions { margin-top: 34px; }
.heros-texte .btn--ligne { color: #fff; }
.heros-barre { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(18px, 3.4vh, 34px); display: flex; align-items: center; gap: 22px; max-width: var(--max); margin-inline: auto; padding-inline: var(--gouttiere); }
.heros-barre button { border: 0; background: none; color: #fff; cursor: pointer; }
.heros-lecture { flex: none; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); display: grid; place-items: center; transition: box-shadow .3s; }
.heros-lecture:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.heros-lecture svg { width: 18px; height: 18px; }
.heros-lecture[data-lecture="true"] .i-lire, .heros-lecture[data-lecture="false"] .i-pause { display: none; }
.heros-suite { margin: 0; font-size: .9375rem; color: var(--mention-sombre); }
.heros-suite .lien { color: #fff; margin-left: 10px; }
.heros-suite .lien .fleche { width: .95em; height: .95em; }
html.sans-gl .heros-lecture { display: none; }
@media (max-width: 900px) {
  /* colonne : la scène prend toute la hauteur laissée par le texte (jamais de recouvrement, même sur
     un petit iPhone) ; la 3D se cadre d'elle-même dans cette hauteur */
  .heros { min-height: 600px; display: flex; flex-direction: column; }
  /* fondu du bas par un dégradé posé dessus, pas par un masque : sur iPhone, Safari rend un élément masqué
     en définition réduite, et la 3D devenait floue */
  .heros-scene { position: relative; inset: auto; flex: 1 1 auto; min-height: 300px; }
  .heros-scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12%; z-index: 1; background: linear-gradient(rgba(6, 18, 27, 0), var(--abysse)); pointer-events: none; }
  .heros-scene .repli { object-position: 60% 50%; }
  .heros-texte { position: relative; top: auto; left: auto; right: auto; width: auto; transform: none; padding-inline: var(--gouttiere); margin: 6px 0 86px; }
  .heros-texte .titre-xl { font-size: clamp(2.2rem, 1.3rem + 4.4vw, 3.4rem); }
  .heros-texte .chapo { margin-top: 14px; font-size: 1rem; }
  .heros-texte .actions { margin-top: 20px; }
  .heros-barre { gap: 12px; }
}
@media (min-width: 641px) and (max-width: 900px) { .heros-texte { margin-bottom: 104px; } }
@media (max-width: 640px) {
  .heros-texte .btn--ligne { display: none; }
  .heros-suite { font-size: .875rem; }
  .heros-suite-liste { display: none; }
  .heros-suite .lien { display: inline-flex; margin: 4px 0 0; }
}

/* ---- composants/vitrine.css ---- */
/* Vitrine des six produits (accueil, #produits).
   Par défaut (sans JS, mouvement réduit, sans WebGL) : une liste lisible avec les rendus.
   Le script pose .vitrine--film : scène 3D épinglée pilotée par le défilement. */

.vitrine-tete { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 22px clamp(32px, 5vw, 90px); align-items: end; }
.vitrine-tete .chapo { justify-self: end; max-width: 31em; padding-bottom: .5em; }
@media (max-width: 899px) {
  .vitrine-tete { grid-template-columns: 1fr; }
  .vitrine-tete .chapo { justify-self: start; padding-bottom: 0; }
}

.vitrine-piste { position: relative; margin-top: clamp(56px, 7vw, 110px); }
.vitrine-stage { position: relative; max-width: var(--max); margin-inline: auto; padding-inline: var(--gouttiere); }
.vitrine-scene { display: none; }

/* ---------- Liste (état sans script, état final complet) ---------- */
.vitrine-textes { display: grid; gap: clamp(64px, 9vw, 130px); }
.vitrine-produit { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.vitrine-produit:nth-child(even) .vitrine-repli { order: 2; }
.vitrine-repli { width: 100%; height: auto; }
@media (max-width: 760px) {
  .vitrine-produit { grid-template-columns: 1fr; gap: 8px; }
  .vitrine-produit:nth-child(even) .vitrine-repli { order: 0; }
}

.vitrine-nom { font-size: clamp(2.05rem, 1.15rem + 2.6vw, 3.9rem); letter-spacing: -.035em; line-height: 1.02; }
.vitrine-nom .mot { display: inline-block; vertical-align: top; }
.vitrine-nom .mot > span { display: inline-block; }
.vitrine-valeur { margin-top: 20px; font-size: var(--chapo); line-height: 1.55; color: var(--mention); max-width: 25em; text-wrap: pretty; }
.vitrine-points { display: grid; gap: 13px; margin-top: 28px; max-width: 30em; }
.vitrine-points li { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; font-size: 1rem; line-height: 1.45; }
.vitrine-coche {
  flex: none; width: 20px; height: 20px; margin-top: calc((1.45em - 20px) / 2); overflow: visible;
  background: linear-gradient(rgba(17, 43, 60, .28), rgba(17, 43, 60, .28)) 50% 55% / 0 2px no-repeat;
}
.vitrine-coche path { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100 120; stroke-dashoffset: 0; }
.vitrine-corps .lien { margin-top: 30px; }

/* ---------- Mode film (commun) ---------- */
.vitrine--film .vitrine-repli { display: none; }
.vitrine--film .vitrine-scene { display: block; position: relative; }
.vitrine-vue { position: absolute; inset: 0; }
.vitrine-vue .repli { object-fit: contain; padding: 12% 10%; }
.vitrine--film .vitrine-points li { color: rgba(17, 43, 60, .46); transition: color .5s var(--ease-sortie); }
.vitrine--film .vitrine-points li.coche { color: var(--navy); }
.vitrine--film .vitrine-coche { background-size: 9px 2px; transition: background-size .3s var(--ease-sortie); }
.vitrine--film .vitrine-coche path { stroke-dashoffset: 102; transition: stroke-dashoffset .6s var(--ease-doux); }
.vitrine--film li.coche .vitrine-coche { background-size: 0 2px; }
.vitrine--film li.coche .vitrine-coche path { stroke-dashoffset: 0; }

/* Rail des produits */
.vitrine-rail { position: absolute; z-index: 3; display: flex; gap: 8px; }
.vitrine-rail button { flex: 1 1 0; min-width: 0; display: grid; gap: 10px; padding: 8px 0; border: 0; background: none; cursor: pointer; text-align: left; color: var(--mention); }
.vitrine-rail span { font-size: .8125rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.vitrine-rail i { position: relative; display: block; height: 2px; border-radius: 2px; background: rgba(17, 43, 60, .14); overflow: hidden; }
.vitrine-rail b { position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: left; }
.vitrine-rail button:hover span, .vitrine-rail button[aria-current="true"] span { color: var(--navy); }
.vitrine-rail button:focus-visible { outline-offset: 2px; }

/* ---------- Écrans larges : la scène et les textes restent épinglés ---------- */
@media (min-width: 900px) {
  .vitrine--film { --pas: 78svh; }
  .vitrine--film .vitrine-piste { height: calc(100svh + 6 * var(--pas)); margin-top: clamp(28px, 3vw, 52px); }
  .vitrine--film .vitrine-stage {
    position: sticky; top: 0; height: 100svh;
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(20px, 3vw, 56px);
  }
  .vitrine--film .vitrine-textes { grid-column: 1; grid-row: 1; display: grid; gap: 0; align-content: center; padding-top: calc(var(--entete-h) * .7); }
  .vitrine--film .vitrine-produit {
    grid-area: 1 / 1; display: block; opacity: 0; transform: translateY(30px); pointer-events: none;
    transition: opacity .3s var(--ease-sortie), transform .6s var(--ease-doux);
  }
  .vitrine--film .vitrine-produit.avant { transform: translateY(-30px); }
  .vitrine--film .vitrine-produit.actif {
    opacity: 1; transform: none; pointer-events: auto;
    transition: opacity .5s var(--ease-sortie) .12s, transform 1s var(--ease-doux) .12s;
  }
  /* titre mot à mot, puis valeur, points et lien en cascade */
  .vitrine--film .vitrine-nom .mot { overflow: clip; padding-bottom: .1em; margin-bottom: -.1em; }
  .vitrine--film .vitrine-nom .mot > span { transform: translateY(110%); transition: transform .45s var(--ease-sortie); }
  .vitrine--film .actif .vitrine-nom .mot > span { transform: none; transition: transform 1s var(--ease-doux) calc(.14s + var(--i, 0) * 60ms); }
  .vitrine--film .vitrine-valeur, .vitrine--film .vitrine-points li, .vitrine--film .vitrine-corps .lien {
    opacity: 0; transform: translateY(16px);
    transition: opacity .3s var(--ease-sortie), transform .5s var(--ease-doux), color .5s var(--ease-sortie);
  }
  .vitrine--film .actif .vitrine-valeur, .vitrine--film .actif .vitrine-points li, .vitrine--film .actif .vitrine-corps .lien {
    opacity: 1; transform: none;
    transition: opacity .7s var(--ease-sortie) var(--dl, .4s), transform .95s var(--ease-doux) var(--dl, .4s), color .5s var(--ease-sortie);
  }
  .vitrine--film .actif .vitrine-points li:nth-child(1) { --dl: .5s; }
  .vitrine--film .actif .vitrine-points li:nth-child(2) { --dl: .58s; }
  .vitrine--film .actif .vitrine-points li:nth-child(3) { --dl: .66s; }
  .vitrine--film .actif .vitrine-corps .lien { --dl: .76s; }
  .vitrine--film .vitrine-nom { font-size: clamp(2.3rem, .9rem + 3vw, 4.1rem); }

  .vitrine--film .vitrine-scene { grid-column: 2; grid-row: 1; margin-right: calc(-1 * var(--gouttiere)); }
  .vitrine--film .vitrine-rail { left: 0; right: var(--gouttiere); bottom: clamp(14px, 3vh, 34px); }
}

/* ---------- Écrans étroits : scène compacte collée en haut, textes dessous ---------- */
@media (max-width: 899px) {
  .vitrine--film .vitrine-piste { margin-top: clamp(28px, 6vw, 48px); }
  .vitrine--film .vitrine-stage { padding-inline: 0; }
  .vitrine--film .vitrine-scene { position: sticky; top: 0; z-index: 2; height: 52svh; min-height: 330px; max-height: 560px; background: var(--papier); }
  /* fondu de sortie du texte qui passe sous la scène */
  .vitrine--film .vitrine-scene::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 28px; background: linear-gradient(var(--papier), rgba(243, 243, 241, 0)); pointer-events: none; }
  .vitrine--film .vitrine-rail { left: var(--gouttiere); right: var(--gouttiere); bottom: 0; gap: 6px; }
  .vitrine--film .vitrine-rail button { padding: 18px 0 14px; }
  .vitrine--film .vitrine-rail span { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .vitrine--film .vitrine-textes { gap: 0; padding-inline: var(--gouttiere); }
  /* chaque produit a le temps de sa démonstration (contact, écran) avant que le suivant n'arrive */
  .vitrine--film .vitrine-produit { display: block; min-height: max(62svh, 470px); padding-block: 34px 40px; opacity: .3; transition: opacity .5s var(--ease-sortie); }
  .vitrine--film .vitrine-produit.actif { opacity: 1; }
  .vitrine--film .vitrine-produit:last-child { min-height: 0; padding-bottom: 8px; }
  .vitrine--film .vitrine-nom { font-size: clamp(1.9rem, 1.2rem + 3.2vw, 2.7rem); }
  .vitrine--film .vitrine-valeur { margin-top: 14px; font-size: 1.0625rem; }
  .vitrine--film .vitrine-points { margin-top: 20px; gap: 10px; }
  .vitrine--film .vitrine-points li { font-size: .9375rem; }
  .vitrine--film .vitrine-corps .lien { margin-top: 22px; }
}
@media (max-width: 899px) and (max-height: 640px) {
  .vitrine--film .vitrine-scene { height: 46svh; min-height: 280px; }
}

/* ---- composants/plateforme.css ---- */
/* Accueil : plateforme de gestion (application Impulsio inventée, en HTML et SVG). */

.pf { overflow: clip; }
.pf-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.pf-sprite symbol { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.pf-tete { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px clamp(32px, 5vw, 90px); align-items: end; margin-bottom: clamp(52px, 6.5vw, 96px); }
.pf-tete .titre-l { max-width: 11em; }
.pf-tete .chapo { max-width: 30em; }

.pf-grille { display: grid; grid-template-columns: minmax(290px, .66fr) minmax(0, 1.6fr); gap: clamp(32px, 4.4vw, 76px); align-items: center; }

/* ---------- Les quatre points ---------- */
.pf-points { display: grid; }
.pf-point { position: relative; padding: 24px 0 26px; border-top: 1px solid var(--ligne-sombre); cursor: pointer; }
.pf-point:last-child { border-bottom: 1px solid var(--ligne-sombre); }
.pf-point-titre { font-size: 1.1875rem; font-weight: 700; letter-spacing: -.012em; line-height: 1.3; }
.pf-point-titre button { all: unset; display: block; cursor: pointer; color: rgba(255, 255, 255, .58); transition: color .4s var(--ease-sortie); }
.pf-point-titre button:focus-visible { outline: 3px solid var(--orange); outline-offset: 6px; border-radius: 4px; }
.pf-point-texte { margin-top: 8px; font-size: .9375rem; line-height: 1.6; color: var(--mention-sombre); opacity: .74; transition: opacity .4s var(--ease-sortie); max-width: 30em; }
.pf-point.est-active .pf-point-titre button { color: #fff; }
.pf-point.est-active .pf-point-texte { opacity: 1; }
.pf-jauge { position: absolute; left: 0; right: 0; top: -1px; height: 1px; overflow: hidden; }
.pf-jauge i { position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: left; }
.pf-point.est-active .pf-jauge { height: 2px; top: -1.5px; }
html:not(.js) .pf-point-titre button { color: #fff; }
html:not(.js) .pf-point-texte { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .pf-point:hover .pf-point-titre button { color: #fff; }
}
.pf-actions { margin-top: clamp(44px, 5vw, 72px); }
.pf-actions .lien { color: #fff; }

/* ---------- Scène et perspective ---------- */
.pf-scene { position: relative; container: pf / inline-size; perspective: 2300px; perspective-origin: 40% 20%; margin-right: calc(var(--gouttiere) * -.5); }
.pf-tilt {
  --rx: 0deg; --ry: 0deg; --rz: 0deg; --ty: 0px; --sc: 1; --ex: 0;
  position: relative; transform-style: preserve-3d;
  transform: translate3d(0, var(--ty), 0) rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz)) scale(var(--sc));
  transform-origin: 50% 60%;
}
.pf-app {
  position: relative; width: 100%; aspect-ratio: 16 / 10.4; border-radius: 14px; transform-style: preserve-3d;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 50px 90px -40px rgba(0, 0, 0, .75);
}
.pf-app::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #06121B; transform: translateZ(-16px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.pf-ombre { position: absolute; left: 8%; right: 8%; bottom: -7%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(3, 9, 14, .7), transparent); transform: translateZ(-60px) rotateX(80deg); pointer-events: none; }

/* ---------- Interface ---------- */
.pf-ui {
  position: absolute; inset: 0; display: grid; transform-style: preserve-3d;
  grid-template: "barre barre" 2.5em "side main" minmax(0, 1fr) / 11.6em minmax(0, 1fr);
  font-family: var(--f); font-size: 1.6cqw; line-height: 1.35; color: var(--navy); text-align: left;
  -webkit-user-select: none; user-select: none;
}
.pf-ui b { font-weight: 700; }
.pf-ui small { display: block; font-size: .86em; font-weight: 500; color: #6A7B8C; }
.pf-mono { font-family: var(--mono); font-weight: 500; letter-spacing: -.01em; }
.pf-doux { color: #6A7B8C; }
.pf-ui svg { display: block; flex: none; }
.pf-glyphe { width: 1.6em; height: 1.6em; fill: none; stroke: currentColor; }

.pf-barre {
  grid-area: barre; display: flex; align-items: center; gap: 1em; padding: 0 1em;
  background: #0B1F2D; color: rgba(255, 255, 255, .62); border-radius: 14px 14px 0 0;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .06); transform: translateZ(calc(var(--ex) * 22px));
}
.pf-feux { display: flex; gap: .42em; }
.pf-feux i { width: .62em; height: .62em; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.pf-url { flex: 1; max-width: 26em; margin-inline: auto; display: flex; align-items: center; justify-content: center; gap: .5em; height: 1.65em; padding: 0 .9em; border-radius: .5em; background: rgba(255, 255, 255, .07); font-family: var(--mono); font-size: .7em; white-space: nowrap; overflow: hidden; }
.pf-url svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pf-url b { color: #fff; font-weight: 500; }
.pf-direct { display: inline-flex; align-items: center; gap: .5em; font-size: .7em; font-weight: 600; color: rgba(255, 255, 255, .78); }
.pf-direct i { position: relative; width: .62em; height: .62em; border-radius: 50%; background: #2FD08A; }
.pf-direct i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #2FD08A; animation: pf-pouls 1.8s var(--ease-sortie) infinite; }
.pf-direct--mini { margin-left: auto; font-size: 1em; }
/* Boucles en pause quand l'application est hors de l'écran */
.pf-hors .pf-onde, .pf-hors .pf-direct i::after, .pf-hors .pf-curseur-onde { animation-play-state: paused !important; }
@keyframes pf-pouls { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }

.pf-side {
  grid-area: side; display: flex; flex-direction: column; gap: 1.3em; padding: 1.3em .9em 1.1em;
  background: var(--navy); color: #fff; border-radius: 0 0 0 14px; transform: translateZ(calc(var(--ex) * 38px));
}
.pf-logo { width: 7.4em; height: auto; margin: .1em .45em .2em; }
.pf-espace, .pf-moi { display: flex; align-items: center; gap: .65em; padding: .55em .5em; border-radius: .7em; background: rgba(255, 255, 255, .06); font-size: .78em; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.pf-espace small, .pf-moi small { color: rgba(255, 255, 255, .5); font-size: .88em; }
.pf-espace > span, .pf-moi > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pf-moi { margin-top: auto; background: none; }
.pf-flottes { display: grid; gap: .15em; padding: 0 .55em; font-size: .74em; }
.pf-flottes-titre { margin-bottom: .35em; font-family: var(--mono); font-size: .88em; color: rgba(255, 255, 255, .4); }
.pf-flotte-item { display: flex; align-items: center; gap: .7em; height: 2.1em; color: rgba(255, 255, 255, .7); font-weight: 600; white-space: nowrap; }
.pf-flotte-item::before { content: ""; flex: none; width: .62em; height: .62em; border-radius: .2em; background: var(--c); }
.pf-flotte-item em { margin-left: auto; font-style: normal; font-family: var(--mono); font-weight: 500; color: rgba(255, 255, 255, .4); }
.pf-av { flex: none; display: inline-grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 50%; background: var(--c, var(--navy)); color: #fff; font-style: normal; font-weight: 700; font-size: .78em; letter-spacing: .02em; }
.pf-espace .pf-av, .pf-moi .pf-av { font-size: 1em; width: 2.4em; height: 2.4em; border-radius: .65em; }
.pf-nav { position: relative; display: grid; gap: .2em; }
.pf-nav-ind { position: absolute; left: 0; right: 0; top: 0; height: 2.55em; border-radius: .7em; background: rgba(255, 255, 255, .1); transform-origin: 50% 50%; }
.pf-nav-item { position: relative; display: flex; align-items: center; gap: .75em; height: 2.55em; padding: 0 .65em; font-size: .84em; font-weight: 600; color: rgba(255, 255, 255, .6); white-space: nowrap; cursor: pointer; transition: color .35s; }
.pf-nav-item svg { width: 1.45em; height: 1.45em; fill: none; stroke: currentColor; transition: color .35s, transform .5s var(--ease-rebond); }
.pf-nav-item.est-active { color: #fff; }
.pf-nav-item.est-active svg { color: var(--orange); transform: scale(1.08); }
.pf-nav-badge { margin-left: auto; min-width: 1.6em; height: 1.6em; padding: 0 .45em; border-radius: 1em; background: var(--orange); color: #fff; font-style: normal; font-size: .78em; font-weight: 700; display: inline-grid; place-items: center; }

.pf-main { grid-area: main; position: relative; display: grid; grid-template-rows: 2.9em minmax(0, 1fr); gap: 1em; padding: 1.25em 1.5em 1.4em; background: #EEF2F5; border-radius: 0 0 14px 0; overflow: hidden; }
.pf-entete { display: flex; align-items: center; gap: 1em; min-width: 0; }
.pf-titre-vue { position: relative; flex: 1; display: grid; overflow: hidden; height: 1.5em; font-size: 1.42em; font-weight: 800; letter-spacing: -.025em; line-height: 1.5; white-space: nowrap; }
.pf-tv { grid-area: 1 / 1; transform: translateY(110%); }
.pf-ui[data-vue-active="tableau"] .pf-tv[data-tv="tableau"], .pf-ui[data-vue-active="produits"] .pf-tv[data-tv="produits"], .pf-ui[data-vue-active="leads"] .pf-tv[data-tv="leads"], .pf-ui[data-vue-active="stats"] .pf-tv[data-tv="stats"], .pf-ui[data-vue-active="equipe"] .pf-tv[data-tv="equipe"] { transform: none; }
.pf-periode { padding: .45em .8em; border-radius: .55em; background: #fff; font-size: .7em; color: #4A5D6E; white-space: nowrap; box-shadow: 0 0 0 1px rgba(17, 43, 60, .07); }
.pf-avs { display: flex; }
.pf-avs .pf-av { width: 2.2em; height: 2.2em; font-size: .7em; box-shadow: 0 0 0 .22em #EEF2F5; }
.pf-avs .pf-av + .pf-av { margin-left: -.55em; }

.pf-vues { position: relative; min-height: 0; perspective: 1400px; }
.pf-vue { position: absolute; inset: 0; display: grid; gap: .95em; visibility: hidden; }
.pf-vue.est-active { visibility: visible; }
.pf-balayage { position: absolute; left: 0; right: 0; top: 0; height: 40%; pointer-events: none; background: linear-gradient(180deg, rgba(246, 107, 14, 0), rgba(246, 107, 14, .07) 60%, rgba(246, 107, 14, 0)); transform: translateY(-110%); }

.pf-bloc { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 1em 1.15em; border-radius: .9em; background: #fff; box-shadow: 0 0 0 1px rgba(17, 43, 60, .06), 0 .5em 1.2em -.7em rgba(17, 43, 60, .25); overflow: hidden; }
.pf-bloc-tete { display: flex; align-items: center; gap: .8em; min-height: 1.9em; margin-bottom: .6em; white-space: nowrap; }
.pf-bloc-titre { font-size: .9em; font-weight: 700; }
.pf-bloc-tete .pf-mono { font-size: .72em; }
.pf-bloc-tete b { color: var(--navy); }
.pf-btn-app { margin-left: auto; padding: .45em .9em; border-radius: .55em; background: var(--orange-btn); color: #fff; font-size: .72em; font-weight: 700; }
.pf-btn-app--ligne { background: none; color: var(--navy); box-shadow: inset 0 0 0 1px rgba(17, 43, 60, .2); }
.pf-lib { font-size: .76em; font-weight: 600; color: #5A6C7D; }
.pf-val { display: flex; align-items: baseline; font-size: 2.55em; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pf-val small { display: inline; font-size: .55em; font-weight: 800; color: var(--navy); }
.pf-val b { font-weight: 800; }
.pf-delta { font-size: .72em; font-weight: 700; color: var(--vert); }

/* Rouleaux de texte et de chiffres */
.pf-roule { display: inline-grid; overflow: hidden; vertical-align: bottom; line-height: 1.35; }
.pf-roule > span { grid-area: 1 / 1; transition: transform .7s var(--ease-rebond); white-space: nowrap; }
.pf-roule > span + span { transform: translateY(115%); }
.pf-roule.b > span:first-child { transform: translateY(-115%); }
.pf-roule.b > span + span { transform: none; }
.pf-chiffres { display: inline-flex; align-items: flex-start; overflow: hidden; height: 1.05em; line-height: 1.05; }
.pf-col { display: flex; flex-direction: column; }
.pf-col span { height: 1.05em; }

/* ---------- Vue tableau de bord ---------- */
.pf-vue[data-vue="tableau"] { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto minmax(0, 1fr); }
.pf-kpi { grid-column: span 4; gap: .2em; padding-bottom: .9em; }
.pf-spark { position: absolute; right: .9em; bottom: 1em; width: 6.4em; height: 1.92em; fill: none; stroke: var(--orange); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 100 120; }
.pf-carte { grid-column: span 7; }
.pf-carte-svg { flex: 1; min-height: 0; width: 100%; height: 100%; overflow: visible; }
.pf-carte-points { fill: none; stroke: rgba(17, 43, 60, .2); stroke-width: 2.9; stroke-linecap: round; }
.pf-jour { font-weight: 500; }
.pf-ville text { font-family: var(--f); font-size: 7.4px; font-weight: 600; fill: #4E6172; paint-order: stroke; stroke: #fff; stroke-width: 2.6px; stroke-linejoin: round; }
.pf-coeur { fill: var(--navy); transition: fill .3s; }
.pf-ville[data-v="0"] .pf-coeur, .pf-ville.ping .pf-coeur { fill: var(--orange); }
.pf-onde { fill: none; stroke: var(--orange); stroke-width: 1.2; opacity: 0; }
.js .pf-onde { animation: pf-onde 3.2s var(--ease-sortie) infinite; animation-delay: calc(var(--o, 0) * -.4s); }
.pf-onde2 { animation-delay: calc(var(--o, 0) * -.4s - 1.6s) !important; }
.pf-ville[data-v="1"] { --o: 3; } .pf-ville[data-v="2"] { --o: 5; } .pf-ville[data-v="3"] { --o: 1; } .pf-ville[data-v="4"] { --o: 6; }
.pf-ville[data-v="5"] { --o: 2; } .pf-ville[data-v="6"] { --o: 7; } .pf-ville[data-v="7"] { --o: 4; }
@keyframes pf-onde { 0% { transform: scale(.8); opacity: .75; } 70%, 100% { transform: scale(3.6); opacity: 0; } }
.pf-ville .pf-coeur { transform-box: fill-box; transform-origin: center; }
.pf-ville.ping .pf-coeur { animation: pf-ping .7s var(--ease-rebond); }
@keyframes pf-ping { 30% { transform: scale(1.9); } }
.pf-flux { grid-column: span 5; }
.pf-flux-liste { position: relative; display: grid; gap: .2em; margin: 0; padding: 0; list-style: none; -webkit-mask-image: linear-gradient(#000 70%, transparent 98%); mask-image: linear-gradient(#000 70%, transparent 98%); }
.pf-flux-liste li { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto; align-items: center; gap: .7em; padding: .42em 0; border-bottom: 1px solid #EEF1F4; }
.pf-flux-liste li:last-child { border-bottom: 0; }
.pf-flux-liste .pf-glyphe { width: 2.4em; height: 2.4em; padding: .42em; border-radius: .6em; background: #EEF2F5; stroke-width: 1.7; }
.pf-flux-liste li:first-child .pf-glyphe { background: rgba(246, 107, 14, .12); color: #C9520A; }
.pf-flux-liste b { display: block; font-size: .76em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-flux-liste small { font-size: .68em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-flux-liste time { font-size: .64em; color: #7D8C9A; }

/* ---------- Vue produits ---------- */
.pf-vue[data-vue="produits"] { grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); }
.pf-filtres { display: flex; gap: .4em; margin-bottom: .5em; }
.pf-filtres span { padding: .32em .75em; border-radius: 1em; font-size: .68em; font-weight: 600; color: #4E6172; background: #EEF2F5; }
.pf-filtres .on { background: var(--navy); color: #fff; }
.pf-lignes { display: grid; margin: 0; padding: 0; list-style: none; }
.pf-prod { display: grid; grid-template-columns: 2.3em minmax(0, 1fr) 6.6em 3.4em 2.5em; align-items: center; gap: .75em; padding: .44em 0; border-bottom: 1px solid #EEF1F4; }
.pf-prod:last-child { border-bottom: 0; }
.pf-prod .pf-glyphe { width: 2.3em; height: 2.3em; padding: .4em; border-radius: .6em; background: #EEF2F5; }
.pf-prod-nom b { display: block; font-size: .76em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-prod-nom small { font-size: .66em; }
.pf-prod-cible { font-size: .7em; font-weight: 600; color: #3C5163; white-space: nowrap; overflow: hidden; }
.pf-prod-scans { font-size: .68em; color: #5A6C7D; text-align: right; }
.pf-prod--edit .pf-prod-cible { color: #C9520A; }
.pf-inter { position: relative; justify-self: end; width: 2.35em; height: 1.36em; border-radius: 1em; background: #D3DBE2; transition: background-color .35s; }
.pf-inter i { position: absolute; left: .18em; top: .18em; width: 1em; height: 1em; border-radius: 1em; background: #fff; box-shadow: 0 .1em .3em rgba(17, 43, 60, .3); transform: translateX(var(--x, 0)); transform-origin: left center; }
.pf-inter.est-on { background: var(--orange); }
.pf-inter.est-on i { --x: .99em; }
.pf-apercu { align-items: stretch; }
.pf-publie { margin-left: auto; display: inline-flex; align-items: center; gap: .35em; padding: .3em .7em .3em .5em; border-radius: 1em; background: rgba(31, 157, 99, .12); color: #16804F; font-size: .68em; font-weight: 700; }
.pf-publie svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 3; }
.pf-tel { flex: 1; display: grid; place-items: center; min-height: 0; }
.pf-tel-ecran {
  display: flex; flex-direction: column; align-items: center; gap: .55em; width: 10.8em; height: 22.2em; padding: 2.1em .95em 1em;
  border-radius: 1.9em; background: #F7F4EF; box-shadow: 0 0 0 .42em var(--navy), 0 .9em 1.6em -.6em rgba(17, 43, 60, .45); position: relative;
}
.pf-tel-ecran::before { content: ""; position: absolute; top: .55em; left: 50%; width: 3.2em; height: .75em; margin-left: -1.6em; border-radius: 1em; background: var(--navy); }
.pf-tel-logo { display: grid; place-items: center; width: 3.4em; height: 3.4em; border-radius: 50%; background: #B4703A; color: #fff; font-weight: 800; font-size: .9em; letter-spacing: .02em; }
.pf-tel-nom { font-size: .8em; text-align: center; line-height: 1.2; }
.pf-tel-sous { font-size: .62em !important; text-align: center; margin-top: -.3em; }
.pf-tel-btn { display: grid; place-items: center; width: 100%; height: 2.6em; border-radius: .7em; background: #fff; box-shadow: inset 0 0 0 1px rgba(17, 43, 60, .14); font-size: .7em; font-weight: 700; }
.pf-tel-btn--principal { margin-top: .4em; background: var(--orange-btn); color: #fff; box-shadow: none; }

/* ---------- Vue leads ---------- */
.pf-vue[data-vue="leads"] { grid-template-columns: minmax(0, 1fr); }
.pf-table { display: grid; perspective: 900px; }
.pf-tr { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1.5fr) 4.6em 6.4em; align-items: center; gap: .9em; padding: .46em .5em; border-bottom: 1px solid #EEF1F4; border-radius: .5em; transform-origin: 50% 0; }
.pf-th { padding-block: .2em .5em; font-size: .66em; font-weight: 600; color: #7D8C9A; border-radius: 0; }
.pf-th > span:nth-child(3), .pf-tr > .pf-mono { font-size: .68em; }
.pf-contact, .pf-src { display: flex; align-items: center; gap: .7em; min-width: 0; }
.pf-contact > span, .pf-src > span { min-width: 0; }
.pf-contact b { display: block; font-size: .78em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-contact small { font-size: .68em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-src { font-size: .74em; font-weight: 600; color: #3C5163; }
.pf-src > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-src .pf-glyphe { width: 2.1em; height: 2.1em; padding: .35em; border-radius: .55em; background: #EEF2F5; }
.pf-etat { justify-self: start; display: inline-flex; padding: .28em .75em; border-radius: 1em; font-size: .68em; font-weight: 700; white-space: nowrap; }
.pf-etat[data-etat="nouveau"] { background: rgba(246, 107, 14, .13); color: #C24F05; }
.pf-etat[data-etat="contact"] { background: rgba(62, 124, 177, .13); color: #2D6596; }
.pf-etat[data-etat="ok"] { background: rgba(31, 157, 99, .13); color: #16804F; }
.pf-lead--ancien { opacity: .6; }
.pf-lead.flash { background: rgba(246, 107, 14, .07); }

/* ---------- Vue statistiques ---------- */
.pf-vue[data-vue="stats"] { grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
.pf-courbe { grid-row: span 2; }
.pf-legende { display: inline-flex; align-items: center; gap: .5em; font-size: .66em; color: #6A7B8C; }
.pf-legende i { width: 1.3em; height: .2em; border-radius: 1em; background: var(--orange); }
.pf-legende .pf-legende-pt { margin-left: .5em; background: none; border-top: .2em dotted #9AA9B6; height: 0; }
.pf-total { margin-left: auto; font-size: 1.05em !important; font-weight: 500; color: var(--navy); }
.pf-courbe-svg { width: 100%; flex: 1; min-height: 0; overflow: visible; }
.pf-grille-l path { stroke: #E6EBEF; stroke-width: 1; fill: none; }
.pf-aire { fill: rgba(246, 107, 14, .1); transform-origin: 50% 100%; transform-box: fill-box; }
.pf-ligne { fill: none; stroke: var(--orange); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 100 120; }
.pf-ligne2 { fill: none; stroke: #A6B3BF; stroke-width: 1.4; stroke-dasharray: 2 4; stroke-linecap: round; }
.pf-curseur circle { fill: #fff; stroke: var(--orange); stroke-width: 2.4; }
.pf-curseur .pf-curseur-onde { fill: rgba(246, 107, 14, .2); stroke: none; transform-box: fill-box; transform-origin: center; }
.js .pf-curseur .pf-curseur-onde { animation: pf-pouls 2s var(--ease-sortie) infinite; }
.pf-axe { display: flex; justify-content: space-between; margin-top: .5em; font-size: .62em; color: #8696A4; }
.pf-bulle { position: absolute; right: 1.1em; top: 3.4em; padding: .3em .6em; border-radius: .5em; background: var(--navy); color: #fff; font-size: .68em; }
.pf-seg { position: relative; display: inline-flex; padding: .22em; border-radius: .7em; background: #EEF2F5; }
.pf-seg span { position: relative; z-index: 1; padding: .35em .8em; font-size: .7em; font-weight: 700; color: #5A6C7D; transition: color .3s; }
.pf-seg span.on { color: var(--navy); }
.pf-seg-curseur { position: absolute; top: .22em; bottom: .22em; left: .22em; width: var(--w, 50%); border-radius: .55em; background: #fff; box-shadow: 0 .1em .4em rgba(17, 43, 60, .15); transform: translateX(var(--x, 0)); }
.pf-barres { display: grid; gap: .62em; margin: .2em 0 0; padding: 0; list-style: none; }
.pf-barres li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3em .6em; align-items: center; }
.pf-barre-lib { font-size: .72em; font-weight: 600; color: #3C5163; min-width: 0; }
.pf-barre-val { font-size: .68em; color: #5A6C7D; text-align: right; }
.pf-piste { grid-column: 1 / -1; height: .5em; border-radius: 1em; background: #EEF2F5; overflow: hidden; }
.pf-piste i { display: block; height: 100%; border-radius: 1em; background: var(--navy); transform-origin: left; transform: scaleX(var(--v, 1)); }
.pf-barres li:first-child .pf-piste i { background: var(--orange); }
.pf-mini { flex-direction: row; gap: 1em; }
.pf-mini > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15em; }
.pf-mini .pf-lib { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-mini .pf-val { font-size: 1.8em; }
.pf-etoiles { display: flex; gap: .18em; margin-top: .25em; }
.pf-etoiles i { width: .78em; height: .78em; background: #F5A623; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }

/* ---------- Vue équipe ---------- */
.pf-vue[data-vue="equipe"] { grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); }
.pf-membres-corps { position: relative; }
.pf-membres-liste { position: relative; display: grid; gap: .25em; margin: 0; padding: 0; list-style: none; }
.pf-membre-ind { position: absolute; left: 0; right: 0; top: 0; height: 3.3em; border-radius: .7em; background: #EEF2F5; transform: translateY(var(--y, 0)); }
.pf-membre { position: relative; display: grid; grid-template-columns: 2.3em minmax(0, 1fr) auto; align-items: center; gap: .75em; height: 3.3em; padding: 0 .55em; }
.pf-membre .pf-av { font-size: .8em; width: 2.9em; height: 2.9em; }
.pf-membre b { display: block; font-size: .8em; white-space: nowrap; }
.pf-membre small { font-size: .68em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-invit { color: #C9520A !important; }
.pf-role { padding: .28em .7em; border-radius: .5em; background: #fff; box-shadow: inset 0 0 0 1px rgba(17, 43, 60, .14); font-size: .66em; font-weight: 700; white-space: nowrap; }
.pf-matrice { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); grid-auto-rows: 2.55em; align-items: center; justify-items: center; }
.pf-matrice-ind { position: absolute; left: -.4em; right: -.4em; top: 2.55em; height: 2.55em; border-radius: .6em; background: rgba(246, 107, 14, .09); transform: translateY(var(--y, 0)); }
.pf-mx-col { font-size: .62em; font-weight: 600; color: #7D8C9A; }
.pf-mx-role { justify-self: start; font-size: .74em; font-weight: 700; position: relative; }
.pf-matrice .pf-ok { position: relative; width: 1.5em; height: 1.5em; padding: .2em; border-radius: 50%; background: rgba(31, 157, 99, .13); color: #16804F; fill: none; stroke: currentColor; stroke-width: 3; }
.pf-non { position: relative; width: .8em; height: .14em; border-radius: 1em; background: #C9D2DA; }

/* ---------- Écrans moyens : les points passent sous l'application ---------- */
@media (max-width: 1080px) {
  .pf-tete { grid-template-columns: 1fr; }
  .pf-grille { grid-template-columns: 1fr; }
  .pf-scene { margin-right: 0; order: -1; }
  .pf-points { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .pf-point:nth-last-child(2) { border-bottom: 1px solid var(--ligne-sombre); }
}

/* ---------- Téléphone : l'application reste celle de l'ordinateur (c'est là qu'on l'utilise),
   à plat, sur toute la largeur de l'écran ---------- */
@media (max-width: 760px) {
  /* comme la vitrine des produits : l'écran d'ordinateur reste épinglé en haut (un tiers de l'écran),
     les quatre parties défilent dessous et s'activent une à une */
  .pf-scene {
    perspective: none; position: sticky; top: 0; z-index: 2; align-self: start;
    margin-inline: calc(-1 * var(--gouttiere)); padding: 14px 8px 10px; background: var(--nuit);
  }
  .pf-scene::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 34px; background: linear-gradient(var(--nuit), rgba(10, 26, 38, 0)); pointer-events: none; }
  .pf-grille { align-items: start; row-gap: 8px; }
  .pf-points { padding-bottom: 22svh; }
  .pf-point { min-height: 34svh; }
  .pf-tilt { transform: none !important; }
  .pf-app { border-radius: 10px; }
  .pf-app::before, .pf-ombre { display: none; }
  .pf-points { grid-template-columns: 1fr; }
  .pf-point:nth-last-child(2) { border-bottom: 0; }
  .pf-point { padding: 20px 0 22px; }
  .pf-point-titre { font-size: 1.0625rem; }
}

/* ---- composants/configurateur.css ---- */
/* Personnalisation (accueil) : studio Impulsite. Réglages à gauche, aperçu 3D (carte et téléphone) à droite.
   Sans script : le texte et l'image de repli restent, les réglages sont masqués. */

.perso-tete { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 24px clamp(32px, 5vw, 96px); align-items: end; }
.perso-intro { color: var(--mention); font-size: 1.0625rem; max-width: 36em; }
.perso-intro p + p { margin-top: .9em; }
.perso-intro .perso-force { margin-top: 1.1em; color: var(--navy); font-size: var(--t-s); font-weight: 700; letter-spacing: -.012em; line-height: 1.32; }

.studio {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "panneau apercu";
  column-gap: clamp(32px, 5vw, 96px); margin-top: clamp(48px, 6vw, 96px); align-items: start;
}
.studio-apercu { grid-area: apercu; position: sticky; top: calc(var(--entete-h) + 12px); min-width: 0; }
.studio-scene { position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: min(78svh, 760px); }
.studio-scene .repli { object-fit: contain; }
.studio-scene.survol-bouton { cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .studio-scene.gl-pret { cursor: grab; }
  .studio-scene.gl-pret.survol-bouton { cursor: pointer; }
  .studio-scene.en-main { cursor: grabbing; }
}
.studio-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 26px; margin-top: 6px; }
.studio-ico-nfc { width: 1.25em; height: 1.25em; }
html:not(.js) .studio-actions, html:not(.js) .studio-panneau,
html.sans-gl .studio-actions, html.sans-gl .studio-panneau,
.perso--fixe .studio-actions, .perso--fixe .studio-panneau { display: none; }

/* ---------- Panneau de réglages ---------- */
.studio-panneau { grid-area: panneau; min-width: 0; container-type: inline-size; }
.studio-consigne { font-size: 1.0625rem; font-weight: 600; line-height: 1.5; max-width: 30em; }
.studio-exemple { margin-top: 8px; font-size: .9375rem; line-height: 1.5; color: var(--mention); max-width: 33em; }
.studio-onglets { display: flex; gap: clamp(18px, 2.6vw, 34px); margin-top: 26px; border-bottom: 1px solid var(--ligne); overflow-x: auto; scrollbar-width: none; }
.studio-onglets::-webkit-scrollbar { display: none; }
.studio-onglets [role="tab"] {
  position: relative; flex: none; padding: 12px 0 14px; border: 0; background: none; cursor: pointer;
  font-weight: 700; font-size: 1rem; color: var(--mention); transition: color .25s;
}
.studio-onglets [role="tab"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-doux);
}
.studio-onglets [role="tab"]:hover { color: var(--navy); }
.studio-onglets [role="tab"][aria-selected="true"] { color: var(--navy); }
.studio-onglets [role="tab"][aria-selected="true"]::after { transform: scaleX(1); }
.studio-onglets [role="tab"]:focus-visible { outline-offset: -2px; }

/* tous les volets occupent la même cellule : pas de saut de hauteur en changeant d'onglet */
.studio-volets { display: grid; padding-top: 26px; }
.studio-volet { grid-area: 1 / 1; min-width: 0; display: grid; gap: 22px; align-content: start; }
.studio-volet[hidden] { display: grid; visibility: hidden; }
.studio [hidden]:not(.studio-volet) { display: none !important; }
.studio-volet.actif { animation: studio-volet .45s var(--ease-doux); }
@keyframes studio-volet { from { opacity: 0; transform: translateY(8px); } }
html.rm .studio-volet.actif { animation: none; }

.studio-groupe { min-width: 0; margin: 0; padding: 0; border: 0; }
.studio-legende, .studio-champ > span { display: block; padding: 0; margin-bottom: 8px; font-size: .8125rem; font-weight: 600; color: var(--mention); }
.studio-aide { font-size: .875rem; line-height: 1.5; color: var(--mention); }
.studio-aide--logo { margin-top: 10px; }

.studio-champ { display: block; min-width: 0; }
.studio-champ input, .studio-champ textarea {
  display: block; width: 100%; padding: 6px 0 9px; 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: inherit; font-size: 1.0625rem; font-weight: 600; color: var(--navy); resize: none;
  transition: background-size .5s var(--ease-doux), border-color .3s;
}
.studio-champ textarea { line-height: 1.45; }
.studio-champ input:focus, .studio-champ textarea:focus { outline: none; background-size: 100% 2px; border-bottom-color: transparent; }
.studio-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px clamp(18px, 2.4vw, 32px); }

/* Vignettes de bandeau : petits bandeaux rectangulaires, nom souligné quand choisi */
.studio-vignettes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.studio-vignette { position: relative; display: grid; gap: 8px; cursor: pointer; }
.studio-vignette input, .studio-option input, .studio-case input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; margin: 0; }
.studio-vignette-img {
  display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 3px; overflow: hidden;
  background: center / cover no-repeat; color: var(--navy);
  box-shadow: inset 0 0 0 1px rgba(17, 43, 60, .14);
  transition: transform .4s var(--ease-doux), box-shadow .3s;
}
.studio-vignette--couleur { background-color: var(--navy); }
.studio-vignette--motif { background-color: var(--navy); background-size: 60%; background-repeat: repeat; background-blend-mode: soft-light; }
.studio-vignette--import { background-color: #f3f4f5; }
.studio-vignette--import svg { width: 26px; height: 26px; }
.studio-vignette--import.a-image { background-size: cover; }
.studio-vignette--import.a-image svg { display: none; }
.studio-vignette-nom {
  justify-self: start; padding-bottom: 3px; font-size: .875rem; font-weight: 600; color: var(--mention);
  background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat;
  transition: background-size .45s var(--ease-doux), color .25s;
}
.studio-vignette:hover .studio-vignette-img { transform: translateY(-2px); }
.studio-vignette:has(input:checked) .studio-vignette-img { box-shadow: inset 0 0 0 1px rgba(17, 43, 60, .14), 0 10px 22px -12px rgba(10, 26, 38, .55); transform: translateY(-2px); }
.studio-vignette:has(input:checked) .studio-vignette-nom { color: var(--navy); font-weight: 700; background-size: 100% 2px; }
.studio-vignette:has(input:focus-visible) .studio-vignette-img { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Fichiers */
.studio-fichier { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 12px; }
.studio-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.studio-file:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
.studio-fichier-nom { font-family: var(--mono); font-size: .8125rem; color: var(--mention); overflow-wrap: anywhere; }
.studio-fichier-nom.erreur { font-family: var(--f); color: #b3261e; font-weight: 600; }

/* Boutons texte soulignés */
.studio-texte-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 0 4px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .9375rem; color: var(--navy);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  transition: background-size .45s var(--ease-doux), color .25s;
}
.studio-texte-btn:hover { background-size: 0 1.5px; background-position: 100% 100%; }
.studio-texte-btn svg { width: 18px; height: 18px; flex: none; }
.studio-ajouter { justify-self: start; }

/* Options (couleurs, finitions) : petit échantillon rectangulaire et nom souligné */
.studio-options { display: flex; flex-wrap: wrap; align-items: center; gap: 4px clamp(12px, 1.3vw, 18px); }
.studio-option { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 6px 0; cursor: pointer; font-weight: 600; font-size: .875rem; color: var(--mention); transition: color .25s; }
.studio-option span { padding-bottom: 3px; background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--ease-doux); }
.studio-option:hover { color: var(--navy); }
.studio-option:has(input:checked) { color: var(--navy); font-weight: 700; }
.studio-option:has(input:checked) span { background-size: 100% 2px; }
.studio-option:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: 4px; }
.studio-teinte { flex: none; width: 30px; height: 19px; border-radius: 3px; box-shadow: 0 1px 2px rgba(10, 26, 38, .18), 0 4px 10px -4px rgba(10, 26, 38, .3); transition: transform .4s var(--ease-rebond); }
.studio-teinte--clair { box-shadow: inset 0 0 0 1px rgba(17, 43, 60, .16), 0 1px 2px rgba(10, 26, 38, .12), 0 4px 10px -4px rgba(10, 26, 38, .22); }
.studio-option:has(input:checked) .studio-teinte, .studio-option:has(input:checked) .config-matiere { transform: translateY(-2px) rotate(-4deg); }

/* Couleur libre : même échantillon que les autres, rempli de la couleur choisie et cerclé d'un spectre
   (on comprend qu'elle se choisit) ; l'échantillon ouvre le sélecteur natif, caché dessous */
.studio-libre { position: relative; display: inline-flex; }
.studio-teinte--libre {
  border: 2px solid transparent;
  background: linear-gradient(var(--libre), var(--libre)) padding-box,
    conic-gradient(from 210deg, #ff5a5a, #ffb547, #f2e14c, #4fd08a, #43b4ff, #7d6bff, #f45fc8, #ff5a5a) border-box;
}
.studio-couleur { position: absolute; left: 0; top: 50%; width: 30px; height: 19px; margin: -10px 0 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.studio-libre:has(.studio-couleur:focus-visible) .studio-teinte--libre { outline: 3px solid var(--orange); outline-offset: 3px; }

.config-matiere { flex: none; width: 30px; height: 19px; border-radius: 3px; box-shadow: 0 1px 2px rgba(10, 26, 38, .18), 0 4px 10px -4px rgba(10, 26, 38, .3); transition: transform .5s var(--ease-rebond); }
.config-matiere--pvc { background: var(--pvc, #112B3C); box-shadow: inset 0 0 0 1px rgba(17, 43, 60, .12), 0 1px 2px rgba(10, 26, 38, .18), 0 4px 10px -4px rgba(10, 26, 38, .3); }
.config-matiere--bois { background: repeating-linear-gradient(97deg, #b9824f 0 2px, #a7713f 2px 3px, #c18c58 3px 6px, #b07a47 6px 7px); }
.config-matiere--gris { background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .16) 0 1px, rgba(0, 0, 0, .06) 1px 2px), linear-gradient(112deg, #9da2a7, #e9ebed 42%, #b3b7bb 58%, #d6d9dc); }
.config-matiere--or { background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .14) 0 1px, rgba(80, 50, 0, .07) 1px 2px), linear-gradient(112deg, #b48838, #f3dc9a 42%, #c69b4a 58%, #e6c57e); }

/* Panneau étroit : les options passent sur deux colonnes régulières plutôt qu'en vrac */
@container (max-width: 440px) {
  .studio-options { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 32px; justify-content: start; }
}

/* Couleur du PVC : en retrait quand la carte est en bois ou en métal (un clic repasse en PVC) */
.studio-groupe--pvc .studio-options { transition: opacity .3s; }
.studio-groupe--pvc.en-retrait .studio-options { opacity: .45; }
.studio-groupe--pvc.en-retrait .studio-options:hover, .studio-groupe--pvc.en-retrait .studio-options:focus-within { opacity: 1; }

/* Case à cocher carrée */
.studio-case { position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer; font-weight: 600; }
.studio-case-boite { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 3px; box-shadow: inset 0 0 0 2px var(--navy); color: #fff; transition: background-color .25s, box-shadow .25s; }
.studio-case-boite svg { width: 16px; height: 16px; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .45s var(--ease-rebond); }
.studio-case:has(input:checked) .studio-case-boite { background: var(--orange-btn); box-shadow: inset 0 0 0 2px var(--orange-btn); }
.studio-case:has(input:checked) .studio-case-boite svg { opacity: 1; transform: none; }
.studio-case:has(input:focus-visible) .studio-case-boite { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Liste des contenus : lignes séparées par un filet, poignée, icône, nom, masquer, monter, descendre */
.studio-liste { display: grid; border-top: 1px solid var(--ligne); }
.studio-ligne { position: relative; display: grid; grid-template-columns: 22px 26px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--ligne); background: #fff; }
.studio-ligne.en-glisse { z-index: 2; box-shadow: 0 16px 30px -18px rgba(10, 26, 38, .45); transition: none; }
.studio-ligne.cache .studio-ligne-nom, .studio-ligne.cache .studio-ligne-ico { opacity: .38; }
.studio-poignee { display: grid; place-items: center; width: 22px; height: 36px; padding: 0; border: 0; background: none; color: rgba(17, 43, 60, .45); cursor: grab; touch-action: none; }
.studio-poignee:active { cursor: grabbing; }
.studio-poignee svg, .studio-ligne-ico svg { width: 22px; height: 22px; }
.studio-ligne-ico { display: grid; place-items: center; color: var(--navy); }
.studio-ligne-nom {
  width: 100%; min-width: 0; padding: 6px 0 7px; border: 0; border-radius: 0; border-bottom: 1.5px solid transparent;
  background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat;
  font: inherit; font-weight: 600; font-size: 1rem; color: var(--navy);
  transition: background-size .5s var(--ease-doux), border-color .3s;
}
.studio-ligne-nom:hover { border-bottom-color: rgba(17, 43, 60, .18); }
.studio-ligne-nom:focus { outline: none; background-size: 100% 2px; }
.studio-ligne-outils { display: flex; align-items: center; }
.studio-ico-btn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 3px; background: none; color: var(--navy); cursor: pointer; transition: color .2s, background-color .2s; }
.studio-ico-btn svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .studio-ico-btn:hover { background: rgba(17, 43, 60, .06); } }
.studio-ico-btn:disabled { color: rgba(17, 43, 60, .22); cursor: default; background: none; }
.studio-ligne-pdf { grid-column: 3 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: -2px; }
.studio-ligne-pdf .studio-texte-btn { font-size: .8125rem; padding: 2px 0; }
@media (hover: none), (pointer: coarse) { .studio-poignee { display: none; } .studio-ligne { grid-template-columns: 26px minmax(0, 1fr) auto; } .studio-ligne-pdf { grid-column: 2 / -1; } .studio-ico-btn { width: 42px; height: 42px; } }

.studio-pied { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--ligne); }
.studio-memo { font-size: .8125rem; color: var(--mention); }

/* ---------- Écrans étroits : aperçu collé en haut, réglages dessous ---------- */
@media (max-width: 899px) {
  .perso-tete { grid-template-columns: 1fr; }
  .studio { grid-template-columns: minmax(0, 1fr); grid-template-areas: "apercu" "panneau"; margin-top: 34px; }
  .studio-apercu { top: 0; z-index: 3; margin-inline: calc(-1 * var(--gouttiere)); padding: 6px var(--gouttiere) 10px; background: #fff; box-shadow: 0 12px 18px -16px rgba(10, 26, 38, .25); }
  .studio-scene { aspect-ratio: auto; height: min(41svh, 420px); max-height: none; }
  .studio-actions { margin-top: 2px; gap: 8px 22px; }
  .studio-panneau { margin-top: 26px; }
}
@media (max-width: 560px) {
  .studio-vignettes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-duo { grid-template-columns: 1fr; }
}
@media (max-width: 899px) and (max-height: 640px) {
  .studio-scene { height: 38svh; }
}

/* ---- composants/pourquoi.css ---- */
/* Accueil : pourquoi opter pour l'écosystème Impulsio (chiffres nus et six micro-scènes). */

.pq-titre { max-width: 12em; }
.pq-chiffres { margin-top: clamp(52px, 6.4vw, 92px); }
.pq .chiffre-val small { color: var(--orange); }

.pq-avantages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(70px, 7.5vw, 116px) clamp(36px, 4.6vw, 80px); margin-top: clamp(96px, 11vw, 168px); }
.pq-svg { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 0 22px -2px; overflow: visible; }
.pq-av .titre-s { font-weight: 800; }
.pq-texte { margin-top: 10px; font-size: 1rem; line-height: 1.6; color: var(--mention); max-width: 25em; }

/* Traits communs */
.pq-svg text { font-family: var(--f); }
.pq-sol { fill: rgba(17, 43, 60, .07); }

/* Éco-responsable */
.pq-nfc-corps { fill: var(--navy); }
.pq-puce { fill: var(--orange); }
.pq-nfc-ligne { stroke: rgba(255, 255, 255, .42); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.pq-nfc-onde { stroke: var(--orange); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.pq-papier rect { fill: #fff; stroke: #B6C2CD; stroke-width: 1.5; }
.pq-papier path { stroke: #D2DAE1; stroke-width: 2.2; stroke-linecap: round; fill: none; }
.pq-bac-corps { fill: #fff; stroke: var(--navy); stroke-width: 2.4; stroke-linejoin: round; }
.pq-bac-cote { stroke: #C9D2DA; stroke-width: 2; stroke-linecap: round; fill: none; }
.pq-bac-bord { stroke: var(--navy); stroke-width: 5; stroke-linecap: round; fill: none; }
.pq-pct { font-family: var(--mono) !important; font-size: 20px; font-weight: 500; fill: var(--orange); }

/* CRM */
.pq-avatar { fill: var(--c); }
.pq-ini { fill: #fff; font-size: 8.5px; font-weight: 700; text-anchor: middle; dominant-baseline: central; letter-spacing: .02em; }
.pq-nom { stroke: var(--navy); stroke-width: 5; stroke-linecap: round; fill: none; }
.pq-sous { stroke: #CBD4DC; stroke-width: 4; stroke-linecap: round; fill: none; }
.pq-source { fill: none; stroke: var(--navy); stroke-width: 1.6; }
.pq-sep { stroke: #E7ECF0; stroke-width: 1.2; fill: none; }
.pq-ok circle { fill: var(--vert); }
.pq-ok path { stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; fill: none; }

/* Gestion complète */
.pq-prod rect, .pq-prod path { stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pq-prod rect { fill: #fff; }
.pq-prod path { fill: none; }
.pq-prod .pq-prod-puce { fill: var(--orange); stroke: none; }
.pq-prod .pq-prod-plein { fill: var(--navy); }
.pq-arcs path { stroke: #CBD4DC; stroke-width: 2.4; stroke-linecap: round; fill: none; transition: stroke .3s; }
.pq-reg.on .pq-arcs path { stroke: var(--orange); }
.pq-fil { stroke: #D3DBE2; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 6; fill: none; transition: stroke .3s; }
.pq-reg.on .pq-fil { stroke: var(--orange); }
.js:not(.rm) .pq-av.vu .pq-reg.on .pq-fil { animation: pq-flux .9s linear infinite; }
.pq-av.hors .pq-fil, .pq-av.hors .pq-pulse { animation-play-state: paused !important; }
@keyframes pq-flux { to { stroke-dashoffset: -16; } }
.pq-piste { fill: #D3DBE2; transition: fill .3s; }
.pq-reg.on .pq-piste { fill: var(--orange); }
.pq-bouton { fill: #fff; stroke: rgba(17, 43, 60, .1); stroke-width: 1; }

/* Compatible avec tous */
.pq-ondes circle { fill: none; stroke: var(--orange); stroke-width: 1.6; opacity: 0; }
.pq-tel-corps { fill: #fff; stroke: var(--navy); stroke-width: 2.4; }
.pq-tel-ecran { fill: #EEF2F5; transition: fill .35s; }
.pq-tel.allume .pq-tel-ecran { fill: #FFE9DA; }
.pq-tel-ilot { fill: var(--navy); }
.pq-tel-bouton { fill: none; stroke: var(--navy); stroke-width: 1.6; }
.pq-tel-ok circle { fill: var(--orange); }
.pq-tel-ok path { stroke: #fff; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.pq-qr-cadre { fill: none; stroke: var(--navy); stroke-width: 1.5; }
.pq-qr-mod { fill: var(--navy); }
.pq-tag-corps { fill: var(--navy); }
.pq-tag-onde { stroke: #fff; stroke-width: 1.8; stroke-linecap: round; fill: none; }

/* Statistiques */
.pq-cpt { font-size: 27px; font-weight: 800; letter-spacing: -.03em; fill: var(--navy); font-variant-numeric: tabular-nums; }
.pq-cpt-lib { font-size: 11px; font-weight: 600; fill: var(--mention); }
.pq-hausse { font-family: var(--mono) !important; font-size: 13px; font-weight: 500; fill: var(--vert); }
.pq-barres rect { fill: #E5EBF0; }
.pq-axe { stroke: #C9D2DA; stroke-width: 1.5; fill: none; }
.pq-courbe { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100 120; }
.pq-point circle { fill: #fff; stroke: var(--orange); stroke-width: 2.6; }

/* Localisation */
.pq-carte { fill: none; stroke: rgba(17, 43, 60, .2); stroke-width: 4.6; stroke-linecap: round; }
.pq-coeur { fill: var(--navy); }
.pq-ville:first-child .pq-coeur { fill: var(--orange); }
.pq-pulse { fill: none; stroke: var(--orange); stroke-width: 1.2; opacity: 0; }
.js:not(.rm) .pq-av.pulse .pq-pulse { animation: pq-pulse 3s var(--ease-sortie) infinite; }
.pq-ville:nth-child(2) .pq-pulse { animation-delay: -.4s !important; } .pq-ville:nth-child(3) .pq-pulse { animation-delay: -1.1s !important; }
.pq-ville:nth-child(4) .pq-pulse { animation-delay: -1.7s !important; } .pq-ville:nth-child(5) .pq-pulse { animation-delay: -2.2s !important; }
.pq-ville:nth-child(6) .pq-pulse { animation-delay: -.8s !important; } .pq-ville:nth-child(7) .pq-pulse { animation-delay: -2.6s !important; }
.pq-ville:nth-child(8) .pq-pulse { animation-delay: -1.4s !important; }
@keyframes pq-pulse { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(4.2); opacity: 0; } }
.pq-epingle path { fill: var(--orange); }
.pq-epingle circle { fill: #fff; }
.pq-epingle-ombre { fill: rgba(17, 43, 60, .16); }
.pq-ville-nom { font-size: 11px; font-weight: 700; fill: var(--navy); }

@media (max-width: 1080px) {
  .pq-avantages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pq-avantages { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .pq-svg { max-width: 360px; margin-bottom: 16px; }
}

/* ---- composants/references.css ---- */
/* Accueil : références (logos défilants, exemples de personnalisation, partenaires). */

.rf { overflow: clip; }
.rf-titre { max-width: 12em; }
.rf-defile { margin-top: clamp(48px, 6vw, 84px); }
.rf-defile .defile-groupe img { height: calc(clamp(32px, 3.6vw, 54px) * var(--k, 1)); width: auto; }
/* Mouvement réduit : la bande s'arrête, les six logos uniques restent tous visibles. */
html.rm .rf-defile .defile-groupe { flex-wrap: wrap; justify-content: center; row-gap: 28px; padding-inline: var(--gouttiere); }
html.rm .rf-defile .defile-groupe[aria-hidden], html.rm .rf-defile .defile-groupe img:nth-child(n+7) { display: none; }
html.rm .rf-defile { -webkit-mask-image: none; mask-image: none; }
.rf-ligne { margin-top: clamp(36px, 4.4vw, 60px); font-size: var(--chapo); line-height: 1.55; color: var(--mention-sombre); max-width: 34em; }

.rf-titre2 { margin-top: clamp(96px, 11vw, 168px); max-width: 12em; }

.rf-exemples-texte { max-width: 38em; }

/* Exemples de personnalisation : rendus 3D carrés sur fond transparent, jamais recadrés (largeur 100 %,
   hauteur auto). Trois colonnes, deux en dessous de 760 px. La lumière vient des produits eux-mêmes. */
.rf-galerie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.6vw, 56px) clamp(12px, 2vw, 32px); margin-top: clamp(32px, 4vw, 60px); }
.rf-ex { margin: 0; }
.rf-ex img { display: block; width: 100%; height: auto; transition: transform 1s var(--ease-doux); }
.rf-ex figcaption { margin-top: 6px; text-align: center; font-size: .9375rem; line-height: 1.45; color: var(--mention-sombre); }
.rf-ex figcaption span { display: block; color: #fff; font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .rf-ex:hover img { transform: translateY(-8px); }
}
html.rm .rf-ex img { transition: none; }

.rf-partenaires { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); align-items: center; gap: 28px 48px; margin-top: clamp(80px, 9vw, 140px); padding-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--ligne-sombre); }
.rf-partenaires-titre { color: #fff; }
.rf-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px clamp(32px, 5vw, 72px); }
.rf-logos img { height: calc(clamp(40px, 4vw, 58px) * var(--k, 1)); width: auto; filter: brightness(0) invert(1); opacity: .86; }

@media (max-width: 860px) {
  .rf-partenaires { grid-template-columns: 1fr; }
  .rf-logos { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .rf-galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
}
@media (max-width: 520px) {
  .rf-ex figcaption { font-size: .8125rem; }
  .rf-logos { gap: 26px 36px; }
}
/* trois produits standard : une seule rangée, aussi sur téléphone */
@media (max-width: 760px) { .rf-galerie--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 8px; } }

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