/* Facturette — feuille de style du site vitrine (l'application garde style.css).
   Palette : encre indigo, papier crème, corail pour l'action, menthe pour « payé ». */
:root {
  --encre: #1d2440;
  --encre-doux: #4a5270;
  --papier: #fbf8f3;
  --blanc: #ffffff;
  --corail: #ff6b4a;
  --corail-fonce: #e5532f;
  --menthe: #1fa98a;
  --menthe-pale: #e3f5ef;
  --sable: #f3ede3;
  --trait: #e6dfd3;
  --ombre: 0 18px 50px -20px rgba(29, 36, 64, .35);
  --rayon: 18px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--encre);
  background: var(--papier);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--corail-fonce); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
.cadre { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.etroit { max-width: 780px; }
.centre { text-align: center; }
.gris { color: var(--encre-doux); font-size: .9rem; }

/* Boutons */
.bouton {
  white-space: nowrap;
  display: inline-block; padding: .85rem 1.5rem; border-radius: 999px;
  background: var(--corail); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 20px -8px rgba(255, 107, 74, .7); transition: transform .15s, background .15s;
  border: 2px solid transparent; text-align: center;
}
.bouton:hover { background: var(--corail-fonce); transform: translateY(-1px); }
.bouton.clair { background: transparent; color: var(--encre); border-color: var(--encre); box-shadow: none; }
.bouton.clair:hover { background: var(--encre); color: #fff; }
.bouton.blanc { background: #fff; color: var(--encre); box-shadow: none; }
.bouton.petit { padding: .55rem 1.1rem; font-size: .92rem; }
.bouton.plein { display: block; width: 100%; }
.bouton.inactif { opacity: .55; cursor: default; pointer-events: none; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 10; background: rgba(251, 248, 243, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--trait); }
.entete-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.marque { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--encre); text-decoration: none; letter-spacing: -.02em; }
.marque.petite { font-size: 1.05rem; }
.logo { width: 30px; height: 30px; border-radius: 9px; background: var(--encre); position: relative; flex: none; }
.logo::before { content: ""; position: absolute; left: 9px; top: 7px; width: 12px; height: 16px; background: #fff; border-radius: 2px; }
.logo::after { content: ""; position: absolute; left: 11px; top: 12px; width: 8px; height: 2px; background: var(--corail); box-shadow: 0 4px 0 var(--corail), 0 8px 0 var(--corail); }
.menu { display: flex; gap: 22px; margin-left: auto; }
.menu a { color: var(--encre-doux); text-decoration: none; font-weight: 600; font-size: .95rem; }
.menu a:hover { color: var(--encre); }

/* Accroche */
.accroche { padding: 64px 0 80px; background:
  radial-gradient(900px 420px at 85% 10%, #ffe3d9 0, transparent 60%),
  radial-gradient(700px 380px at 0% 100%, var(--menthe-pale) 0, transparent 60%); }
.accroche-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.etiquette { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--menthe); margin: 0 0 14px; }
.etiquette.centre { display: block; }
.surligne { background: linear-gradient(transparent 62%, #ffd2c4 62%); }
.chapeau { font-size: 1.15rem; color: var(--encre-doux); max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.rassurances { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--encre-doux); font-size: .93rem; }
.rassurances li::before { content: "✓"; color: var(--menthe); font-weight: 800; margin-right: 6px; }

/* Maquette de facture */
.maquette { position: relative; padding: 24px 10px 40px; }
.feuille { background: #fff; border-radius: 14px; box-shadow: var(--ombre); padding: 26px 26px 20px; transform: rotate(-1.5deg); font-size: .82rem; border: 1px solid var(--trait); }
.feuille-tete { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--encre); }
.f-nom { font-weight: 800; font-size: 1.05rem; }
.f-num { white-space: nowrap; text-align: right; font-size: .72rem; letter-spacing: .08em; color: var(--encre-doux); }
.f-num b { font-size: .95rem; color: var(--encre); letter-spacing: 0; }
.f-gris { color: #8a90a6; font-size: .74rem; }
.f-client { margin: 14px 0; }
.f-lignes { width: 100%; border-collapse: collapse; }
.f-lignes td { padding: 7px 0; border-bottom: 1px dashed var(--trait); }
.f-lignes td:last-child { text-align: right; white-space: nowrap; }
.f-total { display: flex; justify-content: space-between; align-items: center; background: var(--encre); color: #fff; border-radius: 10px; padding: 10px 14px; margin: 14px 0 10px; }
.f-total b { font-size: 1.15rem; }
.f-mention { font-size: .66rem; color: #8a90a6; margin: 0; line-height: 1.4; }
.pastille { position: absolute; padding: 9px 14px; border-radius: 12px; font-weight: 700; font-size: .85rem; box-shadow: var(--ombre); white-space: nowrap; }
.pastille.payee { top: 0; right: -6px; background: var(--menthe); color: #fff; transform: rotate(4deg); }
.pastille.retard { top: 46%; left: -26px; background: #fff; color: var(--corail-fonce); border: 1px solid #ffd2c4; }
.jauge { position: absolute; bottom: 0; right: 10px; width: 240px; background: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: var(--ombre); font-size: .8rem; }
.jauge-titre { white-space: nowrap; gap: 10px; display: flex; justify-content: space-between; margin-bottom: 6px; }
.jauge-barre { height: 8px; background: var(--sable); border-radius: 99px; overflow: hidden; }
.jauge-barre span { display: block; height: 100%; background: linear-gradient(90deg, var(--menthe), #f6c344); border-radius: 99px; }

/* Bande des chiffres */
.bande { background: var(--encre); color: #fff; padding: 34px 0; }
.trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trois div { display: flex; flex-direction: column; gap: 4px; }
.trois b { font-size: 2rem; font-weight: 800; color: #ffb59f; letter-spacing: -.02em; }
.trois span { color: #c9cde0; }

/* Sections */
.section { padding: 88px 0; }
.section.fond { background: var(--sable); }
.grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.carte { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 26px; transition: transform .2s, box-shadow .2s; }
.carte:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.carte p { color: var(--encre-doux); margin: 0; }
.ico { width: 46px; height: 46px; border-radius: 13px; margin-bottom: 16px; position: relative; }
.ico::after { content: ""; position: absolute; inset: 13px; border-radius: 4px; }
.i1 { background: #ffe3d9; } .i1::after { border: 3px solid var(--corail); border-radius: 3px; }
.i2 { background: var(--menthe-pale); } .i2::after { background: linear-gradient(90deg, var(--menthe) 45%, transparent 45% 55%, var(--menthe) 55%); }
.i3 { background: #fff1cc; } .i3::after { border-radius: 50%; border: 3px solid #d9a21b; }
.i4 { background: #e4e7f6; } .i4::after { background: linear-gradient(0deg, var(--encre) 60%, #c3c8e0 60%); }
.i5 { background: #ffe3d9; } .i5::after { background: var(--corail); clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 0 100%); }
.i6 { background: var(--menthe-pale); } .i6::after { border-radius: 50% 50% 6px 6px; background: var(--menthe); }

/* Étapes */
.etapes { list-style: none; padding: 0; margin: 44px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: e; }
.etapes li { background: #fff; border-radius: var(--rayon); padding: 30px 26px; border: 1px solid var(--trait); }
.etapes p { color: var(--encre-doux); margin: 0; }
.rond { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--corail); color: #fff; font-weight: 800; margin-bottom: 14px; }

/* Pour qui */
.pourqui { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pourqui p { color: var(--encre-doux); font-size: 1.05rem; }
.metiers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.metiers li { background: #fff; border: 1px solid var(--trait); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: .95rem; }

/* Offres */
.offres { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 24px; margin: 44px 0 20px; }
.offre { position: relative; background: #fff; border: 1px solid var(--trait); border-radius: 22px; padding: 34px 30px; display: flex; flex-direction: column; }
.offre.vedette { border: 2px solid var(--encre); box-shadow: var(--ombre); }
.offre ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.offre li { padding: 7px 0; border-bottom: 1px solid var(--sable); }
.offre li::before { content: "✓"; color: var(--menthe); font-weight: 800; margin-right: 10px; }
.prix { font-size: 2.3rem; font-weight: 800; margin: 0 0 18px; letter-spacing: -.03em; }
.prix small { font-size: .9rem; font-weight: 500; color: var(--encre-doux); letter-spacing: 0; }
.ruban { position: absolute; top: -13px; left: 28px; background: var(--menthe); color: #fff; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 4px 12px; border-radius: 99px; }
.ruban.gris { background: var(--encre-doux); }
.petit-texte { font-size: .92rem; color: var(--encre-doux); }

/* Questions */
details { background: #fff; border: 1px solid var(--trait); border-radius: 14px; padding: 4px 22px; margin: 12px 0; }
details[open] { box-shadow: var(--ombre); }
summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--corail); }
details[open] summary::after { content: "–"; }
details p { color: var(--encre-doux); margin: 0 0 18px; }

/* Appel final et pied */
.final { background: linear-gradient(120deg, var(--encre), #303a66); color: #fff; padding: 72px 0; }
.final-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.final h2 { margin: 0; }
.pied { padding: 34px 0 44px; border-top: 1px solid var(--trait); }
.pied-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.pied nav { display: flex; gap: 22px; flex-wrap: wrap; }
.pied a { color: var(--encre-doux); text-decoration: none; font-size: .93rem; }
.pied a:hover { color: var(--encre); }

/* Pages de texte (mentions, données) */
.texte { padding: 56px 0 80px; }
.texte h1 { font-size: 2.2rem; }
.texte h2 { font-size: 1.3rem; margin-top: 2em; }
.texte p, .texte li { color: var(--encre-doux); }

/* Téléphone et tablette */
@media (max-width: 900px) {
  .accroche-in, .pourqui { grid-template-columns: 1fr; gap: 40px; }
  .grille, .etapes { grid-template-columns: 1fr 1fr; }
  .menu { display: none; }
  .entete-in { justify-content: space-between; }
}
@media (max-width: 620px) {
  .accroche { padding: 40px 0 56px; }
  .grille, .etapes, .trois, .offres { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .cadre { padding: 0 16px; }
  .pastille.retard { left: -4px; top: 40%; }
  .jauge { width: 230px; right: 0; }
  .entete .bouton.petit { padding: .5rem .9rem; font-size: .85rem; }
  .feuille { padding: 18px; }
}
