/* =========================================================
   Q.T.M — Quentin Thonat Multiservices
   Feuille de style unique du site.
   Pour changer une couleur partout : modifie la variable dans :root.
   ========================================================= */

/* ---------- Polices (hébergées sur le site : rien n'est chargé chez Google) ---------- */
@font-face { font-family: 'Bricolage Grotesque'; src: url('../fonts/bricolage-grotesque.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('../fonts/instrument-sans-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('../fonts/instrument-sans-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('../fonts/instrument-sans-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Couleurs */
  --foret: #0B4D27;        /* vert foncé : pied de page, badges */
  --feuille: #2E8B2F;      /* vert du logo : coches, sélection, soulignés */
  --sauge: #E3F2CB;        /* vert anis clair : pictos, surlignage */
  --sauge-moyen: #A9D86A;  /* blocs décoratifs */
  --fond: #FBFBF6;         /* blanc cassé : fond principal */
  --fond-alt: #F1F7E9;     /* sauge très clair : sections alternées */
  --texte: #10301B;        /* texte principal */
  --texte-2: #42574A;      /* texte secondaire */
  --texte-3: #56685A;      /* légendes */
  --ligne: #DCE6D2;        /* bordures */
  --action: #FEC40A;       /* jaune du logo : boutons « Demander un devis » */
  --action-clair: #FEC40A; /* jaune lisible sur fond foncé */
  --erreur: #8A2A0A;

  /* Typographie */
  --police-titre: 'Bricolage Grotesque', system-ui, sans-serif;
  --police-texte: 'Instrument Sans', system-ui, sans-serif;

  /* Mise en page */
  --largeur: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police-texte);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--texte); }
a:hover { color: var(--texte-2); }
h1, h2, h3 { font-family: var(--police-titre); margin: 0; }
p { margin: 0; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; }
.section--alt { background: var(--fond-alt); }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 16px 28px;
  border-radius: 2px; border: 0;
  font: inherit; font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer;
}
.bouton--action { background: var(--action); color: var(--texte); }
.bouton--action:hover { color: var(--texte); filter: brightness(.95); }
.bouton--contour { border: 1.5px solid var(--texte); color: var(--texte); background: transparent; }
.lien-souligne {
  font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none; border-bottom: 2px solid var(--feuille); padding-bottom: 2px;
}

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 246, .96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ligne);
}
.entete__barre {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 10px; padding-bottom: 10px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__img { height: 54px; width: auto; display: block; }
.pied__logo { height: 64px; width: auto; display: block; margin-bottom: 6px; }
.logo__nom { font-family: var(--police-titre); font-weight: 700; font-size: 22px; line-height: 1.1; display: block; }
.logo__sous-titre { font-size: 13px; font-weight: 600; color: var(--foret); display: block; line-height: 1.1; }
.nav { display: flex; align-items: center; gap: 24px; font-weight: 500; }
.nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav__tel { font-weight: 600; }
.nav .bouton { min-height: 44px; padding: 12px 18px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.nav__mobile { display: none !important; }
.icone-bouton {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--texte); border-radius: 2px; background: transparent; cursor: pointer; color: var(--texte);
}
.icone-bouton--plein { background: var(--foret); border-color: var(--foret); color: var(--fond); }
.menu-mobile { display: none; flex-direction: column; padding-bottom: 16px; }
.menu-mobile.ouvert { display: flex; }
.menu-mobile a { min-height: 52px; display: flex; align-items: center; font-size: 18px; text-decoration: none; border-bottom: 1px solid var(--ligne); }

@media (max-width: 860px) {
  .nav__bureau { display: none !important; }
  .nav__mobile { display: inline-flex !important; }
  .logo__sous-titre { display: none; }
  .nav { gap: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; padding: 128px 0 136px;
  background: var(--fond) url("../img/hero-fond.jpg") 70% 40% / cover no-repeat;
}
/* Voile crème : garde le texte lisible et le site doux, la haie reste visible à droite */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(251,251,246,.97) 0%, rgba(251,251,246,.93) 36%, rgba(251,251,246,.6) 56%, rgba(251,251,246,.08) 78%, rgba(251,251,246,0) 100%);
}
.hero__grille { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.hero__texte { flex: 0 1 600px; display: flex; flex-direction: column; gap: 26px; }
.surtitre { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--feuille); }
.hero h1 { font-weight: 600; font-size: clamp(38px, 5vw, 64px); line-height: 1.08; letter-spacing: -.025em; }
.surligne { background: linear-gradient(transparent 68%, var(--sauge) 68%, var(--sauge) 92%, transparent 92%); }
.hero__intro { font-size: 19px; max-width: 460px; color: var(--texte-2); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.avis-google {
  align-self: flex-start; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  padding: 10px 16px; background: rgba(255,255,255,.85); border: 1px solid var(--ligne);
  text-decoration: none; font-size: 15px; color: var(--texte); min-height: 44px; box-sizing: border-box;
}
.avis-google:hover { border-color: var(--texte); color: var(--texte); }
.avis-google__etoiles { color: var(--action); font-size: 17px; letter-spacing: 1px; }
.avis-google__lien { font-weight: 600; color: var(--foret); }
.hero__tel { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.hero__photo { flex: 1 1 340px; display: flex; justify-content: center; }
.hero__photo div { width: 100%; max-width: 440px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ligne); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Arguments ---------- */
.arguments { background: var(--fond-alt); padding: 44px 0; }
.arguments__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px 32px; }
.argument { display: flex; gap: 14px; align-items: flex-start; }
.picto { width: 44px; height: 44px; flex: none; background: var(--sauge); display: flex; align-items: center; justify-content: center; color: var(--foret); }
.argument strong { display: block; font-family: var(--police-titre); font-weight: 600; font-size: 18px; line-height: 1.25; }
.argument span { font-size: 15px; color: var(--texte-2); line-height: 1.45; }

/* ---------- Titres de section ---------- */
.etiquette { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--texte-2); }
.etiquette::before { content: ""; width: 10px; height: 10px; background: var(--action); flex: none; }
.titre-section { font-weight: 700; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.03em; }
.entete-section { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: 56px; }
.entete-section__titre { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.entete-section__aside { display: flex; flex-direction: column; gap: 14px; max-width: 380px; align-items: flex-start; color: var(--texte-2); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.carte-service {
  background: #fff; border: 1px solid var(--ligne); padding: 36px 32px 32px;
  display: flex; flex-direction: column; gap: 16px; min-height: 300px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.carte-service:hover { transform: translateY(-4px); border-color: var(--texte); box-shadow: 0 18px 40px rgba(16, 48, 27, .08); }
.carte-service__haut { display: flex; justify-content: space-between; align-items: flex-start; }
.carte-service__num { font-family: var(--police-titre); font-weight: 700; font-size: 64px; line-height: .9; color: #E2EDD3; letter-spacing: -.04em; }
.carte-service__haut i { width: 12px; height: 12px; background: var(--action); }
.carte-service h3 { margin-top: 12px; font-weight: 600; font-size: 28px; line-height: 1.15; }
.carte-service p { color: var(--texte-2); font-size: 16px; flex-grow: 1; }
.carte-service .lien-souligne { align-self: flex-start; }

/* ---------- Qui suis-je ---------- */
.qui { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.qui__photo { flex: 1 1 340px; position: relative; padding: 20px 0 0 20px; max-width: 520px; }
.qui__photo::before { content: ""; position: absolute; left: 0; top: 0; width: 60%; height: 60%; background: var(--sauge-moyen); }
.qui__img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.emplacement-photo {
  position: relative; aspect-ratio: 4 / 5; background: var(--ligne);
  display: flex; align-items: center; justify-content: center; padding: 32px; text-align: center; color: var(--texte-2); font-size: 14px;
}
.qui__texte { flex: 1 1 420px; display: flex; flex-direction: column; gap: 24px; }
.citation { font-family: var(--police-titre); font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; border-left: 4px solid var(--feuille); padding-left: 20px; }
.qui__texte .actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Zone ---------- */
.zone { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 56px; align-items: center; }
.zone__texte { display: flex; flex-direction: column; gap: 24px; }
.champ { display: flex; flex-direction: column; gap: 6px; position: relative; max-width: 460px; }
.champ label, .label { font-weight: 600; font-size: 15px; }
.champ input, .champ textarea {
  font: inherit; padding: 12px 14px; min-height: 48px;
  border: 1.5px solid #8A9585; border-radius: 0; background: #fff; color: var(--texte);
}
.liste-communes {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 20; margin: 4px 0 0; padding: 0; list-style: none;
  background: #fff; border: 1.5px solid var(--texte); max-height: 320px; overflow-y: auto;
  box-shadow: 0 12px 32px rgba(16, 48, 27, .18);
}
.liste-communes button {
  width: 100%; font: inherit; font-size: 16px; text-align: left; color: var(--texte); background: #fff;
  border: 0; border-bottom: 1px solid #EFF5E8; padding: 10px 14px; min-height: 44px; cursor: pointer;
  display: flex; justify-content: space-between; gap: 12px;
}
.liste-communes button:hover, .liste-communes button[aria-selected="true"] { background: #EAF6D9; }
.liste-communes small { color: var(--texte-3); font-size: 14px; }
.liste-communes .vide { padding: 14px; font-size: 15px; color: var(--texte-2); }
.resultat { max-width: 460px; background: #fff; border-top: 3px solid var(--feuille); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.resultat--hors { border-top-color: #8A9585; }
.resultat__nom { font-family: var(--police-titre); font-weight: 700; font-size: 26px; line-height: 1.15; }
.resultat__ok { display: flex; align-items: center; gap: 10px; color: var(--feuille); font-weight: 500; }
.carte { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid #D3DEC8; background: #E2EDD3; }
.carte > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carte > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.carte__rayon { position: absolute; left: 50%; transform: translate(-50%, -50%); background: var(--foret); color: var(--fond); font-weight: 600; font-size: 13px; padding: 3px 10px; }
.carte__voiron { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.carte__voiron i { width: 16px; height: 16px; background: var(--action); border: 3px solid var(--texte); border-radius: 50%; box-shadow: 0 0 0 3px #fff; }
.carte__voiron b { font-family: var(--police-titre); font-size: 14px; color: var(--texte); background: var(--action); padding: 2px 8px; }
.carte__repere { position: absolute; width: 18px; height: 18px; transform: translate(-50%, -50%); border: 3px solid var(--texte); border-radius: 50%; background: var(--action); box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); pointer-events: none; }
.carte__credit { position: absolute; right: 0; bottom: 0; font-size: 11px; background: rgba(255, 255, 255, .85); padding: 2px 8px; }

/* ---------- Avant / Après ---------- */
/* ---------- Galerie de chantiers ---------- */
.galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; margin-bottom: 72px; }
.galerie figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.galerie img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--ligne); }
.galerie figcaption { display: flex; flex-direction: column; gap: 2px; }
.galerie figcaption strong { font-family: var(--police-titre); font-weight: 600; font-size: 19px; }
.galerie figcaption span { font-size: 15px; color: var(--texte-2); }
.sous-titre-galerie { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; padding-top: 32px; border-top: 1px solid var(--ligne); }
.sous-titre-galerie h2 { font-weight: 600; font-size: 28px; letter-spacing: -.01em; }
.sous-titre-galerie p { margin: 0; color: var(--texte-2); }
.comparateurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; }
.comparateur { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.comparateur__image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ligne); user-select: none; }
.comparateur__apres, .comparateur__avant { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.comparateur__apres { background: var(--ligne); color: var(--texte-2); }
.comparateur__avant { background: #8A9585; color: var(--fond); clip-path: inset(0 50% 0 0); }
.comparateur__apres img, .comparateur__avant img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; font-size: 12px; font-weight: 600; letter-spacing: .1em; padding: 4px 10px; }
.badge--avant { left: 12px; background: var(--texte); color: var(--fond); }
.badge--apres { right: 12px; background: var(--action); color: var(--texte); }
.comparateur__ligne { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%); background: #fff; pointer-events: none; }
.comparateur__poignee { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(16, 48, 27, .3); pointer-events: none; }
.comparateur input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.comparateur figcaption strong { display: block; font-family: var(--police-titre); font-weight: 600; font-size: 21px; }
.comparateur figcaption span { color: var(--texte-3); font-size: 15px; }

/* Paire avant / après prise sous deux angles différents : affichée côte à côte */
.comparaison-cote { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.cote { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; aspect-ratio: 4 / 3; background: #fff; }
.cote > div { position: relative; overflow: hidden; background: var(--ligne); }
.cote img { width: 100%; height: 100%; object-fit: cover; display: block; }
.comparaison-cote figcaption strong { display: block; font-family: var(--police-titre); font-weight: 600; font-size: 21px; }
.comparaison-cote figcaption span { color: var(--texte-3); font-size: 15px; }

/* ---------- Bandeau final ---------- */
.bandeau { background: var(--foret); color: var(--fond); padding: 96px 0; }
.bandeau .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px 48px; }
.bandeau h2 { font-weight: 700; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -.035em; }
.bandeau p { font-size: 20px; color: #CDEBA3; margin-top: 16px; }
.bandeau .bouton--contour { border-color: #CDEBA3; color: var(--fond); }

/* ---------- Formulaire de devis ---------- */
.page-devis { max-width: 880px; margin: 0 auto; padding: 48px 24px 112px; display: flex; flex-direction: column; gap: 40px; }
.pastille { align-self: flex-start; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; background: var(--action); color: var(--texte); padding: 6px 14px; border-radius: 2px; }
.page-devis h1 { font-weight: 700; font-size: clamp(40px, 5.5vw, 64px); line-height: 1.02; letter-spacing: -.03em; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
legend { padding: 0; margin-bottom: 16px; font-family: var(--police-titre); font-weight: 600; font-size: 24px; }
.aide { font-size: 15px; color: var(--texte-2); margin-top: -8px; }
.choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.choix button {
  font: inherit; color: var(--texte); text-align: left; cursor: pointer;
  background: #fff; border: 2px solid var(--ligne); border-radius: 2px; padding: 24px; min-height: 160px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
}
.choix button[aria-pressed="true"] { background: #EAF6D9; border-color: var(--feuille); }
.choix strong { display: block; font-family: var(--police-titre); font-weight: 600; font-size: 21px; line-height: 1.2; }
.choix span span { font-size: 15px; color: var(--texte-2); }
.coordonnees { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: start; }
.label-ligne { display: flex; align-items: baseline; gap: 6px; line-height: 1.4; }
.obligatoire { color: var(--erreur); }
.facultatif { font-weight: 400; color: var(--texte-3); }
.combo { display: flex; }
.combo input { flex-grow: 1; min-width: 0; border-right: 0; }
.combo button { width: 48px; flex: none; border: 1.5px solid #8A9585; background: #fff; cursor: pointer; }
.petit { font-size: 13px; color: var(--texte-3); }
.champ textarea { resize: vertical; min-height: 140px; }
.erreur { padding: 14px 18px; background: #FBE9E2; color: var(--erreur); font-weight: 600; font-size: 15px; }
.confirmation { background: var(--foret); color: var(--fond); padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.confirmation p { color: #C9DBC4; }
.confirmation a { color: var(--action-clair); }
.confirmation .bouton--contour { align-self: flex-start; border-color: var(--fond); color: var(--fond); }

/* ---------- Pages simples (mentions légales) ---------- */
.page-texte { max-width: 880px; margin: 0 auto; padding: 48px 24px 112px; display: flex; flex-direction: column; gap: 28px; }
.page-texte h1 { font-weight: 700; font-size: clamp(40px, 5.5vw, 64px); line-height: 1.02; letter-spacing: -.03em; }
.page-texte section { display: flex; flex-direction: column; gap: 10px; padding-top: 28px; border-top: 1px solid var(--ligne); }
.page-texte h2 { font-weight: 600; font-size: 22px; }
.page-texte p { color: var(--texte-2); }

/* ---------- Pied de page ---------- */
.pied { background: var(--foret); color: #C9DBC4; padding: 72px 0 32px; }
.pied a { color: #C9DBC4; }
.pied__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 56px; }
.pied__col { display: flex; flex-direction: column; gap: 10px; }
.pied__marque { font-family: var(--police-titre); font-weight: 700; color: var(--fond); font-size: 24px; line-height: 1.15; }
.pied h2 { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #CDEBA3; margin-bottom: 6px; }
.pied__tel { color: var(--fond) !important; font-family: var(--police-titre); font-weight: 600; font-size: 24px; text-decoration: none; }
.pied .bouton { align-self: flex-start; margin-top: 8px; min-height: 44px; padding: 12px 20px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid #1E6136; font-size: 14px; }

[hidden] { display: none !important; }

/* Bouton jaune lisible dans le pied de page */
.pied .bouton--action, .pied .bouton--action:hover { color: var(--texte); }

/* Hero sur téléphone : photo portrait, voile vertical, la haie apparaît en bas */
@media (max-width: 860px) {
  .hero { padding: 64px 0 190px; background-position: 82% 50%; }
  .hero::before { background: linear-gradient(180deg, rgba(251,251,246,.97) 0%, rgba(251,251,246,.94) 55%, rgba(251,251,246,.45) 82%, rgba(251,251,246,.1) 100%); }
}
