/* Agence HT — feuille de style unique */

@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/fonts/inter-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts/bricolage-grotesque-700-latin.woff2) format('woff2');
}

:root {
  --encre: #14202E;
  --texte-2: #4A5565;
  --ligne: #E3E6EA;
  --fond: #FFFFFF;
  --fond-doux: #F4F6F5;
  --vert: #1E5B4A;
  --vert-fonce: #14402F;
  --vert-clair: #E6F0EC;
  --terre: #A34A24;
  --point: #E08A5F;
  --rayon: 16px;
  --titres: 'Bricolage Grotesque', system-ui, sans-serif;
  --corps: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--corps);
  font-size: 17px;
  line-height: 1.6;
  color: var(--encre);
  background: var(--fond);
}

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

a { color: var(--vert); }
a:hover { color: var(--vert-fonce); }

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

h1, h2, h3 { font-family: var(--titres); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.05; }
h2 { font-size: clamp(30px, 3.5vw, 42px); }
h3 { font-size: 24px; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.etroit { max-width: 780px; }

.lien-evitement {
  position: absolute; left: 16px; top: -60px;
  background: var(--encre); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 10;
}
.lien-evitement:focus { top: 12px; color: #fff; }

/* ---------- En-tête ---------- */

.entete { border-bottom: 1px solid var(--ligne); background: var(--fond); position: sticky; top: 0; z-index: 5; }
.entete .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }

.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); }
.marque:hover { color: var(--encre); }
.marque img { width: 38px; height: 38px; }
.marque span { font-family: var(--titres); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.marque b { color: var(--point); }

.nav { display: flex; align-items: center; gap: 28px; white-space: nowrap; font-size: 15px; font-weight: 500; }
.nav a { color: var(--encre); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--vert); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav .tel { display: inline-flex; align-items: center; gap: 6px; }
.nav .btn-plein, .nav .btn-plein:hover { color: #fff; text-decoration: none; }

.menu-mobile { display: none; }

@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-mobile { display: block; position: relative; }
  .menu-mobile summary {
    list-style: none; cursor: pointer; width: 48px; height: 48px; border: 1px solid var(--ligne);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
  }
  .menu-mobile summary::-webkit-details-marker { display: none; }
  .menu-mobile[open] .menu-panneau { display: flex; }
  .menu-panneau {
    display: none; position: absolute; right: 0; top: 58px; width: min(320px, calc(100vw - 32px));
    flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--ligne); border-radius: 14px;
    padding: 12px; box-shadow: 0 20px 40px rgba(20, 32, 46, 0.14);
  }
  .menu-panneau a { padding: 12px 14px; border-radius: 8px; color: var(--encre); text-decoration: none; font-weight: 500; }
  .menu-panneau a:hover { background: var(--fond-doux); }
  .menu-panneau .btn { margin-top: 6px; justify-content: center; color: #fff; }
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; font-family: inherit; line-height: 1.2;
}
.btn-plein { background: var(--vert); color: #fff; }
.btn-plein:hover { background: var(--vert-fonce); color: #fff; }
.btn-contour { border-color: #C9CFD6; color: var(--encre); background: #fff; }
.btn-contour:hover { border-color: var(--encre); color: var(--encre); }
.btn-grand { min-height: 54px; padding: 15px 26px; font-size: 17px; }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section-douce { background: var(--fond-doux); }
.section-sombre { background: var(--encre); color: #fff; }
.section-sombre .sous-titre { color: #C3CBD5; }

.surtitre { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--vert); }
.surtitre-terre { color: var(--terre); }
.sous-titre { font-size: 19px; color: var(--texte-2); max-width: 36em; }
.muet { color: var(--texte-2); }
.petit { font-size: 15px; }

.titre-section { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 48px; }

/* ---------- Héros ---------- */

.heros { padding: 80px 0 96px; }
.heros .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: center; }
.heros-texte { display: flex; flex-direction: column; gap: 24px; }

.vitrine { position: relative; padding: 0 40px 40px 0; }
.navigateur {
  border: 1px solid #D5DADF; border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 24px 60px rgba(20, 32, 46, 0.12);
}
.navigateur-barre {
  display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--ligne); background: #F6F7F8;
}
.navigateur-barre i { width: 10px; height: 10px; border-radius: 50%; background: #D5DADF; }
.navigateur-barre span {
  margin-left: 10px; font-size: 12px; color: var(--texte-2); background: #fff; border: 1px solid var(--ligne);
  border-radius: 6px; padding: 1px 10px;
}
.telephone {
  position: absolute; right: 0; bottom: 0; width: 28%; min-width: 120px; max-width: 170px;
  border: 6px solid var(--encre); border-radius: 26px; overflow: hidden; background: #fff;
  box-shadow: 0 18px 40px rgba(20, 32, 46, 0.25);
}

/* ---------- Cartes « exemple » ---------- */

.exemples { display: flex; flex-direction: column; gap: 32px; }
.exemple {
  background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center;
}
.exemple-inverse { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.exemple-inverse .exemple-image { order: 2; }
.exemple-image { background: var(--fond-doux); }
.exemple-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.exemple-texte { padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.exemple-texte h3 { font-size: 28px; line-height: 1.2; }

@media (max-width: 860px) {
  .exemple, .exemple-inverse { grid-template-columns: 1fr; }
  .exemple-inverse .exemple-image { order: 0; }
  .exemple-texte { padding: 28px 24px 32px; }
}

.liste-coches { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.liste-coches li { display: flex; gap: 10px; }
.liste-coches svg { flex-shrink: 0; margin-top: 4px; }

.lien-fleche { font-weight: 600; text-decoration: none; }
.lien-fleche::after { content: " →"; }
.lien-terre { color: var(--terre); }
.lien-terre:hover { color: #7E3519; }

/* ---------- Grille des détails ---------- */

.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px 40px; counter-reset: detail; }
.detail { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid #C9CFD6; padding-top: 20px; }
.detail::before {
  counter-increment: detail; content: counter(detail, decimal-leading-zero);
  font-family: var(--titres); font-weight: 700; font-size: 15px; color: var(--vert); letter-spacing: 0.02em;
}
.grille-terre .detail::before { color: var(--terre); }
.detail h3 { font-family: var(--titres); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.detail p { color: var(--texte-2); font-size: 16px; }

/* ---------- Étapes + formulaire ---------- */

.deux-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: start; }
.colonne { display: flex; flex-direction: column; gap: 28px; }

.etapes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 20px; }
.etapes li { display: flex; gap: 16px; align-items: flex-start; }
.etapes .num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--vert); color: var(--vert);
  font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.etapes strong { display: block; }

.formulaire {
  background: var(--fond-doux); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
}
.champs-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label { font-size: 14px; font-weight: 600; }
.champ input, .champ textarea, .champ select {
  font: inherit; font-size: 16px; min-height: 48px; padding: 10px 14px; border: 1px solid #B9C1C9;
  border-radius: 8px; background: #fff; color: var(--encre); width: 100%;
}
.champ textarea { resize: vertical; min-height: 104px; }
.champ input:focus, .champ textarea:focus, .champ select:focus { outline: 3px solid var(--vert-clair); border-color: var(--vert); }
.consentement { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--texte-2); line-height: 1.5; }
.consentement input { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; accent-color: var(--vert); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire .btn { justify-content: center; }

/* ---------- Bandeau d'appel ---------- */

.appel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.appel h2 { max-width: 640px; }
.section-sombre .btn-plein { background: #fff; color: var(--encre); }
.section-sombre .btn-plein:hover { background: var(--vert-clair); color: var(--encre); }

/* ---------- Pages de texte (légal) ---------- */

.texte-long { display: flex; flex-direction: column; gap: 16px; }
.texte-long h2 { font-size: 26px; margin-top: 24px; }
.texte-long ul { margin: 0; padding-left: 22px; }
.a-completer { background: #FFF4D6; padding: 0 4px; border-radius: 3px; }

/* ---------- Pied de page ---------- */

.pied { border-top: 1px solid var(--ligne); padding: 48px 0 40px; font-size: 15px; color: var(--texte-2); }
.pied-haut { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
.pied-col { display: flex; flex-direction: column; gap: 8px; }
.pied-col strong { color: var(--encre); font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.pied a { color: var(--texte-2); }
.pied a:hover { color: var(--encre); }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--ligne); padding-top: 24px; font-size: 14px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .heros { padding: 48px 0 64px; }
  .vitrine { padding: 0 24px 32px 0; }
  .formulaire { padding: 24px 20px; }
  .titre-section { margin-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Utilitaires ---------- */

.vitrine-seule { padding: 0; }
.serre { gap: 12px; }
.tres-serre { gap: 6px; }
.titre-section.sans-marge { margin-bottom: 0; }

/* ---------- WhatsApp mobile ---------- */

.entete-actions { display: flex; align-items: center; gap: 10px; }
.wa-mobile { display: none; }
@media (max-width: 1100px) {
  .wa-mobile {
    display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 10px;
    background: var(--vert); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none;
  }
  .wa-mobile:hover { background: var(--vert-fonce); color: #fff; }
}
@media (max-width: 380px) { .marque span { font-size: 19px; } .wa-mobile { padding: 0 12px; } }

/* ---------- Héros mobile : l'image juste sous le titre ---------- */

.heros .accroche { font-family: var(--titres); font-weight: 700; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.3; color: var(--vert); letter-spacing: -0.01em; }
@media (max-width: 700px) {
  .heros .wrap { display: flex; flex-direction: column; gap: 22px; }
  .heros-texte { display: contents; }
  .heros-texte > * { order: 3; }
  .heros-texte > .surtitre, .heros-texte > h1 { order: 1; }
  .heros .vitrine { order: 2; }
}

/* ---------- FAQ ---------- */

.faq { display: flex; flex-direction: column; border-top: 1px solid #C9CFD6; }
.faq details { border-bottom: 1px solid #C9CFD6; }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--titres); font-weight: 700; font-size: 20px; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 26px; color: var(--vert); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 24px; color: var(--texte-2); max-width: 46em; }
