/* ==========================================================================
   CLARIUM — Système de design « haut de gamme »
   Bleu nuit · Blanc · Doré (filets fins uniquement)
   Principe directeur : retenue, espace, hiérarchie serif — pas d'effet criard.
   ========================================================================== */

:root {
  /* — Couleurs (extraites des logos) — */
  --navy:        #0F1A30;
  --navy-deep:   #080F1E;
  --navy-line:   #22314F;   /* filets sur fond sombre */
  --gold:        #C6A15B;
  --gold-light:  #E4C67F;
  --gold-deep:   #8C6E2A;   /* doré lisible sur fond clair (contraste AA) */
  --white:       #FFFFFF;
  --paper:       #FBFAF7;   /* fond clair chaleureux */
  --paper-2:     #F3F0E9;   /* panneaux, placeholders */
  --ink:         #16202F;
  --ink-soft:    #62697A;
  --hairline:    rgba(15, 26, 48, 0.10);

  /* — Typographie — */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Jost", "Segoe UI", -apple-system, sans-serif;

  /* — Rythme — */
  --container: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 2px;               /* angles quasi droits = plus chic */
  --transition: 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-soft: 0 30px 60px -30px rgba(8, 15, 30, 0.35);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--navy-deep); /* filet de sécurité : aucune bande blanche sous une page courte */
}

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  /* Pied de page collant : le contenu remplit toujours la hauteur de la fenêtre */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
/* Empêche un enfant trop large de dilater toute la colonne flex du body */
body > * { min-width: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* Navigation clavier : anneau de focus doré, cohérent sur fonds clair et sombre */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Sélection de texte aux couleurs de la marque */
::selection { background: var(--gold); color: var(--navy-deep); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 820px; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: 0.005em; }

h1 { font-size: clamp(2.9rem, 6.4vw, 5.4rem); font-weight: 500; }
h1 em { font-style: italic; color: var(--gold-light); }

h2 { font-size: clamp(2.1rem, 4vw, 3.3rem); }
.section-dark h2, .hero h2 { color: var(--white); }
/* H1 à l'échelle d'un h2 (pages dont le titre principal vit dans une section) */
.h-sub { font-size: clamp(2.1rem, 4vw, 3.3rem); }
.section-dark .h-sub { color: var(--white); }

h3 { font-size: 1.4rem; }

p { text-wrap: pretty; }

/* Étiquette « overline » : filet doré + petites capitales espacées */
.overline {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.6rem;
}
.overline::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}
.section-dark .overline, .hero .overline, .cta-band .overline { color: var(--gold-light); }
.overline.center { justify-content: center; }

.lede {
  max-width: 62ch;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.section-dark .lede { color: rgba(255, 255, 255, 0.72); }

/* ---------- Boutons (retenue) ---------- */
.btn {
  --bar: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-lg { padding: 1.1rem 2.6rem; }
.btn-block { width: 100%; justify-content: center; }

/* CTA principal : or sobre, plat, sans ombre criarde */
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }

/* Alternatives discrètes */
.btn-outline { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); }

.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--white); }

.btn-gold-line { border-color: var(--gold); color: var(--gold-deep); background: transparent; }
.btn-gold-line:hover { background: var(--gold); color: var(--navy-deep); }

/* Lien-flèche façon éditorial */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-decoration: none;
}
.link-arrow::after { content: "→"; transition: var(--transition); }
.link-arrow:hover::after { transform: translateX(6px); }
.section-dark .link-arrow { color: var(--gold-light); }

/* ==========================================================================
   EN-TÊTE
   ========================================================================== */

/* Barre utilitaire fine : désengorge la navigation principale */
.topbar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--navy-line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  gap: 1.5rem;
}
.topbar a { color: inherit; text-decoration: none; transition: var(--transition); }
.topbar a:hover { color: var(--gold-light); }
.topbar-left { display: flex; gap: 1.8rem; }
.topbar-left span, .topbar-left a { display: inline-flex; align-items: center; gap: 0.5rem; }
.topbar-left svg { color: var(--gold); }
.topbar-right { color: var(--gold-light); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.7rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 15, 30, 0.94);
  border-bottom: 1px solid var(--navy-line);
}
/* Le flou n'est activé que sur desktop : sur mobile, backdrop-filter créerait
   un bloc conteneur qui empêche le menu déroulant (position:fixed) de couvrir
   toute la hauteur de la fenêtre. */
@media (min-width: 881px) {
  .site-header {
    background: rgba(8, 15, 30, 0.86);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 82px;
}

.brand { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; }
.brand-logo { width: 46px; height: 46px; border-radius: 50%; }
.brand-name {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.42em;
  color: var(--white);
  padding-left: 0.42em; /* compense l'espacement pour un centrage optique */
}

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 2.4rem; list-style: none; }
.main-nav a {
  position: relative;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  padding-block: 0.5rem;
  transition: var(--transition);
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: var(--transition);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--white); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { width: 100%; }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: 0;
  padding: 0.6rem;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span { width: 26px; height: 1.5px; background: var(--white); transition: var(--transition); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   HÉRO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 82% -10%, rgba(198, 161, 91, 0.16), transparent 55%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 78%);
  color: var(--white);
}
/* Motif croissant + étoiles repris du logo, en filigrane */
.hero-motif {
  position: absolute;
  top: 50%; right: -4%;
  width: min(46vw, 620px);
  transform: translateY(-50%);
  color: var(--gold);
  opacity: 0.10;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding-block: clamp(6rem, 15vh, 11rem);
}
.hero h1 { margin-bottom: 1.8rem; }
.hero .lede { margin-bottom: 2.8rem; color: rgba(255, 255, 255, 0.78); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.6rem;
  list-style: none;
  margin-top: 3.6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--navy-line);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.62);
}
.hero-trust li { display: inline-flex; align-items: center; gap: 0.6rem; }
.hero-trust li::before { content: ""; width: 5px; height: 5px; rotate: 45deg; background: var(--gold); }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding-block: clamp(5rem, 11vh, 8.5rem); }
.section-cream { background: var(--paper); }
.section-dark { background: linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 92%); color: var(--white); }
.section-head { max-width: 760px; margin-bottom: 3.8rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 1.4rem; }
.section-cta { margin-top: 3.6rem; }
.section-cta.center { text-align: center; }

/* ---------- Prestations : liste éditoriale ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--hairline);
}
.service {
  display: flex;
  gap: 1.5rem;
  padding: 2.4rem 2rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
  transition: var(--transition);
}
.service:nth-child(2n) { border-right: 0; }
.service:hover { background: var(--paper); }
.service-num {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gold-deep);
  flex-shrink: 0;
  padding-top: 0.2rem;
}
.service h3 { margin-bottom: 0.5rem; transition: var(--transition); }
.service:hover h3 { color: var(--gold-deep); }
.service p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Engagements ---------- */
.engagements {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: 3.6rem;
}
.engagement { padding-top: 1.6rem; border-top: 1px solid var(--navy-line); }
.engagement h3 { color: var(--gold-light); font-size: 1.25rem; margin-bottom: 0.6rem; }
.engagement p { color: rgba(255, 255, 255, 0.68); font-size: 0.94rem; }

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.gallery figure { overflow: hidden; }
.gallery figcaption {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-top: 0.9rem;
}
.section-dark .gallery figcaption { color: rgba(255, 255, 255, 0.6); }

/* Panneau visuel « en attente de photo » traité avec soin (pas de pointillés) */
.media {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(90% 70% at 50% 20%, rgba(198, 161, 91, 0.12), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.media::after {
  content: "";
  position: absolute; inset: 12px;
  border: 1px solid rgba(198, 161, 91, 0.28);
  pointer-events: none;
}
.media-mark {
  width: 54px; height: 54px;
  color: var(--gold);
  opacity: 0.85;
}
.media-label {
  position: absolute;
  bottom: 1.4rem; left: 0; right: 0;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- À propos ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}
.about-media { max-width: 420px; }
.about-media .media { height: 100%; } /* l'image remplit le cadre, pas de débordement */
.about-quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--navy);
  margin-bottom: 1.6rem;
}
.about-signature {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 2.4rem;
}
.about-signature small { display: block; color: var(--ink-soft); font-weight: 300; letter-spacing: 0.08em; text-transform: none; margin-top: 0.3rem; }

/* ---------- Zone d'intervention ---------- */
.zone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 3.6rem;
}
.zone h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-bottom: 0.8rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--hairline);
}
.zone p { font-size: 0.92rem; color: var(--ink-soft); }
.zone-pills {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  list-style: none; margin-bottom: 1rem;
}
.zone-pills button {
  padding: 0.55rem 1.1rem;
  font-family: var(--sans); font-weight: 300;
  font-size: 0.82rem; letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}
.zone-pills button:hover { border-color: var(--gold); color: var(--gold-deep); }
.zone-pills button.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gold-light);
  font-weight: 400;
}
.zone-hint {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}

.map-embed { overflow: hidden; border: 1px solid var(--hairline); }
.map-embed iframe {
  display: block;
  filter: grayscale(0.85) contrast(1.04);
  transition: filter 0.5s ease;
}
.map-embed:hover iframe { filter: none; }

/* ---------- Avis ---------- */
.reviews {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid var(--hairline);
  background: var(--white);
}
.reviews-stars { color: var(--gold); font-size: 1.4rem; letter-spacing: 0.35em; }
.reviews p { color: var(--ink-soft); font-size: 0.95rem; margin-top: 1rem; }

/* ---------- Devis ---------- */
.devis-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.devis-grid > *, .contact-grid > * { min-width: 0; } /* les colonnes peuvent rétrécir sous leur contenu naturel */
.devis-intro p { color: rgba(255, 255, 255, 0.72); margin-bottom: 2rem; }
.devis-points { list-style: none; }
.devis-points li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--navy-line);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.devis-points li::before { content: ""; width: 5px; height: 5px; rotate: 45deg; background: var(--gold); flex-shrink: 0; }

.devis-form {
  background: var(--white);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  display: flex; flex-direction: column; gap: 1.2rem;
  box-shadow: var(--shadow-soft);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.devis-form label {
  display: flex; flex-direction: column; gap: 0.45rem;
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
}
.devis-form input, .devis-form select, .devis-form textarea {
  width: 100%;      /* jamais plus large que sa colonne (un select prend sinon la largeur de sa plus longue option) */
  min-width: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.98rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  transition: var(--transition);
}
.devis-form input:focus, .devis-form select:focus, .devis-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.15);
}
.form-rgpd { font-size: 0.76rem; color: var(--ink-soft); letter-spacing: normal; text-transform: none; font-weight: 300; }
.form-rgpd a { color: var(--gold-deep); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  padding: 1.5rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--sans); font-weight: 300; font-size: 1.6rem;
  color: var(--gold-deep); transition: var(--transition); flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 1.6rem; color: var(--ink-soft); max-width: 70ch; }

/* ---------- Bande CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(80% 120% at 15% 120%, rgba(198, 161, 91, 0.18), transparent 55%),
    linear-gradient(170deg, var(--navy-deep), var(--navy));
  padding-block: clamp(4.5rem, 10vh, 7rem);
}
.cta-band h2 { margin: 1rem 0; }
.cta-band p { color: rgba(255, 255, 255, 0.72); margin-bottom: 2.4rem; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.66); padding-top: 4.5rem; font-size: 0.92rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--navy-line);
}
.footer-brand .brand-name { padding-left: 0; margin: 0.9rem 0 0.3rem; }
.footer-brand p:last-child { margin-top: 0.8rem; color: rgba(255, 255, 255, 0.5); max-width: 30ch; }
.footer-tag { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); }
.footer-col h4 {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light);
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col li { padding: 0.3rem 0; }
.footer-col a { text-decoration: none; transition: var(--transition); }
.footer-col a:hover { color: var(--gold-light); }
.footer-legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  padding-block: 1.6rem; font-size: 0.78rem; color: rgba(255, 255, 255, 0.42);
}
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: var(--gold-light); }

/* ---------- Boutons flottants ---------- */
.floating-actions {
  position: fixed; right: 1.1rem; bottom: 1.1rem;
  display: flex; flex-direction: column; gap: 0.7rem; z-index: 90;
}
.fab {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  color: var(--white);
  box-shadow: 0 12px 28px -10px rgba(8, 15, 30, 0.55);
  transition: var(--transition);
}
.fab:hover { transform: translateY(-3px); }
.fab-whatsapp { background: #25D366; }
.fab-phone { background: var(--gold); color: var(--navy-deep); display: none; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22,0.61,0.36,1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .main-nav ul { gap: 1.6rem; }
  .engagements { grid-template-columns: repeat(2, 1fr); gap: 2rem 2.5rem; }
}

@media (max-width: 880px) {
  .topbar-left span:not(.tb-phone) { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  /* Le menu est un descendant de l'en-tête : logo et bouton ✕ doivent rester
     au-dessus de lui dans le même contexte d'empilement. */
  .brand, .nav-toggle { position: relative; z-index: 2; }

  /* Menu plein écran centré */
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    width: 100%;
    background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 90%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 3rem;
    margin-left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 420px;
  }
  .main-nav li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--navy-line);
  }
  .main-nav li:first-child { border-top: 1px solid var(--navy-line); }
  .main-nav a {
    display: block;
    padding: 1.15rem 0;
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.9);
  }
  .main-nav a::after { display: none; }
  .main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold-light); }
  /* Coordonnées en pied de menu */
  .main-nav ul::after {
    content: "06 68 95 68 89 · Beaucaire (30300)";
    display: block;
    margin-top: 2rem;
    font-family: var(--sans);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-light);
  }

  .services { grid-template-columns: 1fr; }
  .service { border-right: 0; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:nth-child(n+2) { display: none; } /* héro galerie : 1 visuel sur mobile */
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 100%; }
  .zone-grid { grid-template-columns: 1fr 1fr; }
  .zone-pills button { padding: 0.75rem 1.25rem; } /* cible tactile ≥ 44px */
  .devis-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .fab-phone { display: grid; }
}

@media (max-width: 520px) {
  .topbar-inner { justify-content: center; }
  .topbar-right { display: none; }
  .topbar-left a[href^="mailto"] { display: none; } /* le téléphone seul tient sur petit écran */
  .form-row { grid-template-columns: 1fr; }
  .engagements, .zone-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-motif { opacity: 0.06; right: -20%; }
}

/* Réintroduit tous les visuels de galerie dès qu'on a la place */
@media (min-width: 881px) {
  .gallery figure { display: block; }
}

/* ==========================================================================
   PAGES INTÉRIEURES
   ========================================================================== */

/* Héro de page compact */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 88% -20%, rgba(198, 161, 91, 0.14), transparent 55%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 82%);
  color: var(--white);
  padding-block: clamp(3.5rem, 8vh, 5.5rem);
}
.page-hero .hero-motif { width: min(34vw, 420px); opacity: 0.09; }
.page-hero-inner { position: relative; z-index: 1; max-width: 780px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 1.2rem; }
.page-hero p { color: rgba(255, 255, 255, 0.76); max-width: 60ch; font-size: 1.1rem; }

/* Fil d'Ariane */
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  list-style: none; margin-bottom: 1.6rem;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.breadcrumb a { color: var(--gold-light); text-decoration: none; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 0.5rem; color: rgba(255,255,255,0.3); }

/* Blocs prestation détaillés (alternés) */
.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vh, 5rem);
  border-bottom: 1px solid var(--hairline);
  scroll-margin-top: 140px;
}
.detail:nth-child(even) .detail-media { order: -1; }
.detail-num {
  font-family: var(--serif); font-style: italic; font-size: 1.1rem;
  color: var(--gold-deep); margin-bottom: 0.6rem;
}
.detail h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 1.2rem; }
.detail p { color: var(--ink-soft); margin-bottom: 1.4rem; }
.detail-list { list-style: none; margin-bottom: 1.8rem; }
.detail-list li {
  padding: 0.5rem 0 0.5rem 1.6rem; position: relative;
  border-top: 1px solid var(--hairline); font-size: 0.95rem;
}
.detail-list li:first-child { border-top: 0; }
.detail-list li::before {
  content: ""; position: absolute; left: 0; top: 1rem;
  width: 6px; height: 6px; rotate: 45deg; background: var(--gold);
}
.detail-media { aspect-ratio: 4 / 3; }

/* Grille contact */
.contact-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem); align-items: start;
}
.contact-cards { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-card {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.5rem; border: 1px solid var(--hairline); background: var(--white);
}
.contact-card .ic {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-2); color: var(--gold-deep);
}
.contact-card h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.contact-card p, .contact-card a { color: var(--ink-soft); font-size: 0.95rem; text-decoration: none; }
.contact-card a:hover { color: var(--gold-deep); }

/* Réalisations : grille avant/après extensible */
.works-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem;
}
.work figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.8rem; }
.work .media { aspect-ratio: 4 / 3; }
.beforeafter {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
}
.beforeafter .media { aspect-ratio: 1; }
.beforeafter .media-label { font-size: 0.6rem; }

/* Pages de texte (légal / RGPD) */
.prose { max-width: 800px; }
.prose h2 {
  font-size: 1.6rem; margin: 2.6rem 0 1rem;
  padding-top: 2rem; border-top: 1px solid var(--hairline);
}
.prose h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 1.6rem 0 0.6rem; }
.prose p, .prose li { color: var(--ink-soft); margin-bottom: 1rem; }
.prose ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.prose a { color: var(--gold-deep); }
.prose strong { color: var(--ink); font-weight: 500; }

/* Page de remerciement */
.thanks { text-align: center; max-width: 620px; margin-inline: auto; padding-block: clamp(4rem, 12vh, 8rem); }
.thanks .check {
  width: 78px; height: 78px; margin: 0 auto 2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-2); color: var(--gold-deep);
}
.thanks h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 1rem; }
.thanks p { color: var(--ink-soft); margin-bottom: 2rem; }

/* Bandeau cookies (RGPD) */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 640px; margin-inline: auto; z-index: 200;
  background: var(--navy-deep); color: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--navy-line);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.6rem;
  display: none;
  gap: 1rem 1.4rem; align-items: center; flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { flex: 1 1 300px; font-size: 0.86rem; line-height: 1.6; }
.cookie-banner a { color: var(--gold-light); }
.cookie-actions { display: flex; gap: 0.7rem; flex-shrink: 0; }
.cookie-actions .btn { padding: 0.7rem 1.3rem; font-size: 0.68rem; }
/* Sur fond bleu nuit, le bouton « Refuser » doit rester lisible */
.cookie-banner .btn-line {
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.85);
}
.cookie-banner .btn-line:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

@media (max-width: 880px) {
  .detail { grid-template-columns: 1fr; gap: 2rem; }
  .detail:nth-child(even) .detail-media { order: 0; }
  .detail-media, .work .media { aspect-ratio: 16 / 10; }
  .contact-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .works-grid { grid-template-columns: 1fr; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}
