/* Jaugo CARNET — site de présentation et de téléchargement (10/11/2026).
   Identité 2026 « Le niveau » (docs/charte/tokens/jaugo_2026.css) : nuit, ivoire, ambre ; Fira Sans ;
   mouvement « L'étale » (le niveau monte, ondule, puis se pose). Aucune bibliothèque externe. */

@font-face { font-family: "Fira Sans"; src: url("../polices/fira_sans_400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../polices/fira_sans_700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --nuit: #0F1C24; --nuit-2: #172833; --nuit-filet: #2D3A41;
  --ivoire: #F4EEE3; --papier: #FBF8F2; --sable: #DCD2C1;
  --ambre: #DCA040; --ambre-jour: #B37419; --ambre-brule: #8A5A12;
  --pierre: #5C615F; --pierre-nuit: #A7B3B7;
  --vert: #2E6B4E; --rouille: #A3432A; --rouille-nuit: #E58467;

  --fond: var(--ivoire); --surface: var(--papier); --texte: var(--nuit); --texte-2: var(--pierre);
  --filet: var(--sable); --action: var(--ambre-brule); --sur-action: var(--papier); --niveau: var(--ambre-jour);

  --police: "Fira Sans", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 14px; --r-grand: 28px;
  --large: min(1160px, calc(100vw - 32px));
  --entree: cubic-bezier(.2, .7, .1, 1);
  --etale: cubic-bezier(.34, 1.36, .44, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]) {
    --fond: #0B151B; --surface: var(--nuit-2); --texte: var(--ivoire); --texte-2: var(--pierre-nuit);
    --filet: var(--nuit-filet); --action: var(--ambre); --sur-action: var(--nuit); --niveau: var(--ambre);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--texte); font-family: var(--police);
  font-size: 17px; line-height: 1.5; overflow-x: hidden;
  font-variant-numeric: tabular-nums;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ambre); outline-offset: 3px; border-radius: 6px; }
.visuel-masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.conteneur { width: var(--large); margin-inline: auto; }

/* ------------------------------------------------------------------ barre du haut */
.barre {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px;
  display: flex; align-items: center; transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.barre .conteneur { display: flex; align-items: center; gap: 16px; }
.barre .logo { height: 26px; width: auto; }
.barre nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.barre nav a { text-decoration: none; color: var(--ivoire); opacity: .82; font-size: 15px; }
.barre nav a:hover { opacity: 1; }
.barre.posee { background: rgba(15, 28, 36, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--nuit-filet); }
@media (max-width: 760px) { .barre nav a:not(.bouton) { display: none; } }

/* ------------------------------------------------------------------ boutons */
.bouton {
  --c: var(--ambre); display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  min-height: 52px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 17px/1 var(--police); text-decoration: none; color: var(--nuit); background: var(--c);
  transition: transform .2s var(--etale), box-shadow .2s, background .2s;
  box-shadow: 0 10px 28px -12px rgba(220, 160, 64, .7);
}
.bouton:hover { transform: translateY(-2px); }
.bouton:active { transform: translateY(0) scale(.98); }
.bouton.petit { min-height: 40px; padding: 0 16px; font-size: 15px; box-shadow: none; }
.bouton.contour { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.bouton svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ héros (nuit) */
.heros {
  position: relative; min-height: 100svh; background: var(--nuit); color: var(--ivoire);
  display: grid; align-items: center; padding: 96px 0 72px; overflow: hidden; isolation: isolate;
}
.heros canvas.onde { position: absolute; inset: auto 0 0 0; width: 100%; height: 38%; z-index: -1; }
.heros .conteneur { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .heros .conteneur { grid-template-columns: 1fr; text-align: left; } }
.surtitre { font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--ambre); font-weight: 700; margin: 0 0 18px; }
.heros h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 22px; font-weight: 700; }
.heros h1 .mot { display: inline-block; opacity: 0; transform: translateY(.5em); filter: blur(6px); }
.heros h1 .mot.vu { animation: monte .9s var(--entree) forwards; }
.heros h1 em { font-style: normal; color: var(--ambre); }
.heros .chapeau { font-size: clamp(18px, 2vw, 22px); color: var(--pierre-nuit); max-width: 34ch; margin: 0 0 32px; }
.heros .actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.heros .note { margin-top: 18px; font-size: 14px; color: var(--pierre-nuit); }
.heros .note b { color: var(--ivoire); }
@keyframes monte { to { opacity: 1; transform: none; filter: none; } }

/* le signe « u » qui se remplit (L'étale) */
.cuve { position: relative; width: min(420px, 80vw); aspect-ratio: 1; margin-inline: auto; }
.cuve svg { width: 100%; height: 100%; overflow: visible; }
.cuve .halo { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(220,160,64,.28), transparent 65%); filter: blur(20px); animation: respire 6s ease-in-out infinite; }
@keyframes respire { 50% { transform: scale(1.08); opacity: .7; } }
.cuve .graduation line { stroke: var(--nuit-filet); stroke-width: .7; stroke-linecap: round; }
.cuve .graduation line.forte { stroke: var(--pierre-nuit); }
.cuve .etiquette { position: absolute; right: -6%; font: 700 13px var(--police); color: var(--ambre); letter-spacing: .1em; transition: top 1.6s var(--etale); }

.defile { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; color: var(--pierre-nuit); font-size: 13px; display: grid; justify-items: center; gap: 6px; text-decoration: none; }
.defile span { width: 2px; height: 34px; background: linear-gradient(var(--ambre), transparent); animation: goutte 2s ease-in-out infinite; transform-origin: top; }
@keyframes goutte { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ------------------------------------------------------------------ bande de chiffres */
.chiffres { background: var(--nuit-2); color: var(--ivoire); border-block: 1px solid var(--nuit-filet); }
.chiffres .conteneur { display: grid; grid-template-columns: repeat(4, 1fr); }
.chiffres div { padding: 28px 16px; border-left: 1px solid var(--nuit-filet); }
.chiffres div:first-child { border-left: 0; }
.chiffres b { display: block; font-size: clamp(30px, 4vw, 44px); color: var(--ambre); line-height: 1; }
.chiffres span { color: var(--pierre-nuit); font-size: 15px; }
@media (max-width: 700px) { .chiffres .conteneur { grid-template-columns: 1fr 1fr; } .chiffres div:nth-child(3) { border-left: 0; } .chiffres div { border-top: 1px solid var(--nuit-filet); } }

/* ------------------------------------------------------------------ sections */
section.bloc { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.bloc h2 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -.015em; margin: 0 0 18px; }
.bloc h2 em { font-style: normal; color: var(--niveau); }
.bloc .intro { font-size: 19px; color: var(--texte-2); max-width: 56ch; margin: 0 0 40px; }
.revele { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--entree), transform .9s var(--entree); }
.revele.vu { opacity: 1; transform: none; }
.revele[data-delai="1"] { transition-delay: .1s; } .revele[data-delai="2"] { transition-delay: .2s; } .revele[data-delai="3"] { transition-delay: .3s; }

/* ------------------------------------------------------------------ démonstration interactive */
.demo { display: grid; grid-template-columns: 380px 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 920px) { .demo { grid-template-columns: 1fr; } .demo .scene { order: -1; } }
.demo .scene { position: sticky; top: 84px; justify-self: center; }
@media (max-width: 920px) { .demo .scene { position: relative; top: 0; } }

.telephone {
  --ecran: #F4EEE3; position: relative; width: min(340px, 86vw, calc((100svh - 112px) * 9 / 19.2)); min-width: 280px; aspect-ratio: 9 / 19.2;
  border-radius: 48px; padding: 12px; background: linear-gradient(145deg, #1d2c36, #0a1319);
  box-shadow: 0 0 0 2px #2d3a41, 0 40px 80px -30px rgba(15,28,36,.6), inset 0 0 0 1px rgba(255,255,255,.06);
  transform: perspective(1400px) rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg));
  transition: transform .6s var(--entree);
}
.telephone .ecran { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: var(--ecran); color: var(--nuit); font-size: 14px; }
.telephone .encoche { position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: #050a0d; z-index: 5; }
.statut { height: 44px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 24px 4px; font-size: 12px; font-weight: 700; }
.vue { position: absolute; inset: 44px 0 64px; padding: 10px 16px 16px; overflow: hidden; opacity: 0; visibility: hidden; transform: translateX(-16px); transition: opacity .16s, transform .16s, visibility 0s .16s; pointer-events: none; background: var(--ecran); }
.vue.active { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .3s .16s, transform .45s .16s var(--entree), visibility 0s; z-index: 1; }
.vue h3 { margin: 4px 0 10px; font-size: 18px; }
.onglets { position: absolute; inset: auto 0 0 0; height: 64px; background: #FBF8F2; border-top: 1px solid #DCD2C1; display: grid; grid-template-columns: repeat(4, 1fr); }
.onglets button { border: 0; background: none; font: 400 11px var(--police); color: #5C615F; display: grid; justify-items: center; align-content: center; gap: 3px; cursor: pointer; position: relative; }
.onglets button svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.onglets button.actif { color: #0F1C24; font-weight: 700; }
.onglets button.actif::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; background: #B37419; border-radius: 0 0 3px 3px; }
.onglets .pastille { position: absolute; top: 8px; right: calc(50% - 20px); min-width: 16px; height: 16px; border-radius: 8px; background: #0F1C24; color: #FBF8F2; font-size: 10px; display: grid; place-items: center; }

.carte-app { background: #FBF8F2; border: 1px solid #DCD2C1; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.legende-app { font-size: 12px; color: #5C615F; }
.total { font-size: 34px; font-weight: 700; line-height: 1.05; }
.meteo-app { display: flex; gap: 10px; align-items: center; }
.meteo-app .temp { font-size: 26px; font-weight: 700; }
.conseil-app { border-left: 3px solid #B37419; }
.ligne-app { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #DCD2C1; font-size: 13px; }
.ligne-app:last-child { border-bottom: 0; }
.ligne-app.neuve { animation: neuve 1.2s var(--entree); }
@keyframes neuve { from { background: rgba(220,160,64,.35); transform: translateX(-12px); } }
.btn-app { display: block; width: 100%; min-height: 42px; border-radius: 10px; border: 0; background: #8A5A12; color: #FBF8F2; font: 700 15px var(--police); cursor: pointer; margin-top: 8px; }
.btn-app.contour { background: transparent; color: #0F1C24; box-shadow: inset 0 0 0 1.5px #0F1C24; }
.btn-app:disabled { opacity: .4; cursor: default; }

.saisie { text-align: center; font-size: 40px; font-weight: 700; padding: 14px 0 6px; border-bottom: 2px solid #B37419; margin-bottom: 8px; min-height: 76px; }
.saisie small { font-size: 18px; color: #5C615F; }
.bascule-app { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.bascule-app button { min-height: 34px; border-radius: 999px; border: 1.5px solid #0F1C24; background: none; font: 700 13px var(--police); cursor: pointer; }
.bascule-app button.choisi { background: #0F1C24; color: #FBF8F2; }
.pave { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pave button { min-height: 44px; border: 0; border-radius: 10px; background: #E9E1D3; font: 700 19px var(--police); cursor: pointer; transition: transform .1s, background .1s; }
.pave button:active { transform: scale(.94); background: #DCD2C1; }
.raccourcis { display: flex; gap: 6px; margin-bottom: 8px; }
.raccourcis button { flex: 1; min-height: 32px; border-radius: 999px; border: 1px solid #DCD2C1; background: #FBF8F2; font: 400 12px var(--police); cursor: pointer; }

.jauge-vidange { height: 10px; border-radius: 6px; background: #E9E1D3; overflow: hidden; margin: 8px 0 4px; }
.jauge-vidange span { display: block; height: 100%; width: var(--p, 40%); background: linear-gradient(90deg, #B37419, #DCA040); border-radius: inherit; transition: width .8s var(--etale); }
.avancee { display: inline-block; font-size: 11px; font-weight: 700; color: #A3432A; margin-left: 6px; opacity: 0; transition: opacity .3s; }
.avancee.vue-a { opacity: 1; }

/* notification qui tombe du haut de l'écran */
.notif {
  position: absolute; left: 10px; right: 10px; top: 40px; z-index: 6; padding: 10px 12px; border-radius: 16px;
  background: rgba(251, 248, 242, .97); box-shadow: 0 12px 30px -10px rgba(15,28,36,.45); border: 1px solid #DCD2C1;
  display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: 12.5px; line-height: 1.35;
  transform: translateY(-140%); transition: transform .6s var(--etale);
}
.notif.vue { transform: translateY(0); }
.notif img { width: 30px; height: 30px; border-radius: 8px; }
.notif b { display: block; font-size: 12px; }
.notif small { color: #5C615F; }

/* panneau de commande à côté du téléphone */
.etapes { display: grid; gap: 18px; }
.etape { border: 1px solid var(--filet); background: var(--surface); border-radius: var(--r-grand); padding: 26px 26px 24px; transition: border-color .3s, transform .3s var(--entree), box-shadow .3s; cursor: pointer; }
.etape:hover { transform: translateY(-2px); }
.etape.active { border-color: var(--niveau); box-shadow: 0 18px 40px -26px rgba(179,116,25,.6); }
.etape h3 { margin: 0 0 6px; font-size: 22px; display: flex; gap: 12px; align-items: baseline; }
.etape h3 .n { font-size: 14px; color: var(--niveau); font-weight: 700; letter-spacing: .1em; }
.etape p { margin: 0; color: var(--texte-2); }
.etape .commandes { margin-top: 18px; display: none; gap: 14px; }
.etape.active .commandes { display: grid; }
.etape label { font-size: 15px; display: grid; gap: 6px; }
.etape input[type="range"] { width: 100%; accent-color: var(--niveau); }
.interrupteurs { display: flex; flex-wrap: wrap; gap: 10px; }
.interrupteur { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--filet); cursor: pointer; font-size: 15px; user-select: none; background: none; color: inherit; font-family: inherit; }
.interrupteur[aria-pressed="true"] { border-color: var(--ambre); background: var(--ambre); color: var(--nuit); font-weight: 700; }
.etiquette-simu { font-size: 13px; color: var(--texte-2); }

/* ------------------------------------------------------------------ modèles */
.recherche { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.recherche input { flex: 1 1 280px; min-height: 56px; border-radius: 999px; border: 2px solid var(--filet); background: var(--surface); color: var(--texte); padding: 0 24px; font: 400 18px var(--police); }
.recherche input:focus { outline: none; border-color: var(--niveau); }
.filtres { display: flex; gap: 8px; }
.filtres button { min-height: 56px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--filet); background: none; color: inherit; font: 700 15px var(--police); cursor: pointer; }
.filtres button[aria-pressed="true"] { background: var(--texte); color: var(--fond); border-color: var(--texte); }
.grille-modeles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.modele { border: 1px solid var(--filet); background: var(--surface); border-radius: var(--r); padding: 14px 16px; animation: apparait .4s var(--entree) both; }
.modele b { display: block; font-size: 16px; }
.modele span { font-size: 13px; color: var(--texte-2); }
.modele i { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--niveau); }
@keyframes apparait { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.compte-modeles { color: var(--texte-2); font-size: 15px; margin: 0 0 14px; }
.vide-modeles { padding: 24px; border: 1px dashed var(--filet); border-radius: var(--r); color: var(--texte-2); }

/* ------------------------------------------------------------------ vie privée (nuit) */
.prive { background: var(--nuit); color: var(--ivoire); overflow: hidden; }
.prive .intro { color: var(--pierre-nuit); }
.prive .grille3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .prive .grille3 { grid-template-columns: 1fr; } }
.prive .case { border: 1px solid var(--nuit-filet); border-radius: var(--r-grand); padding: 28px; background: linear-gradient(180deg, var(--nuit-2), transparent); }
.prive .case b { display: block; font-size: 44px; color: var(--ambre); line-height: 1; margin-bottom: 10px; }
.prive .case p { margin: 0; color: var(--pierre-nuit); }

/* ------------------------------------------------------------------ installer */
.installer .grille { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .installer .grille { grid-template-columns: 1fr; } }
ol.pas { list-style: none; counter-reset: pas; margin: 0; padding: 0; display: grid; gap: 4px; }
ol.pas li { counter-increment: pas; position: relative; padding: 18px 0 18px 64px; border-bottom: 1px solid var(--filet); }
ol.pas li::before { content: counter(pas); position: absolute; left: 0; top: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--surface); border: 2px solid var(--niveau); color: var(--niveau); }
ol.pas li b { display: block; font-size: 18px; }
ol.pas li span { color: var(--texte-2); }
.telecharger { border-radius: var(--r-grand); padding: 32px; background: var(--nuit); color: var(--ivoire); position: sticky; top: 88px; }
.telecharger h3 { margin: 0 0 6px; font-size: 26px; }
.telecharger p { color: var(--pierre-nuit); margin: 0 0 22px; }
.telecharger dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 22px 0 0; font-size: 14px; }
.telecharger dt { color: var(--pierre-nuit); }
.telecharger dd { margin: 0; word-break: break-all; }
.telecharger .bouton { width: 100%; }
.telecharger .bouton[aria-disabled="true"] { background: var(--nuit-filet); color: var(--pierre-nuit); box-shadow: none; cursor: not-allowed; }

/* ------------------------------------------------------------------ questions */
.questions details { border-bottom: 1px solid var(--filet); }
.questions summary { cursor: pointer; list-style: none; padding: 22px 48px 22px 0; font-size: 19px; font-weight: 700; position: relative; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; border-right: 2.5px solid var(--niveau); border-bottom: 2.5px solid var(--niveau); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--entree); }
.questions details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.questions details p { margin: 0 0 22px; color: var(--texte-2); max-width: 70ch; }

/* ------------------------------------------------------------------ pied */
.pied { background: var(--nuit); color: var(--pierre-nuit); padding: 64px 0 40px; font-size: 15px; }
.pied .conteneur { display: grid; gap: 28px; }
.pied .haut { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.pied .logo { height: 34px; width: auto; }
.pied nav { display: flex; flex-wrap: wrap; gap: 20px; }
.pied a { color: var(--ivoire); text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied .signature { font-size: 22px; color: var(--ivoire); }
.pied .signature em { font-style: normal; color: var(--ambre); }
.pied small { display: block; line-height: 1.6; }

/* ------------------------------------------------------------------ page de texte (confidentialité) */
.page-texte { background: var(--fond); padding: 120px 0 80px; }
.page-texte .conteneur { max-width: 760px; }
.page-texte h1 { font-size: clamp(32px, 5vw, 48px); margin: 0 0 8px; }
.page-texte h2 { font-size: 22px; margin: 40px 0 10px; }
.page-texte p, .page-texte li { color: var(--texte-2); }
.page-texte .maj { color: var(--texte-2); font-size: 14px; }
.barre.pleine { background: var(--nuit); }

/* ------------------------------------------------------------------ mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .revele, .heros h1 .mot { opacity: 1; transform: none; filter: none; }
  .telephone { transform: none; }
}

/* petits écrans : le signe passe au-dessus du titre, plus petit */
@media (max-width: 900px) {
  .heros { padding-top: 84px; min-height: auto; padding-bottom: 96px; }
  .heros .cuve { order: -1; width: min(220px, 56vw); margin: 0 0 8px; }
  .defile { display: none; }
}

/* voyage dans le temps de la démonstration (papiers) */
.date-simu { font-size: 11px; font-weight: 700; color: #8A5A12; background: rgba(220,160,64,.18); border-radius: 999px; padding: 2px 8px; opacity: 0; transition: opacity .3s; }
.date-simu.vue { opacity: 1; }
#reste-assurance { transition: color .3s; }
#reste-assurance.urgent { color: #A3432A; }
/* la dernière étape s'arrête au milieu de l'écran : le téléphone reste entièrement visible */
@media (min-width: 921px) { .etapes { padding-bottom: 32vh; } }
