/* =================================================================
   RITES.PRO — Feuille de style maîtresse
   Charte : sobre, humaine, symbolique, laïque, contemporaine.
   Palette, polices et réglages conformes au document de charte visuelle.
   ================================================================= */

/* ---------- POLICES ----------
   Chargées via Google Fonts dans le <head> de chaque page pour un démarrage
   simple. Pour la production finale, auto-héberger en WOFF2 dans /fonts/
   (voir le guide de mise en ligne fourni). */

/* ---------- VARIABLES ---------- */
:root {
  /* Palette */
  --color-ivory:       #FAF7F2;
  --color-charcoal:    #2B2F33;
  --color-gold:        #B08D4F;
  --color-terracotta:  #C4552D;
  --color-night:       #1E2A33;
  --color-sand:        #E7DED3;
  --color-brown-text:  #5D544B;

  /* Dérivés utiles */
  --gold-soft:   rgba(176, 141, 79, 0.5);
  --gold-faint:  rgba(176, 141, 79, 0.18);
  --charcoal-90: rgba(43, 47, 51, 0.9);
  --night-tint:  rgba(30, 42, 51, 0.04);

  /* Typographie */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", Arial, Helvetica, sans-serif;

  /* Mesures */
  --measure: 44rem;          /* largeur de lecture confortable ~700px */
  --measure-wide: 72rem;
  --gap-section: 4rem;
  --radius-pill: 999px;
}

/* ---------- RESET DOUX ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-charcoal);
  background: var(--color-ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }

/* ---------- TYPOGRAPHIE ---------- */
h1, h2, h3, .display-title, .logo-text {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-charcoal);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.08; font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.16; margin-top: 0; }
h3 { font-size: 1.45rem; line-height: 1.25; font-weight: 600; }
p  { margin: 0 0 1.1em; }
a  { color: var(--color-terracotta); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
strong { font-weight: 600; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--color-brown-text); }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 1rem;
}
.subtle { color: var(--color-brown-text); }

/* ---------- LAYOUT ---------- */
.container { width: 100%; max-width: var(--measure-wide); margin-inline: auto; padding-inline: 1.5rem; }
.prose { max-width: var(--measure); }
.prose-center { max-width: var(--measure); margin-inline: auto; }
section { padding-block: var(--gap-section); }
/* Éviter le cumul d'espacement entre deux sections de contenu qui se suivent */
section + section { padding-top: 0; }
/* Le bandeau CTA et les sections colorées gardent leur respiration en haut */
section + .section-night,
section + .section-tint { padding-top: var(--gap-section); }
.section-tint { background: var(--color-sand); }
.section-night { background: var(--color-night); color: var(--color-ivory); }
.section-night h1, .section-night h2, .section-night h3 { color: var(--color-ivory); }
.section-night .eyebrow { color: var(--color-gold); }
.section-night p { color: rgba(250, 247, 242, 0.82); }
.section-night a { color: var(--color-gold); }

/* ---------- FILET SÉPARATEUR (rappel du logo) ---------- */
.rule {
  border: 0; height: 0;
  border-top: 1px solid var(--gold-soft);
  max-width: 4rem; margin: 2rem 0;
}
.rule-center { margin-inline: auto; }

/* ---------- LIEN « SAUTER AU CONTENU » (accessibilité) ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--color-charcoal); color: var(--color-ivory);
  padding: 0.6rem 1rem; z-index: 200; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* =================================================================
   EN-TÊTE
   ================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--gold-faint);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--color-charcoal); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 42px; height: 42px; color: var(--color-charcoal); flex: none; }
.brand .logo-text { font-size: 1.35rem; letter-spacing: 0.12em; margin: 0; font-weight: 600; }
.brand .logo-text .dot { color: var(--color-gold); }

/* Navigation */
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-list { display: flex; align-items: center; gap: 0.1rem; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link {
  display: inline-block; padding: 0.55rem 0.62rem;
  font-size: 0.95rem; font-weight: 500; color: var(--color-charcoal);
  border-radius: 6px; white-space: nowrap;
}
.nav-link:hover { background: var(--night-tint); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--color-terracotta); }

/* Sous-menus */
.has-submenu > .submenu {
  position: absolute; top: calc(100% + 4px); left: 0;
  min-width: 250px; background: var(--color-ivory);
  border: 1px solid var(--gold-faint); border-radius: 10px;
  box-shadow: 0 14px 40px rgba(43,47,51,0.12);
  padding: 0.5rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
  display: block; padding: 0.5rem 0.7rem; border-radius: 6px;
  color: var(--color-charcoal); font-size: 0.92rem; font-weight: 500;
}
.submenu a:hover { background: var(--night-tint); text-decoration: none; color: var(--color-terracotta); }
.submenu-all {
  border-top: 1px solid var(--gold-faint); margin-top: 0.3rem; padding-top: 0.55rem;
}
.submenu-all a { font-style: italic; color: var(--color-gold); font-weight: 500; }
.submenu-all a:hover { color: var(--color-terracotta); background: var(--night-tint); }

/* Bouton hamburger (mobile) */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 0.5rem; color: var(--color-charcoal);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* =================================================================
   BOUTONS
   ================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 0.85rem 1.5rem; border-radius: var(--radius-pill);
  cursor: pointer; border: 1px solid transparent; transition: all 0.2s ease;
  line-height: 1.3; text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--color-charcoal); color: var(--color-ivory); border-bottom: 3px solid var(--color-gold); padding-bottom: calc(0.85rem - 2px); }
.btn-primary:hover { background: var(--color-night); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--color-charcoal); border-color: var(--color-gold); border-bottom: 3px solid var(--color-gold); padding-bottom: calc(0.85rem - 2px); }
.btn-secondary:hover { background: var(--gold-faint); }
.btn-terracotta { background: var(--color-terracotta); color: #fff; }
.btn-terracotta:hover { filter: brightness(0.94); transform: translateY(-1px); }
.header-cta { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
.btn-group { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.8rem; }

/* =================================================================
   HERO
   ================================================================= */
.hero {
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3.5rem, 8vw, 6.5rem);
}
.hero-inner { max-width: 50rem; }
.hero h1 { margin-bottom: 0.6rem; }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 38rem; }
.hero .btn-group { margin-top: 2rem; }

/* =================================================================
   CARTES (offres, familles de rites, etc.)
   ================================================================= */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-ivory); border: 1px solid var(--gold-faint);
  border-radius: 12px; padding: 1.6rem; transition: all 0.2s ease;
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { border-color: var(--gold-soft); box-shadow: 0 10px 30px rgba(43,47,51,0.07); transform: translateY(-2px); }
.card h3 { margin-bottom: 0.4rem; }
.card p { font-size: 0.97rem; color: var(--color-brown-text); margin-bottom: 1rem; }
.card .card-foot { margin-top: auto; }
.card-link {
  font-weight: 600; font-size: 0.92rem; color: var(--color-charcoal);
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.card-link::after { content: "→"; transition: transform 0.2s ease; }
.card-link:hover { color: var(--color-terracotta); text-decoration: none; }
.card-link:hover::after { transform: translateX(3px); }
.card-price { font-family: var(--font-display); font-size: 1.2rem; color: var(--color-gold); }

/* Carte sur fond sable conserve un fond ivoire pour contraste doux */
.section-tint .card { background: #fff; }

/* =================================================================
   BLOC « RÉPONSE RAPIDE » (AEO / IA) & ENCADRÉS
   ================================================================= */
.quick-answer {
  background: var(--color-sand); border-left: 3px solid var(--color-gold);
  border-radius: 0 10px 10px 0; padding: 1.3rem 1.5rem; margin: 0 0 2rem;
  max-width: var(--measure);
}
.quick-answer p:last-child { margin-bottom: 0; }
.note-ethics {
  background: #fff; border: 1px solid var(--gold-faint);
  border-radius: 10px; padding: 1.3rem 1.5rem; margin: 1.5rem 0;
}
.note-ethics .eyebrow { margin-bottom: 0.5rem; }
.callout {
  background: var(--night-tint); border-radius: 10px;
  padding: 1.5rem; margin: 1.5rem 0; max-width: var(--measure);
}

/* =================================================================
   PROCESSUS / ÉTAPES (les trois temps, méthode)
   ================================================================= */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 2rem 0; max-width: var(--measure); }
.steps li {
  position: relative; padding-left: 3.2rem; margin-bottom: 1.6rem; counter-increment: step;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -0.1rem;
  width: 2.2rem; height: 2.2rem; border: 1px solid var(--color-gold);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.1rem; color: var(--color-gold);
}
.steps h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.steps p { margin: 0; color: var(--color-brown-text); font-size: 0.97rem; }

/* =================================================================
   TABLEAUX (tarifs)
   ================================================================= */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table.price {
  width: 100%; border-collapse: collapse; font-size: 0.97rem;
  background: #fff; border-radius: 10px; overflow: hidden;
}
table.price th, table.price td {
  text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--gold-faint);
}
table.price thead th {
  background: var(--color-night); color: var(--color-ivory);
  font-family: var(--font-body); font-weight: 600; font-size: 0.88rem;
  letter-spacing: 0.03em;
}
table.price tbody tr:last-child td { border-bottom: 0; }
table.price td:last-child { font-family: var(--font-display); font-size: 1.1rem; color: var(--color-gold); white-space: nowrap; }
table.price tbody tr:hover { background: var(--night-tint); }

/* =================================================================
   FAQ (détails repliables — bon pour l'AEO)
   ================================================================= */
.faq { max-width: var(--measure); margin: 1.5rem 0; }
.faq details {
  border-bottom: 1px solid var(--gold-faint); padding: 0.3rem 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.05rem;
  padding: 0.9rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--color-gold); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 1rem; margin: 0; color: var(--color-brown-text); }

/* =================================================================
   FORMULAIRES
   ================================================================= */
.form { max-width: var(--measure); }
.form-row { margin-bottom: 1.2rem; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; }
.req { color: var(--color-terracotta); }
input, select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: 0.75rem 0.9rem; border: 1px solid var(--gold-soft);
  border-radius: 8px; background: #fff; color: var(--color-charcoal);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--color-gold); outline-offset: 1px; border-color: transparent;
}
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--color-brown-text); }

/* =================================================================
   PAGE-HEADER (bandeau de titre des pages intérieures)
   ================================================================= */
.page-header { padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; }
.page-header h1 { margin-bottom: 0.5rem; }
.breadcrumb { font-size: 0.85rem; color: var(--color-brown-text); margin-bottom: 1rem; }
.breadcrumb a { color: var(--color-brown-text); }
.breadcrumb a:hover { color: var(--color-terracotta); }
.breadcrumb span { margin: 0 0.4rem; opacity: 0.5; }

/* =================================================================
   CTA DE BAS DE PAGE
   ================================================================= */
.cta-band { text-align: center; }
.cta-band .prose-center { max-width: 40rem; }
.cta-band .mark-sm { width: 48px; margin: 0 auto 1.5rem; color: var(--color-gold); }
/* Texture subtile en fond du bandeau CTA (voile bleu nuit pour garder le texte lisible) */
.cta-band.section-night {
  background-image:
    linear-gradient(rgba(30,42,51,0.82), rgba(30,42,51,0.88)),
    url("../images/cta-texture.webp");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

/* =================================================================
   PIED DE PAGE
   ================================================================= */
.site-footer { background: var(--color-night); color: rgba(250,247,242,0.75); padding-block: 3.5rem 2rem; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.site-footer h4 { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-gold); margin: 0 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: rgba(250,247,242,0.75); }
.site-footer a:hover { color: var(--color-ivory); text-decoration: none; }
.footer-brand .brand { color: var(--color-ivory); margin-bottom: 0.8rem; }
.footer-brand .brand .mark, .footer-brand .logo-text { color: var(--color-ivory); }
.footer-brand p { max-width: 22rem; color: rgba(250,247,242,0.65); }
.footer-bottom {
  border-top: 1px solid rgba(250,247,242,0.12); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.82rem; color: rgba(250,247,242,0.55);
}
.footer-bottom a { color: rgba(250,247,242,0.55); }

/* =================================================================
   UTILITAIRES
   ================================================================= */
.text-center { text-center: center; text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.section-head { max-width: var(--measure); margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; }
  .nav { 
    position: fixed; inset: 72px 0 auto 0; background: var(--color-ivory);
    border-bottom: 1px solid var(--gold-faint); flex-direction: column; align-items: stretch;
    padding: 1rem 1.5rem 1.5rem; gap: 0; max-height: calc(100vh - 72px); overflow-y: auto;
    transform: translateY(-120%); transition: transform 0.25s ease; box-shadow: 0 20px 40px rgba(43,47,51,0.1);
  }
  .nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-link { padding: 0.8rem 0; border-bottom: 1px solid var(--gold-faint); border-radius: 0; }
  .has-submenu > .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; padding: 0 0 0.5rem 1rem;
    min-width: 0; display: none;
  }
  .has-submenu.open > .submenu { display: block; }
  .header-cta { margin-top: 1rem; width: 100%; justify-content: center; }
  .nav-link.has-submenu-toggle::after { content: " ›"; color: var(--color-gold); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row.two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  :root { --gap-section: 3rem; }

  /* Resserrer l'espacement vertical sur mobile pour éviter les grands vides */
  section { padding-block: 2rem; }
  .section-head { margin-bottom: 1.5rem; }
  .faq { margin: 1rem 0 0; }
  .faq details:last-child p { padding-bottom: 0; }
  section + .section-night,
  section + .section-tint { padding-top: 2rem; }
  /* Neutraliser la marge basse du dernier élément d'une section (évite le cumul avec le padding) */
  section > .container > *:last-child,
  section > .container > .prose:last-child > *:last-child { margin-bottom: 0; }
}

/* Césure maîtrisée du grand titre d'accueil (desktop uniquement) */
.h1-break { display: none; }
@media (min-width: 780px) { .h1-break { display: inline; } }

/* =================================================================
   IMAGES DE CONTENU
   ================================================================= */
/* Bandeau image pleine largeur sous le titre des pages intérieures */
.section-figure { padding-block: 0; margin-bottom: 2.5rem; }
.figure-band {
  overflow: hidden;
  background: var(--color-sand);
  line-height: 0;
  aspect-ratio: 16 / 10;
}
.figure-band.ar-16-9 { aspect-ratio: 16 / 9; }
.figure-band.ar-2-1 { aspect-ratio: 2 / 1; }
.figure-band.ar-7-4 { aspect-ratio: 7 / 4; }
@media (max-width: 760px) {
  .figure-band { border-radius: 0; }
}
@media (min-width: 761px) {
  .figure-band {
    max-width: var(--measure-wide);
    margin-inline: auto;
    border-radius: 14px;
  }
}
.figure-band img {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}
/* La section de contenu qui suit immédiatement une image ne rajoute pas d'espace en haut */
.section-figure + section { padding-top: 0; }

/* Vignettes carrées en tête des cartes « portes d'entrée » (accueil) */
.card-figure {
  margin: -1.6rem -1.6rem 1.2rem; aspect-ratio: 1; overflow: hidden;
  border-radius: 12px 12px 0 0;
}
.card-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Encadré « à propos » avec portrait */
.callout-portrait { display: flex; gap: 1.5rem; align-items: center; }
.portrait-photo {
  width: 130px; height: 162px; object-fit: cover; border-radius: 10px;
  flex: none;
}
@media (max-width: 560px) {
  .callout-portrait { flex-direction: column; text-align: center; }
  .portrait-photo { width: 150px; height: 187px; }
}

/* Supprimer la marge basse du dernier élément d'une section (évite le cumul avec le padding) */
main section > .container > *:last-child,
main section > .container > .prose:last-child > *:last-child,
main section > .container > *:last-child > *:last-child {
  margin-bottom: 0;
}

/* ===================================================================
   Bandeau de consentement cookies (RGPD/CNIL)
   =================================================================== */
.consent-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  background: var(--color-ivory);
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(43, 47, 51, 0.18);
  animation: consent-rise 0.35s ease both;
}
@keyframes consent-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.consent-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  flex-wrap: wrap;
}
.consent-text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-charcoal);
}
.consent-text a { color: var(--color-gold); text-decoration: underline; }
.consent-actions {
  display: flex;
  gap: 0.6rem;
  flex: 0 0 auto;
}
.btn-consent {
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--gold-soft);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-refuse {
  background: transparent;
  color: var(--color-charcoal);
}
.btn-refuse:hover { background: var(--gold-faint); }
.btn-accept {
  background: var(--color-gold);
  color: #fff;
  border-color: var(--color-gold);
}
.btn-accept:hover { background: #9a7a42; border-color: #9a7a42; }
@media (max-width: 560px) {
  .consent-inner { justify-content: stretch; }
  .consent-actions { width: 100%; }
  .btn-consent { flex: 1; }
}

/* ===================================================================
   Témoignages clients
   =================================================================== */
.testimonial {
  background: var(--color-ivory);
  border: 1px solid var(--gold-faint);
  border-left: 3px solid var(--color-gold);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  position: relative;
}
.testimonial p {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-charcoal);
  margin: 0 0 0.75rem 0;
}
.testimonial .attribution {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-gold);
  margin: 0;
}
.testimonials-note {
  font-size: 0.85rem;
  color: var(--color-charcoal);
  opacity: 0.6;
  margin-top: 1rem;
}
/* Grille pour le bandeau d'accueil (2-3 témoignages) */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.testimonials-grid .testimonial p { font-size: 0.98rem; }

/* ===================================================================
   Confirmation d'envoi de formulaire (AJAX, sans redirection)
   =================================================================== */
.form-success {
  background: var(--color-ivory);
  border: 1px solid var(--gold-faint);
  border-left: 3px solid var(--color-gold);
  border-radius: 12px;
  padding: 2rem 2rem;
  text-align: center;
  animation: form-success-in 0.4s ease both;
}
@keyframes form-success-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.form-success svg { margin: 0 auto 0.75rem; display: block; }
.form-success h2 {
  margin: 0 0 0.5rem;
  color: var(--color-charcoal);
}
.form-success p {
  margin: 0;
  color: var(--color-charcoal);
  line-height: 1.6;
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}
.form-error {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #FBEEE9;
  border-left: 3px solid var(--color-terracotta);
  border-radius: 8px;
  color: var(--color-charcoal);
  font-size: 0.95rem;
}

/* =================================================================
   GUIDES GRATUITS — formulaire (choix documents, téléphone conditionnel)
   ================================================================= */
.doc-choice { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.5rem; }
.doc-choice label {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 500; cursor: pointer; font-size: 0.95rem;
}
.doc-choice input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: var(--color-gold); flex-shrink: 0; }

.callback-check {
  display: flex; align-items: center; gap: 0.6rem;
  cursor: pointer; font-weight: 500; font-size: 0.95rem;
}
.callback-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--color-gold); flex-shrink: 0; }

.phone-conditional {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
  margin-top: 0;
}
.phone-conditional.visible { max-height: 100px; opacity: 1; margin-top: 1rem; }

/* =================================================================
   ENCART "GUIDES" DÉCLENCHÉ AU SCROLL
   ================================================================= */
.guides-prompt {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 1.2rem;
  background: rgba(43,47,51,0.55);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.guides-prompt.visible { opacity: 1; visibility: visible; }
.guides-prompt-inner {
  position: relative;
  background: var(--color-ivory);
  border-radius: 14px;
  max-width: 30rem; width: 100%;
  max-height: 90vh; overflow-y: auto;
  padding: 2.2rem 2rem;
  box-shadow: 0 24px 60px rgba(43,47,51,0.35);
  transform: translateY(12px);
  transition: transform 0.3s ease;
}
.guides-prompt.visible .guides-prompt-inner { transform: translateY(0); }
.guides-prompt-close {
  position: absolute; top: 0.8rem; right: 0.8rem;
  width: 2rem; height: 2rem; border: none; background: transparent;
  font-size: 1.4rem; line-height: 1; color: var(--color-brown-text);
  cursor: pointer; border-radius: 50%;
}
.guides-prompt-close:hover { background: var(--night-tint); color: var(--color-charcoal); }
.guides-prompt-inner h3 {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 500;
  margin: 0.2rem 0 0.5rem;
}
.guides-prompt-inner .subtle { color: var(--color-brown-text); font-size: 0.92rem; margin-bottom: 1.4rem; }

@media (max-width: 560px) {
  .guides-prompt-inner { padding: 1.6rem 1.4rem; max-height: 85vh; }
}
