@font-face { font-family: "Archivo"; src: url("polices/Archivo.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Inter"; src: url("polices/Inter.woff2") format("woff2");
  font-weight: 100 900; font-display: swap; }

:root {
  --ardoise: #1F3A5F;
  --ardoise-fonce: #142740;
  --chantier: #F28C28;
  --chantier-fonce: #B85F0B;
  --sable: #F6F1E9;
  --vert: #2E8B57;
  --texte: #22303F;
  --gris: #56636F;
  --trait: #E3DACB;
  --blanc: #FFFFFF;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: env(safe-area-inset-top, 0px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--blanc); color: var(--texte);
  font: 400 1.0625rem/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3 { font-family: Archivo, "Arial Narrow", Arial, sans-serif; color: var(--ardoise); margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--chantier); outline-offset: 3px; border-radius: 4px; }
.enveloppe { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

/* En-tête */
.entete { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none;
  font-family: Archivo, Arial, sans-serif; font-size: 1.55rem; color: var(--ardoise); font-weight: 500; }
.logo b { font-weight: 800; color: var(--chantier); }
.logo span { font-stretch: 88%; font-weight: 600; letter-spacing: -.01em; }

/* Boutons */
.bouton { display: inline-block; background: var(--chantier); color: var(--ardoise-fonce); text-decoration: none;
  font: 600 1rem/1.2 Inter, system-ui, sans-serif; padding: .85rem 1.3rem; border-radius: 8px; border: 0;
  cursor: pointer; transition: background-color .15s; text-align: center; }
.bouton:hover { background: #F7A04B; }
.bouton.petit { padding: .55rem .9rem; font-size: .95rem; }
.bouton.contour { background: transparent; color: var(--ardoise); border: 2px solid var(--ardoise); }
.bouton.contour:hover { background: var(--ardoise); color: var(--blanc); }
.bouton.clair { background: transparent; color: var(--blanc); border: 2px solid rgba(255,255,255,.5); }
.bouton.clair:hover { border-color: var(--blanc); }
.bouton[disabled] { opacity: .6; cursor: wait; }

/* Accroche */
.accroche { background: var(--ardoise); color: #E9EEF5; overflow: hidden; }
.accroche .enveloppe { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
  padding-top: 3.5rem; padding-bottom: 3.75rem; }
.accroche h1 { color: var(--blanc); font-stretch: 78%; font-weight: 800; letter-spacing: -.01em;
  font-size: clamp(2.2rem, 5.6vw, 3.9rem); line-height: 1.03; }
.accroche .sous { font-size: 1.15rem; max-width: 40ch; margin: 1.25rem 0 1.75rem; color: #C9D4E2; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.accroche .note { font-size: .92rem; color: #A9B8CB; margin-top: .9rem; }

.boite { background: var(--sable); border-radius: 18px; padding: 1.1rem; color: var(--texte);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); transform: rotate(1.5deg); }
.boite .heure { display: flex; justify-content: space-between; font-size: .85rem; color: var(--gris); padding: 0 .3rem .7rem; }
.boite .titre-mail { font-family: Archivo, Arial, sans-serif; font-weight: 800; color: var(--ardoise);
  font-size: 1.3rem; padding: 0 .3rem .7rem; }
.marche { background: var(--blanc); border: 1px solid var(--trait); border-radius: 10px; padding: .9rem;
  margin-bottom: .65rem; opacity: 0; transform: translateY(10px); animation: arrive .5s ease-out forwards; }
.marche:nth-of-type(2) { animation-delay: .5s; }
.marche:nth-of-type(3) { animation-delay: 1s; }
@keyframes arrive { to { opacity: 1; transform: none; } }
.pastille { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--blanc);
  background: var(--vert); padding: .1rem .55rem; border-radius: 99px; }
.pastille.urgent { background: var(--chantier-fonce); }
.marche h3 { font-size: 1rem; margin: .45rem 0 .25rem; font-stretch: 90%; }
.marche p { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--gris); }
.marche .limite { font-weight: 600; color: var(--texte); }

/* Sections */
section.bloc { padding: 4.5rem 0; }
section.bloc h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-stretch: 82%; font-weight: 800; line-height: 1.08; max-width: 24ch; }
.intro { max-width: 60ch; color: var(--gris); margin: 1rem 0 2.5rem; }

.probleme { background: var(--sable); }
.comparaison { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.colonne { padding: 1.5rem; border-radius: 12px; }
.colonne.avant { background: var(--blanc); border: 1px dashed #C9BCA6; }
.colonne.apres { background: var(--ardoise); color: #E9EEF5; }
.colonne h3 { font-size: 1.2rem; margin-bottom: .75rem; }
.colonne.apres h3 { color: var(--blanc); }
.colonne ul { margin: 0; padding-left: 1.1rem; }
.colonne li { margin-bottom: .45rem; }

.etapes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: etape; }
.etapes li { counter-increment: etape; border-top: 3px solid var(--ardoise); padding-top: 1rem; }
.etapes li::before { content: counter(etape); font-family: Archivo, Arial, sans-serif; font-weight: 800;
  font-size: 2.6rem; color: var(--chantier); line-height: 1; display: block; margin-bottom: .5rem; }
.etapes h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.etapes p { margin: 0; color: var(--gris); }
.metiers { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.25rem; padding: 0; list-style: none; }
.metiers li { border: 1px solid var(--trait); border-radius: 99px; padding: .35rem .85rem; font-size: .95rem; background: var(--blanc); }

/* Échantillon */
.echantillon { background: var(--ardoise-fonce); color: #E9EEF5; }
.echantillon h2 { color: var(--blanc); }
.echantillon .intro { color: #C9D4E2; }
.formulaire { display: grid; grid-template-columns: 1.4fr 1fr .8fr auto; gap: .75rem; align-items: end; max-width: 980px; }
.champ { display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; }
.champ input, .champ select { font: inherit; font-size: 1rem; padding: .75rem .8rem; border-radius: 8px;
  border: 1px solid var(--trait); background: var(--blanc); color: var(--texte); width: 100%; }
.echantillon .champ label { color: #C9D4E2; }
.mention { font-size: .82rem; color: #A9B8CB; margin-top: .9rem; max-width: 70ch; }
.mention a { color: inherit; }
.retour { margin-top: 1rem; font-weight: 600; min-height: 1.5em; }
.retour.ok { color: #8FD3AE; }
.retour.erreur { color: #FFB27A; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Tarifs */
.tarifs { background: var(--sable); }
.lancement { display: inline-block; background: var(--blanc); border-left: 4px solid var(--chantier);
  padding: .8rem 1rem; border-radius: 6px; margin: 0 0 1.5rem; max-width: 62ch; }
.bascule { display: inline-flex; background: var(--blanc); border: 1px solid var(--trait); border-radius: 99px; padding: .25rem; margin-bottom: 2rem; }
.bascule button { border: 0; background: transparent; padding: .55rem 1.1rem; border-radius: 99px; cursor: pointer;
  font: inherit; font-size: .95rem; color: var(--gris); }
.bascule button[aria-pressed="true"] { background: var(--ardoise); color: var(--blanc); }
.formules { display: grid; grid-template-columns: 1fr 1fr .9fr; gap: 1.25rem; align-items: stretch; }
.formule { background: var(--blanc); border-radius: 14px; padding: 1.6rem; border: 1px solid var(--trait); display: flex; flex-direction: column; }
.formule.pro { border: 2px solid var(--ardoise); }
.formule.devis { background: transparent; border: 1px dashed #BFB09A; }
.formule h3 { font-size: 1.4rem; }
.formule .pour { font-size: .92rem; color: var(--gris); margin: .25rem 0 0; }
.prix { font-family: Archivo, Arial, sans-serif; font-weight: 800; font-size: 2.6rem; color: var(--ardoise);
  margin: 1rem 0 0; line-height: 1; font-stretch: 85%; }
.prix small { font: 500 .95rem Inter, sans-serif; color: var(--gris); }
.barre { font-size: .9rem; color: var(--gris); margin: .35rem 0 1rem; min-height: 1.4em; }
.barre s { color: #8A949E; }
.formule ul { padding-left: 1.1rem; margin: 0 0 1.5rem; flex: 1; }
.formule li { margin-bottom: .4rem; }
.precision { margin-top: 1.5rem; max-width: 70ch; color: var(--gris); font-size: .95rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--trait); padding: 1rem 0; max-width: 780px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ardoise); }
.faq details p { margin: .6rem 0 0; color: var(--gris); }
.faq h2 { margin-bottom: 1.5rem; }

.final { background: var(--ardoise); color: #E9EEF5; }
.final h2 { color: var(--blanc); }
.final p { max-width: 50ch; color: #C9D4E2; margin: 1rem 0 1.75rem; }

footer { padding: 2rem 0 2.5rem; font-size: .88rem; color: var(--gris); }
footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-bottom: .75rem; }

/* Fenêtre d'inscription */
dialog { border: 0; border-radius: 14px; padding: 0; width: min(520px, calc(100% - 2rem)); color: var(--texte); }
dialog::backdrop { background: rgba(20,39,64,.6); }
.fenetre { padding: 1.6rem; }
.fenetre h2 { font-size: 1.5rem; font-stretch: 85%; }
.fenetre .resume { color: var(--gris); margin: .4rem 0 1.25rem; font-size: .95rem; }
.fenetre form { display: grid; gap: .9rem; }
.fenetre .aide { font-size: .82rem; color: var(--gris); }
.fenetre .boutons { display: flex; gap: .75rem; justify-content: flex-end; margin-top: .5rem; flex-wrap: wrap; }
.fenetre .retour.erreur { color: var(--chantier-fonce); }
.fenetre form p { margin: 0; }
.fenetre .retour { min-height: 0; }
.fenetre .retour:empty { display: none; }

/* Pages légales */
.legal { max-width: 760px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); font-stretch: 82%; font-weight: 800; margin-bottom: .5rem; }
.legal h2 { font-size: 1.3rem; margin: 2rem 0 .5rem; }
.legal p, .legal li { color: var(--texte); }
.legal .maj { color: var(--gris); font-size: .92rem; }
.legal table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.legal .tableau { overflow-x: auto; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--trait); padding: .5rem .5rem .5rem 0; vertical-align: top; }

@media (max-width: 900px) {
  .formules { grid-template-columns: 1fr; }
  .formulaire { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .accroche .enveloppe { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 2.5rem; }
  .boite { transform: none; }
  .comparaison, .etapes { grid-template-columns: 1fr; }
  section.bloc { padding: 3.25rem 0; }
}
@media (max-width: 520px) {
  .formulaire { grid-template-columns: 1fr; }
  .actions .bouton { width: 100%; }
}

/* Logo MatinAO (SVG vectorisé) */
.logo img { display: block; height: 36px; width: auto; }
@media (max-width: 520px) { .logo img { height: 30px; } }

/* Bandeau de consentement */
.consentement { position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 50;
  max-width: 720px; margin: 0 auto; background: var(--blanc); color: var(--texte); border: 1px solid var(--trait);
  border-radius: 14px; padding: 1.1rem 1.2rem; box-shadow: 0 18px 40px -12px rgba(20,39,64,.35); font-size: .95rem; }
.consentement .c-texte { margin: 0 0 .9rem; }
.consentement .c-details { display: grid; gap: .5rem; margin: 0 0 .9rem; }
.consentement .c-details[hidden] { display: none; }
.consentement label { display: flex; gap: .6rem; align-items: center; }
.consentement input { width: 1.1rem; height: 1.1rem; accent-color: var(--ardoise); }
.consentement .c-boutons { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
@media (max-width: 520px) { .consentement .c-boutons .bouton { flex: 1 1 100%; } }
.consentement .c-egal { background: var(--ardoise); color: var(--blanc); }
.consentement .c-egal:hover { background: var(--ardoise-fonce); }
