/* Solane IA · site vitrine (solane-ia.fr)
   Identité « Horizon » : nuit, soleil, ambre. Manrope (titres) et Instrument Sans (textes), hébergées sur le site.
   Refonte unslop du 07/11/2026 (méthode de Damir Sokolovsky, @heydamir, CC BY 4.0) :
   caractère franc, concret, proche. Les vrais sites clients portent la couleur, le reste reste calme.
   Détail propre à Solane : l'étiquette d'état (.etat) « En ligne », « Maquette », « Entreprise fictive ».
   Grille de 4 px, titres en 600, arrondis selon la taille, aucune animation en boucle.
   Version claire du 09/11/2026 : plus de sections nuit, accueil en vue éclatée (le site se monte pièce par pièce, une seule fois). */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --nuit: #0E1626;
  --nuit-2: #131D31;
  --nuit-3: #26324A;
  --nuit-4: #3A4760;
  --nuit-fond: #0A101C;
  --encre: #121826;
  --ardoise: #4A5263;
  --brume: #C9D1DF;
  --brume-2: #98A2B5;
  --soleil: #FFB423;
  --soleil-doux: #FFF1D6;
  --ambre: #8A5300;
  --soleil-texte: #9A5D00;
  --trait: rgba(38, 50, 74, 0.42);
  --papier: #F7F6F2;
  --lin: #F1F0EB;
  --bord: #E3E1DA;
  --bord-fort: #CFCCC3;
  --filet-nuit: rgba(255, 255, 255, 0.1);
  --blanc: #FFFFFF;
  --vert: #1E6B43;
  --vert-vif: #16A34A;
  --vert-nuit: #4CC38A;
  --vert-doux: #E6F4EC;
  --titre: "Manrope", system-ui, sans-serif;
  --texte: "Instrument Sans", system-ui, sans-serif;
  --gouttiere: clamp(20px, 5vw, 48px);
  --section: clamp(64px, 9vw, 112px);
  --courbe: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.6;
  color: var(--encre);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--titre); margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--soleil); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 16px; border-radius: 8px; background: var(--soleil); color: var(--nuit); font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gouttiere); }
.section { padding-block: var(--section); }
.section--papier { background: var(--papier); }
.section--lin { background: var(--lin); }

.h2 { max-width: 760px; font-weight: 600; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -0.02em; }
.lead { margin-top: 20px; max-width: 620px; color: var(--ardoise); }

/* Icônes : un seul trait */
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--sm { width: 20px; height: 20px; }
.ico--xs { width: 16px; height: 16px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 10px; border: 0;
  font: inherit; font-weight: 600; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s var(--courbe), border-color 0.15s var(--courbe), transform 0.1s var(--courbe);
}
.btn:active { transform: scale(0.98); }
.btn--soleil { background: var(--soleil); color: var(--nuit); }
.btn--soleil:hover { background: #FFC24D; }
.btn--nuit { background: var(--nuit); color: var(--blanc); }
.btn--nuit:hover { background: var(--nuit-3); }
.btn--ligne { border: 1px solid var(--bord-fort); color: var(--encre); background: var(--blanc); }
.btn--ligne:hover { border-color: var(--ardoise); }
.btn--petit { min-height: 40px; padding: 0 16px; font-size: 15px; white-space: nowrap; }
.btn--plein { width: 100%; }

/* Étiquette d'état : le détail propre à Solane */
.etat { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; line-height: 1.4; white-space: nowrap; color: var(--ardoise); }
.etat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bord-fort); flex: none; }
.etat--ligne::before { background: var(--vert-vif); }
.etat--maquette::before { background: var(--soleil); }
.etat--demo::before { background: var(--bord-fort); }

/* En-tête */
/* Accueil : fond uni */
.top { overflow: hidden; background: var(--papier); }
.nav { position: sticky; top: 0; z-index: 50; background: var(--papier); color: var(--encre); transition: box-shadow 0.2s var(--courbe); }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--bord); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.nav__logo { flex-shrink: 0; }
.nav__logo img { height: 32px; width: auto; }
.nav__fin { display: flex; align-items: center; gap: 16px; }
.langues { display: inline-flex; padding: 3px; border: 1px solid var(--bord-fort); border-radius: 10px; }
.langues a { min-width: 36px; padding: 7px 8px; border-radius: 7px; font: 600 13px/1 var(--texte); letter-spacing: 0.02em; text-align: center; text-decoration: none; color: var(--ardoise); transition: background 0.2s, color 0.2s; }
.langues a:hover { color: var(--encre); }
.langues a[aria-current="true"] { background: var(--encre); color: var(--blanc); }
.langues a:focus-visible { outline: 2px solid var(--soleil-texte); outline-offset: 2px; }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav__links a { color: var(--ardoise); text-decoration: none; white-space: nowrap; transition: color 0.15s var(--courbe); }
.nav__links a:hover { color: var(--encre); }
@media (max-width: 1320px) { .nav__links { gap: 20px; } }
@media (max-width: 1220px) { .nav__links { display: none; } }

/* Accueil : titre et texte au-dessus, la planche de montage en dessous */
/* Une seule colonne : le titre sur deux lignes, puis le texte, puis les boutons côte à côte */
.intro { padding-top: clamp(56px, 8vw, 112px); }
.intro__droite { max-width: 40rem; }
.cartouche { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; font-weight: 600; color: var(--ardoise); }
.cartouche { align-items: center; }
/* Choix du pays : trois drapeaux dessinés (les emojis drapeaux ne s'affichent pas sous Windows) */
.pays { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.pays__b { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 12px 4px 8px; border: 1px solid var(--bord-fort); border-radius: 10px; background: transparent; color: var(--ardoise); font: 600 15px/1 var(--texte); cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.pays__b:hover { border-color: var(--ardoise); }
.pays__b[aria-pressed="true"] { background: var(--blanc); border-color: var(--encre); color: var(--encre); }
.pays__b:focus-visible { outline: 2px solid var(--soleil-texte); outline-offset: 2px; }
.drapeau { width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(18, 24, 38, 0.18); flex: none; }
.pays-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 24px; font-size: 15px; font-weight: 600; color: var(--ardoise); }
/* Les heures des trois pays, posées comme une ligne de cote */
.heures { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--bord-fort); }
/* Route de l'avion : France, Canada, Suisse. Les escales sont au centre des quatre colonnes des heures. */
.route { display: block; width: 100%; height: auto; overflow: visible; }
.route[hidden] { display: none; }
.route__prevue path { fill: none; stroke: var(--bord-fort); stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.route__faite path { fill: none; stroke: var(--soleil-texte); stroke-width: 1.5; stroke-linecap: round; }
.escale { fill: var(--papier); stroke: var(--bord-fort); stroke-width: 1.5; transition: fill 0.3s, stroke 0.3s; }
.escale.vue { fill: var(--soleil); stroke: var(--soleil-texte); }
.avion path { fill: var(--encre); transform: scale(1.2); }
.heures__villes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 8px; text-align: center; }
.heures__villes dt { font-size: 14px; color: var(--ardoise); }
.heures__villes dd { margin: 2px 0 0; font-family: var(--titre); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; color: var(--ardoise); transition: color 0.2s; }
.heures__villes div.ici dt { color: var(--encre); font-weight: 600; }
.heures__villes div.ici dd { color: var(--soleil-texte); }
.heures p { margin-top: 16px; font-size: 15px; color: var(--ardoise); }
.grille-prix th strong b { font-weight: inherit; }
/* Les réalisations du pays choisi passent en premier */
:root[data-pays="fr"] .demo[data-de="fr"], :root[data-pays="ch"] .demo[data-de="ch"] { order: -1; }
@media (max-width: 480px) {
  .heures__villes dt { font-size: 13px; }
  .grille-prix thead th { padding: 16px 6px 16px 8px; font-size: 15px; }
  .grille-prix tbody td { padding-inline: 8px; }
  .avion path { transform: scale(1.8); }
  .escale { r: 6px; stroke-width: 2.5; }
  .route__prevue path, .route__faite path { stroke-width: 2.5; }
  .heures__villes dd { font-size: 17px; }
  .pays__b { padding-right: 10px; }
}
.intro h1 { margin-top: 20px; font-weight: 600; font-size: clamp(38px, 5.4vw, 68px); line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
.intro h1 span { display: block; color: var(--soleil-texte); }
.hero__sub { margin-top: 28px; font-size: 19px; line-height: 1.6; color: var(--ardoise); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 36px; }
.hero__note { margin-top: 20px; font-size: 15px; color: var(--ardoise); }

/* La planche : le site arrive en vue éclatée, légendé comme un plan, puis se monte.
   Le plateau mesure 1200 x 744 (barre de 38 px + capture recadrée à 1200 x 706, au-dessus de la rangée de services) ; site.js règle l'échelle. */
.planche { position: relative; margin: clamp(48px, 7vw, 96px) 0 0; padding-bottom: clamp(48px, 6vw, 80px); }
.scene { position: relative; height: var(--h, 560px); perspective: 2600px; perspective-origin: 40% 30%; }
.echelle { position: absolute; left: 50%; top: 0; width: 1200px; height: 744px; transform-style: preserve-3d; transform: translateX(-50%) scale(var(--echelle, 0.6)); transform-origin: 50% 0; }
.plateau {
  position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 50%;
  transform: translate(var(--dx, -9%), var(--dy, 40px)) scale(0.8) rotateX(54deg) rotateZ(-30deg);
  transition: transform 1.5s var(--courbe);
}
.couche { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(var(--z)); transition: transform 0.9s cubic-bezier(0.34, 1.32, 0.64, 1), opacity 0.5s ease; transition-delay: var(--d, 0s); }
.c0 { --z: 0px; --d: 0s; } .c1 { --z: 50px; --d: 0.12s; } .c2 { --z: 110px; --d: 0.24s; }
.c3 { --z: 170px; --d: 0.36s; } .c4 { --z: 230px; --d: 0.48s; } .c5 { --z: 300px; --d: 0.6s; }
.prete .couche { opacity: 0; }
.prete.pose .couche { opacity: 1; }
.monte .plateau { transform: none; }
.monte .couche { transform: translateZ(0); }
/* Sans JavaScript : le site est déjà monté */
.planche:not(.prete) .plateau, .planche:not(.prete) .couche { transform: none; }

.chassis { position: absolute; inset: 0; border: 1.5px solid var(--trait); border-radius: 14px; background: rgba(255, 255, 255, 0.6); transition: background-color 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease; }
.chassis__barre { display: flex; align-items: center; gap: 8px; height: 38px; padding-left: 16px; border-bottom: 1.5px solid var(--trait); transition: border-color 0.6s ease; }
.chassis__barre i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--trait); }
.chassis__barre em { margin-left: 20px; padding: 5px 14px; border: 1.5px solid var(--trait); border-radius: 6px; font-size: 15px; font-style: normal; line-height: 1; color: var(--ardoise); }
.fini .chassis, .planche:not(.prete) .chassis { background: var(--lin); border-color: var(--bord-fort); box-shadow: 0 32px 64px rgba(14, 22, 38, 0.16); }
.fini .chassis__barre, .fini .chassis__barre i, .fini .chassis__barre em { border-color: var(--bord-fort); }

.zone { position: absolute; inset: 38px 0 0; transform-style: preserve-3d; }
/* Les pièces sont découpées dans la vraie capture : posées, elles redonnent l'image exacte */
.piece { position: absolute; background: url("../img/demo-megeve.webp") no-repeat; background-size: 1200px 750px; outline: 1.5px solid var(--trait); transition: outline-color 0.6s ease 0.2s; }
.fini .piece, .planche:not(.prete) .piece { outline-color: transparent; }
.fond { inset: 0; background-position: 0 0; }
.fond::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--lin) 0 58%, rgba(241, 240, 235, 0.35)); transition: opacity 0.7s ease; }
.fini .fond::after, .planche:not(.prete) .fond::after { opacity: 0; }
.p-entete { left: 0; top: 0; width: 1200px; height: 113px; background-position: 0 0; }
.p-titre { left: 32px; top: 212px; width: 500px; height: 184px; background-position: -32px -212px; }
.p-texte { left: 32px; top: 418px; width: 610px; height: 128px; background-position: -32px -418px; }
.p-boutons { left: 32px; top: 570px; width: 570px; height: 92px; background-position: -32px -570px; }
.agent-bulle { position: absolute; right: 28px; bottom: 28px; width: 300px; padding: 14px 16px; border-radius: 14px; background: var(--blanc); color: var(--encre); font-size: 15px; line-height: 1.45; box-shadow: 0 16px 40px rgba(14, 22, 38, 0.3); }
.agent-bulle strong { display: flex; align-items: center; gap: 8px; font-family: var(--titre); font-size: 14px; font-weight: 600; }
.agent-bulle strong::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--vert-vif); }
.agent-bulle p { margin-top: 6px; color: var(--ardoise); }
.ancre { position: absolute; width: 1px; height: 1px; }
.a1 { left: 1150px; top: 300px; } .a2 { left: 1150px; top: 56px; } .a3 { left: 532px; top: 300px; }
.a4 { left: 602px; top: 616px; } .a5 { left: 1172px; top: 600px; }

.legendes { position: absolute; inset: 0; pointer-events: none; }
.legendes__traits { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.legendes line { stroke: var(--ambre); stroke-width: 1; stroke-dasharray: 3 3; }
.legendes circle { fill: var(--ambre); }
.rep { position: absolute; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--encre); white-space: nowrap; transform: translateY(-50%); }
.rep b { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--soleil); color: var(--nuit); font-family: var(--titre); font-size: 13px; }
.rep span { padding: 2px 6px; border-radius: 4px; background: var(--papier); }
.legendes > *, .legendes__traits > * { opacity: 0; transition: opacity 0.35s ease; }
.legendes.vues > *, .legendes.vues .legendes__traits > * { opacity: 1; }

.cote .etat { white-space: normal; }
.cote { position: relative; margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.prete .cote .etat { opacity: 0; transform: translateY(6px); transition: opacity 0.5s ease, transform 0.5s var(--courbe); }
.prete.fini .cote .etat { opacity: 1; transform: none; }
.rejouer { min-height: 36px; padding: 0 12px; border: 1px solid var(--bord-fort); border-radius: 8px; background: var(--blanc); color: var(--ardoise); font: inherit; font-size: 14px; cursor: pointer; opacity: 0; transition: opacity 0.4s ease, border-color 0.15s var(--courbe); }
.fini .rejouer { opacity: 1; }
.rejouer:hover { border-color: var(--ardoise); color: var(--encre); }
.planche:not(.prete) .rejouer { display: none; }

/* Fenêtre de navigateur (accueil et réalisations) */
.browser { border-radius: 12px; overflow: hidden; border: 1px solid var(--bord); background: var(--blanc); box-shadow: 0 8px 24px rgba(14, 22, 38, 0.06); }
.browser__bar { display: flex; gap: 6px; padding: 8px 12px; background: var(--lin); }
.browser__bar span { width: 8px; height: 8px; border-radius: 50%; background: #D3D1CA; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

/* Pourquoi un site : ce que voit le client, sans site et avec votre site */
.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 48px; border-top: 1px solid var(--bord-fort); }
.compare p { margin: 0; padding: 20px 24px 20px 0; border-bottom: 1px solid var(--bord); }
.compare .compare__tete { padding-block: 16px; font-family: var(--titre); font-size: 15px; font-weight: 600; color: var(--ardoise); }
.compare .compare__tete--avec, .compare .compare__avec { padding-left: 24px; border-left: 2px solid var(--soleil); }
.compare .compare__tete--avec { color: var(--ambre); }
.compare__sans { color: var(--ardoise); }
.compare__avec { font-size: 18px; font-weight: 600; color: var(--encre); background: var(--blanc); }

/* Agents IA */
.agents { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: 64px; }
.agents__liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 32px 0 0; padding: 0; list-style: none; }
.agents__liste li { display: flex; gap: 12px; padding-block: 20px; border-top: 1px solid var(--bord-fort); }
.agents__liste .ico { margin-top: 2px; color: var(--ambre); }
.agents__liste h3 { font-weight: 600; font-size: 18px; line-height: 1.35; }
.agents__liste p { margin-top: 4px; font-size: 15px; color: var(--ardoise); }
.agents__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.agents__cta p { color: var(--ardoise); font-size: 15px; }
.agents__demo { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.agents__demo > p { font-size: 14px; color: var(--ardoise); }

/* Conversation de démonstration */
.chat { width: 100%; max-width: 400px; border-radius: 16px; overflow: hidden; background: var(--blanc); color: var(--encre); border: 1px solid var(--bord); box-shadow: 0 24px 48px rgba(14, 22, 38, 0.1); }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #ECEAE4; }
.chat__ava { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--nuit); }
.chat__ava img { width: 24px; }
.chat__head strong { display: block; font-size: 16px; line-height: 1.3; }
.chat__status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ardoise); }
.chat__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--vert-vif); }
.chat__body { display: flex; flex-direction: column; gap: 12px; min-height: 372px; padding: 20px; background: var(--papier); font-size: 15px; line-height: 1.45; }
.msg { max-width: 86%; padding: 12px 16px; border-radius: 16px; }
.msg--client { align-self: flex-end; max-width: 82%; border-bottom-right-radius: 4px; background: var(--nuit); color: var(--blanc); }
.msg--agent { align-self: flex-start; border-bottom-left-radius: 4px; background: var(--blanc); border: 1px solid var(--bord); }
.msg--photo { display: inline-flex; align-items: center; gap: 8px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { min-height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--nuit); background: var(--blanc); color: var(--nuit); font: inherit; font-weight: 600; cursor: pointer; transition: background-color 0.15s var(--courbe), color 0.15s var(--courbe); }
.slot[aria-pressed="true"] { background: var(--nuit); color: var(--blanc); }
.chat__done { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ardoise); }
.chat__done .ico { color: var(--vert); }
.chat__foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid #ECEAE4; }
.chat__fake { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--bord); background: var(--papier); font-size: 15px; color: var(--ardoise); }
.chat__send { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: var(--soleil); color: var(--nuit); }
.js .chat [data-step] { opacity: 0; transform: translateY(8px); transition: opacity 0.3s var(--courbe), transform 0.3s var(--courbe); }
.js .chat [data-step].is-on { opacity: 1; transform: none; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 16px; border-radius: 16px 16px 16px 4px; background: var(--blanc); border: 1px solid var(--bord); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ardoise); opacity: 0.4; animation: tape 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes tape { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* Réalisations : clients en grand, démonstrations plus petites */
.head-split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; }
.head-split > div { flex: 1 1 520px; min-width: 0; }
.head-split > p { flex: 1 1 360px; min-width: 0; max-width: 480px; color: var(--ardoise); }
.groupe { margin: 64px 0 24px; padding-top: 16px; border-top: 1px solid var(--bord); font-weight: 600; font-size: 16px; color: var(--ardoise); }
.demos { display: grid; gap: 48px 32px; }
.demos--clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.demos--fictives { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.demo { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.demo__vis { position: relative; }
.demos--clients .demo__vis { padding-bottom: 32px; }
.demo__phone { position: absolute; right: 20px; bottom: 0; width: 22%; aspect-ratio: 390 / 844; border: 4px solid var(--nuit); border-radius: 16px; overflow: hidden; background: var(--nuit); box-shadow: 0 8px 24px rgba(14, 22, 38, 0.2); }
.demo__phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.demo h4 { margin: 8px 0 4px; font-weight: 600; font-size: 22px; line-height: 1.3; }
.demos--fictives .demo h4 { font-size: 19px; }
.demo p { color: var(--ardoise); }
.demos--fictives .demo p { font-size: 15px; }
.lien { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; font-weight: 600; color: var(--encre); transition: color 0.15s var(--courbe); }
.lien:hover { color: var(--ambre); }

/* Étapes : trois temps séparés par un filet */
.etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 48px 0 0; padding: 0; list-style: none; }
.etapes li { position: relative; padding-top: 28px; border-top: 1px solid var(--trait); }
.etapes li::before { content: ""; position: absolute; left: 0; top: -9px; width: 1px; height: 17px; background: var(--encre); }
.etapes li:last-child::after { content: ""; position: absolute; right: 0; top: -9px; width: 1px; height: 17px; background: var(--encre); }
.etape__num { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 15px; font-weight: 600; color: var(--encre); }
.etape__num span { font-weight: 500; color: var(--ambre); }
.etapes h3 { margin-top: 8px; font-weight: 600; font-size: 20px; line-height: 1.3; }
.etapes p:not(.etape__num) { margin-top: 8px; color: var(--ardoise); }
.promesse { display: flex; align-items: center; gap: 12px; margin-top: 48px; font-size: 18px; font-weight: 600; }
.promesse .ico { color: var(--ambre); }

/* Tarif */
.devis { margin-top: 48px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--bord-fort); border-radius: 12px; background: var(--blanc); }
.devis__ligne { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; padding-bottom: 24px; border-bottom: 1px dashed var(--bord-fort); }
.devis__ligne h3 { font-weight: 600; font-size: 24px; }
.devis__ligne p { margin-top: 4px; color: var(--ardoise); }
.devis__montant { display: flex; align-items: baseline; gap: 8px; }
.devis__montant strong { font-family: var(--titre); font-weight: 600; font-size: clamp(48px, 6vw, 64px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.devis__montant strong { color: var(--encre); }
.devis__montant span { color: var(--ardoise); }
.devis__inclus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; margin: 24px 0 0; padding: 0; list-style: none; }
.devis__inclus li { position: relative; padding-left: 20px; }
.devis__inclus li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 10px; height: 1.5px; background: var(--ambre); }

.sous-titre { margin-top: 72px; font-weight: 600; font-size: 24px; }
.sous-lead { margin-top: 8px; max-width: 620px; color: var(--ardoise); }
.grille-prix { margin-top: 24px; overflow-x: auto; border: 1px solid var(--bord-fort); border-radius: 12px; background: var(--blanc); }
.grille-prix table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 16px; }
.grille-prix th, .grille-prix td { padding: 14px 20px; border-bottom: 1px solid var(--bord); text-align: left; vertical-align: top; }
.grille-prix tbody tr:last-child > * { border-bottom: 0; }
.grille-prix thead th { padding-block: 24px 20px; vertical-align: bottom; font-family: var(--titre); font-size: 20px; font-weight: 600; }
.grille-prix thead th span { display: block; margin-top: 4px; font-family: var(--texte); font-size: 14px; font-weight: 500; color: var(--ardoise); }
.grille-prix thead strong { display: block; margin-top: 16px; font-size: 40px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.grille-prix thead small { font-family: var(--texte); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--ardoise); }
.grille-prix tbody th { width: 34%; font-weight: 500; color: var(--encre); }
.grille-prix td { color: var(--ardoise); }
.grille-prix td .ico { color: var(--vert); }
.grille-prix .non { display: inline-block; width: 12px; height: 2px; margin-top: 11px; overflow: hidden; background: var(--bord-fort); color: transparent; vertical-align: top; }
.grille-prix .reco-col { background: var(--soleil-doux, #FFF4DC); }
.grille-prix thead .reco-col span { color: var(--ambre); }
#tarifs .btn { margin-top: 32px; }
.plans-note { margin-top: 20px; color: var(--ardoise); }
.plans-note a { font-weight: 600; }

/* Qui sommes-nous : texte seul tant qu'il n'y a pas de vraie photo */
.qui { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; gap: 64px; }
.qui__txt .lead:first-child { margin-top: 0; }
.qui__txt .lead { max-width: none; }
.qui__photo { margin-top: 32px; max-width: 380px; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--nuit); }
.qui__photo img { width: 100%; height: 100%; object-fit: cover; }
.faits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 32px 0 0; }
.faits > div { padding-top: 16px; border-top: 1px solid var(--bord-fort); }
.faits dt { font-family: var(--titre); font-weight: 600; font-size: 17px; line-height: 1.35; }
.faits dd { margin: 4px 0 0; font-size: 15px; color: var(--ardoise); }

/* FAQ */
.faq { max-width: 860px; }
.faq .h2 { margin-bottom: 32px; }
.faq details { border-top: 1px solid var(--bord); padding: 20px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--bord); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; font-weight: 600; font-size: 18px; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 24px; line-height: 1; color: var(--ambre); transition: transform 0.15s var(--courbe); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 8px; color: var(--ardoise); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; gap: 64px; }
.contact__direct { margin: 32px 0 12px; font-weight: 600; }
.contact__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.form { min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 4vw, 40px); border-radius: 16px; border: 1px solid var(--bord); background: var(--blanc); color: var(--encre); }
.form__row { display: flex; flex-wrap: wrap; gap: 16px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.form__row .field { flex: 1 1 200px; }
.field label, .form legend { font-weight: 600; font-size: 15px; }
.field label small { font-weight: 400; color: var(--ardoise); }
.field input, .field select, .field textarea {
  min-height: 48px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--bord-fort); background: var(--blanc);
  font: inherit; font-size: 16px; color: var(--encre);
}
.field textarea { padding: 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--soleil); outline-offset: 1px; border-color: var(--nuit); }
.form fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.form legend { padding: 0; margin-bottom: 4px; }
.opt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.opt input { width: 20px; height: 20px; accent-color: var(--nuit); }
.form .btn { min-height: 52px; margin-top: 8px; font-size: 17px; }
.form__note { font-size: 14px; color: var(--ardoise); text-align: center; }
.form__note a { color: var(--encre); }
.form__ok { padding: 20px; border-radius: 12px; background: var(--vert-doux); color: var(--vert); font-weight: 600; }
.form__err { padding: 12px 16px; border-radius: 12px; background: #FDECEA; color: #8C1D18; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pied de page */
.foot { background: var(--papier); color: var(--ardoise); border-top: 1px solid var(--bord); }
.foot__in { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px; padding-block: 48px; }
.foot__brand { flex: 1 1 320px; min-width: 0; }
.foot__brand img { height: 28px; width: auto; }
.foot__brand p { margin-top: 16px; max-width: 360px; font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.foot nav a { color: var(--ardoise); }
.foot nav a:hover { color: var(--encre); }
.foot__copy { flex: 1 1 100%; padding-top: 20px; border-top: 1px solid var(--bord); font-size: 14px; }

/* Barre d'action sur téléphone */
.mbar { display: none; }

/* Apparition au défilement : courte et discrète */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 0.4s var(--courbe), transform 0.4s var(--courbe); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .intro { grid-template-columns: minmax(0, 1fr); }
  .agents { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .demos--fictives { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qui, .contact { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__logo img { height: 28px; }
  .nav__in { padding-block: 12px; }
  .langues a { min-width: 42px; padding: 13px 8px; }
  .page .nav__in, .page .nav__fin { flex-wrap: wrap; row-gap: 12px; }
  .hero__cta .btn, .agents__cta .btn { width: 100%; }
  .rep span { display: none; }
  .etapes, .agents__liste, .demos--clients, .demos--fictives, .faits { grid-template-columns: minmax(0, 1fr); }
  .etapes { gap: 32px; }
  .devis__inclus { grid-template-columns: minmax(0, 1fr); }
  .grille-prix { overflow: visible; }
  .grille-prix table { min-width: 0; }
  .grille-prix thead tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grille-prix thead td { display: none; }
  .grille-prix thead th { padding: 16px 12px; font-size: 17px; }
  .grille-prix thead th span { display: none; }
  .grille-prix thead strong { margin-top: 8px; font-size: 28px; }
  .grille-prix thead small { display: block; margin-top: 4px; font-size: 13px; }
  .grille-prix tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--bord); }
  .grille-prix tbody th { grid-column: 1 / -1; width: auto; padding: 14px 12px 4px; border: 0; }
  .grille-prix tbody td { padding: 4px 12px 14px; border: 0; font-size: 14px; }
  .compare { grid-template-columns: minmax(0, 1fr); }
  .compare .compare__tete { display: none; }
  .compare p { padding: 16px 16px 16px 0; }
  .compare p::before { content: attr(data-tete); display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--ardoise); }
  .compare .compare__avec { padding-left: 16px; }
  .compare .compare__avec::before { color: var(--ambre); }
  .compare .compare__avec + .compare__sans { margin-top: 16px; border-top: 1px solid var(--bord-fort); }
  .price__amount strong { font-size: 56px; }
  body { padding-bottom: 76px; }
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 8px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(247, 246, 242, 0.97);
    box-shadow: 0 -1px 0 var(--bord);
  }
  .mbar .btn { min-height: 48px; padding: 0 16px; }
  .mbar .btn--soleil { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .chat [data-step] { opacity: 1; transform: none; }
  .plateau, .couche { transform: none !important; }
}

/* Pages secondaires (mentions légales, merci, 404) */
.page { min-height: 100vh; display: flex; flex-direction: column; background: var(--papier); }
.page .nav { position: static; border-bottom: 1px solid var(--bord); }
.page main { flex: 1 1 auto; }
.legal { max-width: 820px; margin: clamp(32px, 6vw, 72px) auto; padding: clamp(24px, 4vw, 48px); border-radius: 16px; background: var(--blanc); border: 1px solid var(--bord); }
.legal h1 { font-weight: 600; font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.02em; }
.legal h2 { margin-top: 36px; font-weight: 600; font-size: 22px; }
.legal h3 { margin-top: 24px; font-size: 18px; font-weight: 600; }
.legal p, .legal li { margin-top: 8px; color: var(--ardoise); }
.legal ul { padding-left: 24px; }
.legal a { color: var(--encre); font-weight: 600; }
.legal .note { margin-top: 28px; padding: 12px 16px; border-radius: 8px; background: var(--soleil-doux); color: var(--encre); }
.merci { max-width: 640px; margin: clamp(48px, 10vw, 120px) auto; padding: 0 var(--gouttiere); text-align: center; }
.merci img { width: 72px; margin: 0 auto 24px; }
.merci h1 { font-weight: 600; font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.02em; }
.merci p { margin-top: 16px; color: var(--ardoise); }
.merci .btn { margin-top: 28px; }
@media (max-width: 340px) { .grille-prix thead th { font-size: 13.5px; } }
