/* Feuille de style unique. Polices système, aucune ressource externe. */
:root {
  --fond: #fbfaf7;
  --surface: #ffffff;
  --encre: #1b2230;
  --encre-douce: #4a5465;
  --accent: #1f3a5f;
  --accent-fonce: #142844;
  --accent-clair: #e8eef6;
  --trait: #dcdfe5;
  --rayon: 10px;
  --largeur: 68rem;
  --police: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --police-titre: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--police-titre);
  font-weight: 600;
  line-height: 1.2;
  color: var(--encre);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 6vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p, ul, ol, dl { margin: 0 0 1em; }

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-fonce); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.evitement {
  position: absolute;
  left: 1rem;
  top: -10rem;
  background: var(--accent);
  color: #fff;
  padding: .7rem 1rem;
  border-radius: var(--rayon);
  z-index: 10;
}
.evitement:focus { top: 1rem; color: #fff; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 1rem; }

/* En-tête */
.entete { background: var(--surface); border-bottom: 1px solid var(--trait); }
.entete .conteneur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-top: .8rem;
  padding-bottom: .8rem;
}
.marque {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--police-titre);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--encre);
  text-decoration: none;
}
.marque svg { width: 30px; height: 30px; }

.bouton-menu {
  display: none;
  font: inherit;
  font-size: .95rem;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--rayon);
  padding: .45rem .9rem;
  cursor: pointer;
}

.nav { width: 100%; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.nav a {
  display: block;
  padding: .55rem 0;
  text-decoration: none;
  color: var(--encre);
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; text-decoration: underline; }

/* Menu replié seulement si le script est actif */
.js .bouton-menu { display: inline-block; }
.js .nav { display: none; }
.js .nav.ouvert { display: block; }

@media (min-width: 52rem) {
  .js .bouton-menu { display: none; }
  .nav, .js .nav { display: block; width: auto; }
  .nav ul { flex-direction: row; gap: 1.4rem; }
  .nav a { padding: .3rem 0; }
}

/* Sections */
main { display: block; }
main:focus { outline: none; }
.section { padding: 3rem 0; }
.section + .section { border-top: 1px solid var(--trait); }
.section-claire { background: var(--surface); }
.chapeau { font-size: 1.15rem; color: var(--encre-douce); max-width: 42rem; }
.surtitre {
  display: inline-block;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: .6rem;
}

.accroche { padding: 3.5rem 0 3rem; }
.accroche .visuel { margin-top: 2rem; max-width: 26rem; }

.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.bouton {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  padding: .8rem 1.3rem;
  border: 2px solid var(--accent);
  border-radius: var(--rayon);
  cursor: pointer;
}
.bouton:hover { background: var(--accent-fonce); border-color: var(--accent-fonce); color: #fff; }
.bouton-second { background: transparent; color: var(--accent); }
.bouton-second:hover { background: var(--accent-clair); color: var(--accent-fonce); }

/* Grilles et cartes */
.grille { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .grille-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 56rem) { .grille-3 { grid-template-columns: repeat(3, 1fr); } }

.carte {
  background: var(--surface);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  padding: 1.4rem;
}
.carte h3 { margin-bottom: .3rem; }
.carte ul { padding-left: 1.2rem; }
.carte-accent { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.prix { font-family: var(--police-titre); font-size: 1.7rem; color: var(--accent); margin: .2rem 0 .1rem; }
.prix small { font-family: var(--police); font-size: .9rem; color: var(--encre-douce); }
.delai { font-size: .95rem; color: var(--encre-douce); }

.note {
  background: var(--accent-clair);
  border-left: 4px solid var(--accent);
  padding: .9rem 1.1rem;
  border-radius: 0 var(--rayon) var(--rayon) 0;
  margin: 1.5rem 0;
}
.brouillon {
  background: #fff7e0;
  border: 1px solid #b07d00;
  color: #4a3500;
  padding: .9rem 1.1rem;
  border-radius: var(--rayon);
  margin: 1.5rem 0;
}

/* Étapes */
.etapes { list-style: none; padding: 0; margin: 0; counter-reset: etape; display: grid; gap: 1rem; }
.etapes li {
  counter-increment: etape;
  background: var(--surface);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  padding: 1.2rem 1.2rem 1.2rem 4rem;
  position: relative;
}
.etapes li::before {
  content: counter(etape);
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.etapes h3 { margin-bottom: .25rem; }
.etapes p:last-child { margin-bottom: 0; }

/* Tableaux */
.tableau-defile { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--surface); }
th, td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--trait); vertical-align: top; }
th { font-weight: 600; background: var(--accent-clair); }

/* Questions fréquentes */
.faq details {
  background: var(--surface);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  padding: .9rem 1.1rem;
  margin-bottom: .7rem;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: .7rem 0 0; }

/* Formulaires */
.formulaire { max-width: 38rem; }
.champ { margin-bottom: 1.1rem; }
.champ label { display: block; font-weight: 600; margin-bottom: .3rem; }
.champ .aide { display: block; font-size: .92rem; color: var(--encre-douce); margin-top: .25rem; }
input[type="text"], input[type="email"], input[type="url"], textarea {
  width: 100%;
  font: inherit;
  color: var(--encre);
  background: #fff;
  border: 1px solid #8a93a3;
  border-radius: 8px;
  padding: .65rem .75rem;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.consentement { display: flex; gap: .6rem; align-items: flex-start; }
.consentement input { margin-top: .35rem; width: 1.1rem; height: 1.1rem; flex: none; }
.consentement label { font-weight: 400; }
.obligatoire { color: #9b1c1c; }

/* Textes juridiques */
.texte { max-width: 46rem; }
.texte h2 { font-size: 1.4rem; margin-top: 2rem; }
.repere { background: #fff7e0; padding: 0 .2em; border-radius: 3px; }

/* Pied de page */
.pied { background: var(--surface); border-top: 1px solid var(--trait); padding: 2rem 0; font-size: .95rem; color: var(--encre-douce); }
.pied ul { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.pied a { color: var(--encre-douce); }
.pied a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .entete .nav, .bouton-menu, .evitement, .actions { display: none !important; }
  body { background: #fff; }
}
