/* Dream Big Consulting — charte v1.3.1 (skill charte-dreambig). Aucune autre couleur. */

@font-face {
  font-family: "Bodoni Moda";
  src: url("/assets/fonts/bodoni-moda.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("/assets/fonts/bodoni-moda-italic.woff2") format("woff2");
  font-weight: 500 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --nuit: #0F1B33;
  --or-ecran: #C9A24E;
  --or-print: #B8892E;
  --ivoire: #F4EFE6;
  --ivoire-papier: #FBF8F2;
  --gris: #4A5468;
  --gris-clair: #B9BFCC;
  --filet: #E2DCCF;

  --serif: "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif;
  --sans: "Instrument Sans", Inter, Helvetica, Arial, sans-serif;
  --largeur: 72rem;
  --gouttiere: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  background: var(--ivoire-papier);
  color: var(--nuit);
  font: 400 1rem/1.6 var(--sans);
  overflow-wrap: break-word;
}

img, svg, iframe { max-width: 100%; display: block; }

a { color: inherit; text-decoration-color: var(--or-print); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--or-print); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .6em;
  hyphens: auto;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 42rem; }

.wrap { width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin-inline: auto; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--nuit); color: var(--ivoire); padding: .5rem 1rem; z-index: 10; }

/* En-tête et menu */
.site-header { background: var(--ivoire); border-bottom: 1px solid var(--filet); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem 1.5rem; padding-block: .9rem;
}
.site-logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.site-logo img { height: 48px; width: auto; }
.site-logo span { font: 600 1rem/1 var(--serif); text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-weight: 500; padding: .3rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--or-print); }

@media (max-width: 760px) {
  .site-logo img { height: 40px; }
  .site-logo span { font-size: .85rem; }
  .site-header .cta { display: none; }
  .bandeau-preuves .awards { gap: .5rem; }
  .bandeau-preuves .awards li { padding-block: .6rem; }
  .site-nav { order: 3; width: 100%; }
  .site-nav ul { gap: .2rem 1rem; font-size: .95rem; }
}

/* Boutons */
.cta {
  display: inline-block; background: var(--nuit); color: var(--ivoire);
  font-weight: 600; text-decoration: none; padding: .8rem 1.4rem; border: 2px solid var(--nuit);
}
.cta:hover { background: var(--ivoire); color: var(--nuit); }
.cta--ghost { background: transparent; color: var(--nuit); }
.cta--ghost:hover { background: var(--nuit); color: var(--ivoire); }
.site-header .cta { padding: .55rem 1rem; font-size: .95rem; }
.section--nuit .cta { background: var(--or-ecran); border-color: var(--or-ecran); color: var(--nuit); }
.section--nuit .cta:hover { background: transparent; color: var(--or-ecran); }

/* Sections */
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--ivoire { background: var(--ivoire); }
.section--nuit { background: var(--nuit); color: var(--ivoire); }
.section--nuit a { text-decoration-color: var(--or-ecran); }
.label {
  font: 600 .78rem/1.4 var(--sans); letter-spacing: .25em; text-transform: uppercase;
  margin: 0 0 1rem; color: var(--gris);
}
.section--nuit .label { color: var(--gris-clair); }
.lead { font-size: 1.15rem; color: var(--gris); }
.section--nuit .lead { color: var(--gris-clair); }
.filet { width: 4rem; height: 2px; background: var(--or-print); border: 0; margin: 0 0 1.5rem; }
.section--nuit .filet { background: var(--or-ecran); }

/* Hero */
.hero { padding-block: clamp(3rem, 10vw, 7rem); }
.hero .tagline { font: italic 500 1.25rem/1.4 var(--serif); margin-bottom: 1.5rem; }
.hero-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* Preuves */
.proof-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.proof-list li { padding: 1rem 0 1rem 1.6rem; border-top: 1px solid var(--filet); position: relative; }
.proof-list li::before {
  content: ""; position: absolute; left: 0; top: 1.55rem; width: .7rem; height: 2px; background: var(--or-print);
}
.section--nuit .proof-list li { border-top-color: rgba(185, 191, 204, .25); }
.section--nuit .proof-list li::before { background: var(--or-ecran); }

/* Cartes */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.card { background: var(--ivoire-papier); border: 1px solid var(--filet); padding: 1.5rem; display: flex; flex-direction: column; }
.section--ivoire .card { background: var(--ivoire-papier); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--gris); margin-bottom: .8rem; }
.card .more { margin-top: auto; font-weight: 600; }

.badge {
  display: inline-block; font: 600 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid var(--nuit); padding: .35rem .55rem; margin-bottom: .8rem;
}

/* Blocs détaillés (savoir-faire, produits) */
.bloc { padding-block: 2.5rem; border-top: 1px solid var(--filet); display: grid; gap: 1rem 3rem; scroll-margin-top: 1rem; }
@media (min-width: 900px) { .bloc { grid-template-columns: 18rem 1fr; } }
.bloc dl { margin: 0; }
.bloc dt { font: 600 .78rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gris); margin-top: 1rem; }
.bloc dt:first-child { margin-top: 0; }
.bloc dd { margin: .3rem 0 0; max-width: 42rem; }
.bloc .capture { border: 1px solid var(--filet); margin-top: 1rem; }

/* Frise */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--or-print); }
.timeline li { padding: 0 0 2rem 1.5rem; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px;
  background: var(--ivoire-papier); border: 2px solid var(--or-print); border-radius: 50%;
}
.timeline .annee { font: 600 1.6rem/1 var(--serif); display: block; margin-bottom: .3rem; }

/* Vidéo (façade : rien de YouTube n'est chargé avant le clic) */
.video-facade { position: relative; aspect-ratio: 16 / 9; background: var(--nuit); }
.video-facade a { position: absolute; inset: 0; display: block; color: var(--ivoire); text-decoration: none; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-facade span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--nuit); border: 2px solid var(--or-ecran); padding: .8rem 1.2rem;
  font-weight: 600; white-space: nowrap;
}
.video-facade span::before { content: "▶\00a0\00a0"; color: var(--or-ecran); }
.video-facade a:hover span { background: var(--or-ecran); color: var(--nuit); }
.video-facade a:hover span::before { color: var(--nuit); }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-legend { font-size: .9rem; color: var(--gris); margin-top: .6rem; }

/* Pied de page */
.site-footer { background: var(--nuit); color: var(--gris-clair); padding-block: 3rem; font-size: .92rem; }
.site-footer .wrap { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.site-footer img { height: 48px; width: auto; }
.site-footer a { color: var(--ivoire); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer .tagline { font: italic 500 1.05rem/1.4 var(--serif); color: var(--ivoire); margin-top: .8rem; }

/* Distinctions (lauriers dessinés en CSS, or écran sur nuit) */
.awards { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.awards li { position: relative; text-align: center; padding: 1.2rem 3.2rem; }
.awards li::before, .awards li::after {
  content: ""; position: absolute; top: 50%; width: 2.2rem; height: 4rem; transform: translateY(-50%);
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 80'%3E%3Cg fill='%23C9A24E'%3E%3Cpath d='M30 78C16 64 12 40 20 6l2 1C15 40 19 62 32 76z'/%3E%3Cellipse cx='12' cy='22' rx='4' ry='9' transform='rotate(-30 12 22)'/%3E%3Cellipse cx='10' cy='38' rx='4' ry='9' transform='rotate(-45 10 38)'/%3E%3Cellipse cx='13' cy='54' rx='4' ry='9' transform='rotate(-60 13 54)'/%3E%3Cellipse cx='27' cy='18' rx='3.5' ry='8' transform='rotate(25 27 18)'/%3E%3Cellipse cx='28' cy='34' rx='3.5' ry='8' transform='rotate(35 28 34)'/%3E%3Cellipse cx='30' cy='50' rx='3.5' ry='8' transform='rotate(45 30 50)'/%3E%3C/g%3E%3C/svg%3E");
}
.awards li::before { left: 0; }
.awards li::after { right: 0; transform: translateY(-50%) scaleX(-1); }
.awards strong { display: block; font: 600 1.25rem/1.3 var(--serif); color: var(--ivoire); }
.awards span { display: block; margin-top: .4rem; color: var(--gris-clair); font-size: .92rem; }

/* Presse */
.press { list-style: none; margin: 0; padding: 0; }
.press li { border-top: 1px solid var(--filet); }
.press a { display: block; padding: 1rem 0; text-decoration: none; font-weight: 500; }
.press a:hover { text-decoration: underline; text-decoration-color: var(--or-print); }
.press span { display: block; font: 600 .75rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gris); margin-bottom: .2rem; }

/* Accueil : vidéo de fond sous un voile nuit (image fixe sur mobile) */
.hero--video { position: relative; overflow: hidden; background: var(--nuit); color: var(--ivoire); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero-voile { position: absolute; inset: 0; background: rgba(15, 27, 51, .68); }
.hero--video .wrap { position: relative; }
.hero--video .label, .hero--video .lead, .hero--video .video-legend { color: var(--gris-clair); }
.hero--video .cta { background: var(--or-ecran); border-color: var(--or-ecran); color: var(--nuit); }
.hero--video .cta:hover { background: transparent; color: var(--or-ecran); }
.hero--video .cta--ghost { background: transparent; border-color: var(--ivoire); color: var(--ivoire); }
.hero--video .cta--ghost:hover { background: var(--ivoire); color: var(--nuit); }

/* Grille de cinq cartes : 5 colonnes sur grand écran, 3 + 2 centrées au milieu */
.cards--5 { display: flex; flex-wrap: wrap; justify-content: center; }
.cards--5 > .card { flex: 0 1 calc((100% - 2 * 1.25rem) / 3); }
@media (min-width: 1100px) { .cards--5 > .card { flex-basis: calc((100% - 4 * 1.25rem) / 5); } }
@media (max-width: 700px) { .cards--5 > .card { flex-basis: 100%; } }

/* Bandeau distinctions et presse de l'accueil (or print sur ivoire) */
.bandeau-preuves { padding-block: 2.5rem; }
.bandeau-preuves .awards strong { color: var(--nuit); font-size: 1.1rem; }
.bandeau-preuves .awards span { color: var(--gris); }
.bandeau-preuves .awards li::before, .bandeau-preuves .awards li::after { filter: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 80'%3E%3Cg fill='%23B8892E'%3E%3Cpath d='M30 78C16 64 12 40 20 6l2 1C15 40 19 62 32 76z'/%3E%3Cellipse cx='12' cy='22' rx='4' ry='9' transform='rotate(-30 12 22)'/%3E%3Cellipse cx='10' cy='38' rx='4' ry='9' transform='rotate(-45 10 38)'/%3E%3Cellipse cx='13' cy='54' rx='4' ry='9' transform='rotate(-60 13 54)'/%3E%3Cellipse cx='27' cy='18' rx='3.5' ry='8' transform='rotate(25 27 18)'/%3E%3Cellipse cx='28' cy='34' rx='3.5' ry='8' transform='rotate(35 28 34)'/%3E%3Cellipse cx='30' cy='50' rx='3.5' ry='8' transform='rotate(45 30 50)'/%3E%3C/g%3E%3C/svg%3E"); }
.vu-dans { text-align: center; max-width: none; margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--filet); font: 600 1rem/1.8 var(--serif); letter-spacing: .04em; }
.vu-dans .label { display: inline; margin: 0 .8rem 0 0; }
.vu-dans a { font: 500 .9rem var(--sans); margin-left: .8rem; white-space: nowrap; }
.section--nuit .cta--ghost { background: transparent; border-color: var(--ivoire); color: var(--ivoire); }
.section--nuit .cta--ghost:hover { background: var(--ivoire); color: var(--nuit); }

/* Savoir-faire : numéro et accroche */
.numero { display: block; font: 600 2.6rem/1 var(--serif); color: var(--nuit); margin-bottom: .8rem; }
.numero::after { content: ""; display: block; width: 2rem; height: 2px; background: var(--or-print); margin-top: .5rem; }
.accroche { font: italic 500 1.1rem/1.45 var(--serif); color: var(--gris); margin: .2rem 0 0; }

/* Parcours : grande vidéo */
.video-grande { margin: 2rem 0 0; max-width: 56rem; }

/* Pied de page : monogramme et nom sur une ligne */
.footer-logo { display: flex; align-items: center; gap: .6rem; margin: 0; }
.footer-logo img { height: 40px; width: auto; }
.footer-logo span { font: 600 .95rem/1 var(--serif); text-transform: uppercase; letter-spacing: .12em; color: var(--ivoire); white-space: nowrap; }

/* Grille de six cartes : 3 + 3 dès la tablette */
.cards--6 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
@media (min-width: 760px) { .cards--6 { grid-template-columns: repeat(3, 1fr); } }

/* ===== Motion design au scroll (actif seulement sous html.reveal-on) ===== */
.reveal-on .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--delai, 0ms), transform .8s cubic-bezier(.2,.7,.2,1) var(--delai, 0ms); }
.reveal-on .reveal.is-revealed { opacity: 1; transform: none; }
.reveal-on .filet.reveal { opacity: 1; transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.2,.7,.2,1) .2s; }
.reveal-on .filet.reveal.is-revealed { transform: scaleX(1); }

/* En-tête qui se compacte */
.site-header { position: sticky; top: 0; z-index: 20; transition: box-shadow .3s; }
.site-header .wrap { transition: padding .3s; }
.site-header.is-compact { box-shadow: 0 1px 0 var(--filet), 0 8px 24px rgba(15, 27, 51, .08); }
.site-header.is-compact .wrap { padding-block: .45rem; }

/* Parallaxe de la vidéo de fond et sortie du texte */
.hero--video .hero-video { transform: translate3d(0, var(--parallaxe, 0), 0) scale(var(--zoom, 1.08)); }
.hero--video .wrap { opacity: var(--sortie, 1); }

/* Filigrane du monogramme sur les pages intérieures */
.hero:not(.hero--video) { position: relative; overflow: hidden; }
.hero:not(.hero--video)::after {
  content: ""; position: absolute; right: -4%; top: -10%; width: min(46vw, 34rem); aspect-ratio: 108 / 136;
  background: no-repeat center / contain url("/assets/img/monogramme-clair.svg"); opacity: .06; pointer-events: none;
  transform: translate3d(0, var(--filigrane, 0), 0);
}
.hero:not(.hero--video) > .wrap { position: relative; z-index: 1; }

/* Frise qui se trace au scroll */
.timeline { border-left: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--filet); }
.timeline::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--or-print); transform-origin: top; transform: scaleY(var(--trace, 1)); }
.reveal-on .timeline::after { transform: scaleY(var(--trace, 0)); }
.timeline li::before { z-index: 1; }

/* Chiffres clés de l'accueil */
.chiffres { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.chiffre { display: block; font: 600 clamp(2.8rem, 6vw, 4.2rem)/1 var(--serif); color: var(--ivoire); font-variant-numeric: tabular-nums; }
.chiffres li > span { display: block; margin-top: .5rem; font: 600 .75rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--or-ecran); }

@media (prefers-reduced-motion: reduce) {
  .hero--video .hero-video, .hero:not(.hero--video)::after { transform: none; }
  .site-header, .site-header .wrap { transition: none; }
}

/* ===== Mini-démos produits (en pause tant qu'elles ne sont pas à l'écran) ===== */
.demo { position: relative; background: var(--nuit); color: var(--ivoire); border: 1px solid rgba(201, 162, 78, .35); padding: 1rem 1.1rem; margin: 1rem 0; min-height: 9.5rem; font: 400 .85rem/1.5 var(--sans); overflow: hidden; }
.card .demo { margin: -1.5rem -1.5rem 1.2rem; border: 0; min-height: 8.5rem; }
.demo p { margin: 0; max-width: none; }
.reveal-on .demo, .reveal-on .demo * { animation-duration: 7s; animation-iteration-count: infinite; animation-timing-function: cubic-bezier(.4, 0, .2, 1); animation-play-state: paused; }
.reveal-on .demo.is-playing, .reveal-on .demo.is-playing * { animation-play-state: running; }
.demo-titre { font: 600 .68rem/1.4 var(--sans) !important; letter-spacing: .2em; text-transform: uppercase; color: var(--gris-clair); margin-bottom: .6rem !important; }
.demo-statut { margin-top: .7rem !important; color: var(--or-ecran); font-weight: 600; }
.reveal-on .demo-statut { opacity: 0; animation-name: demo-statut; }
@keyframes demo-statut { 0%, 45% { opacity: 0; transform: translateY(6px); } 52%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* routtx : les données personnelles se masquent */
.pii > span { display: inline-block; vertical-align: bottom; white-space: nowrap; overflow: hidden; }
.pii-clair { max-width: 0; }
.reveal-on .pii-clair { animation-name: pii-clair; }
.pii-masque { max-width: 6em; background: var(--or-ecran); color: var(--nuit); font-weight: 600; }
.reveal-on .pii-masque { max-width: 0; animation-name: pii-masque; }
.reveal-on .demo-texte .pii:nth-of-type(2) > span { animation-delay: .35s; }
@keyframes pii-clair { 0%, 28% { max-width: 20em; } 36%, 92% { max-width: 0; } 100% { max-width: 20em; } }
@keyframes pii-masque { 0%, 28% { max-width: 0; } 36%, 92% { max-width: 6em; } 100% { max-width: 0; } }
.demo--routtx .demo-texte { overflow-wrap: anywhere; }

/* Super Sales : un échange, puis la jauge monte */
.bulle { max-width: 88% !important; padding: .45rem .7rem; margin-bottom: .45rem !important; border: 1px solid rgba(185, 191, 204, .3); }
.reveal-on .bulle { opacity: 0; }
.bulle b { display: block; font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gris-clair); }
.reveal-on .bulle--prospect { animation-name: bulle-1; }
.bulle--vous { margin-left: auto; border-color: rgba(201, 162, 78, .6); }
.reveal-on .bulle--vous { animation-name: bulle-2; }
.demo-jauge { display: flex; align-items: center; gap: .6rem; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gris-clair); }
.demo-jauge i { flex: 1; height: 4px; background: rgba(185, 191, 204, .25); position: relative; }
.demo-jauge i::after { content: ""; position: absolute; inset: 0; background: var(--or-ecran); transform-origin: left; transform: scaleX(.86); }
.reveal-on .demo-jauge i::after { transform: scaleX(0); animation: jauge 7s infinite cubic-bezier(.4, 0, .2, 1) paused; }
.reveal-on .demo.is-playing .demo-jauge i::after { animation-play-state: running; }
@keyframes bulle-1 { 0%, 6% { opacity: 0; transform: translateY(8px); } 12%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes bulle-2 { 0%, 26% { opacity: 0; transform: translateY(8px); } 32%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes jauge { 0%, 40% { transform: scaleX(0); } 70%, 92% { transform: scaleX(.86); } 100% { transform: scaleX(0); } }

/* Rang1 : la courbe grimpe jusqu'en première page */
.demo--rang1 svg { width: 100%; height: auto; max-height: 5.5rem; display: block; overflow: visible; }
.demo--rang1 .grille { stroke: rgba(185, 191, 204, .2); stroke-width: 1; fill: none; }
.demo--rang1 .courbe { stroke: var(--or-ecran); stroke-width: 2.5; fill: none; stroke-dasharray: 260; stroke-dashoffset: 0; }
.reveal-on .demo--rang1 .courbe { stroke-dashoffset: 260; animation-name: trace; }
.demo--rang1 .point { fill: var(--or-ecran); }
.reveal-on .demo--rang1 .point { opacity: 0; animation-name: point; }
@keyframes trace { 0%, 8% { stroke-dashoffset: 260; } 48%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 260; } }
@keyframes point { 0%, 46% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }

/* VoxxID : l'onde vocale, puis la vérification */
.onde { display: flex; align-items: center; gap: 3px; height: 3.2rem; }
.onde i { flex: 1; height: 100%; background: var(--ivoire); opacity: .85; transform: scaleY(.6); }
.reveal-on .onde i { transform: scaleY(.15); animation-name: onde; }
.reveal-on .onde i:nth-child(3n) { animation-delay: -.3s; } .reveal-on .onde i:nth-child(3n+1) { animation-delay: -.6s; } .reveal-on .onde i:nth-child(4n) { animation-delay: -.9s; } .reveal-on .onde i:nth-child(5n) { animation-delay: -.45s; }
@keyframes onde { 0%, 4% { transform: scaleY(.15); } 10% { transform: scaleY(.9); } 16% { transform: scaleY(.35); } 22% { transform: scaleY(1); } 28% { transform: scaleY(.5); } 34% { transform: scaleY(.8); } 40%, 100% { transform: scaleY(.15); } }

/* FlowIQ : l'écosystème se relie, l'acquéreur s'allume */
.demo--flowiq svg { width: 100%; height: 7.5rem; display: block; }
.demo--flowiq .liens path { stroke: rgba(185, 191, 204, .45); stroke-width: 1.2; fill: none; stroke-dasharray: 260; stroke-dashoffset: 0; }
.reveal-on .demo--flowiq .liens path { stroke-dashoffset: 260; animation-name: trace; }
.reveal-on .demo--flowiq .liens path:nth-child(2) { animation-delay: .15s; } .reveal-on .demo--flowiq .liens path:nth-child(3) { animation-delay: .3s; } .reveal-on .demo--flowiq .liens path:nth-child(4) { animation-delay: .45s; } .reveal-on .demo--flowiq .liens path:nth-child(5) { animation-delay: .6s; } .reveal-on .demo--flowiq .liens path:nth-child(6) { animation-delay: .75s; }
.demo--flowiq .noeuds circle { fill: var(--gris-clair); }
.demo--flowiq .noeuds .elu { fill: var(--or-ecran); r: 8px; }
.reveal-on .demo--flowiq .noeuds .elu { animation-name: elu; }
.demo--flowiq .cible { fill: var(--ivoire); }
.demo--flowiq text { font: 600 7px var(--sans); fill: var(--nuit); }
.demo--flowiq .etiquette { fill: var(--or-ecran); font-size: 8px; }
.reveal-on .demo--flowiq .etiquette { opacity: 0; animation-name: point; }
@keyframes elu { 0%, 48% { fill: #B9BFCC; r: 5px; } 54%, 92% { fill: #C9A24E; r: 8px; } 100% { fill: #B9BFCC; r: 5px; } }

/* ===== Monogramme qui se dessine au premier chargement ===== */
@property --trace-logo { syntax: "<angle>"; inherits: false; initial-value: 360deg; }
.logo-mono { height: 48px; width: auto; display: block; overflow: visible; }
.logo-mono .logo-bas { transform-box: fill-box; }
.logo-trace .logo-mono .logo-haut { -webkit-mask: conic-gradient(from 200deg at 50% 50%, black var(--trace-logo), transparent 0); mask: conic-gradient(from 200deg at 50% 50%, black var(--trace-logo), transparent 0); animation: logo-haut 1.1s cubic-bezier(.5, 0, .2, 1) .15s both; }
.logo-trace .logo-mono .logo-bas { animation: logo-bas .7s cubic-bezier(.2, .7, .2, 1) 1s both; }
@keyframes logo-haut { from { --trace-logo: 0deg; } to { --trace-logo: 360deg; } }
@keyframes logo-bas { from { opacity: 0; transform: translate(-8px, 8px); } to { opacity: 1; transform: none; } }

/* ===== Savoir-faire : sommaire épinglé ===== */
.sf-sommaire { display: none; }
@media (min-width: 1024px) {
  .sf-layout { display: grid; grid-template-columns: 15rem 1fr; gap: 3rem; align-items: start; }
  .sf-sommaire { display: block; position: sticky; top: 6rem; padding-top: 2.5rem; }
  .sf-sommaire ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--filet); }
  .sf-sommaire a { display: flex; gap: .8rem; padding: .55rem 0 .55rem 1rem; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--gris); transition: color .3s, border-color .3s; }
  .sf-sommaire a span { font: 600 .9rem/1.5 var(--serif); }
  .sf-sommaire a[aria-current="true"] { color: var(--nuit); border-left-color: var(--or-print); font-weight: 600; }
  .sf-sommaire a[aria-current="true"] span { color: var(--nuit); }
  .sf-blocs .bloc { grid-template-columns: minmax(12rem, 16rem) 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  /* html.reveal-on n'est jamais posée : les démos affichent directement leur état final */
  .demo *, .demo-jauge i::after, .logo-mono g { animation: none !important; }
}

/* Démos dans les cartes de l'accueil : même hauteur, texte lisible sur nuit */
.card .badge { align-self: flex-start; }
.card .demo { height: 10.5rem; min-height: 0; font-size: .78rem; }
.card .demo p { color: var(--ivoire); margin-bottom: 0; }
.card .demo .demo-titre, .card .demo .bulle b, .card .demo .demo-jauge { color: var(--gris-clair); }
.card .demo .demo-statut { color: var(--or-ecran); }
.card .demo--super-sales .bulle { padding: .3rem .5rem; margin-bottom: .3rem !important; }
.card .demo--rang1 svg { max-height: 4.2rem; }
.card .demo--flowiq svg { height: 100%; }
.card .demo--super-sales { font-size: .72rem; line-height: 1.35; }
.card .demo--super-sales .bulle b { display: none; }
.card .demo--super-sales .bulle { max-width: 94% !important; }

/* Grille de huit cartes produits : 4 + 4 */
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
@media (min-width: 1100px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }

/* Listti : la liste se remplit */
.liste { margin: 0; padding-left: 1.2rem; }
.liste li { padding: .15rem 0; }
.reveal-on .liste li { opacity: 0; animation-name: bulle-1; }
.reveal-on .liste li:nth-child(2) { animation-delay: .5s; }
.reveal-on .liste li:nth-child(3) { animation-delay: 1s; }

/* Inyeon : un fil d'or relie deux villes */
.demo--inyeon svg { width: 100%; height: auto; max-height: 5.5rem; display: block; }
.demo--inyeon .fil { stroke: var(--or-ecran); stroke-width: 2; fill: none; stroke-dasharray: 260; stroke-dashoffset: 0; }
.reveal-on .demo--inyeon .fil { stroke-dashoffset: 260; animation-name: trace; }
.demo--inyeon .ville { fill: var(--ivoire); }
.demo--inyeon text { font: 600 8px var(--sans); fill: var(--gris-clair); }

/* Eystrade : la fiche se vérifie */
.fiche { display: flex; align-items: center; gap: .8rem; padding: .7rem; border: 1px solid rgba(185, 191, 204, .3); }
.fiche .avatar { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--gris-clair); flex: none; }
.fiche b { display: block; color: var(--ivoire); }
.fiche span { display: block; color: var(--gris-clair); font-size: .78rem; }

/* Double compétence : deux colonnes, puis la méthode en trois temps */
.duo { display: grid; gap: 1px; background: var(--filet); border: 1px solid var(--filet); margin: 2rem 0; grid-template-columns: 1fr; }
@media (min-width: 760px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo-col { background: var(--ivoire-papier); padding: 1.8rem; }
.duo-col p { margin: 0; }
.duo-titre { font: 600 1.6rem/1.2 var(--serif) !important; margin-bottom: .8rem !important; }
.duo-titre::after { content: ""; display: block; width: 2rem; height: 2px; background: var(--or-print); margin-top: .6rem; }
.trio { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.trio li { color: var(--gris); }
.trio span { display: block; font: 600 .85rem/1 var(--serif); color: var(--nuit); letter-spacing: .1em; margin-bottom: .5rem; }
.trio b { display: block; font: 600 1.15rem/1.3 var(--serif); color: var(--nuit); margin-bottom: .3rem; }

/* Sécurité : trois colonnes */
.securite { display: grid; gap: 1px; background: var(--filet); border: 1px solid var(--filet); margin-top: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .securite { grid-template-columns: repeat(3, 1fr); } }
.securite-col { background: var(--ivoire); padding: 1.6rem; }
.securite-col p { margin: 0; }


/* ===== Animations variées par section (actives seulement sous html.reveal-on) ===== */

/* Titres : les mots montent derrière un masque */
.reveal-on .titre-mots .mot { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
.reveal-on .titre-mots .mot > span { display: inline-block; transform: translateY(110%); transition: transform .8s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * 55ms); }
.reveal-on .titre-mots.is-revealed .mot > span { transform: none; }

/* Accroches : les mots se lisent au fil du scroll */
.reveal-on .lecture .mot-lecture { transition: color .35s; }
.reveal-on .lecture .mot-lu { color: var(--nuit); }
.reveal-on .section--nuit .lecture .mot-lu { color: var(--ivoire); }

/* Double compétence : les deux colonnes convergent, puis le fil relie les trois temps */
.reveal-on .duo-col { opacity: 0; transform: translateX(-60px); transition: opacity .9s, transform 1s cubic-bezier(.2, .7, .2, 1); }
.reveal-on .duo-col:last-child { transform: translateX(60px); }
.reveal-on .duo-col.is-revealed { opacity: 1; transform: none; }
.trio { position: relative; }
.trio::before { content: ""; position: absolute; top: .45rem; left: 0; right: 0; height: 1px; background: var(--or-print); transform-origin: left; }
.reveal-on .trio::before { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.2, .7, .2, 1) .3s; }
.reveal-on .trio.is-revealed::before { transform: scaleX(1); }
.trio span { display: inline-block; position: relative; background: var(--ivoire); padding-right: .7rem; }

/* Sécurité : le texte se déclassifie, une ligne de scan traverse */
.securite { position: relative; overflow: hidden; }
.securite-col p { position: relative; }
.securite-col p:not(.duo-titre)::after { content: ""; position: absolute; inset: -.1em -.2em; background: var(--nuit); transform-origin: right; transform: scaleX(0); }
.reveal-on .securite-col p:not(.duo-titre)::after { transform: scaleX(1); transition: transform .9s cubic-bezier(.7, 0, .2, 1) calc(var(--delai, 0ms) + .6s); }
.reveal-on .securite-col.is-revealed p:not(.duo-titre)::after { transform: scaleX(0); }
.reveal-on .securite::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--or-print); opacity: 0; pointer-events: none; }
.reveal-on .securite.is-revealed::after { animation: scan 1.8s cubic-bezier(.6, 0, .4, 1) .2s 1 both; }
@keyframes scan { 0% { left: 0; opacity: 0; } 10%, 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* Mots-clés surlignés à l'or */
.surligne { background-color: transparent; color: inherit; background-image: linear-gradient(rgba(201, 162, 78, .38), rgba(201, 162, 78, .38)); background-repeat: no-repeat; background-position: 0 88%; background-size: 100% .42em; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .06em; }
.reveal-on .surligne { background-size: 0% .42em; transition: background-size 1.2s cubic-bezier(.2, .7, .2, 1) .35s; }
.reveal-on .surligne.is-revealed { background-size: 100% .42em; }

/* Vidéos et démos : rideau en diagonale, à la pente de la coupe du logo */
.reveal-on .rideau { clip-path: polygon(-30% 0, 0% 0, -30% 100%, -30% 100%); transition: clip-path 1.2s cubic-bezier(.7, 0, .2, 1) var(--delai, 0ms); }
.reveal-on .rideau.is-revealed { clip-path: polygon(-30% 0, 130% 0, 100% 100%, -30% 100%); }

/* Chiffres clés : compteur mécanique */
.roue { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; line-height: 1; }
.roue > span { display: flex; flex-direction: column; transition: transform 1.8s cubic-bezier(.2, .7, .2, 1); }
.roue > span > span { display: block; height: 1em; }

/* Distinctions : les lauriers poussent, le titre se grave */
.reveal-on .awards li::before { opacity: 0; transform: translateY(-50%) scale(.2) rotate(-25deg); transform-origin: 50% 100%; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1) .25s, opacity .6s .25s; }
.reveal-on .awards li::after { opacity: 0; transform: translateY(-50%) scaleX(-1) scale(.2) rotate(-25deg); transform-origin: 50% 100%; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1) .35s, opacity .6s .35s; }
.reveal-on .awards li.is-revealed::before { opacity: 1; transform: translateY(-50%); }
.reveal-on .awards li.is-revealed::after { opacity: 1; transform: translateY(-50%) scaleX(-1); }
.reveal-on .awards strong { letter-spacing: .18em; transition: letter-spacing 1.4s cubic-bezier(.2, .7, .2, 1) .2s; }
.reveal-on .awards li.is-revealed strong { letter-spacing: 0; }

/* Produits de l'accueil : cartes empilées sur grand écran */
@media (min-width: 900px) {
  .cards--empile { display: block; }
  .cards--empile > .card { position: sticky; top: calc(6.5rem + var(--empile, 0) * .9rem); display: grid; grid-template-columns: 24rem 1fr; column-gap: 2.5rem; align-content: center; height: 15rem; margin-bottom: 3rem; background: var(--ivoire-papier); box-shadow: 0 -12px 30px rgba(15, 27, 51, .08); }
  .cards--empile > .card > :not(.demo) { grid-column: 2; }
  .cards--empile > .card .badge { justify-self: start; }
  .cards--empile > .card .demo { grid-column: 1; grid-row: 1 / span 4; margin: -1.5rem 0 -1.5rem -1.5rem; height: 15rem; }
  .cards--empile > .card .more { margin-top: .4rem; }
}

/* Photos de Thomas */
.double-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .double-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 4rem; } .double-photo { position: sticky; top: 7rem; } }
.double-photo { margin: 0; }
.double-photo img { width: 100%; height: auto; max-height: 34rem; object-fit: cover; object-position: 40% 20%; }
@media (max-width: 999px) { .double-photo img { max-height: 22rem; } }
.portrait { margin: 0; justify-self: center; }
.portrait img { width: min(300px, 70vw); height: auto; box-shadow: 18px 18px 0 var(--ivoire); border: 1px solid var(--filet); }
.portrait--contact img { width: min(240px, 60vw); }
.portrait figcaption { margin-top: 1.4rem; font: italic 500 1.05rem/1.4 var(--serif); color: var(--gris); text-align: center; }
.video-presse { margin: 2.5rem 0 0; max-width: 40rem; }

/* Les éléments qui attendent hors champ (convergence, rideaux) ne font jamais déborder la page */
main { overflow-x: clip; }
