:root {
  --noir: #0a0b10;
  --noir-2: #12141c;
  --noir-3: #1b1e29;
  --papier: #0e1017;
  --blanc: #151823;
  --encre: #f2f3f7;
  --gris: #9a9fad;
  --gris-clair: #a3a7b3;
  --accent: #ff5f1f;
  --accent-2: #ffb340;
  --bord: rgba(255, 255, 255, .08);
  color-scheme: dark;
  --bord-sombre: rgba(255, 255, 255, .09);
  --titre: "Bricolage Grotesque", system-ui, sans-serif;
  --texte: "Inter", system-ui, sans-serif;
  --r: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--texte); background: var(--papier); color: var(--encre); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3 { font-family: var(--titre); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.btn { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.4em; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: transform .2s, background .2s, box-shadow .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 30px -8px rgba(255, 95, 31, .6); }
.btn-accent:hover { box-shadow: 0 12px 40px -8px rgba(255, 95, 31, .8); }
.btn-clair { background: #fff; color: var(--noir); }
.btn-ligne { border: 1px solid rgba(255, 255, 255, .25); color: #fff; }
.btn-ligne:hover { background: rgba(255, 255, 255, .08); }
.btn-ligne-sombre { border: 1px solid var(--bord); }
.btn-ligne-sombre:hover { background: rgba(255, 255, 255, .06); }
.btn[disabled] { opacity: .45; pointer-events: none; }

.nav { position: fixed; inset: 14px 0 auto; margin: 0 auto; width: min(1180px, calc(100% - 28px)); z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 10px 10px 20px; border-radius: 999px; color: #fff; background: rgba(10, 11, 16, .55); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid var(--bord-sombre); transition: background .3s; }
.nav.colle { background: rgba(10, 11, 16, .85); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--titre); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.logo svg { width: 26px; height: 26px; fill: currentColor; }
.logo svg .a { fill: var(--accent); }
.logo:hover svg rect { transition: transform .4s; }
.logo:hover svg rect:nth-child(1) { transform: translate(-1px, -1px); }
.logo:hover svg rect:nth-child(4) { transform: translate(1px, 1px); }
.liens { display: flex; gap: 4px; }
.liens a { padding: 8px 14px; border-radius: 999px; font-size: .92rem; color: rgba(255, 255, 255, .75); transition: color .2s, background .2s; }
.liens a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-droite { display: flex; align-items: center; gap: 8px; }
.langue { padding: 8px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: rgba(255, 255, 255, .8); border: 1px solid var(--bord-sombre); }
.langue:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.hero { position: relative; min-height: 100svh; background: var(--noir); color: #fff; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 140px 0 0; }
.hero-grille { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%); }
.hero::before { content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: -300px; transform: translateX(-50%); background: radial-gradient(circle, rgba(255, 95, 31, .28), transparent 60%); filter: blur(40px); pointer-events: none; }
.blocs i { position: absolute; display: block; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .12); background: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .01)); backdrop-filter: blur(4px); }
.blocs i:nth-child(1) { width: 92px; height: 92px; left: 8%; top: 24%; }
.blocs i:nth-child(2) { width: 56px; height: 56px; left: 15%; top: 62%; background: linear-gradient(145deg, var(--accent), #c93d0a); border: 0; }
.blocs i:nth-child(3) { width: 120px; height: 120px; right: 7%; top: 20%; }
.blocs i:nth-child(4) { width: 64px; height: 64px; right: 16%; top: 58%; background: linear-gradient(145deg, var(--accent-2), #e07a00); border: 0; }
.blocs i:nth-child(5) { width: 40px; height: 40px; left: 30%; top: 14%; }
.blocs i:nth-child(6) { width: 48px; height: 48px; right: 30%; top: 76%; }
.hero-contenu { position: relative; width: min(1100px, calc(100% - 40px)); margin: 0 auto; text-align: center; }
.pastille { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; font-size: .85rem; color: rgba(255, 255, 255, .8); border: 1px solid var(--bord-sombre); background: rgba(255, 255, 255, .04); }
.point { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pouls 2s infinite; }
@keyframes pouls { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.hero h1 { margin: 28px 0 24px; font-size: clamp(2.8rem, 8.4vw, 7.4rem); text-transform: uppercase; line-height: .92; }
.ligne { display: block; overflow: hidden; padding-bottom: .04em; }
.ligne > span { display: inline-block; }
.pour { color: rgba(255, 255, 255, .45); }
.rotation { display: inline-block; color: var(--accent); background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-texte { max-width: 620px; margin: 0 auto; font-size: 1.15rem; color: rgba(255, 255, 255, .7); }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.defile { position: relative; margin-top: 90px; padding: 26px 0; border-top: 1px solid var(--bord-sombre); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.defile-piste { display: flex; gap: 64px; width: max-content; animation: defiler 40s linear infinite; }
.defile-piste span { font-family: var(--titre); font-weight: 600; font-size: 1.35rem; color: rgba(255, 255, 255, .35); white-space: nowrap; display: inline-flex; align-items: center; gap: 64px; }
.defile-piste span::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); opacity: .6; }
@keyframes defiler { to { transform: translateX(-50%); } }

.chiffres { width: min(1180px, calc(100% - 40px)); margin: -1px auto 0; padding-top: 80px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.carte-chiffre { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--r); padding: 28px; }
.carte-chiffre .ch, .carte-chiffre .plus { font-family: var(--titre); font-weight: 800; font-size: clamp(2.4rem, 4vw, 3.4rem); letter-spacing: -.03em; line-height: 1; }
.carte-chiffre .plus { color: var(--accent); }
.carte-chiffre p { margin-top: 10px; color: var(--gris); font-size: .95rem; }

.section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 120px 0; }
.section-sombre { width: 100%; max-width: none; background: var(--noir); color: #fff; padding-left: max(20px, calc((100% - 1180px) / 2)); padding-right: max(20px, calc((100% - 1180px) / 2)); }
.entete { max-width: 720px; margin-bottom: 56px; }
.sur { display: inline-block; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 16px; }
.entete h2, .devis-intro h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); text-transform: uppercase; }
.sous { margin-top: 18px; font-size: 1.1rem; color: var(--gris); }
.section-sombre .sous { color: var(--gris-clair); }

.grille-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service { position: relative; background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; transition: border-color .3s, transform .3s, box-shadow .3s; }
.service::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, var(--c, var(--accent)), transparent 70%); opacity: 0; transition: opacity .4s; }
.service:hover { border-color: transparent; transform: translateY(-4px); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); }
.service:hover::after { opacity: .18; }
.ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--accent)) 18%, transparent); color: var(--c, var(--accent)); }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 1.3rem; letter-spacing: -.01em; }
.service p { color: var(--gris); font-size: .94rem; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: .75rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--gris-clair); }

.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin: -24px 0 32px; }
.filtres button { padding: 8px 16px; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--gris-clair); border: 1px solid var(--bord-sombre); transition: all .2s; }
.filtres button:hover { color: #fff; }
.filtres button.actif { background: #fff; color: var(--noir); border-color: #fff; }
.grille-projets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.projet { position: relative; border-radius: var(--r); overflow: hidden; background: var(--noir-2); border: 1px solid var(--bord-sombre); display: flex; flex-direction: column; transform-style: preserve-3d; will-change: transform; }
.projet[hidden] { display: none; }
.visuel { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(120% 120% at 0% 0%, var(--c1), var(--c2)); display: grid; place-items: center; }
.visuel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.visuel::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 28px 28px; }
.visuel .glyphe { position: relative; font-family: var(--titre); font-weight: 800; font-size: 2.4rem; text-transform: uppercase; color: rgba(255, 255, 255, .92); letter-spacing: -.03em; text-shadow: 0 6px 30px rgba(0, 0, 0, .3); transition: transform .5s; }
.projet:hover .visuel img, .projet:hover .glyphe { transform: scale(1.06); }
.projet-corps { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.etiquette { align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; background: var(--accent); color: #fff; }
.projet h3 { font-size: 1.35rem; }
.projet p { color: var(--gris-clair); font-size: .92rem; }
.projet .fleche { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, .35); backdrop-filter: blur(6px); display: grid; place-items: center; transition: transform .3s, background .3s; }
.projet .fleche svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.2; }
.projet:hover .fleche { background: var(--accent); transform: rotate(45deg); }

.etapes { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: e; position: relative; }
.etape { position: relative; padding: 28px 24px; border-radius: var(--r); background: var(--blanc); border: 1px solid var(--bord); }
.etape .num { font-family: var(--titre); font-weight: 800; font-size: 3.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.etape h3 { margin: 18px 0 10px; font-size: 1.3rem; }
.etape p { color: var(--gris); font-size: .94rem; }
.etape .duree { display: inline-block; margin-top: 16px; font-size: .78rem; font-weight: 600; color: var(--encre); background: rgba(255, 255, 255, .06); padding: 4px 10px; border-radius: 999px; }

.faq { max-width: 860px; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--blanc); border: 1px solid var(--bord); border-radius: 14px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 24px; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--titre); font-size: 1.6rem; line-height: 1; color: var(--accent); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .rep { padding: 0 24px 22px; color: var(--gris); }

.section-devis { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.devis-intro { position: sticky; top: 110px; }
.garanties { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.garanties li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.garanties li::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat; }
.assistant { background: var(--blanc); border: 1px solid var(--bord); border-radius: 24px; padding: 32px; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .7); min-height: 520px; display: flex; flex-direction: column; }
.progression { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progression-barre { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.compteur { margin: 14px 0 22px; font-size: .82rem; font-weight: 600; color: var(--gris); text-transform: uppercase; letter-spacing: .08em; }
.pages { flex: 1; position: relative; }
.page h3 { font-size: 1.7rem; margin-bottom: 8px; }
.page .aide { color: var(--gris); margin-bottom: 22px; }
.choix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choix.deux { grid-template-columns: repeat(2, 1fr); }
.option { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; border: 1.5px solid var(--bord); cursor: pointer; transition: border-color .2s, background .2s, transform .15s; text-align: left; }
.option:hover { border-color: rgba(255, 95, 31, .5); }
.option:active { transform: scale(.98); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .ico { width: 38px; height: 38px; border-radius: 10px; }
.option .ico svg { width: 19px; height: 19px; }
.option b { font-size: .95rem; }
.option small { color: var(--gris); font-size: .8rem; line-height: 1.35; }
.option:has(input:checked) { border-color: var(--accent); background: rgba(255, 95, 31, .05); }
.option:has(input:checked)::after { content: ""; position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.option.simple { flex-direction: row; align-items: center; padding: 14px 16px; }
.champ { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.champ label { font-weight: 600; font-size: .9rem; }
.champ label small { color: var(--gris); font-weight: 400; }
.champ input, .champ textarea { font: inherit; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--bord); background: rgba(255, 255, 255, .04); color: var(--encre); transition: border-color .2s, background .2s; resize: vertical; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, .07); }
.champ textarea { min-height: 150px; }
.champ .erreur, .champ.invalide input, .champ.invalide textarea { border-color: #e5484d; }
.message-erreur { color: #e5484d; font-size: .85rem; min-height: 1.2em; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.recap { display: flex; flex-direction: column; border: 1px solid var(--bord); border-radius: 14px; overflow: hidden; }
.recap div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 18px; font-size: .93rem; }
.recap div + div { border-top: 1px solid var(--bord); }
.recap dt { color: var(--gris); }
.recap dd { font-weight: 500; white-space: pre-wrap; word-break: break-word; }
.assistant-pied { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; }
.assistant-pied #retour[hidden] { display: inline-flex; visibility: hidden; }
.merci { text-align: center; padding: 40px 10px; }
.merci .rond { width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(255, 95, 31, .12); }
.merci .rond svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.merci h3 { font-size: 2rem; margin-bottom: 12px; }
.merci p { color: var(--gris); max-width: 420px; margin: 0 auto; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; }

.pied { background: var(--noir); color: #fff; padding: 80px max(20px, calc((100% - 1180px) / 2)) 30px; }
.pied-haut { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 50px; border-bottom: 1px solid var(--bord-sombre); }
.pied-haut .logo { font-size: 2.4rem; }
.pied-haut .logo svg { width: 40px; height: 40px; }
.pied-haut p { color: var(--gris-clair); max-width: 320px; text-align: right; }
.pied-bas { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 26px; font-size: .88rem; color: var(--gris-clair); }
.pied-bas a:hover { color: #fff; }
.pied-liens { display: flex; gap: 22px; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .liens { display: none; }
  .chiffres, .grille-services, .etapes { grid-template-columns: repeat(2, 1fr); }
  .grille-projets { grid-template-columns: repeat(2, 1fr); }
  .section-devis { grid-template-columns: 1fr; }
  .devis-intro { position: static; }
}
@media (max-width: 620px) {
  .nav { padding-left: 16px; }
  .nav .btn-clair { padding: .7em 1em; font-size: .85rem; }
  .blocs { display: none; }
  .chiffres, .grille-services, .grille-projets, .etapes, .duo { grid-template-columns: 1fr; }
  .choix, .choix.deux { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 0; }
  .assistant { padding: 22px; }
  .recap div { grid-template-columns: 1fr; gap: 2px; }
  .pied-haut { flex-direction: column; align-items: flex-start; }
  .pied-haut p { text-align: left; }
}

.progres { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: 0 50%; transform: scaleX(0); }
.btn { translate: var(--tx, 0) var(--ty, 0); transition: transform .2s, background .2s, box-shadow .2s, color .2s, translate .25s cubic-bezier(.2, .8, .2, 1); }
.service, .etape, .carte-chiffre, .faq details, .assistant { background-image: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 95, 31, .12), transparent 45%); }
.service:hover, .etape:hover, .carte-chiffre:hover { border-color: rgba(255, 95, 31, .35); }
.carte-chiffre, .etape { transition: border-color .3s, transform .3s; }
.carte-chiffre:hover, .etape:hover { transform: translateY(-4px); }
.mot { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.mot > span { display: inline-block; }
.bande { overflow: hidden; padding: 30px 0 60px; }
.bande-piste { display: flex; gap: .5em; width: max-content; font-family: var(--titre); font-weight: 800; font-size: clamp(4rem, 12vw, 10rem); text-transform: uppercase; line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
.bande-piste span { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .14); }
.bande-piste span:nth-child(3n + 2) { -webkit-text-stroke: 0; color: var(--accent); }
.bande-piste i { font-style: normal; color: rgba(255, 255, 255, .14); }
.fil-etapes { height: 2px; margin: -24px 0 40px; background: rgba(255, 255, 255, .08); border-radius: 2px; overflow: hidden; }
.fil-etapes span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: 0 50%; transform: scaleX(0); }
.assistant { position: relative; }
.assistant::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--angle, 0deg), transparent 0 70%, var(--accent), var(--accent-2), transparent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; animation: tourne 6s linear infinite; }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes tourne { to { --angle: 360deg; } }

.lien-suivi { margin: 26px auto 0; max-width: 460px; padding: 18px; border-radius: 14px; border: 1px dashed rgba(255, 95, 31, .5); background: rgba(255, 95, 31, .06); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.lien-suivi span { font-size: .9rem; color: var(--gris); }
.lien-suivi a { font-weight: 600; color: var(--accent); word-break: break-all; }

.app { min-height: 100vh; padding: 110px max(20px, calc((100% - 1180px) / 2)) 60px; }
.carte { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--r); padding: 24px; }
.carte h2 { font-size: 1.3rem; margin-bottom: 14px; }
.app-titre { font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; margin-bottom: 10px; }
.app-sous { color: var(--gris); margin-bottom: 30px; }
.puce { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: rgba(255, 255, 255, .07); white-space: nowrap; }
.puce::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pc, var(--gris)); }
.s-nouvelle { --pc: #ff5f1f; } .s-etude { --pc: #ffb340; } .s-devis { --pc: #5865f2; } .s-accepte { --pc: #3ddc84; } .s-cours { --pc: #22d3ee; } .s-livre { --pc: #a3e635; } .s-refuse, .s-annule { --pc: #e5484d; }
.frise { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 22px; }
.frise div { display: flex; flex-direction: column; gap: 10px; font-size: .82rem; color: var(--gris); }
.frise div::before { content: ""; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.frise .fait { color: var(--encre); }
.frise .fait::before { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.colonnes { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.pile { display: flex; flex-direction: column; gap: 18px; }
.infos { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; font-size: .93rem; }
.infos dt { color: var(--gris); }
.infos dd { white-space: pre-wrap; word-break: break-word; }
.devis-prix { font-family: var(--titre); font-weight: 800; font-size: 2.6rem; color: var(--accent); line-height: 1; }
.devis-texte { white-space: pre-wrap; color: var(--gris); margin: 12px 0 18px; }
.fil { display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow-y: auto; margin-bottom: 14px; padding-right: 4px; }
.bulle { max-width: 85%; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); font-size: .93rem; white-space: pre-wrap; word-break: break-word; }
.bulle small { display: block; font-size: .72rem; color: var(--gris); margin-bottom: 4px; }
.bulle.moi { align-self: flex-end; background: rgba(255, 95, 31, .14); }
.bulle.interne { align-self: stretch; max-width: none; background: transparent; border: 1px dashed rgba(255, 179, 64, .4); }
.bulle.systeme { align-self: center; background: none; color: var(--gris); font-size: .8rem; padding: 2px; }
.vide { color: var(--gris); font-size: .9rem; text-align: center; padding: 20px; }
.ecrire { display: flex; flex-direction: column; gap: 10px; }
.ecrire textarea, .app input, .app select { font: inherit; color: var(--encre); padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--bord); background: rgba(255, 255, 255, .04); resize: vertical; }
.ecrire textarea:focus, .app input:focus, .app select:focus { outline: none; border-color: var(--accent); }
.app select option { background: var(--noir-2); }
.ecrire textarea { min-height: 90px; }
.ligne-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.btn-petit { padding: .6em 1.1em; font-size: .85rem; }
.btn-danger { color: #ff7b7f; border: 1px solid rgba(229, 72, 77, .4); }
.connexion { max-width: 400px; margin: 8vh auto 0; display: flex; flex-direction: column; gap: 12px; }
.compteurs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 22px; }
.compteurs button { text-align: left; padding: 16px 18px; border-radius: 14px; background: var(--blanc); border: 1px solid var(--bord); transition: border-color .2s; }
.compteurs button.actif, .compteurs button:hover { border-color: var(--accent); }
.compteurs b { display: block; font-family: var(--titre); font-size: 1.9rem; line-height: 1.1; }
.compteurs span { font-size: .82rem; color: var(--gris); }
.barre-outils { display: flex; gap: 10px; margin-bottom: 14px; }
.barre-outils input { flex: 1; }
.liste { display: flex; flex-direction: column; border: 1px solid var(--bord); border-radius: var(--r); overflow: hidden; background: var(--blanc); }
.liste a { display: grid; grid-template-columns: 56px 1.6fr 1fr 130px 110px 120px; gap: 14px; align-items: center; padding: 14px 18px; font-size: .92rem; border-top: 1px solid var(--bord); transition: background .15s; }
.liste a:first-child { border-top: 0; }
.liste a:hover { background: rgba(255, 255, 255, .03); }
.liste .num { color: var(--gris); font-variant-numeric: tabular-nums; }
.liste .t b { display: block; }
.liste .t small, .liste .date { color: var(--gris); font-size: .82rem; }
.non-lu { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 6px; }
.retour-liste { display: inline-flex; align-items: center; gap: 6px; color: var(--gris); margin-bottom: 16px; font-size: .9rem; }
.retour-liste:hover { color: var(--encre); }
.form-devis { display: flex; flex-direction: column; gap: 10px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--encre); color: var(--noir); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; z-index: 80; }
@media (max-width: 900px) {
  .colonnes { grid-template-columns: 1fr; }
  .compteurs { grid-template-columns: repeat(2, 1fr); }
  .liste a { grid-template-columns: 40px 1fr 110px; }
  .liste a > :nth-child(3), .liste a > :nth-child(5), .liste a > :nth-child(6) { display: none; }
  .frise { grid-template-columns: repeat(3, 1fr); }
}

.zone-doc { display: flex; flex-direction: column; gap: 18px; }
.doc { background: #fff; color: #15171f; border-radius: 14px; padding: 44px 48px; font-size: .92rem; line-height: 1.55; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8); }
.doc h1, .doc h2 { font-family: var(--titre); color: #15171f; }
.doc h3 { font-family: var(--texte); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #ff5f1f; margin-bottom: 6px; }
.doc section { margin-top: 22px; }
.doc mark { background: #ffe1d2; color: #c2410c; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.doc-tete { display: flex; justify-content: space-between; gap: 30px; padding-bottom: 24px; border-bottom: 2px solid #15171f; }
.doc-logo { font-family: var(--titre); font-weight: 800; font-size: 1.8rem; letter-spacing: -.03em; margin-bottom: 6px; }
.doc-logo::before { content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 8px; border-radius: 4px; background: conic-gradient(#15171f 0 25%, #ff5f1f 0 50%, #15171f 0 75%, #ff5f1f 0); vertical-align: -1px; }
.doc-tete p, .doc-ref p { color: #555a66; font-size: .85rem; }
.doc-ref { text-align: right; }
.doc-ref h1 { font-size: 2.6rem; text-transform: uppercase; line-height: 1; margin-bottom: 8px; }
.doc-texte { white-space: pre-wrap; }
.doc-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.doc-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #555a66; padding: 10px 0; border-bottom: 1px solid #e4e5ea; }
.doc-table td { padding: 11px 0; border-bottom: 1px solid #f0f1f4; }
.doc-table td:last-child, .doc-table th:last-child { text-align: right; white-space: nowrap; padding-left: 20px; }
.doc-table tfoot td { border: 0; padding-top: 14px; font-family: var(--titre); font-weight: 800; font-size: 1.3rem; }
.doc-table tfoot td:last-child { color: #ff5f1f; }
.doc-petit { font-size: .8rem; color: #555a66; margin-top: 8px; }
.doc-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0 14px; }
.doc-grille div { background: #f5f5f7; border-radius: 10px; padding: 12px 14px; }
.doc-grille b { display: block; font-family: var(--titre); font-size: 1.2rem; }
.doc-grille span { font-size: .78rem; color: #555a66; }
.doc-contrat h2 { font-size: 1.6rem; text-transform: uppercase; margin-bottom: 10px; }
.doc-contrat ol { margin: 16px 0 0 18px; display: flex; flex-direction: column; gap: 9px; }
.doc-signe { margin-top: 22px; padding: 12px 16px; border: 2px solid #16a34a; border-radius: 10px; color: #166534; background: #f0fdf4; font-size: .88rem; }
.signer { display: flex; flex-direction: column; gap: 12px; }
.signer label.case { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.signer label.case input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.editeur-lignes { display: flex; flex-direction: column; gap: 8px; }
.editeur-ligne { display: grid; grid-template-columns: 22px 1fr 110px 30px; gap: 8px; align-items: center; }
.editeur-ligne input[type=checkbox] { accent-color: var(--accent); width: 18px; height: 18px; }
.editeur-ligne input[type=number] { text-align: right; }
.editeur-ligne .suppr { color: var(--gris); font-size: 1.2rem; }
.editeur-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.editeur-grille label { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; color: var(--gris); }
.editeur-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--bord); margin-top: 6px; }
.editeur-total b { font-family: var(--titre); font-size: 1.8rem; color: var(--accent); }
.moyens { display: flex; gap: 14px; font-size: .9rem; }
.moyens label { display: flex; gap: 6px; align-items: center; }
.moyens input { accent-color: var(--accent); }
.carte label.titre-champ { display: block; font-size: .8rem; color: var(--gris); margin: 12px 0 6px; }
.carte textarea.champ-doc { width: 100%; min-height: 110px; font: inherit; color: var(--encre); padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--bord); background: rgba(255, 255, 255, .04); resize: vertical; }
@media (max-width: 700px) {
  .doc { padding: 26px 20px; }
  .doc-tete { flex-direction: column; }
  .doc-ref { text-align: left; }
  .doc-grille, .editeur-grille { grid-template-columns: 1fr 1fr; }
}
@media print {
  body { background: #fff; }
  body * { visibility: hidden; }
  .zone-doc, .zone-doc * { visibility: visible; }
  .zone-doc { position: absolute; inset: 0 auto auto 0; width: 100%; }
  .zone-doc .ligne-btns, .zone-doc .signer { display: none; }
  .doc { box-shadow: none; padding: 0; border-radius: 0; }
  .doc-contrat { break-before: page; }
  .progres, .nav { display: none; }
}
