/* ===================================================================
   Les idées de Val — habillage 2026
   Palette terracotta / crème conservée, direction artistique modernisée.
   =================================================================== */

:root {
  /* Couleurs de marque (inchangées) */
  --terracotta: #cb6843;
  --terracotta-600: #a84d2d;
  --terracotta-700: #8f3f23;
  --terracotta-050: #f1e6db;

  /* Neutres chauds */
  --cream: #faf5ef;
  --sand: #f2e9df;
  --ink: #231914;
  --muted: #7c6f66;
  --line: rgba(35, 25, 20, .10);
  --white: #ffffff;
  --surface: #ffffff;  /* fond des cartes / formulaires — bascule en mode sombre */

  /* Typographie */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Dancing Script", cursive;

  /* Rayons & ombres */
  --r: 16px;
  --r-lg: 28px;
  --pill: 999px;
  --shadow-sm: 0 2px 10px rgba(35, 25, 20, .06);
  --shadow: 0 18px 45px -20px rgba(35, 25, 20, .28);
  --shadow-lg: 0 40px 80px -30px rgba(35, 25, 20, .40);

  /* Rythme */
  --maxw: 1240px;
  --section-y: clamp(64px, 9vw, 140px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* Titres ------------------------------------------------------------ */
.display, .section-title, .hero-title, .card h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.display { font-size: clamp(34px, 5vw, 62px); margin: 0; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 60ch; }

/* Petit label “eyebrow” --------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 18px;
}
.eyebrow.light { color: rgba(255, 255, 255, .9); }
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px; height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 12px;
  opacity: .7;
}

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

/* ===== Boutons ===================================================== */
.btn {
  --btn-bg: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  padding: 15px 30px;
  border-radius: var(--pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease, color .25s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 11px 22px; font-size: 14px; }

.btn-primary, .btn-solid {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 12px 24px -12px rgba(168, 77, 45, .8);
}
.btn-primary:hover, .btn-solid:hover { background: var(--terracotta-600); }

.btn-outline {
  background: transparent;
  color: var(--terracotta-700);
  border-color: rgba(168, 77, 45, .35);
}
.btn-outline:hover { border-color: var(--terracotta); background: var(--terracotta-050); }

.btn-ghost-light, .btn-outline-light {
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  border-color: rgba(255, 255, 255, .55);
  backdrop-filter: blur(6px);
}
.btn-ghost-light:hover, .btn-outline-light:hover { background: rgba(255, 255, 255, .18); }

/* ===== En-tête ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 239, .72);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(250, 245, 239, .9);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 48px);
}
.brand { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-top { font-size: 10px; letter-spacing: .32em; color: var(--muted); }
.brand-script { font-family: var(--script); font-size: 34px; color: var(--terracotta); margin-top: -2px; }
.brand-logo { height: clamp(110px, 6vw, 66px); width: auto; display: block; }

.nav-menu { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav-links { display: flex; gap: clamp(16px, 2.2vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--terracotta);
  transition: width .28s ease;
}
.nav-links a:hover { color: var(--terracotta); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--terracotta); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; margin: 5px 0; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ===== Messages flash ============================================== */
.flash-wrap { margin-top: 20px; }
.flash { padding: 14px 20px; margin-bottom: 10px; border-radius: var(--r); font-size: 15.5px; border: 1px solid transparent; }
.flash-success { background: #eaf4ec; color: #2f6b3b; border-color: #cfe6d4; }
.flash-error { background: var(--terracotta-050); color: var(--terracotta-700); border-color: #eccbba; }

/* ===== Hero ======================================================== */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  color: var(--white);
  /* Réserve la place de l'indicateur « Découvrir » en bas pour qu'il ne
     chevauche jamais les boutons quand le hero est peu haut. */
  padding-bottom: 96px;
  /* Le dégradé sert d'habillage tant qu'aucune photo n'est déposée,
     et de voile lisibilité quand hero.jpg est présent (couche du dessous). */
  background:
    linear-gradient(180deg, rgba(30, 18, 22, .30) 0%, rgba(30, 18, 22, .60) 100%),
    var(--home-hero, url("../img/hero.jpg")) center / cover no-repeat,
    linear-gradient(135deg, #6a3f34 0%, #3c2630 60%, #2a1c24 100%);
  background-color: #3c2630;
}
.hero-inner { position: relative; padding-block: 40px; max-width: 900px; }
.hero-title { font-size: clamp(44px, 8vw, 104px); margin: 0 0 22px; }
.hero-title em { font-style: italic; color: #f2c9b3; }
.hero-sub { font-size: clamp(17px, 2vw, 22px); color: rgba(255, 255, 255, .88); max-width: 46ch; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: .85;
}
.hero-scroll span { font-size: 22px; animation: bob 2s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(7px) } }
/* Écrans peu hauts : plus de place pour l'indicateur sans chevaucher le
   contenu — on le masque (le défilement reste évidemment possible). */
@media (max-height: 640px) {
  .hero-scroll { display: none; }
}

/* ===== Sections génériques ========================================= */
.section { padding-block: var(--section-y); }
.section.tint { background: var(--sand); }
.section.dark { background: var(--terracotta); color: var(--white); }

/* ===== Cartes services / locations ================================ */
/* auto-fill (et non auto-fit) : les colonnes vides sont conservées, donc une
   seule carte garde la largeur d'une colonne au lieu de s'étirer sur toute la
   rangée — toutes les cartes ont la même taille quel que soit leur nombre. */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e9d5c8, #d8b3a0);
  background-size: cover;
  background-position: center;
  transition: transform .6s ease;
}
.card:hover .card-media { transform: scale(1.05); }

/* Couverture de location : recadrage manuel non destructif (fractions
   --cx/--cy/--cw/--ch de l'original), même technique que la galerie. */
.cover-img { position: absolute; top: 0; left: 0; display: block; }
.cover-img:not(.cover) {
  width: calc(100% / var(--cw));
  height: calc(100% / var(--ch));
  left: calc((var(--cx) / var(--cw)) * -100%);
  top: calc((var(--cy) / var(--ch)) * -100%);
  max-width: none;
}
/* Repli pour les couvertures pas encore cadrées : cover centré. */
.cover-img.cover { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.card-body { padding: 26px 26px 30px; }
.card .card-index { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--terracotta); }
.card h3 { font-size: 26px; margin: 6px 0 10px; }
.card p { color: var(--terracotta); margin: 0; font-size: 15.5px; }
.price { margin-top: 16px; font-size: 24px; color: var(--ink); }
.price span { font-family: var(--sans); color: var(--muted); font-size: 14px; }

/* ===== Sections éditoriales (image + texte) ======================= */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.editorial.reverse .editorial-media { order: 2; }
.editorial-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 5 / 6;
  box-shadow: var(--shadow);
  background:
    url("../img/services.jpg") center / cover no-repeat,
    linear-gradient(135deg, #e9d5c8, #cf9d86);
}
.editorial-media.galerie {
  background:
    url("../img/galerie.jpg") center / cover no-repeat,
    linear-gradient(135deg, #e2c9bb, #bd6f52);
}
.editorial-media.apropos {
  background:
    var(--apropos-media, url("../img/apropos.jpg")) center / cover no-repeat,
    linear-gradient(135deg, #d9b7a4, #a84d2d);
}

/* ===== Bloc « Nos Services » (panneau terracotta + photo) ========= */
.svc-split {
  display: grid;
  grid-template-columns: 0.70fr 1.40fr; 
  gap: clamp(18px, 3vw, 40px);
  align-items: stretch;
}
.svc-panel {
  background: var(--terracotta);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: clamp(40px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 26px;
  box-shadow: var(--shadow);
}
.svc-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 54px);
  letter-spacing: .26em;
  text-transform: uppercase;
  line-height: 1.35;
  margin: 0 -0.26em 0 0; /* -0.26em : compense l'interlettrage pour un centrage exact */
}
.svc-ornament { color: rgba(255, 255, 255, .9); line-height: 0; }
.svc-ornament svg { width: 58px; height: auto; margin: 0 auto; display: block; }
.svc-sub {
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.5;
  color: rgba(255, 255, 255, .95);
  margin: 0;
  max-width: 16ch;
}
.svc-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: clamp(360px, 46vw, 620px);
  box-shadow: var(--shadow);
  background:
    var(--home-services, url("../img/services.jpg")) center / cover no-repeat,
    linear-gradient(135deg, #e9d5c8, #cf9d86);
}
@media (max-width: 820px) {
  .svc-split { grid-template-columns: 1fr; }
  .svc-media { min-height: 340px; }
}

/* ===== Déroulé / étapes =========================================== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(24px, 3vw, 44px); }
.step-num {
  font-family: var(--serif);
  font-size: 54px;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 14px;
  opacity: .9;
}
.step h3 { font-family: var(--serif); font-size: 26px; margin: 0 0 8px; }
.step p { color: var(--muted); margin: 0; }

/* ===== Galerie ===================================================== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(135deg, #e6d0c2, #c98a70);
  box-shadow: var(--shadow-sm);
}
/* Image recadrée manuellement (fractions --cx/--cy/--cw/--ch de l'original).
   L'original est chargé tel quel puis positionné/zoomé en CSS : non destructif. */
.gallery-img { position: absolute; top: 0; left: 0; display: block; }
.gallery-img:not(.cover) {
  width: calc(100% / var(--cw));
  height: calc(100% / var(--ch));
  left: calc((var(--cx) / var(--cw)) * -100%);
  top: calc((var(--cy) / var(--ch)) * -100%);
  max-width: none;
}
/* Repli pour les photos pas encore cadrées : cover centré (format uniforme). */
.gallery-img.cover { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(35, 20, 15, .55));
  opacity: 0; transition: opacity .35s ease;
}
.gallery-item:hover { transform: scale(1.01); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item figcaption {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  color: var(--white); font-size: 15px; letter-spacing: .02em;
  opacity: 0; transform: translateY(6px); transition: .35s ease;
}
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }

/* ===== Cartes Locations cliquables =============================== */
.rental-card { cursor: pointer; position: relative; }
.card-cta { display: inline-block; margin-top: 12px; color: var(--terracotta); font-weight: 600; font-size: 14px; }

/* ===== Modale produit ============================================ */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 12, 10, .55); backdrop-filter: blur(4px); }
.modal-dialog {
  position: relative; z-index: 1;
  width: min(940px, 100%); max-height: 90vh; overflow: auto;
  background: var(--surface); color: var(--ink);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  animation: modalIn .3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 12px; right: 14px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(0, 0, 0, .4); color: #fff; font-size: 24px; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
}
.modal-close:hover { background: rgba(0, 0, 0, .6); }
.modal-grid { display: grid; grid-template-columns: 1.05fr 1fr; }
.modal-media { background: #ece0d6; }
.modal-info { padding: clamp(24px, 3vw, 42px); }
.modal-info h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3vw, 38px); margin: 0 0 12px; }
.modal-price { font-size: 15px; color: var(--terracotta); margin: 0 0 14px; }
.modal-price span { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.modal-subtitle {
  font-family: var(--sans); font-size: 12.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--terracotta);
  margin: 0 0 8px;
}
.modal-dim { margin: 0 0 22px; color: var(--ink); }
.modal-desc { margin: 0 0 22px; color: var(--muted); }
.modal-features { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }

/* Rendu Markdown (descriptions) */
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 12px; }
.md ul, .md ol { margin: 0 0 12px; padding-left: 22px; }
.md li { margin-bottom: 4px; }
.md h1, .md h2, .md h3, .md h4 { font-family: var(--serif); font-weight: 600; margin: 8px 0 8px; line-height: 1.2; }
.md h1 { font-size: 1.4em; } .md h2 { font-size: 1.25em; } .md h3 { font-size: 1.12em; }
.md a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 2px; }
.md strong { font-weight: 700; color: var(--ink); }
.md blockquote { margin: 0 0 12px; padding-left: 14px; border-left: 3px solid var(--terracotta); color: var(--muted); }
.modal-features li { position: relative; padding-left: 22px; color: var(--ink); font-size: 15.5px; }
.modal-features li::before {
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta);
}

/* ----- Carrousel ----- */
.carousel { position: relative; height: 100%; min-height: 340px; overflow: hidden; }
.carousel-track { display: flex; height: 100%; transition: transform .4s ease; }
.carousel-slide { flex: 0 0 100%; min-height: 340px; background-size: cover; background-position: center; background-color: #ece0d6; }
.carousel-slide[data-full] { cursor: zoom-in; }
.carousel-slide.placeholder { background: linear-gradient(135deg, #e9d5c8, #cf9d86); }
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .9); color: var(--ink);
  font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.carousel-nav:hover { background: #fff; }
.carousel-nav.prev { left: 12px; }
.carousel-nav.next { right: 12px; }
.carousel-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 7px; justify-content: center; }
.carousel-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .6); cursor: pointer; }
.carousel-dots .dot.active { background: #fff; transform: scale(1.25); }

/* ----- Partage social ----- */
.share { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; flex-wrap: wrap; }
.share > span { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.share-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sand); color: var(--ink); border: 1px solid var(--line);
  cursor: pointer; font-weight: 700; font-size: 15px; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.share-btn i { font-size: 18px; line-height: 1; }
.share-btn:hover { background: var(--terracotta); color: #fff; border-color: var(--terracotta); transform: translateY(-2px); }

@media (max-width: 720px) {
  .modal-grid { grid-template-columns: 1fr; }
  .carousel, .carousel-slide { min-height: 260px; }
}

/* ===== Visionneuse plein écran (lightbox + zoom) ================= */
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; background: rgba(10, 7, 6, .92); }
.lightbox.open { display: block; }
.lightbox-inner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; overflow: auto; }
.lightbox-img {
  max-width: 96vw; max-height: 92vh;
  border-radius: 4px;
  cursor: zoom-in;
  transition: transform .3s ease;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.lightbox-img.zoomed { cursor: zoom-out; }
.lightbox-close {
  position: absolute; top: 16px; right: 20px; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 28px; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .3); }

/* ===== Bande CTA =================================================== */
.cta-band {
  background: var(--terracotta);
  color: var(--white);
  border-radius: clamp(20px, 3vw, 36px);
  padding: clamp(40px, 6vw, 80px);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4.5vw, 52px); margin: 0 0 12px; }
.cta-band p { color: rgba(255, 255, 255, .9); margin: 0 auto 28px; max-width: 52ch; }

/* ===== En-tête de page interne ==================================== */
.page-head { padding: clamp(70px, 10vw, 130px) 0 clamp(24px, 4vw, 48px); text-align: center; }
.page-head .section-title { color: var(--ink); font-size: clamp(34px, 6vw, 66px); margin: 0; }
.page-head p { color: var(--muted); max-width: 56ch; margin: 14px auto 0; }
.ornament { display: none; }

/* En-tête de la page Services : plus compact que les autres pages */
.page-head.svc-head { padding: clamp(46px, 7vw, 88px) 0 clamp(8px, 2vw, 20px); }
.page-head.svc-head .section-title { font-size: clamp(30px, 4.6vw, 46px); }

/* Sections de services : titres sobres, espacement resserré */
.svc-section { padding-block: clamp(28px, 4vw, 52px); }
.svc-section-head { margin-bottom: 26px; }
.svc-section-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(23px, 2.6vw, 32px);
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.svc-section-head h2::after {
  content: "";
  display: block;
  width: 46px; height: 2px;
  margin-top: 12px;
  background: var(--terracotta);
  border-radius: 2px;
}
.svc-section-head p { color: var(--muted); margin: 12px 0 0; max-width: 64ch; font-size: 16px; }

.empty { text-align: center; color: var(--muted); padding: 30px 0 60px; font-size: 18px; }

/* ===== Pages texte / à propos ===================================== */
.prose { max-width: 720px; }
.prose p { margin: 0 0 20px; font-size: 18px; }
.prose p:first-of-type { font-size: 21px; color: var(--ink); }

/* ===== Contact ==================================================== */
.contact-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; padding-bottom: var(--section-y); }
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-sm);
}
.contact-form .field { margin-bottom: 20px; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; color: var(--muted); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--sans);
  font-size: 16px;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px var(--terracotta-050);
  background: var(--surface);
}
.contact-form .btn { margin-top: 6px; }
.contact-info {
  background: var(--terracotta);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow);
}
.contact-info h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; margin: 0 0 18px; }
.contact-info p { margin: 6px 0; color: rgba(255, 255, 255, .92); }
.contact-info a { text-decoration: none; }
/* Icônes Bootstrap devant chaque coordonnée : largeur fixe pour un alignement net. */
.contact-info p .bi { display: inline-block; width: 1.25em; margin-right: 6px; text-align: center; opacity: .9; vertical-align: -1px; }

/* ===== Pied de page =============================================== */
.site-footer { background: var(--terracotta); color: var(--white); margin-top: var(--section-y); }
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  /* padding-block seulement : la gouttière horizontale vient du .container. */
  padding-block: clamp(56px, 8vw, 88px) 44px;
}
.footer-logo { height: clamp(150px, 13vw, 150px); width: auto; display: block; }
.footer-brand p { color: rgba(255, 255, 255, .82); max-width: 34ch; margin-top: 16px; }
.footer-col h4 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 16px; opacity: .8; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; overflow-wrap: anywhere; }
.footer-col a { color: rgba(255, 255, 255, .9); transition: opacity .2s; }
.footer-col a:hover { opacity: .65; }
/* Icônes Bootstrap devant les coordonnées : espacement + largeur fixe pour un alignement net. */
.footer-col .bi { display: inline-block; width: 1.15em; margin-right: 8px; text-align: center; opacity: .85; vertical-align: -1px; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.social {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-size: 18px; font-weight: 700;
  background: rgba(255, 255, 255, .14); transition: background .25s, transform .25s;
}
.social:hover { background: rgba(255, 255, 255, .28); transform: translateY(-2px); }
.footer-cta-btn { margin-top: 22px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .2);
  padding-block: 22px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.footer-legal a { color: rgba(255, 255, 255, .8); }
.footer-legal a:hover { color: var(--white); }
.footer-copy { color: rgba(255, 255, 255, .8); }

/* ===== Apparition au scroll ======================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@keyframes navMenuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ===== Responsive ================================================= */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px 20px 22px;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 15px 4px; }
  .nav-links a::after { display: none; }
  .nav-links a.active { font-weight: 600; }
  .nav-menu .btn { margin-top: 16px; justify-content: center; }

  /* Panneau du menu : légère apparition à l'ouverture. */
  .nav-menu.open { animation: navMenuIn .22s ease; }

  /* Hamburger qui se transforme en croix quand le menu est ouvert. */
  .nav-toggle span { transform-origin: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .editorial { grid-template-columns: 1fr; }
  .editorial.reverse .editorial-media { order: 0; }
  .editorial-media { aspect-ratio: 4 / 3; }

  .contact-layout { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* Pied de page plus compact : moins d'espace mort sur mobile. */
  .site-footer { margin-top: clamp(40px, 12vw, 72px); }
  .footer-main { gap: 22px; padding-block: 38px 26px; }
  .footer-brand p { margin-top: 12px; }
  .footer-social { margin-top: 14px; }
  .footer-col h4 { margin-bottom: 12px; }
  .footer-col li { margin-bottom: 8px; }
  .footer-cta-btn { margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll span { animation: none; }
  .nav-menu.open { animation: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ===================================================================
   Mode sombre — activé via <html data-theme="dark">
   L'accent terracotta est conservé ; seuls les neutres basculent.
   =================================================================== */
[data-theme="dark"] {
  --cream: #17120e;      /* fond de page */
  --sand: #201812;       /* sections « tint » */
  --surface: #241b15;    /* cartes / formulaires */
  --ink: #f3e9e0;        /* texte principal */
  --muted: #b4a498;      /* texte secondaire */
  --line: rgba(255, 255, 255, .12);
  --terracotta-050: rgba(203, 104, 67, .16);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, .5);
  --shadow: 0 18px 45px -18px rgba(0, 0, 0, .7);
  --shadow-lg: 0 40px 80px -28px rgba(0, 0, 0, .8);
}
[data-theme="dark"] .site-header { background: rgba(23, 18, 14, .72); }
[data-theme="dark"] .site-header.scrolled { background: rgba(23, 18, 14, .92); }
[data-theme="dark"] .brand-logo { filter: brightness(1.08); }
/* Repli des zones image sans photo : dégradés assombris */
[data-theme="dark"] .card-media { background-image: linear-gradient(135deg, #3a2c24, #4c372d); }
[data-theme="dark"] .gallery-item { background-image: linear-gradient(135deg, #33261f, #4a332a); }
/* Messages flash */
[data-theme="dark"] .flash-success { background: #16261a; color: #8fd6a0; border-color: #294a31; }
[data-theme="dark"] .flash-error { background: #2b1712; color: #f0a88f; border-color: #57291d; }

/* ===== Bouton de bascule de thème (pied de page) ================== */
.footer-end { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: var(--pill);
  padding: 8px 16px;
  cursor: pointer;
  transition: background .2s ease;
}
.theme-toggle:hover { background: rgba(255, 255, 255, .26); }
.theme-toggle .t-light { display: none; }
[data-theme="dark"] .theme-toggle .t-dark { display: none; }
[data-theme="dark"] .theme-toggle .t-light { display: inline; }
