/* ==========================================================================
   Jardin'Art — feuille de style commune
   Sommaire : 1. Polices · 2. Variables · 3. Base · 4. Mise en page
   5. Boutons & liens · 6. En-tête · 7. Pied de page · 8. Composants
   9. Pages spécifiques · 10. Devis · 11. Utilitaires
   ========================================================================== */

/* 1. Polices (hébergées localement, Source Sans 3 variable) */
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* 2. Variables — couleurs prélevées dans le logo */
:root {
  --petrole: #004c57;        /* titres, boutons principaux */
  --petrole-fonce: #00363e;  /* pied de page, survols */
  --petrole-pale: #e6eeee;   /* fonds discrets */
  --orange: #f2a24a;         /* accents uniquement (jamais pour du texte sur fond clair) */
  --orange-fonce: #d98a32;   /* survol du bouton devis */
  --fond: #faf8f4;           /* blanc cassé */
  --blanc: #ffffff;
  --texte: #22292b;          /* gris très foncé */
  --texte-doux: #525c5f;     /* texte secondaire (contraste 6.4:1 sur --fond) */
  --ligne: #e2ddd3;

  --police: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --rayon: 8px;
  --rayon-petit: 6px;
  --largeur: 1200px;
  --largeur-texte: 40rem;
  --gouttiere: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 6.5vw, 5.4rem);
}

/* 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 1.125rem;       /* 18 px */
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  color: var(--petrole);
  line-height: 1.15;
  margin: 0 0 .6em;
  font-weight: 650;
  letter-spacing: -.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 3.2vw + 1.2rem, 3.6rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 1.6vw + 1.2rem, 2.5rem); }
h3 { font-size: 1.375rem; font-weight: 620; letter-spacing: 0; }
p, ul, ol, dl { margin: 0 0 1.1em; }
p { text-wrap: pretty; }
a { color: var(--petrole); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid var(--petrole); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--orange); color: var(--petrole-fonce); }

.lien-evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--petrole); color: var(--blanc); padding: .6rem 1rem; border-radius: var(--rayon-petit);
}
.lien-evitement:focus { top: 1rem; }

/* 4. Mise en page */
.conteneur { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gouttiere); }
.section { padding-block: var(--section); }
.section--blanc { background: var(--blanc); }
.section--pale { background: var(--petrole-pale); }
.section--serree { padding-block: calc(var(--section) * .6); }
.texte-courant { max-width: var(--largeur-texte); }
.chapo { font-size: 1.3rem; line-height: 1.5; color: var(--texte); max-width: 36rem; }
.doux { color: var(--texte-doux); }

/* Titre de section : le petit souligné orange est le seul motif récurrent du site */
.titre-section { margin-bottom: 2.5rem; max-width: 46rem; }
.titre-section h2::after {
  content: ""; display: block; width: 3rem; height: 3px; margin-top: .9rem;
  background: var(--orange); border-radius: 2px;
}
.titre-section p { color: var(--texte-doux); margin: 0; }
.titre-section--centre { margin-inline: auto; text-align: center; }
.titre-section--centre h2::after { margin-inline: auto; }

.deux-colonnes { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 900px) {
  .deux-colonnes { grid-template-columns: 1fr 1fr; }
  .deux-colonnes--photo-large { grid-template-columns: 5fr 6fr; }
  .deux-colonnes--texte-large { grid-template-columns: 7fr 5fr; }
  .deux-colonnes--haut { align-items: start; }
}

.photo { border-radius: var(--rayon); overflow: hidden; background: var(--petrole-pale); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--paysage { aspect-ratio: 4 / 3; }
.photo--large { aspect-ratio: 16 / 10; }
.photo--portrait { aspect-ratio: 4 / 5; }
.legende { font-size: .95rem; color: var(--texte-doux); margin-top: .6rem; }

/* 5. Boutons & liens */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .7rem 1.4rem;
  font: inherit; font-size: 1.05rem; font-weight: 620; line-height: 1.2; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--rayon-petit); cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.bouton svg { width: 1.15em; height: 1.15em; flex: none; }
.bouton--devis { background: var(--orange); color: var(--petrole-fonce); }
.bouton--devis:hover { background: var(--orange-fonce); }
.bouton--principal { background: var(--petrole); color: var(--blanc); }
.bouton--principal:hover { background: var(--petrole-fonce); }
.bouton--contour { background: transparent; color: var(--petrole); border-color: var(--petrole); }
.bouton--contour:hover { background: var(--petrole); color: var(--blanc); }
.bouton--clair { background: var(--fond); color: var(--petrole); }
.bouton--clair:hover { background: var(--blanc); }
.boutons { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.lien-fleche {
  display: inline-block; font-weight: 620; color: var(--petrole);
  text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px;
  text-underline-offset: .3em;
}
.lien-fleche:hover { text-decoration-color: var(--petrole); }

/* 6. En-tête */
.entete { background: var(--fond); border-bottom: 1px solid var(--ligne); position: relative; z-index: 20; }
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5.25rem; }
.entete__logo { display: block; flex: none; width: 172px; text-decoration: none; }
/* Le sous-titre « PAYSAGISTES » du logo est trop fin une fois réduit : on ne garde que
   le mot-symbole de l'image et on écrit le sous-titre en texte, plus lisible. */
.logo__marque { display: block; aspect-ratio: 531 / 170; overflow: hidden; }
.logo__marque img { width: 100%; height: auto; }
.logo__sous-titre {
  display: block; margin-top: .2rem; padding-left: .5em;
  font-size: .78rem; font-weight: 620; line-height: 1; letter-spacing: .5em; text-transform: uppercase;
  text-align: center; color: #a85d14; /* orange du logo assombri : contraste 4.7:1 sur --fond */
}
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav__liste { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav__liste a {
  display: block; padding: .4rem 0; color: var(--texte); text-decoration: none; font-weight: 520; font-size: 1.05rem;
  border-bottom: 2px solid transparent;
}
.nav__liste a:hover { color: var(--petrole); border-bottom-color: var(--ligne); }
.nav__liste a[aria-current="page"] { color: var(--petrole); border-bottom-color: var(--orange); font-weight: 620; }
.nav__burger {
  display: none; align-items: center; gap: .5rem; min-height: 2.9rem; padding: .5rem .9rem;
  font: inherit; font-weight: 620; color: var(--petrole); background: none;
  border: 2px solid var(--petrole); border-radius: var(--rayon-petit); cursor: pointer;
}
.nav__burger svg { width: 1.3rem; height: 1.3rem; }

@media (max-width: 1140px) {
  .nav__burger { display: inline-flex; }
  .nav__panneau {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--fond); border-bottom: 1px solid var(--ligne);
    padding: 1rem var(--gouttiere) 2rem;
  }
  .nav__panneau.est-ouvert { display: block; }
  .nav__liste { flex-direction: column; gap: 0; }
  .nav__liste a { padding: .85rem 0; border-bottom: 1px solid var(--ligne); font-size: 1.2rem; }
  .nav__liste a[aria-current="page"] { border-bottom-color: var(--ligne); box-shadow: inset 4px 0 0 var(--orange); padding-left: .9rem; }
  .nav__panneau .bouton { margin-top: 1.5rem; width: 100%; }
}
@media (min-width: 1141px) {
  .nav__panneau { display: flex; align-items: center; gap: 2rem; }
}

/* 7. Pied de page */
.pied { background: var(--petrole-fonce); color: #e9efef; padding-block: 4.5rem 2rem; font-size: 1.05rem; }
.pied a { color: var(--blanc); }
.pied h2 { color: var(--blanc); font-size: 1.15rem; margin-bottom: 1rem; }
.pied__grille { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .pied__grille { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1100px) { .pied__grille { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.pied__logo { display: block; width: 190px; margin-bottom: 1.2rem; text-decoration: none; }
.pied__logo .logo__sous-titre { color: var(--orange); font-size: .86rem; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: .45rem; }
.pied address { font-style: normal; }
.pied__badge {
  display: inline-block; margin-top: 1rem; padding: .45rem .8rem; border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--rayon-petit); font-size: .95rem;
}
.pied__reseaux { display: flex; gap: .8rem; margin-top: 1rem; }
.pied__reseaux a {
  display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem;
  border: 1px solid rgba(255,255,255,.35); border-radius: 50%;
}
.pied__reseaux a:hover { background: rgba(255,255,255,.1); }
.pied__reseaux svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
.pied__bas {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .95rem; color: #c9d6d7;
}
.pied__bas ul { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.pied :focus-visible { outline-color: var(--orange); }

/* Barre d'appel fixe sur mobile */
.barre-appel { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: 4.75rem; }
  .barre-appel {
    display: flex; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
    background: var(--fond); border-top: 1px solid var(--ligne);
  }
  .barre-appel .bouton { flex: 1; min-height: 3.2rem; }
  .barre-appel .bouton--whatsapp { flex: 0 0 auto; }
}

/* 8. Composants */

/* Héros de l'accueil */
.heros { padding-block: clamp(2rem, 5vw, 4.5rem) var(--section); }
.heros__grille { display: grid; gap: 2rem; align-items: center; }
.heros__photo { border-radius: var(--rayon); overflow: hidden; aspect-ratio: 4 / 3; background: var(--petrole-pale); }
.heros__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.heros__texte p { font-size: 1.3rem; color: var(--texte-doux); margin-bottom: 0; }
.heros__texte .boutons { margin-top: 2.2rem; }
/* Sur mobile, la barre d'appel fixe propose déjà « Appeler Sven » */
@media (max-width: 767px) { .heros__appel { display: none; } }
@media (max-width: 899px) {
  .heros__photo { aspect-ratio: 4 / 3.4; }
}
@media (min-width: 900px) {
  .heros__grille { grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 5vw, 5rem); }
  .heros__photo { aspect-ratio: 7 / 6; }
}

/* En-tête de page intérieure */
.page-tete { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3.5rem); }
.page-tete__fil { font-size: .95rem; color: var(--texte-doux); margin-bottom: 1.2rem; }
.page-tete__fil a { color: var(--texte-doux); }
.page-tete h1 { max-width: 18ch; }
.page-tete .chapo { max-width: 38rem; }
.page-tete--photo .deux-colonnes { align-items: end; }

/* Les trois activités */
.activites { display: grid; gap: 3rem 2.5rem; }
@media (min-width: 760px) { .activites { grid-template-columns: repeat(3, 1fr); } }
.activite { display: flex; flex-direction: column; }
.activite .photo { aspect-ratio: 4 / 3; margin-bottom: 1.4rem; }
.activite h3 { font-size: 1.6rem; margin-bottom: .3rem; }
.activite__devise { font-weight: 620; color: var(--texte); margin-bottom: .6rem; }
.activite p { color: var(--texte-doux); }
.activite .lien-fleche { margin-top: auto; align-self: flex-start; }

/* Liste à puces sobre */
.liste-points { list-style: none; padding: 0; }
.liste-points li { position: relative; padding-left: 1.5rem; margin-bottom: .6rem; }
.liste-points li::before {
  content: ""; position: absolute; left: 0; top: .68em; width: .55rem; height: .55rem;
  border-radius: 50%; background: var(--orange);
}

/* Prestations en colonnes (texte seul, séparées par un filet) */
.prestations { display: grid; gap: 0 3rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .prestations { grid-template-columns: 1fr 1fr; } }
.prestations li { padding: 1.4rem 0; border-top: 1px solid var(--ligne); }
.prestations h3 { margin-bottom: .35rem; }
.prestations p { margin: 0; color: var(--texte-doux); }

/* Étapes numérotées (Garden'it) — vraie séquence, d'où les numéros */
.etapes { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; counter-reset: etape; }
@media (min-width: 760px) { .etapes { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3rem; } }
@media (min-width: 1100px) { .etapes { grid-template-columns: repeat(4, 1fr); } }
.etapes li { counter-increment: etape; border-top: 2px solid var(--petrole); padding-top: 1.2rem; }
.etapes li::before {
  content: counter(etape); display: block; font-size: 2.6rem; font-weight: 300; line-height: 1; color: var(--petrole);
  margin-bottom: .8rem;
}
.etapes h3 { font-size: 1.2rem; }
.etapes p { color: var(--texte-doux); margin: 0; }

/* Citation */
.citation { margin: 0; max-width: 48rem; }
.citation blockquote { margin: 0; }
.citation p {
  font-size: clamp(1.45rem, 1.4vw + 1rem, 2rem); line-height: 1.35; color: var(--petrole);
  font-style: italic; font-weight: 420; margin: 0;
}
.citation figcaption { margin-top: 1.2rem; color: var(--texte-doux); }
.citation figcaption::before { content: ""; display: inline-block; width: 1.8rem; height: 2px; background: var(--orange); vertical-align: middle; margin-right: .7rem; }

/* Cartes « Pour qui ? » (Vertical) */
.pour-qui { display: grid; gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .pour-qui { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pour-qui { grid-template-columns: repeat(3, 1fr); } }
.pour-qui li { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1.6rem 1.5rem; }
.pour-qui h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.pour-qui p { margin: 0; color: var(--texte-doux); }
.pour-qui svg { width: 2rem; height: 2rem; stroke: var(--petrole); margin-bottom: .9rem; }

/* Aperçu de galerie (accueil) */
.apercu { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .apercu { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.apercu .photo { aspect-ratio: 4 / 3; }

/* Bloc encadré (abonnement, conseil du mois) */
.encart {
  background: var(--blanc); border-radius: var(--rayon); padding: clamp(1.75rem, 4vw, 3.5rem);
  border: 1px solid var(--ligne);
}
.encart--petrole { background: var(--petrole); color: #eaf1f1; border: 0; }
.encart--petrole h2, .encart--petrole h3 { color: var(--blanc); }
.encart--petrole a:not(.bouton) { color: var(--blanc); }
.encart--petrole .liste-points li::before { background: var(--orange); }
.encart--petrole :focus-visible { outline-color: var(--orange); }

.conseil { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 760px) { .conseil { grid-template-columns: 2fr 3fr; } }
.conseil__mois { font-weight: 620; color: var(--texte-doux); margin-bottom: .4rem; }

/* Zone d'intervention */
.communes { columns: 2; column-gap: 2rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .communes { columns: 3; } }
.communes li { padding: .25rem 0; break-inside: avoid; }

/* Appel final */
.appel-final { text-align: left; }
.appel-final .encart--petrole { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .appel-final .encart--petrole { grid-template-columns: 1fr auto; } }
.appel-final h2 { margin-bottom: .4rem; }
.appel-final p { margin: 0; }
.appel-final .boutons { margin-top: 0; }

/* Partenaires */
.partenaires { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem; list-style: none; padding: 0; margin: 0; }
.partenaires img { height: 3.4rem; width: auto; max-width: 11rem; object-fit: contain; }

/* Portrait (accueil, à propos) */
.portrait { border-radius: var(--rayon); overflow: hidden; aspect-ratio: 4 / 3.3; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* Badge association */
.badge {
  display: inline-flex; align-items: center; gap: .6rem; padding: .55rem 1rem;
  border: 1px solid var(--ligne); border-radius: var(--rayon-petit); background: var(--blanc); font-weight: 560;
}
.badge svg { width: 1.3rem; height: 1.3rem; stroke: var(--petrole); }

/* Coordonnées */
.coordonnees { list-style: none; padding: 0; margin: 0 0 2rem; }
.coordonnees li { display: flex; gap: .9rem; align-items: flex-start; padding: .8rem 0; border-bottom: 1px solid var(--ligne); }
.coordonnees svg { width: 1.4rem; height: 1.4rem; stroke: var(--petrole); flex: none; margin-top: .2rem; }
.coordonnees a { font-weight: 560; }

/* 9. Galerie & lightbox */
.filtres { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; list-style: none; padding: 0; }
.filtres button {
  font: inherit; font-size: 1rem; font-weight: 560; min-height: 2.75rem; padding: .45rem 1.1rem; cursor: pointer;
  background: var(--blanc); color: var(--texte); border: 1px solid var(--ligne); border-radius: 999px;
}
.filtres button:hover { border-color: var(--petrole); }
.filtres button[aria-pressed="true"] { background: var(--petrole); color: var(--blanc); border-color: var(--petrole); }
.galerie { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.galerie li[hidden] { display: none; }
.galerie button {
  display: block; width: 100%; padding: 0; border: 0; background: var(--petrole-pale); cursor: zoom-in;
  border-radius: var(--rayon); overflow: hidden; aspect-ratio: 4 / 3;
}
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.galerie button:hover img { opacity: .88; }
.galerie__vide { padding: 2rem; background: var(--blanc); border: 1px dashed var(--ligne); border-radius: var(--rayon); color: var(--texte-doux); }
.galerie__compte { color: var(--texte-doux); font-size: 1rem; margin: -1rem 0 1.5rem; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgba(10, 22, 24, .92); }
.lightbox__cadre { display: grid; grid-template-rows: 1fr auto; height: 100%; padding: 4rem 1rem 1rem; }
.lightbox__image { display: flex; align-items: center; justify-content: center; min-height: 0; }
.lightbox__image img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lightbox__legende { color: #eef3f3; text-align: center; padding: 1rem 4rem; margin: 0; }
.lightbox button {
  position: absolute; display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.4);
  background: rgba(0,0,0,.35); color: #fff; cursor: pointer;
}
.lightbox button:hover { background: rgba(255,255,255,.15); }
.lightbox button svg { width: 1.4rem; height: 1.4rem; stroke: currentColor; }
.lightbox :focus-visible { outline-color: var(--orange); }
.lightbox__fermer { top: 1rem; right: 1rem; }
.lightbox__prec { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__suiv { right: 1rem; top: 50%; translate: 0 -50%; }

/* Avant / après */
.avant-apres { position: relative; border-radius: var(--rayon); overflow: hidden; aspect-ratio: 4 / 3; --pos: 50%; max-width: 56rem; }
.avant-apres img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avant-apres__apres { clip-path: inset(0 0 0 var(--pos)); }
.avant-apres__ligne { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; translate: -50% 0; background: var(--blanc); pointer-events: none; }
.avant-apres__ligne::after {
  content: ""; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 2.6rem; height: 2.6rem;
  border-radius: 50%; background: var(--blanc); border: 2px solid var(--petrole);
}
.avant-apres input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.avant-apres:has(input:focus-visible) { outline: 3px solid var(--petrole); outline-offset: 3px; }
.avant-apres__etiquette { position: absolute; bottom: .8rem; padding: .2rem .6rem; background: rgba(255,255,255,.92); color: var(--texte); border-radius: 4px; font-size: .95rem; font-weight: 600; pointer-events: none; }
.avant-apres__etiquette--avant { left: .8rem; }
.avant-apres__etiquette--apres { right: .8rem; }

/* 10. Formulaires & devis */
.champ { margin-bottom: 1.3rem; }
.champ label, .champ legend, .question-titre { display: block; font-weight: 620; margin-bottom: .4rem; color: var(--texte); }
.champ .aide { display: block; font-size: 1rem; color: var(--texte-doux); margin: -.2rem 0 .5rem; font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; font: inherit; color: var(--texte); background: var(--blanc);
  border: 1px solid #a9b3b5; border-radius: var(--rayon-petit); padding: .75rem .9rem; min-height: 3rem;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--petrole); outline-offset: 1px; border-color: var(--petrole); }
input[type="file"] { font: inherit; font-size: 1rem; max-width: 100%; }
input[type="file"]::file-selector-button {
  font: inherit; font-weight: 600; margin-right: .8rem; padding: .55rem 1rem; cursor: pointer;
  border: 2px solid var(--petrole); background: var(--blanc); color: var(--petrole); border-radius: var(--rayon-petit);
}
.case { display: flex; gap: .75rem; align-items: flex-start; }
.case input { width: 1.35rem; height: 1.35rem; margin-top: .2rem; accent-color: var(--petrole); flex: none; }
.case label { font-weight: 400; margin: 0; }
.ligne-champs { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .ligne-champs { grid-template-columns: 1fr 1fr; } .ligne-champs--npa { grid-template-columns: 9rem 1fr; } }
.erreur { color: #a3261b; font-weight: 600; font-size: 1rem; margin: .5rem 0 0; }
.erreur:empty { display: none; }
[aria-invalid="true"] { border-color: #a3261b !important; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Devis multi-étapes */
.devis { max-width: 54rem; }
.devis__progression { margin-bottom: 2.5rem; }
.devis__progression-texte { display: flex; justify-content: space-between; font-size: 1rem; color: var(--texte-doux); margin-bottom: .5rem; }
.devis__barre { height: 6px; background: var(--ligne); border-radius: 3px; overflow: hidden; }
.devis__barre span { display: block; height: 100%; width: 0; background: var(--petrole); transition: width .25s ease; }
.devis__etape { border: 0; margin: 0; padding: 0; min-width: 0; }
.devis__etape[hidden] { display: none; }
.devis__etape > legend, .devis__etape > .question-titre {
  font-size: clamp(1.5rem, 1.2vw + 1.1rem, 2rem); font-weight: 650; color: var(--petrole); line-height: 1.2;
  margin-bottom: .5rem; padding: 0; letter-spacing: -.01em;
}
.devis__etape > .aide { color: var(--texte-doux); margin-bottom: 1.8rem; }
.devis__question { border: 0; margin: 0 0 2.25rem; padding: 0; min-width: 0; }
.devis__question:last-of-type { margin-bottom: 0; }
.devis__question > legend {
  font-size: clamp(1.4rem, 1vw + 1.05rem, 1.75rem); font-weight: 650; color: var(--petrole); line-height: 1.2;
  margin-bottom: 1rem; padding: 0; letter-spacing: -.01em;
}
.devis__question > .aide { color: var(--texte-doux); margin: -.5rem 0 1rem; }
.devis__etape:focus { outline: none; }

.cartes-choix { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); margin-bottom: 1rem; }
.cartes-choix--liste { grid-template-columns: 1fr; }
@media (min-width: 640px) { .cartes-choix--liste { grid-template-columns: 1fr 1fr; } }
.carte-choix { position: relative; }
.carte-choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.carte-choix label {
  display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; height: 100%;
  padding: 1.2rem 1.2rem 1.1rem; min-height: 4rem; cursor: pointer;
  background: var(--blanc); border: 2px solid var(--ligne); border-radius: var(--rayon);
  font-weight: 600; font-size: 1.1rem; line-height: 1.3; margin: 0;
  transition: border-color .12s, background-color .12s;
}
.cartes-choix--liste .carte-choix label { flex-direction: row; align-items: center; padding-block: 1rem; }
.carte-choix label small { display: block; font-weight: 400; font-size: .98rem; color: var(--texte-doux); margin-top: .15rem; }
.carte-choix svg { width: 2.2rem; height: 2.2rem; stroke: var(--petrole); flex: none; }
.carte-choix label:hover { border-color: #9fb0b2; }
.carte-choix input:checked + label { border-color: var(--petrole); background: var(--petrole-pale); }
.carte-choix input:focus-visible + label { outline: 3px solid var(--petrole); outline-offset: 2px; }
/* coche visible quand sélectionné */
.carte-choix label::after {
  content: ""; position: absolute; top: .8rem; right: .8rem; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  border: 2px solid var(--ligne); background: var(--blanc);
}
.carte-choix input[type="checkbox"] + label::after { border-radius: 4px; }
.carte-choix input:checked + label::after {
  border-color: var(--petrole);
  background: var(--petrole) 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.cartes-choix--liste .carte-choix label { padding-right: 3rem; }
.cartes-choix--liste .carte-choix label::after { top: 50%; translate: 0 -50%; }

.devis__nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ligne); }
.devis__nav .bouton[hidden] { display: none; }
.devis__nav-droite { margin-left: auto; }
.recap { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1.5rem; margin: 1.5rem 0; }
.recap dl { display: grid; gap: .3rem 1.5rem; margin: 0; }

.recap dt { font-weight: 620; color: var(--texte-doux); }
.recap dd { margin: 0 0 .6rem; }
.devis__envoi-erreur { background: #fbeceb; border: 1px solid #e8b4ae; padding: 1rem 1.2rem; border-radius: var(--rayon-petit); color: #7d1d14; }

/* Pages de texte (mentions, confidentialité) */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.6rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }

/* 11. Utilitaires */
.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.centre { text-align: center; }

/* Mode relecture : ajoutez ?valider à l'adresse pour encadrer tout ce qui reste à valider */
.mode-valider [data-a-valider] { outline: 2px dashed #c26a00; outline-offset: 4px; position: relative; }
.mode-valider [data-a-valider]::before {
  content: "À valider : " attr(data-a-valider); position: absolute; top: -1.6rem; left: 0; z-index: 5;
  font-size: .8rem; font-weight: 600; background: #fff3e0; color: #6b3a00; padding: .1rem .4rem; border-radius: 3px; white-space: nowrap;
}

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

@media print {
  .entete .nav, .barre-appel, .pied__reseaux { display: none; }
  body { background: #fff; }
}
.suite { margin: 2rem 0 0; }
.note-bouton { margin: .8rem 0 0; font-size: 1rem; }
.apercu--duo { grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .apercu--duo { grid-template-columns: 1fr 1fr; } }
.apercu--duo .photo { aspect-ratio: 3 / 4; }
#galerie-section { padding-top: 2.5rem; }
.champ--groupe { border: 0; padding: 0; margin: 0 0 1.3rem; min-width: 0; }
/* Sur la page devis, la barre d'appel fixe gênerait les boutons Retour / Suivant */
@media (max-width: 767px) {
  .page-devis { padding-bottom: 0; }
  .page-devis .barre-appel { display: none; }
}
@media (min-width: 860px) { .cartes-choix--projet { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 639px) {
  .cartes-choix--projet label { flex-direction: row; align-items: center; padding-right: 3rem; }
  .cartes-choix--projet .carte-choix label::after { top: 50%; translate: 0 -50%; }
}
@media (min-width: 640px) { .recap dl { grid-template-columns: 17rem 1fr; } }
.adresse { font-style: normal; margin-bottom: .3rem; }
#contact-devis { margin-top: 2.5rem; }
#contact-devis h3 { margin-bottom: .4rem; }
#contact-section h2 { font-size: 1.6rem; margin-bottom: 1.4rem; }
#texte-legal { padding-top: 2.5rem; }
/* Ajustements après relecture des captures */
.deux-colonnes > .titre-section { margin-bottom: 0; }
@media (max-width: 639px) {
  .galerie { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
}
@media (max-width: 899px) {
  .apercu > :nth-child(3):last-child { grid-column: span 2; aspect-ratio: 16 / 9; }
}
.conteneur.prose { max-width: var(--largeur); }
.conteneur.prose > * { max-width: 46rem; }
.est-masque { visibility: hidden; }
.galerie__compte { min-height: 1.6em; }
