/* ─────────────────────────────────────────────────────────────────────
   David Teissier Paysage — jetons repris du design system « organic »
   du projet Claude Design. Ne pas retoucher les valeurs de couleur :
   elles sont vérifiées par tests/test_assets.php.
   ───────────────────────────────────────────────────────────────── */

@import url("polices.css");

:root {
  --color-bg: #f5ead8;
  --color-surface: #ebddc5;
  --color-text: #201e1d;

  --color-neutral-100: #f9f4ed;
  --color-neutral-200: #eee7db;
  --color-neutral-300: #dcd3c4;

  --color-accent-700: #8c491a;
  --color-accent-800: #643312;

  --color-accent-2-100: #f0fae1;
  --color-accent-2-200: #e1eecc;
  --color-accent-2-700: #56633f;
  --color-accent-2-800: #3d472b;
  --color-accent-2-900: #272e1b;

  --font-heading: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-heading-weight: 600;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --largeur-max: 1180px;
  --gouttiere: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  margin: 0;
  line-height: 1.14;
}

p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

a { color: var(--color-accent-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-800); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent-2-800); outline-offset: 3px; }
::selection { background: var(--color-accent-2-200); }

/* Lien d'évitement : visible seulement au clavier. */
.evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--color-accent-2-900);
  color: var(--color-bg);
  text-decoration: none;
}
.evitement:focus { left: 0; }

.conteneur {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding-inline: var(--gouttiere);
}

/* ── Boutons ─────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8.8px 15.84px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}

.btn-vert {
  background: var(--color-accent-2-800);
  border-color: var(--color-accent-2-800);
  color: var(--color-bg);
}
.btn-vert:hover {
  background: var(--color-accent-2-900);
  border-color: var(--color-accent-2-900);
  color: var(--color-bg);
}

.btn-clair {
  background: var(--color-bg);
  border-color: var(--color-bg);
  color: var(--color-accent-2-900);
  font-weight: 600;
}
.btn-clair:hover { background: var(--color-accent-2-100); color: var(--color-accent-2-900); }

.btn-contour {
  background: transparent;
  border-color: rgba(245, 234, 216, .5);
  color: var(--color-bg);
}
.btn-contour:hover { background: rgba(245, 234, 216, .12); color: var(--color-bg); }

/* ── Fragments de section réutilisés ─────────────────────────────── */

.kicker {
  display: block;
  margin-bottom: 16px;
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-accent-2-800);
}
.kicker-clair { color: var(--color-accent-2-200); }

.titre-section { font-size: clamp(28px, 3.2vw, 40px); }
.titre-bloc { font-size: clamp(26px, 3vw, 36px); }

.lead {
  font-size: 16px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--color-text) 80%, transparent);
}

.section { padding: 88px 0 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ── Bandeau et en-tête ──────────────────────────────────────────── */

.bandeau { background: var(--color-accent-2-900); color: var(--color-bg); }
.bandeau-interieur {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding-block: 9px;
  font-size: 13.5px;
  letter-spacing: .01em;
}
.bandeau-liens { display: flex; flex-wrap: wrap; gap: 20px; }
.bandeau a { color: var(--color-bg); text-decoration: none; }
.bandeau a:hover { text-decoration: underline; }
.bandeau-tel { font-weight: 600; }

.entete {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-neutral-200);
}
.entete-interieur {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 14px;
}

.marque { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.marque-sigle {
  display: grid;
  place-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--color-accent-2-800);
  color: var(--color-bg);
  font-family: var(--font-heading);
  font-size: 17px;
  letter-spacing: .02em;
}
.marque-texte { display: grid; line-height: 1.2; }
.marque-texte strong { font-size: 16.5px; color: var(--color-text); letter-spacing: .01em; }
.marque-metier {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-accent-2-800);
}

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; font-size: 14.5px; }
.nav a { color: var(--color-text); font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--color-accent-2-800); }
.nav a.btn { color: var(--color-bg); }

.burger { display: none; }

/* ── Héro ────────────────────────────────────────────────────────── */

.hero { position: relative; display: grid; min-height: 560px; background: var(--color-accent-2-900); }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-voile {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Écart volontaire par rapport au design importé : ses arrêts de
     dégradé supposaient une photo bien plus claire que celles du
     client. Mesure de la bande gardée par le recadrage large du héro
     (mas ancien) : 89/255, contre 66/255 pour les haies envisagées un
     temps comme héro et 92-96/255 pour les autres candidats — assez
     sombre pour rester illisible avec les arrêts d'origine. Les
     couleurs, l'angle et l'intention (opaque sur le texte, transparent
     sur la photo) sont conservés ; seuls les arrêts sont redistribués. */
  background: linear-gradient(100deg,
    rgba(24, 30, 20, .90) 0%,
    rgba(24, 30, 20, .82) 28%,
    rgba(24, 30, 20, .45) 52%,
    rgba(24, 30, 20, .12) 72%,
    rgba(24, 30, 20, .06) 100%);
}
.hero-texte { position: relative; width: 100%; padding-block: 96px 88px; }
.hero-texte h1 {
  max-width: 20ch;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.1;
  color: var(--color-bg);
}
.hero-accroche {
  max-width: 52ch;
  margin-top: 24px;
  font-size: 17.5px;
  line-height: 1.65;
  color: rgba(245, 234, 216, .9);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ── Repères ─────────────────────────────────────────────────────── */

.reperes { background: var(--color-neutral-100); border-bottom: 1px solid var(--color-neutral-200); }
.reperes-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  /* Jamais le raccourci margin ici : cet élément porte aussi .conteneur,
     qui centre la colonne avec margin-inline: auto. Un margin: 0 (même
     visant seulement le <dl>) écraserait ces marges inline et recollerait
     la bande au bord gauche de l'écran. */
  margin-block: 0;
}
.repere { padding: 26px 24px 26px 0; }
.repere dt {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 26px;
  line-height: 1.1;
  color: var(--color-accent-2-800);
}
.repere dd {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

/* ── Prestations ─────────────────────────────────────────────────── */

.prestations-entete {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px 48px;
  align-items: end;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-neutral-200);
}
.prestations-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 1px;
  background: var(--color-neutral-200);
  border-bottom: 1px solid var(--color-neutral-200);
}
.prestation { padding: 32px 28px 34px; background: var(--color-bg); }
.prestation-num {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
  color: var(--color-accent-2-700);
}
.prestation h3 { margin-bottom: 10px; font-size: 19px; line-height: 1.25; }
.prestation p {
  font-size: 14.5px;
  line-height: 1.65;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

/* La cible du lien d'évitement reçoit le focus par navigation de
   fragment, jamais au clavier : pas de contour visible à afficher. */
.hero:focus { outline: none; }

/* ── Réalisations et comparateur ─────────────────────────────────── */

.realisations-intro { max-width: 60ch; margin: 14px 0 48px; }
.realisations-liste { display: grid; gap: 56px; }
.realisation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px 48px;
  align-items: start;
}
.realisation-titre { margin-bottom: 12px; font-size: 21px; line-height: 1.25; }
.realisation-texte {
  margin-bottom: 16px;
  font-size: 14.5px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}
.realisation-meta {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--color-neutral-200);
  font-size: 13.5px;
}
.realisation-meta > div { display: flex; justify-content: space-between; gap: 10px; }
.realisation-meta dt { color: color-mix(in srgb, var(--color-text) 65%, transparent); }
.realisation-meta dd { margin: 0; font-weight: 600; }

.comparateur-cadre {
  position: relative;
  height: 400px;
  overflow: hidden;
  border: 1px solid var(--color-neutral-200);
  border-radius: 10px;
}
.comparateur-apres, .comparateur-avant { position: absolute; inset: 0; }
.comparateur-apres img, .comparateur-avant img { width: 100%; height: 100%; object-fit: cover; }

/* Sans JavaScript, « après » s'affiche pleine et l'étiquette « Avant »
   reste masquée : rien ne paraît cassé. */
.comparateur-avant { z-index: 1; clip-path: inset(0 100% 0 0); }
.badge-avant, .comparateur-poignee, .comparateur-controle { display: none; }

.comparateur.est-actif .comparateur-avant {
  clip-path: inset(0 calc(100% - var(--position, 50%)) 0 0);
}
.comparateur.est-actif .badge-avant { display: block; }
.comparateur.est-actif .comparateur-poignee { display: block; }
.comparateur.est-actif .comparateur-controle { display: flex; }
.comparateur.est-actif .comparateur-cadre { cursor: ew-resize; touch-action: none; }

.badge {
  position: absolute;
  top: 14px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-bg);
  pointer-events: none;
}
.badge-avant { left: 14px; background: rgba(24, 30, 20, .85); transition: opacity .2s; }
.badge-apres { right: 14px; background: var(--color-accent-2-900); }

.comparateur-poignee {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position, 50%);
  z-index: 2;
  width: 2px;
  background: var(--color-bg);
  box-shadow: 0 0 0 1px rgba(24, 30, 20, .25);
  pointer-events: none;
}

.comparateur-controle {
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 13px;
  color: color-mix(in srgb, var(--color-text) 65%, transparent);
}
.comparateur-controle input { flex: 1; accent-color: var(--color-accent-2-800); }

/* ── Galerie ─────────────────────────────────────────────────────── */

.galerie-titre { margin-bottom: 40px; }
.galerie-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.galerie-cadre {
  overflow: hidden;
  border: 1px solid var(--color-neutral-200);
  border-radius: 10px;
  filter: saturate(.6) contrast(.85) brightness(1.1) opacity(.94);
}
.galerie-cadre img { width: 100%; height: 260px; object-fit: cover; }
.galerie-item figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

/* ── À propos ────────────────────────────────────────────────────── */

.apropos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px 48px;
  align-items: start;
}
.apropos-photo {
  overflow: hidden;
  border: 1px solid var(--color-neutral-200);
  border-radius: 10px;
  filter: saturate(.6) contrast(.85) brightness(1.1) opacity(.94);
}
.apropos-photo img { width: 100%; height: 420px; object-fit: cover; }
.apropos-titre { margin-bottom: 22px; }
.apropos-texte { max-width: 58ch; margin-bottom: 16px; font-size: 16.5px; line-height: 1.72; }
.apropos-texte-dernier { margin-bottom: 32px; }

.engagements {
  display: grid;
  gap: 1px;
  background: var(--color-neutral-200);
  border-top: 1px solid var(--color-neutral-200);
  border-bottom: 1px solid var(--color-neutral-200);
}
.engagement {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 24px;
  padding: 16px 0;
  background: var(--color-bg);
  font-size: 14.5px;
}
.engagement span { line-height: 1.6; color: color-mix(in srgb, var(--color-text) 78%, transparent); }

/* ── Contact ─────────────────────────────────────────────────────── */

.contact-section { padding-bottom: 0; }
.contact-bloc {
  padding: 56px clamp(24px, 4vw, 64px);
  border-radius: 12px;
  background: var(--color-accent-2-900);
  color: var(--color-bg);
}
.contact-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px 48px; }
.contact-titre { margin-bottom: 16px; color: var(--color-bg); }
.contact-accroche { max-width: 44ch; font-size: 16px; line-height: 1.7; color: rgba(245, 234, 216, .85); }
.contact-details { display: grid; gap: 28px; }
.contact-etiquette {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-accent-2-200);
}
.contact-tel {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 28px;
  color: var(--color-bg);
  text-decoration: none;
}
.contact-mail { font-size: 18px; font-weight: 600; color: var(--color-bg); text-decoration: none; }
.contact-tel:hover, .contact-mail:hover { color: var(--color-accent-2-200); text-decoration: underline; }
.contact-zone { font-size: 16px; font-weight: 600; }
.contact-precision { margin-top: 6px; font-size: 14px; color: rgba(245, 234, 216, .75); }

/* ── Pied de page ────────────────────────────────────────────────── */

.pied {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-top: 56px;
  padding: 44px 0 56px;
  border-top: 1px solid var(--color-neutral-200);
  font-size: 13.5px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.pied a { color: inherit; }

/* ── Navigation mobile ───────────────────────────────────────────── */

@media (max-width: 860px) {
  .burger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: 1px solid var(--color-neutral-300);
    border-radius: 8px;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
  }
  .burger-barres {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
  }
  .burger-barres::before, .burger-barres::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
  }
  .burger-barres::before { top: -6px; }
  .burger-barres::after { top: 6px; }

  /* Sans JavaScript le menu reste visible, simplement empilé. */
  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    padding-top: 12px;
  }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--color-neutral-200); }
  .nav a.btn { margin-top: 10px; border-bottom: 0; justify-content: center; }

  .nav-js .nav { display: none; }
  .nav-js .nav.est-ouverte { display: flex; }

  .hero { min-height: 460px; }
  .hero-texte { padding-block: 64px 56px; }
  .comparateur-cadre { height: 300px; }
  .apropos-photo img { height: 320px; }
  .section { padding-top: 64px; }
}

@media (min-width: 861px) {
  .nav { display: flex !important; }
}

/* ── Page légale ─────────────────────────────────────────────────── */

.legal { max-width: 72ch; padding-block: 64px 24px; }
.legal-titre { margin-bottom: 32px; }
.legal h2 {
  margin: 32px 0 10px;
  font-size: 20px;
  color: var(--color-accent-2-800);
}
.legal p { margin-bottom: 12px; font-size: 15.5px; line-height: 1.7; }
.legal strong { background: var(--color-accent-2-100); padding: 1px 5px; border-radius: 4px; }
.legal-retour { margin-top: 40px; }
