/* ==========================================================================
   Ghallouch Construction & Espaces Verts — feuille de style
   ========================================================================== */

:root {
  --pierre: #f3efe7;
  --papier: #fbf9f5;
  --encre: #1d211f;
  --encre-2: #4a504c;
  --encre-3: #6c716d;
  --trait: #ddd6c8;
  --terre: #b5562b;
  --terre-fonce: #94431f;
  --vert: #4a6b3f;
  --vert-fonce: #34502c;
  --nuit: #1f2622;
  --nuit-2: #2a332e;

  --f-titre: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-texte: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;

  --rayon: 4px;
  --largeur: 1180px;
  --gouttiere: clamp(16px, 4vw, 40px);
  --barre-mobile: 0px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--pierre);
  color: var(--encre);
  font-family: var(--f-texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-bottom: var(--barre-mobile);
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  font-family: var(--f-titre);
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }

.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px;
}

.lien-evitement {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--encre); color: #fff; padding: 10px 14px; border-radius: var(--rayon);
}
.lien-evitement:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--terre); outline-offset: 2px; }

/* Surtitre ---------------------------------------------------------------- */
.surtitre {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-titre); font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--vert);
  margin-bottom: 14px;
}
.surtitre::before { content: ""; width: 22px; height: 2px; background: currentColor; }

/* Boutons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--f-titre); font-weight: 700; font-size: 1rem; letter-spacing: .01em;
  text-decoration: none; border-radius: var(--rayon); border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-principal { background: var(--terre); color: #fff; }
.btn-principal:hover { background: var(--terre-fonce); }
.btn-contour { border-color: var(--encre); color: var(--encre); background: transparent; }
.btn-contour:hover { background: var(--encre); color: #fff; }
.btn-clair { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn-clair:hover { background: #fff; color: var(--encre); border-color: #fff; }

/* En-tête ----------------------------------------------------------------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: var(--papier);
  border-bottom: 1px solid var(--trait);
}
.entete .conteneur { display: flex; align-items: center; gap: 24px; min-height: 76px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--encre); flex: none; }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo-texte { display: flex; flex-direction: column; line-height: 1; }
.logo-nom { font-family: var(--f-titre); font-weight: 800; font-size: 1.3rem; letter-spacing: .11em; }
.logo-sous {
  display: flex; align-items: center; gap: 6px; margin-top: 6px;
  font-family: var(--f-titre); font-weight: 500; font-size: .58rem; letter-spacing: .16em; color: var(--encre-2);
}
.logo-sous::before { content: ""; width: 14px; height: 2px; background: var(--vert); }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 10px 12px; white-space: nowrap; text-decoration: none;
  font-family: var(--f-titre); font-weight: 600; font-size: .95rem; color: var(--encre-2);
  border-radius: var(--rayon);
}
.nav a:hover { color: var(--encre); background: var(--pierre); }
.nav a[aria-current="page"] { color: var(--encre); box-shadow: inset 0 -2px 0 var(--terre); border-radius: 0; }

.entete-actions { display: flex; align-items: center; gap: 12px; }
.entete-tel {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--f-titre); font-weight: 700; white-space: nowrap;
}
.entete-tel svg { width: 18px; height: 18px; color: var(--terre); }
.entete .btn { min-height: 42px; padding: 8px 16px; font-size: .95rem; }

.menu-bouton {
  display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--trait);
  background: var(--papier); border-radius: var(--rayon); cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.menu-bouton span, .menu-bouton span::before, .menu-bouton span::after {
  display: block; width: 20px; height: 2px; background: var(--encre); position: relative; transition: transform .2s;
}
.menu-bouton span::before, .menu-bouton span::after { content: ""; position: absolute; left: 0; }
.menu-bouton span::before { top: -6px; }
.menu-bouton span::after { top: 6px; }
.menu-bouton[aria-expanded="true"] span { background: transparent; }
.menu-bouton[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-bouton[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .entete-tel { display: none; }
}

@media (max-width: 1000px) {
  :root { --barre-mobile: 68px; }
  .entete .conteneur { min-height: 64px; }
  .menu-bouton { display: inline-flex; }
  .entete-actions { display: none; }
  .nav {
    position: fixed; inset: 64px 0 0 0; background: var(--papier);
    padding: 16px var(--gouttiere) 120px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.ouvert { opacity: 1; transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 16px 4px; font-size: 1.15rem; border-bottom: 1px solid var(--trait); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--terre); padding-left: 14px; }
  .logo svg { width: 34px; height: 34px; }
  .logo-nom { font-size: 1.1rem; }
  .logo-sous { font-size: .5rem; letter-spacing: .12em; }
}

/* Barre d'action mobile --------------------------------------------------- */
.barre-mobile { display: none; }
@media (max-width: 1000px) {
  .barre-mobile {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: var(--papier); border-top: 1px solid var(--trait);
    box-shadow: 0 -6px 18px rgba(29, 33, 31, .08);
  }
  .barre-mobile .btn { min-height: 50px; padding: 10px; font-size: 1rem; }
  .barre-mobile .btn-contour { border-color: var(--encre); }
}

/* Héros d'accueil --------------------------------------------------------- */
.heros {
  position: relative; overflow: hidden; color: #fff; background: var(--nuit);
}
.heros::before,
.page-entete::before {
  /* appareil de pierres en filigrane */
  content: ""; position: absolute; inset: 0; opacity: .09; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='64'%3E%3Cpath d='M0 .75H128M0 32.75H128M.75 0V32M64.75 32V64' stroke='%23fff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-size: 128px 64px;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 75%);
          mask-image: linear-gradient(100deg, transparent 30%, #000 75%);
}
.heros .conteneur {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: end;
  padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(48px, 7vw, 88px);
}
.heros .surtitre { color: #a9c49b; }
.heros h1 { max-width: 15ch; }
.heros h1 em { font-style: normal; color: #e9a27f; }
.heros-intro { font-size: 1.2rem; color: rgba(255,255,255,.82); max-width: 54ch; margin-bottom: 28px; }
.heros-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.heros-carte {
  background: var(--nuit-2); border: 1px solid rgba(255,255,255,.1); border-radius: var(--rayon);
  padding: 26px;
}
.heros-carte h2 { font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 600; margin-bottom: 16px; }
.heros-carte ul { list-style: none; margin: 0; padding: 0; }
.heros-carte li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); }
.heros-carte li:first-child { border-top: 0; padding-top: 0; }
.heros-carte svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: #a9c49b; }
.heros-carte strong { display: block; font-family: var(--f-titre); }
.heros-carte span { color: rgba(255,255,255,.7); font-size: .95rem; }

@media (max-width: 1000px) {
  .heros .conteneur { grid-template-columns: 1fr; gap: 36px; }
  .heros-actions .btn { flex: 1 1 220px; }
}

/* Bandeau de garanties ---------------------------------------------------- */
.garanties { background: var(--papier); border-bottom: 1px solid var(--trait); }
.garanties ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.garanties li { padding: 22px 20px; border-left: 1px solid var(--trait); }
.garanties li:first-child { border-left: 0; padding-left: 0; }
.garanties strong { display: block; font-family: var(--f-titre); font-size: 1.05rem; }
.garanties span { color: var(--encre-2); font-size: .95rem; }
@media (max-width: 1000px) {
  .garanties ul { grid-template-columns: 1fr 1fr; }
  .garanties li { padding: 18px 14px; border-left: 0; border-top: 1px solid var(--trait); }
  .garanties li:nth-child(-n+2) { border-top: 0; }
  .garanties li:nth-child(odd) { padding-left: 0; }
  .garanties li:nth-child(even) { border-left: 1px solid var(--trait); }
}

/* Sections ---------------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-papier { background: var(--papier); border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.section-sombre { background: var(--nuit); color: #fff; }
.section-sombre .surtitre { color: #a9c49b; }
.section-entete { max-width: 680px; margin-bottom: 40px; }
.section-entete p { color: var(--encre-2); font-size: 1.1rem; }
.section-sombre .section-entete p { color: rgba(255,255,255,.75); }

/* Cartes de services ------------------------------------------------------ */
.services { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.service {
  position: relative; display: flex; flex-direction: column;
  background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 30px 28px; text-decoration: none; transition: border-color .15s, transform .15s;
}
.service:hover { border-color: var(--encre); transform: translateY(-2px); }
.service-principal { background: var(--encre); color: #fff; border-color: var(--encre); }
.service-principal:hover { border-color: var(--terre); }
.service-etiquette {
  align-self: flex-start; font-family: var(--f-titre); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--encre);
  background: #e9a27f; padding: 4px 8px; border-radius: 2px; margin-bottom: 18px;
}
.service-num { font-family: var(--f-titre); font-weight: 800; font-size: .85rem; color: var(--encre-3); margin-bottom: 18px; letter-spacing: .1em; }
.service-principal .service-num { color: rgba(255,255,255,.5); }
.service h3 { font-size: 1.45rem; }
.service p { color: var(--encre-2); }
.service-principal p { color: rgba(255,255,255,.78); }
.service ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 6px; }
.service li {
  font-size: .88rem; padding: 3px 10px; border: 1px solid var(--trait); border-radius: 999px; color: var(--encre-2);
}
.service-principal li { border-color: rgba(255,255,255,.22); color: rgba(255,255,255,.85); }
.service-lien {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-titre); font-weight: 700; color: var(--terre);
}
.service-principal .service-lien { color: #e9a27f; }
.service-lien svg { width: 18px; height: 18px; transition: transform .15s; }
.service:hover .service-lien svg { transform: translateX(4px); }
@media (max-width: 980px) { .services { grid-template-columns: 1fr; } }


/* Photo des cartes de service */
.service-photo {
  margin: -30px -28px 24px; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--rayon) var(--rayon) 0 0; background: var(--trait);
}
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.service:hover .service-photo img { transform: scale(1.04); }
.service-principal .service-photo { position: relative; }
.service-principal .service-etiquette { position: absolute; left: 20px; top: 20px; margin: 0; }

/* Engagements ------------------------------------------------------------- */
.engagements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--encre); }
.engagement { padding: 28px 28px 8px 0; }
.engagement + .engagement { padding-left: 28px; border-left: 1px solid var(--trait); }
.engagement-num { font-family: var(--f-titre); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--terre); margin-bottom: 14px; }
.engagement p { color: var(--encre-2); }
@media (max-width: 860px) {
  .engagements { grid-template-columns: 1fr; }
  .engagement, .engagement + .engagement { padding: 24px 0 8px; border-left: 0; border-top: 1px solid var(--trait); }
  .engagement:first-child { border-top: 0; }
}

/* Clients ----------------------------------------------------------------- */
.clients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.client { border-top: 3px solid var(--vert); background: var(--nuit-2); padding: 24px; border-radius: 0 0 var(--rayon) var(--rayon); }
.client h3 { font-size: 1.1rem; }
.client p { color: rgba(255,255,255,.72); font-size: .97rem; margin: 0; }
@media (max-width: 980px) { .clients { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .clients { grid-template-columns: 1fr; } }

/* Déroulement ------------------------------------------------------------- */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: etape; }
.etapes li { counter-increment: etape; position: relative; padding-top: 56px; }
.etapes li::before {
  content: counter(etape, decimal-leading-zero);
  position: absolute; top: 0; left: 0; width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--encre); color: #fff; font-family: var(--f-titre); font-weight: 800; font-size: .9rem; border-radius: 2px;
}
.etapes li::after { content: ""; position: absolute; top: 20px; left: 52px; right: 0; height: 1px; background: var(--trait); }
.etapes li:last-child::after { display: none; }
.etapes p { color: var(--encre-2); margin: 0; }
@media (max-width: 860px) {
  .etapes { grid-template-columns: 1fr; gap: 28px; }
  .etapes li { padding: 0 0 0 60px; }
  .etapes li::after { display: none; }
}

/* Zone d'intervention ----------------------------------------------------- */
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.zone-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.zone-colonnes h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; padding-bottom: 10px; border-bottom: 2px solid var(--encre); }
.zone-colonnes ul { list-style: none; margin: 0; padding: 0; }
.zone-colonnes li { padding: 7px 0; border-bottom: 1px solid var(--trait); color: var(--encre-2); }
@media (max-width: 860px) { .zone { grid-template-columns: 1fr; gap: 28px; } }

/* Appel à l'action -------------------------------------------------------- */
.appel {
  background: var(--terre); color: #fff;
}
.appel .conteneur {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding-top: 48px; padding-bottom: 48px;
}
.appel h2 { margin: 0 0 6px; }
.appel p { margin: 0; color: rgba(255,255,255,.88); font-size: 1.1rem; }
.appel-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.appel .btn-blanc { background: #fff; color: var(--encre); }
.appel .btn-blanc:hover { background: var(--encre); color: #fff; }

/* En-tête de page interne ------------------------------------------------- */
.page-entete { background: var(--nuit); color: #fff; position: relative; overflow: hidden; }
.page-entete .conteneur { position: relative; z-index: 2; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-entete .surtitre { color: #a9c49b; }
.page-entete h1 { max-width: 20ch; }
.page-entete p { color: rgba(255,255,255,.8); font-size: 1.15rem; max-width: 62ch; margin: 0; }
.fil {
  font-size: .9rem; color: rgba(255,255,255,.6); margin-bottom: 20px;
}
.fil ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.fil li + li::before { content: "/"; margin-right: 6px; color: rgba(255,255,255,.35); }
.fil a { color: rgba(255,255,255,.8); }

/* Prestations détaillées -------------------------------------------------- */
.mise-en-page { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.encart {
  position: sticky; top: 100px;
  background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 26px;
}
.encart h2 { font-size: 1.3rem; }
.encart p { color: var(--encre-2); font-size: .98rem; }
.encart .btn { width: 100%; margin-top: 10px; }
.encart ul { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--trait); }
.encart li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--trait); font-size: .95rem; }
.encart li svg { width: 18px; height: 18px; flex: none; color: var(--vert); margin-top: 3px; }
@media (max-width: 980px) {
  .mise-en-page { grid-template-columns: 1fr; gap: 40px; }
  .encart { position: static; }
}

.prestations { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.prestation { padding: 26px 0; border-top: 1px solid var(--trait); }
.prestation h3 { display: flex; gap: 12px; align-items: baseline; }
.prestation h3::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--terre); transform: translateY(-2px); }
.prestation p { color: var(--encre-2); margin: 0; }
@media (max-width: 720px) { .prestations { grid-template-columns: 1fr; } }

.texte-long { max-width: 70ch; }
.texte-long p { color: var(--encre-2); }
.texte-long h2 { margin-top: 1.2em; }

.liste-coche { list-style: none; padding: 0; margin: 0 0 1.2em; }
.liste-coche li { position: relative; padding: 6px 0 6px 28px; color: var(--encre-2); }
.liste-coche li::before {
  content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 7px;
  border-left: 2px solid var(--vert); border-bottom: 2px solid var(--vert); transform: rotate(-45deg);
}

/* Galerie ----------------------------------------------------------------- */
.galerie-section { padding-top: 0; }
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.galerie-n1, .galerie-n2 { grid-template-columns: repeat(2, 1fr); }
.galerie-n4 { grid-template-columns: repeat(4, 1fr); }
.galerie-n5 { grid-template-columns: repeat(6, 1fr); }
.galerie-n5 .galerie-item { grid-column: span 2; }
.galerie-n5 .galerie-item:nth-child(-n+2) { grid-column: span 3; aspect-ratio: 16 / 10; }
@media (max-width: 700px) {
  .galerie, .galerie-n4, .galerie-n5 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .galerie-n5 .galerie-item, .galerie-n5 .galerie-item:nth-child(-n+2) { grid-column: auto; aspect-ratio: 4 / 3; }
  .galerie-n3 .galerie-item:first-child,
  .galerie-n5 .galerie-item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
}
.galerie-item {
  position: relative; display: block; padding: 0; border: 0; cursor: zoom-in;
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--rayon); background: var(--trait);
}
.galerie-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.galerie-item:hover img { transform: scale(1.04); }
.galerie-vide {
  border: 1px dashed var(--trait); border-radius: var(--rayon); padding: 32px; text-align: center; color: var(--encre-3);
  background: var(--papier);
}

.visionneuse {
  position: fixed; inset: 0; z-index: 300; background: rgba(15, 18, 16, .94);
  display: none; align-items: center; justify-content: center; padding: 56px 16px;
}
.visionneuse.ouverte { display: flex; }
.visionneuse figure { margin: 0; max-width: 1200px; width: 100%; text-align: center; }
.visionneuse img { max-height: calc(100vh - 160px); width: auto; max-width: 100%; margin: 0 auto; border-radius: 2px; }
.visionneuse figcaption { color: rgba(255,255,255,.75); margin-top: 12px; font-size: .95rem; }
.visionneuse button {
  position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center;
}
.visionneuse button:hover { background: rgba(255,255,255,.25); }
.visionneuse button svg { width: 22px; height: 22px; }
.vis-fermer { top: 14px; right: 14px; }
.vis-prec { left: 14px; top: 50%; transform: translateY(-50%); }
.vis-suiv { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .vis-prec, .vis-suiv { top: auto; bottom: 14px; transform: none; }
}

/* Formulaire de devis ----------------------------------------------------- */
.devis-grille { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
@media (max-width: 980px) { .devis-grille { grid-template-columns: 1fr; } }

.formulaire {
  background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: clamp(20px, 4vw, 40px);
}
.formulaire fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.formulaire legend {
  font-family: var(--f-titre); font-weight: 800; font-size: 1.15rem; margin-bottom: 16px; padding: 0;
  display: flex; align-items: center; gap: 10px;
}
.formulaire legend span {
  display: inline-grid; place-items: center; width: 26px; height: 26px; background: var(--encre); color: #fff;
  font-size: .8rem; border-radius: 2px;
}
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ-large { grid-column: 1 / -1; }
.champ label, .groupe-titre { font-weight: 600; font-size: .95rem; }
.champ .aide { font-size: .85rem; color: var(--encre-3); }
.facultatif { font-weight: 400; color: var(--encre-3); }
.champ input, .champ select, .champ textarea {
  width: 100%; font: inherit; color: var(--encre);
  background: #fff; border: 1px solid #c9c1b1; border-radius: var(--rayon);
  padding: 12px 14px; min-height: 48px;
}
.champ textarea { min-height: 150px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px rgba(181, 86, 43, .25); }
.champ.erreur input, .champ.erreur select, .champ.erreur textarea { border-color: #b3261e; }
.message-erreur { color: #b3261e; font-size: .88rem; display: none; }
.champ.erreur .message-erreur, .groupe.erreur .message-erreur { display: block; }
@media (max-width: 600px) { .champs { grid-template-columns: 1fr; } }

.choix { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.choix label {
  position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1px solid #c9c1b1; border-radius: var(--rayon); padding: 12px 14px; background: #fff; font-weight: 500;
}
.choix input { width: 18px; height: 18px; accent-color: var(--terre); margin: 0; flex: none; }
.choix label:has(input:checked) { border-color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); }

.consentement { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--encre-2); }
.consentement input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--terre); flex: none; }
.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formulaire-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.formulaire-pied .btn { min-width: 240px; }
.formulaire-pied small { color: var(--encre-3); }

.retour {
  display: none; margin-top: 20px; padding: 16px 18px; border-radius: var(--rayon); font-weight: 500;
}
.retour.succes { display: block; background: #e5eedf; color: var(--vert-fonce); border: 1px solid #c1d4b6; }
.retour.echec { display: block; background: #f8e3dc; color: #7a2e13; border: 1px solid #e8bfae; }

.contact-carte { background: var(--encre); color: #fff; border-radius: var(--rayon); padding: 28px; }
.contact-carte h2 { font-size: 1.3rem; }
.contact-carte p { color: rgba(255,255,255,.75); }
.contact-ligne { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); text-decoration: none; }
.contact-ligne svg { width: 22px; height: 22px; color: #e9a27f; flex: none; }
.contact-ligne small { display: block; color: rgba(255,255,255,.6); font-size: .82rem; }
.contact-ligne strong { font-family: var(--f-titre); font-size: 1.1rem; word-break: break-word; }
a.contact-ligne:hover strong { text-decoration: underline; }

/* Pied de page ------------------------------------------------------------ */
.pied { background: #161b18; color: rgba(255,255,255,.72); font-size: .97rem; }
.pied .conteneur { padding-top: 56px; padding-bottom: 32px; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.pied .logo { color: #fff; margin-bottom: 18px; }
.pied .logo-sous { color: rgba(255,255,255,.6); }
.pied h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 16px; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { padding: 4px 0; }
.pied a { color: rgba(255,255,255,.8); text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied-bas {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .88rem; color: rgba(255,255,255,.5);
}
@media (max-width: 1000px) { .pied-grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pied-grille { grid-template-columns: 1fr; gap: 28px; } }

/* Divers ------------------------------------------------------------------ */
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .deux-colonnes { grid-template-columns: 1fr; gap: 32px; } }

.chiffre-cle { border-left: 3px solid var(--terre); padding: 4px 0 4px 20px; margin-bottom: 24px; }
.chiffre-cle strong { display: block; font-family: var(--f-titre); font-size: 2.2rem; line-height: 1.1; }
.chiffre-cle span { color: var(--encre-2); }

.mentions h2 { font-size: 1.35rem; margin-top: 1.8em; }
.mentions p, .mentions li { color: var(--encre-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
