/* ==========================================================================
   Pro'P & Net - Feuille de style partagee
   Charte : dominante claire + verts issus du logo. Lignes fuyantes (diagonales).
   ========================================================================== */

/* --- 1. Variables ------------------------------------------------------- */
:root {
  /* Palette de verts (du plus fonce au plus clair) */
  --vert-1: #1e4620;   /* vert le plus fonce (contours, texte fort) */
  --vert-2: #3a7d34;   /* vert principal */
  --vert-3: #5aa042;   /* vert vif (accents, survol) */
  --vert-4: #8fbc4a;   /* vert clair (touches) */

  /* Fonds clairs */
  --paper:  #fbfdf9;   /* blanc casse tres legerement vert */
  --mist:   #eef4e8;   /* vert pale (sections alternees) */
  --line:   #dbe6d2;   /* filets discrets */

  /* Neutres */
  --ink:      #232b23;   /* texte courant */
  --ink-soft: #556055;   /* texte secondaire */
  --white:    #ffffff;

  /* Typo */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rythme */
  --radius: 14px;
  --shadow: 0 10px 30px rgba(30, 70, 32, 0.08);
  --shadow-hover: 0 18px 44px rgba(30, 70, 32, 0.16);
  --max: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- 2. Reset leger ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--vert-1);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.3rem; }

p { color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 4vw, 2.5rem);
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--vert-3);
  display: inline-block;
  margin-bottom: 0.9rem;
}

.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--mist { background: var(--mist); }

/* --- 3. Boutons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}
.btn--primary {
  background: var(--vert-2);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(58, 125, 52, 0.28);
}
.btn--primary:hover {
  background: var(--vert-1);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(30, 70, 32, 0.35);
}
.btn--ghost {
  background: transparent;
  color: var(--vert-1);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--vert-3);
  color: var(--vert-3);
  transform: translateY(-2px);
}

/* --- 4. En-tete / navigation ------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 253, 249, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.05rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  color: var(--vert-1);
  line-height: 1;
}
.brand .brand-amp { color: var(--vert-3); margin: 0 0.12em; font-weight: 500; }
@media (max-width: 480px) { .brand { font-size: 1.4rem; } }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-block: 0.3rem;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--vert-3);
  transition: width 0.28s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--vert-1); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }

.nav-cta { margin-left: 0.5rem; }
/* Le CTA du header est un <a> dans .nav-links : on neutralise le
   soulignement anime et l'ecrasement de couleur herites de la nav. */
.nav-cta a::after { content: none; }
.nav-cta a:hover { color: var(--white); }
.nav-cta a[aria-current="page"] { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 42px; height: 42px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 9px; right: 9px;
  height: 2px;
  background: var(--vert-1);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- 5. Diagonales (lignes fuyantes) ----------------------------------- */
/* Separateur oblique reutilisable entre sections */
.slant {
  position: relative;
}
.slant--top::before,
.slant--bottom::after {
  content: "";
  position: absolute;
  left: -5%;
  width: 110%;
  height: 5vw;
  min-height: 40px;
  background: inherit;
  z-index: 1;
}
.slant--top::before {
  top: 0;
  transform: translateY(-50%) skewY(-2.6deg);
}
.slant--bottom::after {
  bottom: 0;
  transform: translateY(50%) skewY(-2.6deg);
}

/* --- 6. Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  padding-block: clamp(4.5rem, 11vw, 8.5rem);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(143, 188, 74, 0.18), transparent 60%),
    linear-gradient(160deg, var(--paper) 0%, var(--mist) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 span { color: var(--vert-2); }
.hero .lead {
  font-size: 1.18rem;
  margin-block: 1.4rem 2rem;
  max-width: 34ch;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Visuel du hero : cadre organique avec filets fuyants */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 220px 220px 24px 24px;
  background:
    linear-gradient(150deg, var(--vert-2) 0%, var(--vert-1) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 26px);
}
.hero-visual span {
  font-family: var(--font-display);
  color: rgba(255,255,255,0.35);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 2;
  padding: 0.6rem 1rem;
  border: 1px dashed rgba(255,255,255,0.4);
  border-radius: 8px;
}
.hero-visual.has-photo::after { display: none; }
.hero-visual.has-photo img {
  width: 100%; height: 100%;
  position: absolute; inset: 0;
  object-position: center;      /* centrage horizontal + vertical */
}
/* Illustration : image entiere visible, legere marge autour */
.hero-visual.fit-contain img { padding: 6%; }
/* Photo : remplit le cadre (bords rognes par l'arche) */
.hero-visual.fit-cover img { padding: 0; }

/* --- 7. Cartes services ------------------------------------------------ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 2.8rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  margin-top: 2.8rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.card .icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--mist);
  color: var(--vert-2);
  margin-bottom: 1.1rem;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.96rem; }

/* --- 8. Bandeau chiffres ----------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--vert-3);
  line-height: 1;
}
.stat .label {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}

/* --- 9. Galerie realisations ------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  margin-top: 2.8rem;
}
.tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(150deg, var(--vert-2) 0%, var(--vert-1) 100%);
  box-shadow: var(--shadow);
}
.tile:nth-child(3n+1) { background: linear-gradient(150deg, var(--vert-3), var(--vert-2)); }
.tile:nth-child(3n+2) { background: linear-gradient(150deg, var(--vert-1), var(--vert-2)); }
.tile:nth-child(3n)   { background: linear-gradient(150deg, var(--vert-4), var(--vert-3)); }
.tile::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(120deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 24px);
}
.tile .tile-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.2rem 1.3rem;
  background: linear-gradient(to top, rgba(30,70,32,0.85), transparent);
  color: var(--white);
}
.tile .tile-body h3 { color: var(--white); font-size: 1.1rem; }
.tile .tile-body p { color: rgba(255,255,255,0.85); font-size: 0.85rem; margin-top: 0.2rem; }
.tile .tag {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(255,255,255,0.9);
  color: var(--vert-1);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
  z-index: 2;
}
.tile.is-clickable { cursor: pointer; }
.tile.is-clickable img { transition: transform 0.5s var(--ease); }
.tile.is-clickable:hover img,
.tile.is-clickable:focus-visible img { transform: scale(1.06); }

/* Badge avant/apres */
.tile-badge {
  position: absolute; top: 1rem; right: 1rem;
  z-index: 2;
  background: var(--vert-1);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.tile-badge::before {
  content: "";
  width: 12px; height: 12px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--vert-4) 0 50%, #fff 50% 100%);
  display: inline-block;
}

/* Barre de filtre par categorie */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}
.filter-btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--vert-1);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  transition: all 0.22s var(--ease);
}
.filter-btn:hover { border-color: var(--vert-3); color: var(--vert-3); }
.filter-btn.is-active {
  background: var(--vert-2);
  border-color: var(--vert-2);
  color: #fff;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
}
.lightbox[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.lb-overlay {
  position: absolute; inset: 0;
  background: rgba(20, 35, 20, 0.82);
  backdrop-filter: blur(4px);
}
.lb-frame {
  position: relative;
  z-index: 2;
  width: min(92vw, 1000px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lb-stage {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  object-fit: contain;
}
.lb-caption {
  color: #fff;
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
}
.lb-caption strong { font-family: var(--font-display); font-weight: 600; }
.lb-caption span { color: rgba(255,255,255,0.7); }

.lb-btn {
  position: absolute;
  z-index: 3;
  background: rgba(255,255,255,0.9);
  color: var(--vert-1);
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.lb-btn:hover { background: #fff; transform: scale(1.08); }
.lb-close {
  top: -18px; right: -18px;
  width: 44px; height: 44px;
  font-size: 1.6rem; line-height: 1;
}
.lb-prev, .lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  font-size: 1.8rem; line-height: 1;
}
.lb-prev { left: -24px; }
.lb-next { right: -24px; }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.08); }

/* --- Comparateur avant/apres --- */
.compare {
  position: relative;
  width: 100%;
  max-height: 78vh;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  user-select: none;
  cursor: ew-resize;
  background: #000;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.compare-before {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  border-right: 2px solid #fff;
}
/* L'image "avant" garde la largeur du cadre COMPLET (fixee en JS) pour
   rester cadree exactement comme l'image "apres", malgre le conteneur
   reduit qui la revele progressivement. */
.compare-before img {
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.compare-label {
  position: absolute;
  bottom: 1rem;
  z-index: 4;
  background: rgba(20,35,20,0.75);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  pointer-events: none;
}
.compare-label--before { left: 1rem; }
.compare-label--after { right: 1rem; }
.compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 44px;
  transform: translateX(-50%);
  z-index: 5;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}
.compare-handle-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: #fff;
}
.compare-handle-grip {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--vert-1);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.compare-handle:focus-visible { outline: none; }
.compare-handle:focus-visible .compare-handle-grip {
  outline: 3px solid var(--vert-4);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .lb-close { top: -14px; right: -6px; }
  .lb-prev { left: -8px; }
  .lb-next { right: -8px; }
  .lb-prev, .lb-next { width: 40px; height: 40px; }
}

/* --- 10. Formulaires --------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 1.4rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--vert-1);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--vert-3);
  box-shadow: 0 0 0 4px rgba(90, 160, 66, 0.14);
}
.field textarea { resize: vertical; min-height: 130px; }

.info-list { display: flex; flex-direction: column; gap: 1.5rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-item .icon {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--mist);
  color: var(--vert-2);
}
.info-item .icon svg { width: 22px; height: 22px; }
.info-item h3 { font-size: 1.05rem; margin-bottom: 0.15rem; }
.info-item p { font-size: 0.95rem; }
.info-item a:hover { color: var(--vert-3); }

/* --- 11. Bloc placeholder (reservation) -------------------------------- */
.placeholder-box {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.placeholder-box .icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.2rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--mist);
  color: var(--vert-2);
}
.placeholder-box .icon svg { width: 30px; height: 30px; }
.placeholder-box h3 { margin-bottom: 0.6rem; }
.placeholder-box p { max-width: 52ch; margin: 0 auto; }

/* --- 11b. Configurateur de devis --------------------------------------- */
.config-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}
.cat-group { margin-bottom: 1rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.cat-title {
  font-size: 1.15rem;
  color: var(--vert-1);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 1rem 1.2rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  transition: background 0.2s var(--ease);
}
.cat-title:hover { background: var(--mist); }
.cat-title::-webkit-details-marker { display: none; } /* Safari : masque la fleche native */
.cat-title-chevron {
  width: 20px; height: 20px;
  flex: 0 0 auto;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a7d34' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  transition: transform 0.25s var(--ease);
}
.cat-group[open] .cat-title-chevron { transform: rotate(180deg); }
.cat-group[open] .cat-title { border-bottom: 1px solid var(--line); }
/* Les prestations sont dans un padding interne quand la categorie est ouverte */
.cat-group > .presta { margin: 0 1.2rem; }
.cat-group > .presta:first-of-type { margin-top: 0.6rem; }
.cat-group > .presta:last-of-type { margin-bottom: 1rem; border-bottom: none; }
.presta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.presta-info { display: flex; flex-direction: column; gap: 0.15rem; }
.presta-nom { font-weight: 600; color: var(--ink); }
.presta-meta { font-size: 0.85rem; color: var(--vert-3); font-weight: 600; }
.presta-note { font-size: 0.8rem; color: var(--ink-soft); }
.presta-exemple { font-size: 0.78rem; color: var(--ink-soft); font-style: italic; margin-top: 0.15rem; }
.presta-soon { font-size: 0.8rem; color: var(--ink-soft); font-style: italic; opacity: 0.75; }
.presta-ctrl { flex: 0 0 auto; }

.qty { display: inline-flex; align-items: center; gap: 0.4rem; }
.qty input {
  width: 82px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-align: right;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 0.5rem 0.6rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.qty input:focus {
  outline: none;
  border-color: var(--vert-3);
  box-shadow: 0 0 0 4px rgba(90,160,66,0.14);
}
.qty-unit { font-size: 0.82rem; color: var(--ink-soft); min-width: 58px; }

.check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--vert-1);
  cursor: pointer;
  user-select: none;
}
.check input {
  width: 20px; height: 20px;
  accent-color: var(--vert-2);
  cursor: pointer;
}

.fs-ctrl { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.fs-surface { margin-top: 0.1rem; }

/* --- Instances multiples (C3) --- */
.presta-ctrl { min-width: 0; }
.inst-list { display: flex; flex-direction: column; gap: 0.5rem; }
.inst-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}
.inst-num {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--vert-3);
  min-width: 24px;
  text-align: right;
}
.inst-dims { display: inline-flex; align-items: center; gap: 0.35rem; }
.inst-dims .qty input { width: 84px; text-align: left; }
.inst-dims .qty-unit { min-width: 18px; }
.inst-dims-col { display: flex; flex-direction: column; gap: 0.25rem; align-items: flex-end; }
.inst-hint { font-size: 0.75rem; color: #b26a1e; font-style: italic; }
.inst-x { color: var(--ink-soft); font-weight: 600; }
.inst-del {
  border: none;
  background: none;
  color: var(--ink-soft);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
  border-radius: 6px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.inst-del:hover { color: #b23c3c; background: rgba(178,60,60,0.1); }
.inst-add {
  align-self: flex-end;
  margin-top: 0.5rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}
.recap-row--surface {
  border-bottom: none;
  font-size: 0.82rem;
  color: var(--vert-2);
  font-weight: 600;
  padding-top: 0;
}
.recap-row--surface .recap-nom em { font-style: normal; }

/* Panneau recap (colle en scroll) */
.recap {
  position: sticky;
  top: 96px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem;
}
.recap h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.recap-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--line);
}
.recap-nom { color: var(--ink); }
.recap-nom em { color: var(--ink-soft); font-style: normal; font-size: 0.82rem; display: block; }
.recap-val { color: var(--vert-1); font-weight: 600; white-space: nowrap; }

.recap-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--line);
}
.recap-total .lbl { font-weight: 600; color: var(--vert-1); }
.recap-total .val {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--vert-3);
}
.recap-tva { font-size: 0.78rem; color: var(--ink-soft); text-align: right; margin-top: 0.2rem; }

.devis-block {
  margin-top: 1.1rem;
  background: var(--mist);
  border-radius: 10px;
  padding: 0.9rem 1rem;
}
.devis-title { font-size: 0.85rem; font-weight: 600; color: var(--vert-1); margin-bottom: 0.4rem; }
.devis-list { display: flex; flex-direction: column; gap: 0.25rem; }
.devis-list li { font-size: 0.85rem; color: var(--ink-soft); padding-left: 1rem; position: relative; }
.devis-list li::before { content: "•"; position: absolute; left: 0; color: var(--vert-2); }

.recap-empty { font-size: 0.92rem; color: var(--ink-soft); }
.recap-actions { display: none; flex-direction: column; gap: 0.7rem; margin-top: 1.3rem; }
.recap-actions .btn { width: 100%; justify-content: center; }
.recap-disclaimer { font-size: 0.76rem; color: var(--ink-soft); margin-top: 0.9rem; line-height: 1.5; }

@media (max-width: 860px) {
  .config-layout { grid-template-columns: 1fr; }
  .recap { position: static; }
}

/* --- 12. CTA final ----------------------------------------------------- */
.cta-band {
  background: linear-gradient(150deg, var(--vert-2) 0%, var(--vert-1) 100%);
  border-radius: 24px;
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 30px);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.9); margin: 0.8rem auto 1.8rem; max-width: 46ch; }
.cta-band .btn--primary { background: var(--white); color: var(--vert-1); box-shadow: none; }
.cta-band .btn--primary:hover { background: var(--vert-4); color: var(--vert-1); }

/* --- 13. Pied de page -------------------------------------------------- */
.site-footer {
  background: var(--vert-1);
  color: rgba(255,255,255,0.8);
  padding-block: 3.5rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 0.8rem;
}
.footer-brand img { height: 34px; filter: brightness(0) invert(1); opacity: 0.92; }
.site-footer p { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.75);
  font-size: 0.94rem;
  padding-block: 0.32rem;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.footer-col a:hover { color: var(--vert-4); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

/* --- 14. Animations au scroll ------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* En-tete de page interieure */
.page-head {
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(143,188,74,0.16), transparent 60%),
    linear-gradient(160deg, var(--paper), var(--mist));
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
  text-align: center;
}
.page-head p { max-width: 52ch; margin: 1rem auto 0; font-size: 1.1rem; }

/* --- 15. Responsive ---------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; margin-inline: auto; aspect-ratio: 5/4; border-radius: 24px; }
  .grid-3, .gallery { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.2rem 1.4rem;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a { padding: 0.9rem 0.3rem; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 0.8rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: block; }
}

@media (max-width: 560px) {
  .grid-3, .gallery, .stats, .form-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* --- 16. Accessibilite ------------------------------------------------- */
:focus-visible { outline: 3px solid var(--vert-3); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --- Motif passiflore (page Realisations uniquement) -------------------
   Bandes decoratives sur les cotes. Scopees a .has-passiflore (present
   seulement sur realisations.html).

   >>> POUR REMPLACER PAR UNE VRAIE IMAGE plus tard : changez simplement
       l'URL dans les deux regles ::before / ::after ci-dessous
       (ex. url("assets/passiflore.png")). Rien d'autre a toucher. */
.has-passiflore { position: relative; }
.has-passiflore::before,
.has-passiflore::after {
  content: "";
  position: fixed;
  top: 74px;                 /* sous le header sticky */
  bottom: 0;
  width: 90px;
  background-image: url("../assets/passiflore.svg");
  background-repeat: repeat-y;
  background-size: 90px auto;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.has-passiflore::before { left: 0; }
.has-passiflore::after  { right: 0; transform: scaleX(-1); } /* miroir a droite */

/* Le contenu passe au-dessus du motif */
.has-passiflore .site-header,
.has-passiflore main,
.has-passiflore .site-footer { position: relative; z-index: 1; }

/* Masque les bandes quand l'espace lateral manque */
@media (max-width: 1100px) {
  .has-passiflore::before,
  .has-passiflore::after { display: none; }
}

/* --- Honeypot anti-spam : champ cache aux humains, pas aux bots ------- */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
