/* Mo'derne — feuille de style */

@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-latin-var.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Pixelify Sans"; src: url("../fonts/pixelify-latin-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --porcelaine: #EEF1F7;
  --blanc: #FFFFFF;
  --encre: #14162B;
  --encre-2: #4A4E6A;
  --outremer: #3A2BFF;
  --outremer-fonce: #2A1ED6;
  --lilas: #7B6CFF;
  --rose: #FF4F8B;
  --trait: rgba(20, 22, 43, .12);
  --display: "Unbounded", "Arial Black", sans-serif;
  --texte: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pixel: "Pixelify Sans", "Courier New", monospace;
  --entete-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--entete-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--porcelaine); color: var(--encre); font-family: var(--texte); font-size: 18px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
button { font: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.saut { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--encre); color: var(--blanc); padding: 10px 16px; border-radius: 999px; }
.saut:focus { top: 12px; }
.cadre { width: min(1200px, 100% - 48px); margin-left: auto; margin-right: auto; }

/* ---------- Marque ---------- */
.marque { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--encre); }
.marque img { width: 46px; height: auto; }
.wm { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.02em; line-height: 1; }
.ap { display: inline-block; width: .2em; height: .2em; background: var(--rose); border-radius: .03em; vertical-align: .5em; margin: 0 .02em 0 .03em; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border-radius: 16px;
  font-family: var(--texte); font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-plein { background: var(--outremer); color: var(--blanc); }
.btn-plein:hover { background: var(--outremer-fonce); }
.btn-contour { border-color: var(--encre); color: var(--encre); background: transparent; }
.btn-contour:hover { background: var(--encre); color: var(--blanc); }
.btn-petit { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
.btn-large { width: 100%; min-height: 58px; }
.lien-fort { font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 40; background: rgba(238, 241, 247, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--trait); }
.entete-ligne { display: flex; align-items: center; justify-content: space-between; min-height: var(--entete-h); gap: 16px; }

/* =========================================================
   Accueil : la scène avant / après
   ========================================================= */
.renov { padding-top: 20px; }
.scene {
  --x: 100%;
  position: relative; width: min(1320px, 100% - 32px); margin: 0 auto; height: clamp(560px, 78vh, 780px);
  border-radius: 28px; overflow: hidden; isolation: isolate; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  cursor: ew-resize; box-shadow: 0 30px 60px -30px rgba(58, 43, 255, .35);
}
.ancien, .moderne { position: absolute; inset: 0; }

/* ----- L'ancien (Windows 95) ----- */
.ancien {
  font-family: var(--pixel); color: #000;
  background-color: #008080;
  background-image: radial-gradient(rgba(0, 0, 0, .16) 1px, transparent 1.2px);
  background-size: 4px 4px;
}
.ico { position: absolute; left: 3%; width: 96px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; font-size: 14px; text-align: center; line-height: 1.15; }
.ico span:last-child { padding: 1px 3px; }
.ico-pc { top: 5%; } .ico-corbeille { top: 21%; } .ico-doc { top: 37%; }
.ico-img { width: 44px; height: 40px; position: relative; display: block; }
.ico-pc .ico-img { background: #c0c0c0; border: 3px solid #000; box-shadow: inset 0 0 0 4px #c0c0c0, inset 0 0 0 20px #000080; height: 32px; }
.ico-pc .ico-img::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -10px; height: 6px; background: #808080; border: 2px solid #000; }
.ico-corbeille .ico-img { width: 32px; background: repeating-linear-gradient(90deg, #dfdfdf 0 5px, #808080 5px 7px); border: 3px solid #000; border-top-width: 6px; }
.ico-doc .ico-img { background: #ffd84a; border: 3px solid #000; height: 34px; }
.ico-doc .ico-img::before { content: ""; position: absolute; left: -3px; top: -9px; width: 20px; height: 8px; background: #ffd84a; border: 3px solid #000; border-bottom: 0; }

.w95 {
  position: absolute; background: #c0c0c0;
  border: 2px solid; border-color: #fff #404040 #404040 #fff;
  box-shadow: inset -2px -2px #808080, inset 2px 2px #dfdfdf, 6px 6px 0 rgba(0, 0, 0, .35);
}
.w95-titre {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 6px 4px 10px;
  background: linear-gradient(90deg, #000080, #1084d0); color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .02em;
}
.w95-btns { display: flex; gap: 3px; }
.w95-btns i {
  font-style: normal; width: 22px; height: 20px; display: grid; place-items: center; font-size: 13px; line-height: 1; color: #000; background: #c0c0c0;
  border: 2px solid; border-color: #fff #404040 #404040 #fff;
}
.w95-corps { padding: 26px 28px 24px; }
.fenetre { left: 15%; top: 12%; width: min(820px, 72%); }
.titre-ancien { font-weight: 700; font-size: clamp(38px, 5.4vw, 74px); line-height: 1.04; letter-spacing: .01em; }
.w95-barre { margin-top: 26px; height: 26px; background: #fff; border: 2px solid; border-color: #808080 #fff #fff #808080; padding: 3px; }
.w95-barre span { display: block; height: 100%; background: repeating-linear-gradient(90deg, #000080 0 14px, transparent 14px 17px); }
.w95-note { margin-top: 10px; font-size: 17px; }
.alerte95 { right: 7%; top: 57%; width: min(370px, 46%); }
.alerte95 .w95-corps { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.3; }
.alerte95 p { display: flex; gap: 12px; align-items: flex-start; }
.croix { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: #e00000; color: #fff; display: grid; place-items: center; font-size: 15px; border: 2px solid #800000; }
.w95-ok { align-self: center; min-width: 86px; text-align: center; padding: 3px 0; border: 2px solid; border-color: #fff #404040 #404040 #fff; outline: 1px dotted #000; outline-offset: -6px; }
.taches95 {
  position: absolute; left: 0; right: 0; bottom: 0; height: 44px; padding: 4px 6px; display: flex; justify-content: space-between; align-items: center;
  background: #c0c0c0; border-top: 2px solid #fff; font-size: 16px;
}
.demarrer95 { display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 10px; font-weight: 700; border: 2px solid; border-color: #fff #404040 #404040 #fff; }
.demarrer95 i { width: 18px; height: 16px; background: conic-gradient(#ff0000 0 25%, #00a000 0 50%, #ffd800 0 75%, #0050ff 0); }
.horloge95 { height: 100%; display: inline-flex; align-items: center; padding: 0 12px; border: 2px solid; border-color: #808080 #fff #fff #808080; }

/* ----- Le moderne ----- */
.moderne {
  clip-path: inset(0 0 0 var(--x));
  background:
    radial-gradient(60% 70% at 85% 15%, rgba(123, 108, 255, .38), transparent 70%),
    radial-gradient(50% 60% at 10% 95%, rgba(255, 79, 139, .22), transparent 70%),
    linear-gradient(160deg, #F7F8FC, #E6EAF5);
}
.panneau {
  position: absolute; left: 15%; top: 12%; width: min(820px, 72%);
  padding: 50px 28px 24px; border-radius: 28px;
  background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 24px 60px -24px rgba(20, 22, 43, .28);
}
.titre-moderne { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.35vw, 63px); line-height: 1.16; letter-spacing: -.03em; color: var(--encre); }
.barre-ok { margin-top: 26px; height: 10px; border-radius: 99px; background: rgba(20, 22, 43, .08); overflow: hidden; }
.barre-ok span { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--outremer), var(--lilas), var(--rose)); }
.note-ok { margin-top: 12px; font-size: 17px; color: var(--encre-2); font-weight: 500; }
.toast {
  position: absolute; right: 7%; top: 57%; width: min(370px, 46%);
  display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 20px;
  background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid #fff; box-shadow: 0 20px 40px -20px rgba(20, 22, 43, .35);
}
.toast-ico { flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #19C37D; color: #fff; font-weight: 800; }
.toast b { display: block; font-size: 17px; }
.toast span:not(.toast-ico) { display: block; font-size: 15px; color: var(--encre-2); }
.dock {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); height: 54px; padding: 0 10px 0 16px;
  display: flex; align-items: center; gap: 10px; border-radius: 18px;
  background: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid #fff; box-shadow: 0 14px 30px -14px rgba(20, 22, 43, .35);
}
.dock img { width: 34px; height: auto; }
.dock-sep { width: 1px; height: 26px; background: var(--trait); margin: 0 4px; }
.dock-app { width: 34px; height: 34px; border-radius: 10px; }
.a1 { background: linear-gradient(135deg, var(--outremer), var(--lilas)); }
.a2 { background: linear-gradient(135deg, var(--rose), #FF9A6B); }
.a3 { background: linear-gradient(135deg, #19C37D, #7BE0B5); }
.horloge-mod { font-weight: 600; font-size: 15px; padding: 0 10px; font-variant-numeric: tabular-nums; }

/* ----- La poignée ----- */
.poignee { position: absolute; top: 0; bottom: 0; left: var(--x); width: 0; z-index: 3; pointer-events: none; }
.poignee::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(20, 22, 43, .15), 0 0 24px rgba(58, 43, 255, .6); }
.poignee-rond {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--outremer); color: #fff; border: 3px solid #fff; box-shadow: 0 10px 24px rgba(20, 22, 43, .35);
}
.curseur-renov { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.scene:has(.curseur-renov:focus-visible) .poignee-rond { outline: 3px solid var(--rose); outline-offset: 3px; }

.renov-bas { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: center; padding: 30px 0 8px; }
.renov-texte { font-size: 20px; color: var(--encre-2); max-width: 640px; }
.renov-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.astuce { grid-column: 1 / -1; font-size: 15px; color: var(--encre-2); transition: opacity .4s; }
.astuce.vue { opacity: 0; }

/* =========================================================
   Sections
   ========================================================= */
.bloc { padding-top: 110px; display: flex; flex-direction: column; gap: 40px; }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4vw, 52px); line-height: 1.06; letter-spacing: -.03em; max-width: 18ch; }

.deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.volet { background: var(--blanc); border-radius: 28px; padding: 38px; display: flex; flex-direction: column; gap: 16px; }
.volet h3 { font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -.02em; }
.volet-intro { color: var(--encre-2); }
.volet-bleu { background: var(--outremer); color: var(--blanc); }
.volet-bleu .volet-intro { color: rgba(255, 255, 255, .78); }
.puces { list-style: none; margin: 6px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.puces li { position: relative; padding-left: 24px; }
.puces li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 2px; background: var(--rose); }
.volet .lien-fort { align-self: flex-start; }

.liste-services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--trait); }
.liste-services li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px 40px; padding: 28px 0; border-bottom: 1px solid var(--trait); align-items: baseline; }
.liste-services h3 { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; }
.liste-services p { color: var(--encre-2); max-width: 60ch; }

.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.etapes li { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 2px solid var(--encre); }
.etape-num { font-family: var(--pixel); font-weight: 700; font-size: 64px; line-height: 1; color: var(--outremer); }
.etapes h3 { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -.02em; }
.etapes p { color: var(--encre-2); }

/* ---------- Contact ---------- */
.contact { margin-top: 120px; background: var(--encre); color: var(--porcelaine); padding: 100px 0; }
.contact-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.contact-texte { display: flex; flex-direction: column; gap: 18px; }
.contact-texte p { color: rgba(238, 241, 247, .78); }
.contact-texte a { color: var(--blanc); font-weight: 600; text-underline-offset: 4px; }
.formulaire { background: var(--blanc); color: var(--encre); border-radius: 26px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.champ > label:first-child, .choix legend { font-weight: 600; }
.facultatif { font-weight: 400; color: var(--encre-2); }
.champ small { color: var(--encre-2); font-size: 15px; }
.champ input[type="text"], .champ input[type="email"], .champ input[type="tel"], .champ textarea, .champ select {
  width: 100%; min-height: 52px; border-radius: 14px; border: 2px solid #D5D9E6; background: #F7F8FC; color: var(--encre);
  font: inherit; font-weight: 400; padding: 12px 14px;
}
.champ textarea { resize: vertical; min-height: 120px; }
.champ select {
  -webkit-appearance: none; appearance: none; padding-right: 44px;
  background: #F7F8FC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314162B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 20px no-repeat;
}
.champ input:focus, .champ textarea:focus, .champ select:focus { outline: none; border-color: var(--outremer); background-color: var(--blanc); box-shadow: 0 0 0 4px rgba(58, 43, 255, .15); }
.champ [aria-invalid="true"] { border-color: #C42A2F; background: #FFF4F4; }
.erreur { color: #B3242A; font-size: 15px; font-weight: 600; }
.erreur::before { content: "! "; }
.choix { border: 0; margin: 0; padding: 0; }
.choix legend { padding: 0; margin-bottom: 8px; }
.choix-options { display: flex; flex-wrap: wrap; gap: 10px; }
.choix-options label { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 2px solid #D5D9E6; border-radius: 14px; cursor: pointer; font-weight: 500; }
.choix-options input { width: 18px; height: 18px; accent-color: var(--outremer); margin: 0; }
.choix-options label:has(input:checked) { border-color: var(--outremer); background: rgba(58, 43, 255, .07); }
.choix-options label:has(input:focus-visible) { outline: 3px solid var(--rose); outline-offset: 2px; }

.champ input[type="file"] { font: inherit; font-size: 16px; min-height: 48px; padding: 8px 0; max-width: 100%; }
.bouton-fichier { display: none; }
.js .fichier-natif { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.js .bouton-fichier { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; padding: 12px; border: 2px dashed #B9BFD3; border-radius: 14px; color: var(--outremer); font-weight: 600; cursor: pointer; }
.js .bouton-fichier[hidden] { display: none; }
.js .bouton-fichier span { font-size: 24px; line-height: 1; }
.js .bouton-fichier:hover { border-color: var(--outremer); background: rgba(58, 43, 255, .05); }
.js .fichier-natif:focus-visible + .bouton-fichier { outline: 3px solid var(--rose); outline-offset: 2px; }
.apercus { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.apercus:empty { display: none; }
.apercu { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; background: #F7F8FC; border: 2px solid #E3E6EF; }
.apercu-vignette { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--outremer); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.apercu-vignette img { width: 100%; height: 100%; object-fit: cover; }
.apercu-infos { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.apercu-nom { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apercu-taille { font-size: 14px; color: var(--encre-2); }
.apercu-retirer { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: var(--encre); }
.apercu-retirer:hover { background: #E9ECF4; }
.alerte { background: #FFF0F0; border: 2px solid #C42A2F; color: var(--encre); border-radius: 14px; padding: 14px 16px; font-size: 16px; }
.alerte a { color: var(--outremer); font-weight: 600; }
.formulaire[hidden], .confirmation[hidden], .alerte[hidden], .erreur[hidden] { display: none; }
.confirmation { background: var(--blanc); color: var(--encre); border-radius: 26px; padding: 40px 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; outline: none; }
.confirmation h3 { font-family: var(--display); font-size: 32px; letter-spacing: -.02em; }
.confirmation-icone { width: 56px; height: 56px; border-radius: 16px; background: #19C37D; color: #fff; display: grid; place-items: center; font-size: 28px; font-weight: 800; }
.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mention { font-size: 15px; color: var(--encre-2); }
.mention a { color: var(--outremer); }

/* ---------- Lien vers Mo'dule ---------- */
.pont { display: flex; align-items: center; gap: 24px 32px; flex-wrap: wrap; padding: 56px 0; border-bottom: 1px solid var(--trait); }
.pont > div { flex: 1 1 380px; display: flex; flex-direction: column; gap: 6px; }
.pont h2 { font-family: var(--display); font-weight: 500; font-size: 24px; letter-spacing: -.02em; }
.pont p { color: var(--encre-2); }
.pont-marque {
  width: 72px; height: 72px; border-radius: 18px; background: #4B32C3; flex-shrink: 0; display: grid; place-items: center;
  font-family: "Arial Black", sans-serif; font-weight: 900; font-size: 34px; color: #FFF8EC; letter-spacing: -.04em; padding-bottom: 4px;
  text-shadow: 0 2px 0 #141414, 0 4px 0 #FF5A5F, 0 6px 0 #3CCB9A;
}

/* ---------- Pied de page ---------- */
.pied { padding: 40px 0 56px; }
.pied-ligne { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.marque-pied img { width: 38px; }
.marque-pied .wm { font-size: 20px; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 16px; }
.pied-liens a { color: var(--encre-2); text-underline-offset: 4px; }
.pied-liens a:hover { color: var(--encre); }

/* ---------- Pages simples (questions, merci, confidentialité, 404) ---------- */
.page { width: min(860px, 100% - 48px); margin: 0 auto; padding: 64px 0 100px; display: flex; flex-direction: column; gap: 26px; }
.page h1 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 6vw, 64px); line-height: 1.04; letter-spacing: -.03em; }
.page h2 { font-family: var(--display); font-weight: 500; font-size: 24px; letter-spacing: -.02em; margin-top: 16px; }
.page ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.page .maj, .page .discret { color: var(--encre-2); }
.page a { color: var(--outremer); }
.page .btn-plein { color: var(--blanc); }
.page .btn-contour { color: var(--encre); }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.retour { font-weight: 600; text-decoration: none; font-size: 16px; }
.retour:hover { text-decoration: underline; text-underline-offset: 4px; }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--trait); }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 4px; font-weight: 600; font-size: 19px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 12px; height: 12px; background: var(--rose); border-radius: 2px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 22px; color: var(--encre-2); max-width: 64ch; }

/* =========================================================
   Tablette
   ========================================================= */
@media (max-width: 980px) {
  .fenetre, .panneau { left: 6%; width: 78%; }
  .ico { display: none; }
  .alerte95, .toast { right: 5%; width: min(340px, 56%); top: 60%; }
  .renov-bas { grid-template-columns: 1fr; }
  .contact-grille { grid-template-columns: 1fr; gap: 36px; }
  .liste-services li { grid-template-columns: 1fr; gap: 6px; }
}

/* =========================================================
   Téléphone
   ========================================================= */
@media (max-width: 640px) {
  body { font-size: 17px; }
  :root { --entete-h: 62px; }
  .cadre { width: min(1200px, 100% - 40px); }
  .wm { font-size: 20px; }
  .marque img { width: 38px; }
  .entete .btn-petit { padding: 0 14px; font-size: 14px; }

  .renov { padding-top: 12px; }
  .scene { width: calc(100% - 20px); height: min(640px, 100svh - var(--entete-h) - 40px); min-height: 520px; border-radius: 22px; }
  .fenetre, .panneau { left: 5%; width: 90%; top: 6%; }
  .w95-corps { padding: 18px 18px 16px; }
  .panneau { padding: 44px 18px 16px; }
  .titre-ancien { font-size: 36px; }
  .titre-moderne { font-size: 28px; line-height: 1.22; }
  .w95-titre { font-size: 14px; }
  .w95-barre { margin-top: 18px; height: 22px; }
  .barre-ok { margin-top: 18px; }
  .w95-note, .note-ok { font-size: 15px; }
  .alerte95, .toast { left: 8%; right: auto; width: 84%; top: auto; bottom: 84px; }
  .alerte95 .w95-corps { font-size: 14px; padding: 12px; }
  .toast { padding: 14px 16px; }
  .toast b { font-size: 16px; }
  .toast span:not(.toast-ico) { font-size: 14px; }
  .dock { height: 48px; bottom: 10px; }
  .dock-app { width: 28px; height: 28px; }
  .poignee-rond { width: 48px; height: 48px; }

  .renov-texte { font-size: 18px; }
  .renov-actions .btn { flex: 1 1 100%; }
  .bloc { padding-top: 80px; gap: 28px; }
  .deux { grid-template-columns: 1fr; gap: 14px; }
  .volet { padding: 26px; border-radius: 22px; }
  .volet h3 { font-size: 24px; }
  .etapes { grid-template-columns: 1fr; gap: 26px; }
  .etape-num { font-size: 52px; }
  .contact { margin-top: 90px; padding: 70px 0; }
  .formulaire { padding: 22px; border-radius: 22px; }
  .choix-options label { flex: 1 1 100%; }
  .pont .btn { width: 100%; }
  .pied-ligne { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .titre-ancien { font-size: 31px; }
  .titre-moderne { font-size: 27px; }
  .entete .btn-petit { display: none; }
}

/* =====================================================================
   Effets « waw » : intro, transitions en pixels, titres, services, toile, curseur
   ===================================================================== */

/* ---------- Logo SVG (pixels qui deviennent vecteur) ---------- */
.logo-svg { width: 56px; height: auto; overflow: visible; flex: none; }
.logo-svg .px, .intro-svg .px { transform-box: fill-box; }
.marque-pied .logo-svg { width: 42px; }

/* ---------- Écran d'intro ---------- */
.intro { display: none; }
.js .intro {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  background: var(--encre); color: var(--porcelaine); cursor: pointer;
  animation: intro-secours .4s ease 6s forwards;       /* si le script ne charge pas */
}
@keyframes intro-secours { to { opacity: 0; visibility: hidden; } }
.intro-logo { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.intro-svg { width: min(280px, 56vw); height: auto; overflow: visible; }
.intro-wm { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 6vw, 64px); letter-spacing: -.03em; line-height: 1; min-height: 1em; }
.intro-ligne { font-family: var(--pixel); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: rgba(238, 241, 247, .6); }
@media (prefers-reduced-motion: reduce) { .js .intro { display: none; } }

/* ---------- Grille de pixels (dissolution et changement de page) ---------- */
.pixels {
  position: fixed; inset: 0; z-index: 99; display: grid; grid-auto-rows: 1fr; pointer-events: none; visibility: hidden;
}
.pixels i { display: block; background: var(--encre); will-change: transform, opacity; }
.pixels i:nth-child(7n+3) { background: #1D1F3D; }
.pixels i:nth-child(11n+5) { background: var(--outremer); }

/* ---------- Titres : lettres pixel → modernes ---------- */
.car { display: inline-block; will-change: transform; }
.car.px { font-family: var(--pixel); font-weight: 600; letter-spacing: 0; }
.h2 .word, .h2 > div { white-space: nowrap; }

/* ---------- Accueil ---------- */
.waw .scene { will-change: transform; transform-origin: 50% 0; }
.waw .btn { transition: background-color .15s ease, color .15s ease; }

/* ---------- Services : piste horizontale ---------- */
.services { gap: 40px; }
.services-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
.services-aide { font-family: var(--pixel); font-size: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-2); }
.services-fenetre { overflow: hidden; perspective: 1400px; padding: 10px 0 30px; }
.services-piste {
  list-style: none; margin: 0; display: flex; gap: 24px; width: max-content;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
}
.carte-service {
  width: clamp(320px, 30vw, 420px); min-height: 460px; background: var(--blanc); border-radius: 28px; padding: 36px;
  display: flex; flex-direction: column; gap: 14px; transform-style: preserve-3d;
  box-shadow: 0 1px 0 rgba(20, 22, 43, .04), 0 30px 60px -40px rgba(20, 22, 43, .35);
  counter-increment: service; position: relative;
}
.carte-service::after {
  content: "0" counter(service); position: absolute; top: 34px; right: 36px;
  font-family: var(--pixel); font-size: 15px; color: var(--encre-2); letter-spacing: .08em;
}
.services-piste { counter-reset: service; }
.carte-service:nth-child(3n+2) { background: var(--encre); color: var(--porcelaine); }
.carte-service:nth-child(3n+2) p, .carte-service:nth-child(3n+2)::after { color: rgba(238, 241, 247, .72); }
.carte-service:nth-child(3n) { background: var(--outremer); color: var(--blanc); }
.carte-service:nth-child(3n) p, .carte-service:nth-child(3n)::after { color: rgba(255, 255, 255, .78); }
.carte-service h3 { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.1vw, 28px); letter-spacing: -.02em; line-height: 1.12; margin-top: auto; }
.carte-service p { color: var(--encre-2); }
.icone-px { width: 132px; aspect-ratio: 1; margin-bottom: 30px; }
.icone-px svg { width: 100%; height: 100%; display: block; overflow: visible; }
.icone-px rect { fill: color-mix(in oklab, var(--outremer) calc(100% - var(--t) * 100%), var(--rose)); transform-box: fill-box; }
.carte-service:nth-child(3n+2) .icone-px rect { fill: color-mix(in oklab, var(--lilas) calc(100% - var(--t) * 100%), var(--rose)); }
.carte-service:nth-child(3n) .icone-px rect { fill: color-mix(in oklab, var(--blanc) calc(100% - var(--t) * 70%), var(--rose)); }

/* ---------- Étapes : trait qui se dessine ---------- */
.etapes-zone { position: relative; }
.etapes-trait { position: absolute; left: 0; top: -4px; width: 100%; height: 10px; overflow: visible; pointer-events: none; }
.etapes-trait path { fill: none; stroke: var(--outremer); stroke-width: 4px; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.waw .etapes li { border-top-color: var(--trait); }

/* ---------- Contact : toile de pixels ---------- */
.contact { position: relative; overflow: hidden; }
.toile { position: absolute; inset: 0; pointer-events: none; }
.contact-grille { position: relative; z-index: 1; }

/* ---------- Curseur ---------- */
.curseur { display: none; }
.curseur-actif .curseur {
  display: block; position: fixed; left: 0; top: 0; z-index: 98; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  background: var(--outremer); pointer-events: none; opacity: 0; mix-blend-mode: normal;
  transition: width .25s ease, height .25s ease, margin .25s ease, border-radius .25s ease, background-color .25s ease, opacity .2s ease;
}
.curseur-actif .curseur.vu { opacity: 1; }
.curseur-actif .curseur.sur-lien { width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(58, 43, 255, .14); box-shadow: inset 0 0 0 2px var(--outremer); }
.curseur-actif .curseur.sur-scene:not(.sur-lien) { background: var(--rose); }


@media (max-width: 899px) {
  .services-fenetre { overflow: visible; perspective: none; padding: 0; }
  .services-piste { width: auto; flex-direction: column; padding: 0; margin: 0 auto; width: min(1200px, 100% - 48px); }
  .carte-service { width: 100%; min-height: 0; }
  .carte-service h3 { margin-top: 0; }
  .icone-px { width: 96px; margin-bottom: 14px; }
}
@media (max-width: 640px) {
  .services-piste { width: min(1200px, 100% - 40px); gap: 16px; }
  .carte-service { padding: 26px; border-radius: 22px; }
  .carte-service::after { top: 26px; right: 26px; }
  .etapes-trait { display: none; }
}
.wm { white-space: nowrap; }
.entete .btn-petit { white-space: nowrap; }
@media (max-width: 640px) { .entete .logo-svg { width: 40px; } .entete .marque { gap: 8px; } .entete .wm { font-size: 20px; } }
/* Arrivée depuis une autre page : l'écran reste couvert jusqu'à la dissolution */
.arrivee .pixels { visibility: visible; background: var(--encre); animation: intro-secours .3s ease 3s forwards; }

/* =====================================================================
   V3 — sites & applis : bandeau, manifeste, atelier, pile, signature
   ===================================================================== */
.surtitre { font-family: var(--pixel); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--outremer); }

/* Progression de lecture dans l'en-tête */
.progression { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--outremer), var(--lilas), var(--rose)); }

/* Accueil : barres d'adresse */
.w95-adresse { display: flex; align-items: stretch; gap: 8px; height: 34px; margin: -10px 0 22px; font-size: 15px; }
.w95-adresse b { display: flex; align-items: center; font-weight: 400; }
.w95-adresse span { flex: 1; display: flex; align-items: center; padding: 0 8px; background: #fff; border: 2px solid; border-color: #808080 #fff #fff #808080; white-space: nowrap; overflow: hidden; }
.adresse-mod { display: flex; align-items: center; gap: 8px; height: 34px; margin: -10px 0 22px; padding: 0 14px; width: max-content; border-radius: 99px; background: rgba(20, 22, 43, .06); font-size: 14px; font-weight: 500; color: var(--encre-2); }
.adresse-mod i { width: 9px; height: 11px; border-radius: 2px; background: #19C37D; position: relative; top: 1px; }
.adresse-mod i::before { content: ""; position: absolute; left: 1px; right: 1px; top: -5px; height: 7px; border: 2px solid #19C37D; border-bottom: 0; border-radius: 5px 5px 0 0; }
.panneau { padding-top: 40px; }
.mot { display: inline-block; white-space: nowrap; }
.titre-moderne .mot { background: linear-gradient(90deg, var(--outremer), var(--lilas) 60%, var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }

/* Bandeau défilant */
.defile { margin-top: 90px; overflow: hidden; padding: 14px 0; transform: rotate(-2deg); background: var(--encre); color: var(--porcelaine); }
.defile-ligne { overflow: hidden; }
.defile-piste { display: flex; width: max-content; align-items: center; will-change: transform; }
.defile-piste span { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 6vw, 84px); letter-spacing: -.03em; line-height: 1.15; padding: 0 .3em; white-space: nowrap; }
.defile-piste i { width: .5em; height: .5em; font-size: clamp(34px, 6vw, 84px); background: var(--rose); flex: none; }
.defile-piste i:nth-of-type(2n) { background: var(--lilas); border-radius: 50%; }
.defile-contour span { color: transparent; -webkit-text-stroke: 1.5px rgba(238, 241, 247, .7); }
.defile-contour .defile-piste i { background: transparent; box-shadow: inset 0 0 0 2px var(--lilas); }

/* Manifeste */
.manifeste { padding-top: 130px; display: flex; flex-direction: column; gap: 26px; }
.manifeste-texte { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4.1vw, 58px); line-height: 1.14; letter-spacing: -.03em; max-width: 22ch; max-width: 1100px; }
.manifeste-texte em { font-style: normal; background: linear-gradient(90deg, var(--outremer), var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.manifeste-texte .mt { display: inline-block; }
.waw .manifeste-texte .mt { opacity: .14; }

/* Atelier */
.atelier { margin-top: 130px; }
.atelier-carte { background: var(--encre); color: var(--porcelaine); min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; position: relative; }
.atelier-carte::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(238, 241, 247, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(238, 241, 247, .05) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(70% 70% at 60% 50%, #000, transparent); -webkit-mask-image: radial-gradient(70% 70% at 60% 50%, #000, transparent); }
.atelier-grille { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 50px; align-items: center; padding: 90px 0; }
.atelier-texte { display: flex; flex-direction: column; gap: 22px; }
.atelier-texte .surtitre { color: var(--lilas); }
.atelier-etapes { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.atelier-etapes li { display: grid; grid-template-columns: 44px 1fr; gap: 2px 8px; padding: 12px 0 12px 16px; border-left: 2px solid rgba(238, 241, 247, .14); opacity: .42; transition: opacity .35s ease, border-color .35s ease; }
.atelier-etapes .n { font-family: var(--pixel); font-size: 15px; color: var(--lilas); padding-top: 3px; }
.atelier-etapes b { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -.02em; }
.atelier-etapes p { grid-column: 2; font-size: 16px; color: rgba(238, 241, 247, .7); max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.atelier-etapes li.actif { opacity: 1; border-color: var(--rose); }
.atelier-etapes li.actif p { max-height: 80px; }
.no-js .atelier-etapes li, .atelier:not(.anime) .atelier-etapes li { opacity: 1; }
.atelier:not(.anime) .atelier-etapes p { max-height: none; }

.atelier-ecran { position: relative; height: 560px; display: grid; place-items: center; }
.appareil {
  --w: 660px; --h: 440px;
  position: relative; width: var(--w); height: var(--h); max-width: 100%; border-radius: 16px; overflow: hidden; background: #fff; color: var(--encre);
  box-shadow: 0 0 0 1px rgba(238, 241, 247, .12), 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 120px -20px rgba(58, 43, 255, .45);
  display: flex; flex-direction: column;
}
.appareil-barre { flex: none; height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #E9ECF4; }
.appareil-barre i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.appareil-barre i:nth-child(2) { background: #FEBC2E; } .appareil-barre i:nth-child(3) { background: #28C840; }
.adresse { margin-left: 12px; flex: 1; max-width: 260px; height: 22px; border-radius: 7px; background: #fff; font-size: 12px; display: flex; align-items: center; padding: 0 10px; color: var(--encre-2); white-space: nowrap; overflow: hidden; }
.appareil-vue { position: relative; flex: 1; container-type: inline-size; overflow: hidden; }

/* Le mini-site de démonstration (même structure en maquette et en design) */
.demo { position: absolute; inset: 0; padding: 4cqw 5cqw; display: flex; flex-direction: column; gap: 4.4cqw; font-family: var(--texte); }
.d-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.d-logo { font-family: var(--display); font-size: max(11px, 2.6cqw); letter-spacing: -.02em; }
.d-liens { display: flex; gap: 3cqw; font-size: max(9px, 1.9cqw); }
.d-liens i { font-style: normal; }
.d-menu { display: none; width: 22px; height: 14px; background: linear-gradient(currentColor 0 0) 0 0 / 100% 2px no-repeat, linear-gradient(currentColor 0 0) 0 50% / 100% 2px no-repeat, linear-gradient(currentColor 0 0) 0 100% / 100% 2px no-repeat; }
.d-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4cqw; align-items: center; }
.d-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 2cqw; }
.d-titre { font-family: var(--display); font-size: max(16px, 4.6cqw); line-height: 1.05; letter-spacing: -.03em; }
.d-sous { font-size: max(10px, 1.9cqw); line-height: 1.4; }
.d-btn { font-size: max(9px, 1.7cqw); font-weight: 600; padding: 1.3cqw 2.4cqw; border-radius: 99px; }
.d-img { aspect-ratio: 4 / 3; border-radius: 1.6cqw; }
.d-img-grande { aspect-ratio: 5 / 4; }
.d-cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; }
.d-carte { display: grid; grid-template-columns: 1fr auto; gap: 1cqw; font-size: max(9px, 1.7cqw); }
.d-carte .d-img { grid-column: 1 / -1; aspect-ratio: 16 / 10; }

/* maquette fil de fer */
.demo-fil { background: #F4F5F9; color: transparent; }
.demo-fil .d-logo, .demo-fil .d-liens i, .demo-fil .d-titre, .demo-fil .d-sous, .demo-fil .d-carte b, .demo-fil .d-carte small { background: #D9DCE7; border-radius: 4px; }
.demo-fil .d-btn { background: transparent; box-shadow: inset 0 0 0 1.5px #B5BACB; }
.demo-fil .d-img { background:
  linear-gradient(to top right, transparent calc(50% - 1px), #C3C8D7 50%, transparent calc(50% + 1px)),
  linear-gradient(to bottom right, transparent calc(50% - 1px), #C3C8D7 50%, transparent calc(50% + 1px)), #E8EAF1;
  box-shadow: inset 0 0 0 1.5px #C3C8D7; }
.demo-fil .d-menu { color: #C3C8D7; }

/* design final */
.demo-design { background: #FBF6F0; color: #2B1D14; clip-path: inset(0 0 0 0); }
.demo-design .d-logo { color: #2B1D14; }
.demo-design .d-titre { color: #2B1D14; }
.demo-design .d-titre::first-line { color: inherit; }
.demo-design .d-sous { color: #7A6555; }
.demo-design .d-btn { background: #E8572A; color: #fff; }
.demo-design .d-img { background:
  radial-gradient(40% 50% at 30% 35%, rgba(255, 255, 255, .55), transparent 60%),
  radial-gradient(60% 70% at 70% 80%, #6B3A1E, transparent 70%),
  linear-gradient(135deg, #F2B66D, #C8743A 55%, #6B3A1E); }
.demo-design .d-carte:nth-child(2) .d-img { background: radial-gradient(50% 50% at 50% 50%, #F7E3C8 0 30%, #B8794A 31% 45%, #F4EDE4 46%); }
.demo-design .d-carte:nth-child(3) .d-img { background: radial-gradient(circle at 30% 40%, #4A2A16 0 6%, transparent 7%), radial-gradient(circle at 62% 58%, #4A2A16 0 7%, transparent 8%), radial-gradient(circle at 45% 70%, #4A2A16 0 5%, transparent 6%), radial-gradient(circle at 50% 50%, #E2A866 0 45%, #F4EDE4 46%); }
.demo-design .d-carte:nth-child(1) .d-img { background: radial-gradient(50% 50% at 50% 50%, #3B2214 0 26%, #fff 27% 36%, #F4EDE4 37%); }
.demo-design .d-carte small { color: #E8572A; font-weight: 600; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--rose); box-shadow: 0 0 18px 4px rgba(255, 79, 139, .6); opacity: 0; pointer-events: none; }

@container (max-width: 420px) {
  .demo { padding: 18px 16px; gap: 18px; }
  .d-liens { display: none; }
  .d-menu { display: block; }
  .d-logo { font-size: 15px; }
  .d-hero { grid-template-columns: 1fr; gap: 14px; }
  .d-img-grande { order: -1; aspect-ratio: 16 / 10; border-radius: 12px; }
  .d-titre { font-size: 24px; }
  .d-sous { font-size: 12px; }
  .d-btn { font-size: 12px; padding: 8px 14px; }
  .d-cartes { grid-template-columns: 1fr; gap: 10px; }
  .d-carte { grid-template-columns: 56px 1fr auto; align-items: center; gap: 10px; font-size: 12px; }
  .d-carte .d-img { grid-column: auto; aspect-ratio: 1; border-radius: 10px; }
}

/* Panneau de code */
.code {
  position: absolute; left: -40px; bottom: 30px; z-index: 2; margin: 0; width: 400px; padding: 20px 22px; border-radius: 16px;
  background: rgba(20, 22, 43, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(238, 241, 247, .14), 0 30px 60px -20px rgba(0, 0, 0, .7);
  font: 500 13px/1.65 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #C9CDE0; opacity: 0; white-space: pre;
}
.code .l { display: block; }
.code .t { color: #FF7BAC; } .code .a { color: #FFC66D; } .code .v { color: #8FE3B0; } .code .s { color: #9D90FF; } .code .p { color: #7FD4FF; }

/* Étapes : cartes qui s'empilent */
.pile { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.pile-carte {
  position: sticky; top: calc(var(--entete-h) + 30px + var(--i, 0) * 22px);
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: start; min-height: 300px; padding: 44px 48px; border-radius: 30px;
  background: var(--blanc); box-shadow: 0 -10px 40px -20px rgba(20, 22, 43, .25); transform-origin: 50% 0;
}
.pile-carte:nth-child(1) { --i: 0; } .pile-carte:nth-child(2) { --i: 1; background: #E3E1FF; } .pile-carte:nth-child(3) { --i: 2; background: var(--outremer); color: var(--blanc); } .pile-carte:nth-child(4) { --i: 3; background: var(--encre); color: var(--porcelaine); }
.pile-num { font-family: var(--pixel); font-weight: 700; font-size: clamp(64px, 9vw, 130px); line-height: .85; color: var(--outremer); }
.pile-carte:nth-child(3) .pile-num { color: var(--rose); } .pile-carte:nth-child(4) .pile-num { color: var(--lilas); }
.pile-carte h3 { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 3vw, 40px); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 14px; }
.pile-carte p { font-size: 19px; max-width: 52ch; opacity: .82; }

/* Signature géante */
.geant { margin: 120px 0 0; text-align: center; font-family: var(--display); font-weight: 800; font-size: clamp(64px, 19vw, 300px); line-height: .9; letter-spacing: -.06em;
  background: linear-gradient(180deg, var(--encre) 30%, var(--outremer) 75%, var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; overflow: hidden; padding: 0 0 .06em; }
.geant .car { background: inherit; -webkit-background-clip: text; background-clip: text; }
.geant .car.px { -webkit-text-fill-color: var(--encre); }

/* Cartes services : inclinaison + reflet */
.carte-service { rotate: var(--ax, 0) var(--ay, 0) 0 var(--ang, 0deg); transition: rotate .5s cubic-bezier(.2, .8, .2, 1); overflow: hidden; }
.carte-service.survol { transition: rotate .08s linear; }
.carte-service::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .28), transparent 45%); mix-blend-mode: soft-light; }
.carte-service:nth-child(3n+1)::before { background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(58, 43, 255, .14), transparent 45%); mix-blend-mode: normal; }
.carte-service.survol::before { opacity: 1; }

@media (max-width: 980px) {
  .atelier-grille { grid-template-columns: 1fr; gap: 20px; padding: 80px 0 30px; }
  .atelier-ecran { height: 420px; }
  .appareil { --w: 100%; --h: 360px; }
  .code { left: 0; bottom: -10px; width: min(400px, 100%); font-size: 11.5px; padding: 14px 16px; }
}
@media (max-width: 640px) {
  .defile { margin-top: 60px; padding: 8px 0; }
  .manifeste { padding-top: 90px; }
  .atelier { margin-top: 90px; }
  .atelier-grille { padding: 70px 0 24px; gap: 14px; }
  .atelier-texte { gap: 12px; }
  .atelier-texte .h2 { font-size: 28px; }
  .atelier-etapes { flex-direction: row; gap: 6px; margin: 0; }
  .atelier-etapes li { display: block; flex: 1; padding: 8px 0 0; border-left: 0; border-top: 2px solid rgba(238, 241, 247, .14); }
  .atelier-etapes b { font-size: 13px; display: block; }
  .atelier-etapes .n { font-size: 12px; }
  .atelier-etapes p { display: none; }
  .atelier-ecran { height: 400px; }
  .appareil { --h: 230px; border-radius: 12px; }
  .code { font-size: 10px; padding: 10px 12px; bottom: 0; }
  .pile-carte { grid-template-columns: 1fr; gap: 14px; padding: 28px 24px; min-height: 260px; border-radius: 22px; top: calc(var(--entete-h) + 16px + var(--i, 0) * 14px); }
  .pile-carte p { font-size: 17px; }
  .geant { margin-top: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .carte-service { rotate: none; }
  .pile-carte { position: static; }
}
.services-piste { perspective: 1400px; }
.manifeste-texte em .mt { background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; }
.atelier.anime .appareil { will-change: width, height; }
main { overflow-x: clip; }
.geant { background: none; color: var(--encre); -webkit-text-fill-color: currentColor; }
.geant .car { background: none; }
.geant .car.px { -webkit-text-fill-color: currentColor; }
.geant .car:nth-child(1), .geant > div > :nth-child(1) { color: var(--encre); }
.geant .car:nth-child(2) { color: #1F1B5C; }
.geant .car:nth-child(3) { color: var(--rose); }
.geant .car:nth-child(4) { color: #2A21B0; }
.geant .car:nth-child(5) { color: var(--outremer); }
.geant .car:nth-child(6) { color: #5A4BFF; }
.geant .car:nth-child(7) { color: var(--lilas); }
.geant .car:nth-child(8) { color: #B06CE0; }
.geant { white-space: nowrap; font-size: clamp(56px, 15.5vw, 280px); }
.geant > div { white-space: nowrap; }

/* =====================================================================
   V4 — transitions : bords en pixels, plongée dans le téléphone, boutons
   ===================================================================== */
.bord-px { display: none; }
.waw .bord-px { display: grid; grid-auto-rows: 1fr; overflow: hidden; margin-top: 120px; }
.waw .bord-px i { display: block; background: var(--encre); transform-origin: 50% 100%; }
.waw .bord-bas { margin-top: 0; }
.waw .bord-bas i { transform-origin: 50% 0; }
.waw .bord-haut + .contact { margin-top: 0; }
.waw .bord-bas + .geant { margin-top: 70px; }
.atelier-carte::before { opacity: var(--g, 1); }
.appareil { will-change: transform; }

/* Boutons animés */
.btn-anime { position: relative; overflow: hidden; isolation: isolate; }
.btn-anime::before {
  content: ""; position: absolute; left: var(--mx, 50%); top: var(--my, 50%); width: 260%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%) scale(0); transition: transform .5s cubic-bezier(.2, .8, .2, 1); z-index: -1; pointer-events: none;
}
.btn-plein.btn-anime::before { background: var(--rose); }
.btn-contour.btn-anime::before { background: var(--encre); }
.btn-anime:hover::before { transform: translate(-50%, -50%) scale(1); }
.waw .btn-contour.btn-anime:hover { background: transparent; color: var(--blanc); }
.waw .btn-plein.btn-anime:hover { background: var(--outremer); }
.roule { display: inline-grid; overflow: hidden; height: 1.3em; line-height: 1.3; }
.roule > span { grid-area: 1 / 1; transition: transform .45s cubic-bezier(.7, 0, .2, 1); }
.roule > span + span { transform: translateY(110%); }
.btn-anime:hover .roule > span:first-child { transform: translateY(-110%); }
.btn-anime:hover .roule > span + span { transform: translateY(0); }
.waw .btn-anime { transition: color .3s ease .05s, background-color .3s ease; }
@media (max-width: 640px) { .waw .bord-px { margin-top: 90px; } }
.atelier { position: relative; z-index: 1; }
.services { position: relative; z-index: 2; background: var(--porcelaine); }

/* =====================================================================
   V5 — intro « on peut tout faire » : un écran qui change de forme
   ===================================================================== */
.js .intro { animation-delay: 10s; }
.intro-ligne { position: absolute; left: 0; right: 0; bottom: 11vh; text-align: center; font-size: 16px; min-height: 1.4em; }
.intro-cadre {
  position: fixed; left: 50%; top: 50%; width: 150px; height: 300px; border-radius: 26px; visibility: hidden;
  background: #1D1F3D; box-shadow: 0 0 0 1.5px rgba(123, 108, 255, .55), 0 0 80px -10px rgba(58, 43, 255, .55);
  overflow: hidden; pointer-events: none;
}
.ic { position: absolute; inset: 0; padding: 14px; display: flex; flex-direction: column; gap: 10px; opacity: 0; }
:where(.ic) :where(b, s, i, u, em) { display: block; text-decoration: none; font-style: normal; }
.ic i, .ic u { background: rgba(238, 241, 247, .14); border-radius: 4px; }
/* appli */
.ic-app { padding-top: 22px; }
.ic-barre { height: 12px; border-radius: 4px; background: rgba(238, 241, 247, .14); flex: none; display: flex; gap: 8px; }
.ic-carte { height: 34%; border-radius: 14px; background: linear-gradient(135deg, var(--outremer), var(--lilas) 60%, var(--rose)); flex: none; }
.ic-ligne { display: flex; align-items: center; gap: 8px; height: 26px; flex: none; }
.ic-ligne i { width: 24px; height: 24px; border-radius: 50%; flex: none; background: rgba(123, 108, 255, .5); }
.ic-ligne u { flex: 1; height: 8px; }
.ic-onglets { margin-top: auto; display: flex; justify-content: space-around; padding-top: 10px; border-top: 1px solid rgba(238, 241, 247, .1); }
.ic-onglets i { width: 12px; height: 12px; border-radius: 4px; }
.ic-onglets i:first-child { background: var(--rose); }
/* boutique */
.ic-boutique .ic-barre { height: 18px; background: none; justify-content: space-between; }
.ic-boutique .ic-barre i { width: 30%; height: 100%; }
.ic-boutique .ic-barre u { width: 18px; height: 100%; background: var(--rose); border-radius: 6px; }
.ic-grille { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 10px; }
.ic-grille s { display: flex; flex-direction: column; gap: 6px; background: rgba(238, 241, 247, .05); border-radius: 10px; padding: 6px; }
.ic-grille em { flex: 1; border-radius: 7px; background: linear-gradient(140deg, #F2B66D, #C8743A); }
.ic-grille s:nth-child(2) em { background: linear-gradient(140deg, var(--lilas), var(--outremer)); }
.ic-grille s:nth-child(3) em { background: linear-gradient(140deg, #7BE0B5, #19C37D); }
.ic-grille s:nth-child(4) em { background: linear-gradient(140deg, var(--rose), #FF9A6B); }
.ic-grille s:nth-child(5) em { background: linear-gradient(140deg, #B3A8FF, var(--lilas)); }
.ic-grille s:nth-child(6) em { background: linear-gradient(140deg, #FFD36B, #F2994A); }
.ic-grille u { height: 6px; width: 70%; }
.ic-grille i { height: 8px; width: 40%; background: var(--outremer); }
/* outil */
.ic-outil { flex-direction: row; }
.ic-cote { width: 18%; display: flex; flex-direction: column; gap: 8px; padding-right: 12px; border-right: 1px solid rgba(238, 241, 247, .1); }
.ic-cote i { height: 10px; } .ic-cote i:first-child { background: var(--lilas); }
.ic-tableau { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.ic-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; height: 26%; }
.ic-kpi s { border-radius: 10px; background: rgba(238, 241, 247, .08); box-shadow: inset 3px 0 0 var(--outremer); }
.ic-kpi s:nth-child(2) { box-shadow: inset 3px 0 0 var(--rose); } .ic-kpi s:nth-child(3) { box-shadow: inset 3px 0 0 #19C37D; }
.ic-graph { flex: 1; display: flex; align-items: flex-end; gap: 6%; padding: 10px; border-radius: 10px; background: rgba(238, 241, 247, .05); }
.ic-graph i { flex: 1; height: 50%; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--lilas), var(--outremer)); transform-origin: 50% 100%; }
.ic-graph i:nth-child(1) { height: 30%; } .ic-graph i:nth-child(2) { height: 45%; } .ic-graph i:nth-child(3) { height: 38%; } .ic-graph i:nth-child(4) { height: 60%; }
.ic-graph i:nth-child(5) { height: 52%; } .ic-graph i:nth-child(6) { height: 72%; } .ic-graph i:nth-child(7) { height: 66%; } .ic-graph i:nth-child(8) { height: 84%; }
.ic-graph i:nth-child(9) { height: 96%; background: linear-gradient(180deg, var(--rose), var(--lilas)); }
/* site */
.ic-site { padding: 16px 22px; gap: 22px; }
.ic-nav { display: flex; gap: 12px; align-items: center; }
.ic-nav i { width: 9%; height: 8px; } .ic-nav i:first-child { width: 16%; height: 14px; margin-right: auto; background: rgba(238, 241, 247, .4); }
.ic-une { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: center; }
.ic-texte { display: flex; flex-direction: column; gap: 10px; }
.ic-texte u { height: 16px; } .ic-texte u:nth-child(2) { width: 80%; } .ic-texte u:nth-child(3) { width: 55%; height: 8px; margin-top: 6px; }
.ic-texte em { width: 40%; height: 24px; border-radius: 99px; background: var(--outremer); margin-top: 8px; }
.ic-photo { height: 85%; border-radius: 14px; background: radial-gradient(60% 60% at 30% 30%, rgba(255, 255, 255, .25), transparent 60%), linear-gradient(135deg, var(--outremer), var(--lilas) 55%, var(--rose)); }

/* Carte 04 → contact */
.pile-espace { display: none; }
.waw .pile-espace { display: block; height: 100vh; height: 100svh; pointer-events: none; }
.waw .pile { gap: 22px; }
.waw #comment + .contact, .waw .contact { margin-top: 0; }
.waw .contact { z-index: 3; }
.pile-carte:last-of-type { will-change: transform; }

/* =====================================================================
   V7 — finale 3D + transitions natives entre les pages
   ===================================================================== */
.finale { position: relative; z-index: 3; background: var(--encre); color: var(--porcelaine); padding: 40px 0 110px; overflow: hidden; }
.finale::before { content: ""; position: absolute; left: 50%; top: 38%; width: 70vmin; height: 70vmin; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 43, 255, .35), rgba(255, 79, 139, .12) 45%, transparent 70%); filter: blur(30px); pointer-events: none; }
.finale-3d { position: relative; height: min(68vh, 640px); min-height: 360px; display: grid; place-items: center; touch-action: pan-y; }
.finale-3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.finale-svg { width: min(360px, 70vw); height: auto; overflow: visible; transition: opacity .4s ease; }
.finale-3d.pret .finale-svg { opacity: 0; }
.finale-texte { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; margin-top: -20px; }
.finale-texte .surtitre { color: var(--lilas); }
.finale-texte .h2 { max-width: 16ch; }
.finale-astuce { font-family: var(--pixel); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(238, 241, 247, .45); }
@media (pointer: coarse) { .finale-astuce { display: none; } }
@media (max-width: 640px) { .finale { padding: 20px 0 80px; } .finale-3d { height: 52vh; min-height: 300px; } }

/* Transitions natives entre les pages (Chrome, Edge, Safari récents) :
   l'en-tête reste en place, la nouvelle page s'ouvre en cercle depuis le clic */
@view-transition { navigation: auto; }
.entete { view-transition-name: entete; }
.via-vt .intro { display: none !important; }
::view-transition-group(entete) { z-index: 10; }
::view-transition-old(root) { animation: vt-sortie .75s cubic-bezier(.7, 0, .2, 1) both; }
::view-transition-new(root) { animation: vt-entree .85s cubic-bezier(.7, 0, .2, 1) both; }
@keyframes vt-sortie { to { transform: scale(.92) translateY(-2%); opacity: .25; filter: blur(6px); } }
@keyframes vt-entree {
  from { clip-path: circle(0% at var(--vt-x, 50%) var(--vt-y, 50%)); }
  to { clip-path: circle(150% at var(--vt-x, 50%) var(--vt-y, 50%)); }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* =====================================================================
   V8 — la vieille télé s'éteint
   ===================================================================== */
.moderne { clip-path: inset(0 0 0 calc(var(--x) * var(--k, 1))); }
.poignee { left: calc(var(--x) * var(--k, 1)); }
.ancien { transform-origin: calc(var(--x) / 2) 50%; }
.ancien::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--scan, 0);
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .28) 0 2px, transparent 2px 4px); }
.crt-point { position: absolute; left: calc(var(--x) / 2); top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; z-index: 2;
  background: #fff; box-shadow: 0 0 12px 4px #fff, 0 0 40px 14px rgba(123, 108, 255, .8); opacity: 0; pointer-events: none; }
.scene { background: #07070D; }
/* l'anneau rose n'apparaît qu'au clavier */
.scene:has(.curseur-renov:focus-visible) .poignee-rond { outline: none; }
.clavier .scene:has(.curseur-renov:focus-visible) .poignee-rond { outline: 3px solid var(--rose); outline-offset: 3px; }
