/* REDAStocks — site vitrine. Sombre gris-bleu par défaut (celui du logiciel), clair si le système le demande. */
@font-face { font-family: "Inter"; src: url("/polices/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/polices/jakarta.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --fond: #0c111b;
  --fond-2: #111826;
  --surface: #151e2d;
  --surface-2: #1b2537;
  --bordure: rgba(148, 163, 184, 0.13);
  --bordure-forte: rgba(148, 163, 184, 0.25);
  --texte: #eef2f8;
  --texte-doux: #a7b2c5;
  --texte-faible: #7b889e;
  --rouge: #e3263f;
  --rouge-vif: #ff4058;
  --rouge-fonce: #b9142b;
  --rouge-voile: rgba(227, 38, 63, 0.13);
  --sur-rouge: #ffffff;
  --lien: #ff8a98;
  --vert: #34d399;
  --ambre: #fbbf24;
  --halo-rouge: rgba(227, 38, 63, 0.5);
  --halo-bleu: rgba(59, 130, 246, 0.3);
  --ombre-douce: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --ombre-forte: 0 30px 80px -20px rgba(0, 0, 0, 0.75), 0 10px 30px rgba(0, 0, 0, 0.35);
  --rayon: 20px;
  --courbe: cubic-bezier(0.2, 0.75, 0.2, 1);
  --titres: "Jakarta", "Inter", system-ui, sans-serif;
  --entete: 72px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --fond: #f7f8fb;
    --fond-2: #eef1f6;
    --surface: #ffffff;
    --surface-2: #f6f8fb;
    --bordure: rgba(15, 23, 42, 0.09);
    --bordure-forte: rgba(15, 23, 42, 0.16);
    --texte: #0f172a;
    --texte-doux: #475569;
    --texte-faible: #64748b;
    --rouge: #d0142f;
    --rouge-vif: #e3263f;
    --rouge-fonce: #a50e26;
    --rouge-voile: rgba(208, 20, 47, 0.08);
    --lien: #b10f29;
    --vert: #059669;
    --ambre: #d97706;
    --halo-rouge: rgba(227, 38, 63, 0.22);
    --halo-bleu: rgba(59, 130, 246, 0.16);
    --ombre-douce: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.07);
    --ombre-forte: 0 30px 70px -24px rgba(15, 23, 42, 0.35), 0 10px 30px rgba(15, 23, 42, 0.1);
    color-scheme: light;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--entete) + 12px); overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body:has(dialog[open]) { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic { width: 1.15em; height: 1.15em; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
h1, h2, h3 { font-family: var(--titres); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.025em; font-weight: 750; }
/* L'espace de Plus Jakarta Sans est étroite : on l'élargit partout où cette police sert */
h1, h2, h3, .points strong, .donnees-tuiles li, .regle, .pied h2 { word-spacing: 0.1em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
a { color: var(--lien); }
:focus-visible { outline: 3px solid var(--rouge-vif); outline-offset: 3px; border-radius: 8px; }
.largeur { width: min(1200px, 100% - 32px); margin-inline: auto; }
.evitement { position: absolute; left: -9999px; top: 0; }
.evitement:focus { left: 16px; top: 16px; z-index: 60; background: var(--surface); color: var(--texte); padding: 8px 14px; border-radius: 8px; }

/* Barre de lecture (navigateurs qui savent lier une animation au défilement) */
.progression { position: fixed; inset: 0 0 auto; height: 2px; z-index: 40; background: linear-gradient(90deg, var(--rouge-vif), #ff8a5c); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .progression { animation: progression linear both; animation-timeline: scroll(root); }
}
@keyframes progression { to { transform: scaleX(1); } }

/* En-tête */
.entete {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--fond) 84%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--bordure);
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.js .entete:not(.defile):not(.menu-ouvert) { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.entete.defile { box-shadow: 0 12px 30px -20px rgba(0, 0, 0, 0.6); }
.entete-ligne { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--entete); transition: height 0.35s var(--courbe); }
.entete.defile .entete-ligne { height: 62px; }
.marque { display: block; flex: none; }
.marque img { width: 172px; }
.navigation { display: flex; align-items: center; gap: 4px; }
.navigation a:not(.bouton) { position: relative; color: var(--texte-doux); text-decoration: none; font-weight: 550; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.navigation a:not(.bouton):hover { color: var(--texte); background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.navigation a:not(.bouton)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--rouge-vif); transform: scaleX(0); transition: transform 0.35s var(--courbe); }
.navigation a.actif { color: var(--texte); }
.navigation a.actif::after { transform: scaleX(1); }
.navigation .bouton { margin-left: 10px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--bordure-forte); background: var(--surface); color: var(--texte); cursor: pointer; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.3s var(--courbe), opacity 0.2s; }
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.menu-ouvert .burger span { background: transparent; }
.menu-ouvert .burger span::before { transform: translateY(6px) rotate(45deg); }
.menu-ouvert .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* Boutons et liens */
.bouton {
  --h: 50px;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px; border-radius: 12px;
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--courbe), box-shadow 0.3s, background 0.3s, border-color 0.3s, color 0.3s;
}
.bouton-principal { background: linear-gradient(180deg, var(--rouge-vif), var(--rouge)); color: var(--sur-rouge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 30px -10px rgba(227, 38, 63, 0.7); }
.bouton-principal::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.38) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.75s var(--courbe); }
.bouton-principal:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 18px 40px -12px rgba(227, 38, 63, 0.85); }
.bouton-principal:hover::after { transform: translateX(120%); }
.bouton-second { background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--texte); border-color: var(--bordure-forte); }
.bouton-second:hover { transform: translateY(-2px); border-color: var(--texte-faible); background: var(--surface-2); }
.bouton .ic { transition: transform 0.3s var(--courbe); }
.bouton:hover .ic { transform: translateX(4px); }
.bouton-petit { --h: 40px; padding: 0 16px; font-size: 0.93rem; border-radius: 10px; }
.bouton-grand { --h: 60px; padding: 0 30px; font-size: 1.12rem; }
.en-savoir { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 0.95rem; color: var(--texte); text-decoration: none; padding: 6px 0; }
.en-savoir svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--rouge-voile); color: var(--rouge-vif); transition: transform 0.35s var(--courbe), background 0.3s, color 0.3s; }
.en-savoir span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size 0.35s var(--courbe); }
.en-savoir:hover span { background-size: 100% 1.5px; }
.en-savoir:hover svg { transform: rotate(90deg); background: var(--rouge); color: #fff; }
.lien-fleche { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; text-decoration: none; color: var(--texte); }
.lien-fleche svg { width: 18px; height: 18px; color: var(--rouge-vif); transition: transform 0.3s var(--courbe); }
.lien-fleche:hover svg { transform: translateX(5px); }

/* Sections */
.bloc { --fond-section: var(--fond); position: relative; overflow-x: clip; padding: clamp(72px, 10vw, 124px) 0; background: var(--fond-section); }
.bloc-fonce { --fond-section: var(--fond-2); }
.entete-section { max-width: 740px; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.entete-gauche { text-align: left; margin: 0 0 8px; }
.surtitre { display: inline-block; color: var(--rouge-vif); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.intro { color: var(--texte-doux); font-size: 1.15rem; margin: 0; }
.note { color: var(--texte-doux); text-align: center; margin: 36px 0 0; }

/* Accueil : accroche */
.heros { position: relative; isolation: isolate; overflow: hidden; margin-top: calc(-1 * var(--entete)); padding: calc(var(--entete) + clamp(36px, 6vw, 84px)) 0 clamp(56px, 7vw, 96px); }
.heros-fond { position: absolute; inset: 0; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.grille-fond {
  position: absolute; inset: 0; opacity: 0.6;
  background-image: linear-gradient(var(--bordure) 1px, transparent 1px), linear-gradient(90deg, var(--bordure) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 55% 30%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 55% 30%, #000 25%, transparent 75%);
}
.halo { position: absolute; border-radius: 50%; filter: blur(70px); }
.halo-1 { width: 640px; height: 640px; top: -200px; right: -140px; background: radial-gradient(circle, var(--halo-rouge), transparent 65%); animation: derive 18s ease-in-out infinite alternate; }
.halo-2 { width: 560px; height: 560px; bottom: -260px; left: -180px; background: radial-gradient(circle, var(--halo-bleu), transparent 65%); animation: derive 23s ease-in-out infinite alternate-reverse; }
@keyframes derive { to { transform: translate3d(-70px, 50px, 0) scale(1.14); } }
.heros-grille { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pastille { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border-radius: 999px; border: 1px solid var(--bordure-forte); background: color-mix(in srgb, var(--surface) 65%, transparent); color: var(--texte-doux); font-size: 0.88rem; font-weight: 600; margin-bottom: 22px; }
.point-vivant { width: 8px; height: 8px; border-radius: 50%; background: var(--rouge-vif); animation: pouls 2.2s infinite; }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(255, 64, 88, 0.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 64, 88, 0); } }
.degrade { background: linear-gradient(100deg, var(--rouge-vif), #ff8a5c 45%, var(--rouge-vif) 90%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: reflet 7s linear infinite; }
@keyframes reflet { to { background-position: -200% center; } }
.chapeau { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--texte-doux); max-width: 31em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 30px; }
.atouts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--texte-doux); font-size: 0.93rem; font-weight: 500; }
.atouts li { display: inline-flex; align-items: center; gap: 8px; }
.atouts svg { width: 18px; height: 18px; color: var(--rouge-vif); }

.heros-visuel { position: relative; perspective: 1800px; padding: 0 7% 44px 0; }
.scene { position: relative; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.7s var(--courbe); }
.lueur { position: absolute; inset: 10% 8% 0; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, var(--halo-rouge), transparent); filter: blur(40px); }

/* Cadres d'appareils */
.navigateur { border-radius: 14px; overflow: hidden; background: #0b1019; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: var(--ombre-forte); }
.navigateur-barre { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: linear-gradient(#1c2534, #151d2a); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.navigateur-barre i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.navigateur-barre i:nth-child(2) { background: #febc2e; }
.navigateur-barre i:nth-child(3) { background: #28c840; }
.navigateur-barre b { margin: 0 auto; padding: 2px 16px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); color: #8d99ad; font-size: 0.72rem; font-weight: 500; transform: translateX(-18px); }
.telephone { position: relative; padding: 7px; border-radius: 32px; background: #05080d; border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: var(--ombre-forte); }
.telephone::before { content: ""; position: absolute; top: 13px; left: 50%; width: 26%; height: 9px; border-radius: 9px; background: #05080d; transform: translateX(-50%); z-index: 1; }
.telephone img { border-radius: 25px; }
.tablette { padding: 12px; border-radius: 28px; background: #06090f; border: 1px solid rgba(255, 255, 255, 0.13); box-shadow: var(--ombre-forte); }
.tablette img { border-radius: 16px; }
.heros .telephone { position: absolute; right: -9%; bottom: -10%; width: 27%; }

.badge-flottant { position: absolute; display: flex; align-items: center; gap: 12px; padding: 11px 16px 11px 11px; border-radius: 14px; background: color-mix(in srgb, var(--surface-2) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--bordure-forte); box-shadow: var(--ombre-forte); font-size: 0.82rem; line-height: 1.3; color: var(--texte-doux); white-space: nowrap; }
.badge-flottant strong { display: block; color: var(--texte); font-size: 0.9rem; }
.badge-icone { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--vert) 16%, transparent); color: var(--vert); }
.badge-icone svg { width: 20px; height: 20px; }
.badge-icone.ambre { background: color-mix(in srgb, var(--ambre) 16%, transparent); color: var(--ambre); }
.badge-1 { left: -7%; top: 52%; }
.badge-2 { right: 16%; top: -6%; }

/* Bandeau des entreprises qui travaillent avec nous */
.partenaires { padding: 10px 0 0; }
.partenaires .largeur { padding: 30px 0 34px; border-block: 1px solid var(--bordure); }
.partenaires-titre { text-align: center; color: var(--texte-faible); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 22px; }
.partenaires-logos { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 28px clamp(48px, 10vw, 120px); }
.partenaires-logos img { width: auto; height: 104px; opacity: 0.88; transition: opacity 0.4s, transform 0.4s var(--courbe); }
.partenaires-logos .logo-compact img { height: 96px; }
.partenaires-logos li:hover img { opacity: 1; transform: scale(1.05); }

/* Fonctions en tuiles */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; grid-template-areas: "circuits circuits atelier" "noire noire atelier" "suivi planning documents" "equipes maj maj"; }
.t-circuits { grid-area: circuits; } .t-noire { grid-area: noire; } .t-atelier { grid-area: atelier; } .t-suivi { grid-area: suivi; }
.t-planning { grid-area: planning; } .t-documents { grid-area: documents; } .t-equipes { grid-area: equipes; } .t-maj { grid-area: maj; }
.tuile { position: relative; isolation: isolate; display: flex; flex-direction: column; border-radius: var(--rayon); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--bordure); overflow: hidden; transition: transform 0.4s var(--courbe), border-color 0.4s, box-shadow 0.4s; }
.tuile::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 0%), rgba(227, 38, 63, 0.13), transparent 60%); opacity: 0; transition: opacity 0.4s; }
.tuile:hover { transform: translateY(-5px); border-color: var(--bordure-forte); box-shadow: var(--ombre-forte); }
.tuile:hover::before { opacity: 1; }
.tuile-texte { position: relative; z-index: 1; padding: 26px 26px 20px; }
.tuile-icone { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--rouge-vif); background: var(--rouge-voile); border: 1px solid color-mix(in srgb, var(--rouge) 28%, transparent); margin-bottom: 16px; }
.tuile-icone svg { width: 22px; height: 22px; }
.tuile h3 { margin-bottom: 6px; }
.tuile p { color: var(--texte-doux); margin: 0 0 12px; }
.tuile-visuel { position: relative; z-index: 1; margin: auto 0 0; padding-left: 26px; }
.tuile-visuel img { width: 100%; height: 200px; object-fit: cover; object-position: left top; border-radius: 12px 0 0 0; border: 1px solid var(--bordure-forte); border-width: 1px 0 0 1px; box-shadow: var(--ombre-douce); transition: transform 0.7s var(--courbe); transform-origin: left top; }
.tuile:hover .tuile-visuel img { transform: scale(1.03); }
.tuile-large { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); align-items: stretch; }
.tuile-large .tuile-texte { align-self: center; padding: 30px; }
.tuile-large .tuile-visuel { margin: 0; padding: 30px 0 0; align-self: end; }
.tuile-large .tuile-visuel img { height: 290px; }
.tuile-haute .tuile-visuel { display: flex; justify-content: center; padding: 6px 26px 0; }
.tuile-haute .telephone { width: min(230px, 80%); padding: 7px 7px 0; border-radius: 32px 32px 0 0; border-bottom: 0; box-shadow: var(--ombre-douce); }
.tuile-haute .telephone img { height: 400px; object-fit: cover; object-position: top; border-radius: 25px 25px 0 0; }
.tuile-pastille { position: absolute; z-index: 2; right: 18px; top: 46px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; font-size: 0.82rem; font-weight: 650; background: color-mix(in srgb, var(--surface-2) 92%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--bordure-forte); box-shadow: var(--ombre-douce); color: var(--texte); }
.tuile-pastille svg { width: 16px; height: 16px; color: var(--vert); }

/* Notification « hors ligne → synchronisé » sur le téléphone */
.toast-sync { position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--surface-2) 94%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--bordure-forte); box-shadow: var(--ombre-forte); font-size: 0.82rem; font-weight: 650; white-space: nowrap; }
.toast-sync span { grid-area: 1 / 1; display: flex; align-items: center; gap: 8px; }
.toast-sync svg { width: 16px; height: 16px; }
.sync-a svg { color: var(--ambre); }
.sync-b svg { color: var(--vert); }
.sync-b { opacity: 0; }

/* Maquette animée d'une mise à jour */
.maquette-maj { position: relative; z-index: 1; margin: auto 26px 26px; padding: 20px; border-radius: 16px; background: var(--fond-section, var(--fond)); border: 1px solid var(--bordure-forte); box-shadow: var(--ombre-douce); }
.maj-entete { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 0.85rem; color: var(--texte-doux); line-height: 1.3; }
.maj-entete strong { display: block; color: var(--texte); font-size: 0.95rem; }
.maj-entete .badge-icone { color: var(--rouge-vif); background: var(--rouge-voile); }
.maj-barre { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin-bottom: 14px; }
.maj-barre span { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rouge-vif), #ff8a5c); transform-origin: left; }
.maj-etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 0.86rem; color: var(--texte-doux); }
.maj-etapes li { display: flex; align-items: center; gap: 8px; }
.maj-etapes svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; stroke-width: 2.6; color: #fff; background: var(--vert); }

/* Ergonomie */
.deux-cotes { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.deux-cotes-inverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.ergonomie-visuel { position: relative; padding: 0 0 70px; }
.carte-themes { position: absolute; right: -5%; bottom: 0; width: 66%; margin: 0; padding: 10px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--bordure-forte); box-shadow: var(--ombre-forte); }
.carte-themes img { border-radius: 10px; }
.carte-themes figcaption { padding: 8px 4px 0; font-size: 0.8rem; color: var(--texte-doux); }
.points { list-style: none; margin: 30px 0; padding: 0; display: grid; gap: 18px; }
.points li { display: flex; gap: 16px; align-items: flex-start; }
.point-icone { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--bordure-forte); color: var(--rouge-vif); box-shadow: var(--ombre-douce); }
.point-icone svg { width: 22px; height: 22px; }
.points strong { display: block; font-family: var(--titres); font-size: 1.07rem; margin-bottom: 1px; }
.points span { color: var(--texte-doux); }

/* Métiers */
.metiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.metier { position: relative; isolation: isolate; overflow: hidden; padding: 30px 28px 28px; border-radius: var(--rayon); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--bordure); transition: transform 0.4s var(--courbe), border-color 0.4s, box-shadow 0.4s; }
.metier::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(227, 38, 63, 0.13), transparent 60%); opacity: 0; transition: opacity 0.4s; }
.metier:hover { transform: translateY(-5px); border-color: var(--bordure-forte); box-shadow: var(--ombre-forte); }
.metier:hover::before { opacity: 1; }
.metier-icone { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--rouge-vif), var(--rouge-fonce)); box-shadow: 0 14px 30px -10px rgba(227, 38, 63, 0.65); margin-bottom: 22px; transition: transform 0.5s var(--courbe); }
.metier:hover .metier-icone { transform: rotate(-6deg) scale(1.06); }
.metier-icone svg { width: 30px; height: 30px; }
.etiquettes { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.etiquettes li { padding: 5px 12px; border-radius: 999px; background: var(--fond-section); border: 1px solid var(--bordure-forte); color: var(--texte-doux); font-size: 0.86rem; font-weight: 550; }

/* Vos données */
.donnees-tuiles { list-style: none; margin: 30px 0 26px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.donnees-tuiles li { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--bordure); font-family: var(--titres); font-weight: 650; line-height: 1.3; transition: transform 0.4s var(--courbe), border-color 0.4s; }
.donnees-tuiles li:hover { transform: translateY(-3px); border-color: var(--bordure-forte); }
.donnees-tuiles svg { width: 26px; height: 26px; color: var(--rouge-vif); }
.coffre { position: relative; width: 100%; max-width: 470px; aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.anneau { position: absolute; border-radius: 50%; border: 1px dashed var(--bordure-forte); }
.anneau-1 { inset: 0; animation: tourner 70s linear infinite; }
.anneau-2 { inset: 15%; border-style: solid; border-color: var(--bordure); animation: tourner 45s linear infinite reverse; }
.anneau-3 { inset: 30%; border-style: solid; border-color: color-mix(in srgb, var(--rouge) 35%, transparent); }
.satellite { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--rouge-vif); box-shadow: 0 0 18px var(--rouge-vif); }
.anneau-2 .satellite { top: auto; bottom: -5px; width: 10px; height: 10px; background: var(--vert); box-shadow: 0 0 16px var(--vert); }
@keyframes tourner { to { rotate: 360deg; } }
.coffre-coeur { position: relative; width: 32%; aspect-ratio: 1; border-radius: 28%; display: grid; place-items: center; color: var(--rouge-vif); background: linear-gradient(145deg, var(--surface-2), var(--surface)); border: 1px solid var(--bordure-forte); box-shadow: var(--ombre-forte), 0 0 70px -10px var(--halo-rouge); }
.coffre-coeur svg { width: 46%; height: 46%; stroke-width: 1.5; }
.coffre-etiquette { position: absolute; display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 11px; background: color-mix(in srgb, var(--surface-2) 92%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--bordure-forte); box-shadow: var(--ombre-douce); font-size: 0.84rem; font-weight: 650; white-space: nowrap; }
.coffre-etiquette svg { width: 16px; height: 16px; color: var(--vert); stroke-width: 2.4; }
.et-1 { top: 13%; left: -3%; }
.et-2 { top: 47%; right: -7%; }
.et-3 { bottom: 11%; left: 7%; }

/* Démarche */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; counter-reset: etape; }
.etapes::before { content: ""; position: absolute; top: 32px; left: 12.5%; right: 12.5%; height: 2px; background: linear-gradient(90deg, var(--rouge-vif), color-mix(in srgb, var(--rouge) 18%, transparent)); transform-origin: left; transition: transform 1.6s var(--courbe) 0.2s; }
.etapes li { position: relative; text-align: center; counter-increment: etape; }
.etape-icone { position: relative; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--fond-section); border: 2px solid var(--rouge); color: var(--rouge-vif); box-shadow: 0 0 0 8px var(--fond-section), 0 12px 30px -8px rgba(227, 38, 63, 0.6); }
.etape-icone svg { width: 26px; height: 26px; }
.etape-icone::after { content: counter(etape); position: absolute; top: -6px; right: -8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--rouge); color: #fff; font-size: 0.75rem; font-weight: 800; font-family: var(--titres); }
.etapes h3 { margin-bottom: 6px; }
.etapes p { color: var(--texte-doux); margin: 0 auto; font-size: 0.97rem; max-width: 18em; }

/* Qui sommes-nous (encart d'accueil) */
.apropos { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 28px; background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--bordure); }
.apropos::after { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, var(--halo-rouge), transparent 65%); opacity: 0.6; pointer-events: none; }
.apropos h2 { max-width: 18em; }
.portrait { position: relative; width: clamp(130px, 16vw, 184px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-family: var(--titres); font-weight: 800; font-size: clamp(2rem, 3.1vw, 2.8rem); letter-spacing: -0.03em; color: #fff; background: linear-gradient(135deg, var(--rouge-vif), var(--rouge-fonce)); box-shadow: 0 24px 50px -16px rgba(227, 38, 63, 0.65); }
.portrait::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--rouge) 45%, transparent); animation: tourner 36s linear infinite; }
.parcours-puces { list-style: none; margin: 8px 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.parcours-puces li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--fond-section); border: 1px solid var(--bordure-forte); font-weight: 600; font-size: 0.92rem; }
.parcours-puces svg { width: 18px; height: 18px; color: var(--rouge-vif); }

/* Appel au contact */
.cta { position: relative; isolation: isolate; text-align: center; padding: clamp(48px, 7vw, 92px) clamp(20px, 5vw, 64px); border-radius: 30px; border: 1px solid var(--bordure); background: radial-gradient(640px 320px at 50% 0%, color-mix(in srgb, var(--rouge) 26%, transparent), transparent 70%), linear-gradient(180deg, var(--surface-2), var(--surface)); overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; padding: 1.5px; border-radius: inherit; background: conic-gradient(from var(--angle), transparent 0 62%, var(--rouge-vif) 78%, transparent 92%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: tour-bordure 7s linear infinite; }
@keyframes tour-bordure { to { --angle: 360deg; } }
.cta h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.cta > p:not(.surtitre) { color: var(--texte-doux); font-size: 1.15rem; max-width: 34em; margin-inline: auto; }
.cta .bouton { margin: 14px 0 0; max-width: 100%; overflow-wrap: anywhere; }
.cta-autres { font-size: 0.95rem; margin: 22px 0 0; color: var(--texte-doux); }

/* Pied de page */
.pied { border-top: 1px solid var(--bordure); padding: 56px 0 26px; background: var(--fond); color: var(--texte-doux); font-size: 0.95rem; }
.pied-grille { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.pied-marque img { width: 160px; margin-bottom: 14px; }
.pied-marque p { max-width: 22em; }
.pied h2 { font-family: var(--titres); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texte); margin: 8px 0 16px; }
.pied nav { display: flex; flex-direction: column; gap: 10px; }
.pied a { color: var(--texte-doux); text-decoration: none; width: fit-content; transition: color 0.2s; }
.pied a:hover { color: var(--texte); }
.pied-bas { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--bordure); font-size: 0.88rem; }
.pied-bas p { margin: 0; }

/* Fiches « En savoir plus » */
.detail { width: min(1080px, 100% - 32px); max-width: none; max-height: calc(100dvh - 40px); padding: 0; border: 0; background: transparent; color: var(--texte); overflow: visible; }
.detail::backdrop { background: rgba(4, 7, 12, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.detail-boite { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior: contain; border-radius: 24px; background: var(--surface); border: 1px solid var(--bordure-forte); box-shadow: var(--ombre-forte); }
.detail-visuel { margin: 0; padding: 30px; display: flex; align-items: center; justify-content: center; background: radial-gradient(500px 300px at 30% 20%, color-mix(in srgb, var(--rouge) 16%, transparent), transparent 70%), var(--fond-2); }
.detail-visuel img { border-radius: 12px; border: 1px solid var(--bordure-forte); box-shadow: var(--ombre-forte); }
.detail-visuel .telephone { width: min(260px, 70%); }
.detail-texte { padding: 40px 36px 36px; }
.detail-texte h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.detail-fermer { position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--bordure-forte); color: var(--texte); transition: transform 0.3s var(--courbe), background 0.3s; }
.detail-fermer:hover { transform: rotate(90deg); background: var(--rouge); color: #fff; }
.detail-fermer svg { width: 20px; height: 20px; }
.liste-coches { list-style: none; margin: 18px 0 28px; padding: 0; display: grid; gap: 12px; }
.liste-coches li { display: flex; gap: 12px; color: var(--texte-doux); }
.liste-coches li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--rouge-voile) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff4058' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
/* Fenêtre « Demander une démonstration » */
.fiche-formulaire { width: min(640px, 100% - 32px); }
.formulaire-boite { display: block; padding: clamp(26px, 4vw, 40px); }
.formulaire-entete h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: 8px; padding-right: 44px; }
.formulaire-entete p { color: var(--texte-doux); margin: 0 0 20px; }
.choix-sujet { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; }
.choix-sujet label { position: relative; cursor: pointer; }
.choix-sujet input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choix-sujet span { display: inline-flex; align-items: center; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--bordure-forte); color: var(--texte-doux); font-weight: 600; font-size: 0.92rem; transition: background 0.25s, border-color 0.25s, color 0.25s; }
.choix-sujet label:hover span { border-color: var(--texte-faible); color: var(--texte); }
.choix-sujet input:checked + span { background: var(--rouge-voile); border-color: var(--rouge-vif); color: var(--texte); }
.choix-sujet input:focus-visible + span { outline: 3px solid var(--rouge-vif); outline-offset: 2px; }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.champ { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; font-weight: 600; }
.champ em { font-style: normal; font-weight: 500; color: var(--texte-faible); }
.champ-large { grid-column: 1 / -1; }
.champ input, .champ select, .champ textarea { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--bordure-forte); background: var(--fond-2); color: var(--texte); font: inherit; font-size: 1rem; font-weight: 400; transition: border-color 0.2s, box-shadow 0.2s; }
.champ textarea { resize: vertical; min-height: 100px; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--rouge-vif); box-shadow: 0 0 0 3px var(--rouge-voile); }
.champ.invalide input, .champ.invalide select { border-color: var(--rouge-vif); }
.champ.invalide span::after { content: " — à remplir"; color: var(--rouge-vif); font-weight: 500; }
.champ.invalide.mal-ecrit span::after { content: " — à vérifier"; }
.pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire-erreur { margin: 16px 0 0; padding: 11px 14px; border-radius: 10px; background: var(--rouge-voile); border: 1px solid color-mix(in srgb, var(--rouge) 30%, transparent); font-size: 0.93rem; }
.bouton-envoyer { width: 100%; margin-top: 20px; }
.bouton-envoyer[disabled] { opacity: 0.75; cursor: progress; transform: none; }
.formulaire-note { margin: 12px 0 0; text-align: center; font-size: 0.82rem; color: var(--texte-faible); }
.formulaire-note a { color: var(--texte-doux); }
.formulaire-merci { text-align: center; padding: 26px 0 8px; }
.formulaire-merci p { color: var(--texte-doux); }
.merci-coche { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--vert); color: #fff; box-shadow: 0 16px 40px -12px var(--vert); }
.merci-coche svg { width: 38px; height: 38px; stroke-width: 2.6; stroke-dasharray: 30; stroke-dashoffset: 0; }
@keyframes tracer { from { stroke-dashoffset: 30; } }
@media (prefers-reduced-motion: no-preference) {
  .formulaire-merci:not([hidden]) .merci-coche { animation: apparaitre 0.5s var(--courbe) both; }
  .formulaire-merci:not([hidden]) .merci-coche svg { animation: tracer 0.45s 0.3s ease both; }
}
@media (max-width: 640px) { .champs { grid-template-columns: 1fr; } }

html:not(.js) .detail:target { display: block; position: fixed; inset: 0; margin: auto; height: fit-content; z-index: 50; box-shadow: 0 0 0 100vmax rgba(4, 7, 12, 0.75); border-radius: 24px; }

/* Pages : qui sommes-nous, mentions légales, 404 */
.page-heros { position: relative; isolation: isolate; overflow: hidden; margin-top: calc(-1 * var(--entete)); padding: calc(var(--entete) + clamp(40px, 7vw, 96px)) 0 clamp(56px, 8vw, 104px); }
.page-heros .chapeau { max-width: 34em; }
.orbite { position: relative; width: min(420px, 100%); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.orbite .portrait { width: 46%; font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.orbite .anneau-1 { inset: 4%; }
.orbite-puce { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: color-mix(in srgb, var(--surface-2) 92%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--bordure-forte); box-shadow: var(--ombre-douce); font-weight: 650; font-size: 0.9rem; white-space: nowrap; }
.orbite-puce svg { width: 18px; height: 18px; color: var(--rouge-vif); }
.op-1 { top: 3%; left: 4%; } .op-2 { top: 3%; right: 2%; } .op-3 { top: 45%; right: -9%; }
.op-4 { bottom: 4%; right: 0; } .op-5 { bottom: 4%; left: -2%; } .op-6 { top: 45%; left: -12%; }
.frise { list-style: none; margin: 0 auto; padding: 0; max-width: 1000px; position: relative; }
.frise::before { content: ""; position: absolute; left: 50%; top: 10px; bottom: 40px; width: 2px; margin-left: -1px; background: linear-gradient(var(--rouge-vif), color-mix(in srgb, var(--rouge) 12%, transparent)); }
.frise > li { position: relative; width: 50%; padding: 0 52px 44px 0; }
.frise > li:nth-child(even) { margin-left: 50%; padding: 0 0 44px 52px; }
.frise-noeud { position: absolute; top: 20px; right: -28px; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--fond-section); border: 2px solid var(--rouge); color: var(--rouge-vif); box-shadow: 0 0 0 8px var(--fond-section), 0 12px 30px -8px rgba(227, 38, 63, 0.55); }
.frise > li:nth-child(even) .frise-noeud { right: auto; left: -28px; }
.frise-noeud svg { width: 26px; height: 26px; }
.frise-carte { padding: 26px 28px; border-radius: var(--rayon); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--bordure); transition: transform 0.4s var(--courbe), border-color 0.4s, box-shadow 0.4s; }
.frise-carte:hover { transform: translateY(-4px); border-color: var(--bordure-forte); box-shadow: var(--ombre-forte); }
.frise-carte h3 { font-size: 1.3rem; }
.frise-carte p { color: var(--texte-doux); margin: 0; }
.lecon { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--rouge-voile); border: 1px solid color-mix(in srgb, var(--rouge) 22%, transparent); font-weight: 600; font-size: 0.97rem; line-height: 1.45; }
.lecon svg { width: 18px; height: 18px; margin-top: 2px; color: var(--rouge-vif); }
.grille-ergo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.regle { margin: clamp(40px, 6vw, 64px) auto 0; max-width: 820px; text-align: center; font-family: var(--titres); font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.regle span { color: var(--rouge-vif); }
.page-texte { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.page-texte .largeur { max-width: 820px; }
.page-texte h2 { font-size: 1.35rem; margin-top: 1.8em; }
.page-texte p, .page-texte li { color: var(--texte-doux); }
.page-texte strong { color: var(--texte); }
.page-introuvable { min-height: 100vh; margin-top: 0; padding: 40px 0; display: grid; place-items: center; text-align: center; }
.page-introuvable .chapeau { margin-inline: auto; }
.detail-visuel .maquette-maj { margin: 0; width: 100%; max-width: 440px; }
.cube-404 { margin: 0 auto 24px; animation: flotter 6s ease-in-out infinite; }

/* Mouvements */
@keyframes flotter { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes monter { from { opacity: 0; translate: 0 24px; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes surgir { from { opacity: 0; transform: translateY(46px) rotateX(14deg) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes glisser { from { opacity: 0; translate: 40px 40px; } to { opacity: 1; translate: 0 0; } }
@keyframes apparaitre { from { opacity: 0; scale: 0.88; } to { opacity: 1; scale: 1; } }
@keyframes revele { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }
@keyframes fiche-entree { from { opacity: 0; transform: translateY(20px) scale(0.97); } }
@keyframes fiche-sortie { to { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes fondu { from { opacity: 0; } }
@keyframes bascule-a { 0%, 44% { opacity: 1; translate: 0 0; } 50%, 94% { opacity: 0; translate: 0 -8px; } 100% { opacity: 1; translate: 0 0; } }
@keyframes bascule-b { 0%, 44% { opacity: 0; translate: 0 8px; } 50%, 94% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 8px; } }
@keyframes barre { 0% { transform: scaleX(0); } 32%, 100% { transform: scaleX(1); } }
@keyframes coche { 0%, 30% { opacity: 0.35; } 34%, 100% { opacity: 1; } }
@keyframes coche-icone { 0%, 30% { background: var(--surface-2); color: transparent; scale: 0.8; } 34%, 100% { background: var(--vert); color: #fff; scale: 1; } }

@media (prefers-reduced-motion: no-preference) {
  .entree { animation: monter 0.9s var(--courbe) both; }
  .e1 { animation-delay: 0.05s; } .e2 { animation-delay: 0.15s; } .e3 { animation-delay: 0.28s; } .e4 { animation-delay: 0.4s; } .e5 { animation-delay: 0.52s; }
  .entree-visuel { animation: surgir 1.2s 0.25s var(--courbe) both; }
  .heros .telephone { animation: glisser 1.1s 0.75s var(--courbe) both; }
  .badge-flottant { animation: apparaitre 0.7s var(--courbe) both, flotter 6s ease-in-out infinite; }
  .badge-1 { animation-delay: 1.05s, 1.75s; }
  .badge-2 { animation-delay: 1.3s, 0s; }
  .coffre-etiquette, .orbite-puce { animation: flotter 7s ease-in-out infinite; }
  .et-2, .op-2 { animation-delay: -2.3s; } .et-3, .op-3 { animation-delay: -4.6s; } .op-4 { animation-delay: -1.2s; }
  .op-5 { animation-delay: -3.4s; } .op-6 { animation-delay: -5.7s; }
  .sync-a { animation: bascule-a 7s ease-in-out infinite; }
  .sync-b { animation: bascule-b 7s ease-in-out infinite; }
  .maj-barre span { animation: barre 9s var(--courbe) infinite; }
  .maj-etapes li { animation: coche 9s infinite; }
  .maj-etapes li svg { animation: coche-icone 9s infinite; }
  .maj-etapes li:nth-child(2), .maj-etapes li:nth-child(2) svg { animation-delay: 0.9s; }
  .maj-etapes li:nth-child(3), .maj-etapes li:nth-child(3) svg { animation-delay: 1.8s; }
  .maj-etapes li:nth-child(4), .maj-etapes li:nth-child(4) svg { animation-delay: 2.7s; }
  .js [data-revele]:not(.vu) { opacity: 0; }
  .js [data-revele].vu { animation: revele 0.9s var(--courbe) var(--retard, 0ms) backwards; }
  .js .etapes[data-revele] { opacity: 1; animation: none; }
  .js .etapes:not(.vu)::before { transform: scaleX(0); }
  .js .tuile-pastille { transition: opacity 0.5s 0.6s, scale 0.5s 0.6s var(--courbe); }
  .js .tuile:not(.vu) .tuile-pastille { opacity: 0; scale: 0.85; }
  .detail[open] { animation: fiche-entree 0.4s var(--courbe); }
  .detail[open]::backdrop { animation: fondu 0.4s ease; }
  .detail.fermeture { animation: fiche-sortie 0.2s ease forwards; }
  .detail.fermeture::backdrop { animation: fondu 0.2s ease reverse forwards; }
}

/* Tablette */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "circuits circuits" "noire noire" "atelier suivi" "atelier planning" "documents equipes" "maj maj"; }
}
@media (max-width: 960px) {
  .heros-grille, .deux-cotes, .deux-cotes-inverse { grid-template-columns: 1fr; }
  .heros-visuel { max-width: 720px; width: 100%; margin-inline: auto; }
  .deux-cotes-inverse > :first-child { order: 2; }
  .metiers { grid-template-columns: 1fr; }
  .etapes { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .etapes::before { display: none; }
  .tuile-large { grid-template-columns: 1fr; }
  .tuile-large .tuile-texte { padding: 26px 26px 6px; }
  .tuile-large .tuile-visuel { padding: 14px 0 0 26px; }
  .tuile-large .tuile-visuel img { height: 240px; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .pied-marque { grid-column: 1 / -1; }
  .ergonomie-visuel { max-width: 680px; width: 100%; margin-inline: auto; }
  .page-heros .orbite { margin-top: 24px; }
}
/* Menu repliable */
@media (max-width: 880px) {
  .js .burger { display: grid; }
  .js .navigation { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 16px 20px; background: color-mix(in srgb, var(--fond) 96%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--bordure); box-shadow: 0 30px 40px -30px rgba(0, 0, 0, 0.6); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.3s, transform 0.3s var(--courbe), visibility 0s 0.3s; }
  .js .menu-ouvert .navigation { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s, transform 0.3s var(--courbe); }
  .js .navigation a:not(.bouton) { padding: 12px 14px; font-size: 1.02rem; }
  .js .navigation a:not(.bouton)::after { display: none; }
  .js .navigation .bouton { margin: 8px 0 0; --h: 48px; }
  html:not(.js) .navigation a:not(.bouton) { display: none; }
}
/* Téléphone */
@media (max-width: 640px) {
  :root { --entete: 64px; }
  .marque img { width: 150px; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "circuits" "noire" "atelier" "suivi" "planning" "documents" "equipes" "maj"; }
  .tuile-large .tuile-visuel img { height: 200px; }
  .etapes { grid-template-columns: 1fr; }
  .actions .bouton { flex: 1 1 100%; }
  .badge-1 { left: -2%; top: auto; bottom: 0; }
  .badge-2 { right: 4%; top: -10%; }
  .heros-visuel { padding: 24px 9% 64px 0; }
  .apropos { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .parcours-puces { justify-content: center; }
  .partenaires-logos img { height: 74px; }
  .partenaires-logos .logo-compact img { height: 68px; }
  .detail-boite { grid-template-columns: 1fr; }
  .detail-visuel { padding: 20px; }
  .detail-texte { padding: 26px 22px 28px; }
  .pied-grille { grid-template-columns: 1fr; }
  .maj-etapes { grid-template-columns: 1fr; }
  .grille-ergo { grid-template-columns: 1fr; }
  .coffre-etiquette { font-size: 0.78rem; padding: 7px 10px; }
  .et-1 { left: 0; } .et-2 { right: 0; }
  .orbite-puce { font-size: 0.8rem; padding: 7px 11px; }
  .orbite .portrait { width: 38%; }
  .op-1 { left: 0; } .op-2 { right: 0; } .op-3 { right: 0; top: 47%; } .op-4 { right: 0; } .op-5 { left: 0; } .op-6 { left: 0; top: 33%; }
  .carte-themes { right: 0; width: 78%; }
  .bouton-grand { --h: 54px; padding: 0 20px; font-size: 1.02rem; }
}
@media (max-width: 760px) {
  .frise::before { left: 28px; }
  .frise > li, .frise > li:nth-child(even) { width: auto; margin-left: 0; padding: 0 0 32px 78px; }
  .frise-noeud, .frise > li:nth-child(even) .frise-noeud { left: 0; right: auto; top: 14px; }
}

/* Mentions légales : bouton « Ne pas compter mes visites » (mesure d'audience), présenté comme un lien */
.lien-refus { font: inherit; font-weight: 600; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
