/* ==========================================================
   STYLE DU SITE
   Pour changer les couleurs, modifiez uniquement les 5 lignes
   de la section ":root" ci-dessous.
   ========================================================== */
:root {
  --accent: #E4572E;      /* couleur d'accent (boutons, soulignements) */
  --encre: #17202A;       /* texte et blocs sombres */
  --fond: #FFFFFF;        /* fond des pages */
  --fond-doux: #F3F1EE;   /* fond des sections alternées */
  --trait: #D6D2CC;       /* petits traits de séparation */
  --police-titre: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --police-texte: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 18px;
  line-height: 1.55;
  color: var(--encre);
  background: var(--fond);
}

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

a { color: var(--encre); }
a:hover { color: var(--accent); }

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

.conteneur { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* ---------- Titres ---------- */
h1, h2, h3 {
  font-family: var(--police-titre);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 0 0 16px;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 8.5vw, 4.6rem); overflow-wrap: break-word; }
h2 { font-size: clamp(2rem, 6vw, 2.8rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 16px; }
.accent { color: var(--accent); }
.petit { font-size: 0.9rem; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-block;
  min-height: 48px;
  padding: 12px 22px;
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 3px solid var(--encre);
  background: var(--accent);
  color: var(--encre);
}
.bouton:hover { background: var(--encre); color: #fff; }
.bouton--contour { background: transparent; }
.bouton--contour:hover { background: var(--encre); color: #fff; }
.bouton--sombre { background: var(--encre); color: #fff; }
.bouton--sombre:hover { background: var(--accent); color: var(--encre); }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- En-tête ---------- */
.entete { background: #fff; border-bottom: 3px solid var(--encre); position: sticky; top: 0; z-index: 10; }
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo {
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  line-height: 1.1;
}
.menu-bouton {
  min-width: 48px; min-height: 48px;
  font-family: var(--police-titre); font-weight: 800; font-size: 1.1rem; text-transform: uppercase;
  background: #fff; border: 3px solid var(--encre); cursor: pointer; color: var(--encre);
}
.menu { display: none; flex-direction: column; border-top: 1px solid var(--trait); }
.menu.ouvert { display: flex; }
.menu a {
  padding: 14px 16px; text-decoration: none; font-weight: 600;
  border-bottom: 1px solid var(--trait);
}
.menu a[aria-current="page"] { box-shadow: inset 6px 0 0 var(--accent); font-weight: 800; }
.menu a:hover { background: var(--fond-doux); color: var(--encre); }

@media (min-width: 860px) {
  .menu-bouton { display: none; }
  .entete__haut { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .menu { display: flex; flex-direction: row; border: 0; gap: 4px; }
  .menu a { padding: 8px 12px; border: 0; }
  .menu a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--accent); }
}

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section--doux { background: var(--fond-doux); }
.section--sombre { background: var(--encre); color: #fff; }
.section--sombre a { color: #fff; }

.hero { padding: 48px 0 40px; }
.hero__texte { max-width: 760px; font-size: 1.25rem; }
.bandeau {
  display: inline-block;
  background: var(--accent); color: var(--encre);
  font-family: var(--police-titre); font-weight: 800; text-transform: uppercase;
  font-size: 1.5rem; padding: 6px 14px; margin-bottom: 20px;
}

/* ---------- Grilles et cartes ---------- */
.grille { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grille--2, .grille--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .grille--3 { grid-template-columns: repeat(3, 1fr); } .grille--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 560px) and (max-width: 859px) { .grille--4 { grid-template-columns: repeat(2, 1fr); } }

.carte { border: 3px solid var(--encre); padding: 18px; background: #fff; }
.carte h3 { margin-bottom: 8px; }
.carte p { margin: 0; }
.carte--haut { border-top: 8px solid var(--accent); }

.etapes { counter-reset: etape; list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 700px) { .etapes { grid-template-columns: repeat(4, 1fr); } }
.etapes li { counter-increment: etape; border-top: 6px solid var(--accent); padding-top: 10px; }
.etapes li::before {
  content: counter(etape);
  display: block; font-family: var(--police-titre); font-weight: 800; font-size: 2.6rem; line-height: 1;
}

.liste-coches { list-style: none; margin: 0 0 16px; padding: 0; }
.liste-coches li { padding: 8px 0 8px 32px; position: relative; border-bottom: 1px solid var(--trait); }
.liste-coches li::before {
  content: ""; position: absolute; left: 0; top: 14px; width: 16px; height: 16px; background: var(--accent); border: 2px solid var(--encre);
}

/* ---------- Tableaux ---------- */
.tableau-conteneur { overflow-x: auto; }
table.tableau { width: 100%; border-collapse: collapse; }
.tableau th {
  text-align: left; background: var(--encre); color: #fff;
  font-family: var(--police-titre); font-weight: 800; text-transform: uppercase; font-size: 1.1rem; padding: 10px 12px;
}
.tableau td { border-bottom: 1px solid var(--encre); padding: 12px; vertical-align: middle; }
.tableau .prix { font-weight: 800; white-space: nowrap; }
.tableau .bouton { font-size: 1rem; min-height: 40px; padding: 6px 12px; border-width: 2px; }

/* ---------- Formulaire ---------- */
.formulaire { display: grid; gap: 18px; max-width: 680px; }
.champ label { display: block; font-weight: 800; margin-bottom: 4px; }
.champ .aide { display: block; font-size: 0.9rem; color: #4A525A; margin-bottom: 6px; }
.champ input[type="text"], .champ input[type="tel"], .champ input[type="email"], .champ input[type="date"],
.champ select, .champ textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; color: var(--encre); background: #fff;
  border: 3px solid var(--encre); border-radius: 0;
}
.champ textarea { min-height: 120px; resize: vertical; }
.champ--case { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.champ--case input { width: 24px; height: 24px; margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.champ--case label { font-weight: 400; margin: 0; }
.erreur { color: #B3261E; font-weight: 800; font-size: 0.95rem; margin-top: 4px; display: none; }
.champ.invalide .erreur { display: block; }
.champ.invalide input, .champ.invalide select, .champ.invalide textarea { border-color: #B3261E; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.message { border: 3px solid var(--encre); padding: 16px; background: var(--fond-doux); }
.message[hidden] { display: none; }

/* ---------- Divers ---------- */
.bloc-contact { background: var(--encre); color: #fff; padding: 22px; }
.bloc-contact .gros { font-family: var(--police-titre); font-weight: 800; font-size: 2.2rem; line-height: 1; margin: 6px 0; }
.carte-maps { border: 3px solid var(--encre); width: 100%; height: 320px; display: block; }
dl.infos { margin: 0; display: grid; gap: 4px 16px; grid-template-columns: 1fr; }
dl.infos dt { font-weight: 800; margin-top: 12px; }
dl.infos dd { margin: 0; }
@media (min-width: 640px) { dl.infos { grid-template-columns: 200px 1fr; } dl.infos dt { margin-top: 0; padding: 10px 0; border-bottom: 1px solid var(--trait); } dl.infos dd { padding: 10px 0; border-bottom: 1px solid var(--trait); } }

details { border-bottom: 1px solid var(--encre); padding: 12px 0; }
summary { cursor: pointer; font-weight: 800; }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: #fff; padding: 36px 0 28px; margin-top: 0; }
.pied a { color: #fff; }
.pied a:hover { color: var(--accent); }
.pied .logo { color: #fff; display: inline-block; margin-bottom: 8px; }
.pied__liens { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0; padding: 0; list-style: none; }
.pied .petit { color: #E6E8EA; }

/* Bouton WhatsApp flottant sur mobile */
.wa-flottant {
  position: fixed; right: 12px; bottom: 12px; z-index: 20;
  min-height: 52px; padding: 12px 18px;
  font-family: var(--police-titre); font-weight: 800; text-transform: uppercase; font-size: 1.2rem;
  background: var(--accent); color: var(--encre); border: 3px solid var(--encre); text-decoration: none;
}
.wa-flottant:hover { background: var(--encre); color: #fff; }
@media (min-width: 860px) { .wa-flottant { display: none; } }

@media (max-width: 859px) { body { padding-bottom: 76px; } }

@media print {
  .entete, .pied, .wa-flottant, .boutons { display: none; }
}
