/* ============================================================
   TANARY - L'Atelier Transmission
   Feuille de style principale
   ============================================================ */

/* --- Polices Google ---
   Chargees par wp_enqueue_style() dans inc/seo-perf.php, pas par @import :
   un @import ici forcerait le navigateur a telecharger ce fichier AVANT de
   decouvrir l'URL des polices (chaine bloquante de 3 requetes en serie). */

/* --- Variables CSS --- */
:root {
  /* Palette Malgache */
  --teal:        #1A6B6B;   /* Couleur TANARY */
  --teal-dark:   #145252;
  --gold:        #C48B35;   /* Raphia, L'Atelier Transmission */
  --gold-light:  #E8B86D;
  --green:       #2C5E3B;   /* Vert Madagascar */
  --green-dark:  #1f4229;
  --terra:       #8C4A32;   /* Terre rouge */
  --terra-dark:  #6e3826;
  --linen:       #FAF6F0;   /* Fond lin */
  --linen-dark:  #F0E8DC;   /* Sections alternées */
  --white:       #FEFCF8;
  --text:        #2A2522;
  --text-muted:  #6B6358;
  --border:      rgba(196, 139, 53, 0.3);

  /* Typographie */
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Nunito Sans', system-ui, sans-serif;

  /* Espacements */
  --section-py:  5rem;
  --container:   1280px;      /* largeur max du contenu sur grand ecran */
  --container-narrow: 1100px;  /* pour articles/textes longs */
  --nav-h:       90px;

  /* Transitions */
  --transition:  0.25s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--linen);
  background-image: url('../img/fond.webp');
  background-repeat: repeat;
  background-size: 400px;
  background-attachment: fixed;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- Utilitaires --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.section { padding: var(--section-py) 0; }
.section--alt { background-color: var(--linen-dark); }
.section--dark { background-color: var(--green); color: var(--white); }

.text-center { text-align: center; }
.text-teal   { color: var(--teal); }
.text-gold   { color: var(--gold); }
.text-green  { color: var(--green); }
.text-terra  { color: var(--terra); }

/* --- Typographie --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.2rem; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.eyebrow::before,
.eyebrow::after {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* --- Boutons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(44, 94, 59, 0.25);
}
.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 6px 24px rgba(44, 94, 59, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--terra);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(140, 74, 50, 0.25);
}
.btn-secondary:hover {
  background: var(--terra-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-1px);
}
.btn-whatsapp svg { width: 1.1em; height: 1.1em; }

/* Alias BEM `btn--x` : les templates et le contenu importé utilisent la
   double barre, la feuille de style n'a jamais défini que la simple.
   Résultat : 9 boutons (dont les CTA WhatsApp) s'affichaient sans fond
   ni bordure. On aligne les deux écritures plutôt que de réécrire le HTML. */
.btn--primary       { background: var(--green); color: var(--white); box-shadow: 0 4px 16px rgba(44, 94, 59, 0.25); }
.btn--primary:hover { background: var(--green-dark); }
.btn--secondary     { background: var(--terra); color: var(--white); box-shadow: 0 4px 16px rgba(140, 74, 50, 0.25); }
.btn--outline       { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn--outline:hover { background: var(--green); color: var(--white); }
.btn--whatsapp {
  background: #25D366;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}
.btn--whatsapp:hover { background: #1da851; }
.btn--whatsapp svg { width: 1.1em; height: 1.1em; }

/* --- Séparateur broderie --- */
.woven-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  opacity: 0.5;
}
.woven-divider svg { display: block; }

/* Trait décoratif sous titre */
.title-underline {
  display: inline-block;
  position: relative;
}
.title-underline::after {
  content: '';
  display: block;
  width: 60%;
  height: 3px;
  background: var(--gold);
  margin-top: 0.5rem;
}

/* --- Cartes atelier --- */
.card-atelier {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}
.card-atelier::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.card-atelier:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}
.card-atelier:hover::before { transform: scaleX(1); }

.card-atelier__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
}

.card-atelier__tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  border-top: 1px dashed var(--border);
  padding-top: 1rem;
  margin-top: 1.5rem;
  width: 100%;
}

/* --- Card featured (fond vert) --- */
.card-atelier--featured {
  background: var(--green);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(44, 94, 59, 0.3);
}
.card-atelier--featured::before { background: var(--gold-light); }
.card-atelier--featured h3 { color: var(--white); }
.card-atelier--featured p { color: rgba(255,255,255,0.85); }
.card-atelier--featured .card-atelier__tag { color: var(--gold-light); border-color: rgba(255,255,255,0.2); }

/* --- Badge logo --- */
.logo-badge {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.logo-badge--lg { width: 140px; height: 140px; }
.logo-badge--xl { width: 200px; height: 200px; }

/* =============================================================
   NAVIGATION
   ============================================================= */
.site-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--nav-h);
  background: rgba(250, 246, 240, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.site-nav.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.site-nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}
.nav-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-brand-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal);
  text-transform: uppercase;
}
.nav-brand-tagline {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.25rem;
}

/* Links desktop */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--teal); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--teal); }
.nav-links a.active::after { width: 100%; }

/* CTA nav */
.nav-cta {
  padding: 0.6rem 1.5rem !important;
  background: var(--terra) !important;
  color: var(--white) !important;
  border-radius: 2px;
  letter-spacing: 0.08em !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--terra-dark) !important;
  color: var(--white) !important;
}

/* Hamburger mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: 4px 0;
  color: var(--green);
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Menu mobile */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: 100%;
  background: var(--linen);
  border-bottom: 2px solid var(--border);
  z-index: 999;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 1rem 0.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--green);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a.nav-cta {
  margin-top: 1rem;
  background: var(--terra);
  color: var(--white);
  text-align: center;
  padding: 0.9rem;
  border-bottom: none;
  border-radius: 2px;
}

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
  background-color: var(--green);
  background-image: radial-gradient(rgba(250,246,240,0.05) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  color: var(--white);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-brand-logo { width: 70px; margin-bottom: 1rem; }
.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-brand-tagline {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 0.2rem;
}
.footer-brand-desc {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
}
.footer-col ul li {
  margin-bottom: 0.6rem;
}
.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--gold-light); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}
.footer-contact-item svg {
  width: 1.1em; height: 1.1em;
  color: var(--gold-light);
  flex-shrink: 0;
  margin-top: 3px;
}
.footer-contact-item a {
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
}
.footer-contact-item a:hover { color: var(--gold-light); }

.footer-bottom {
  padding: 1.2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a {
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--gold-light); }

/* =============================================================
   PAGE : HERO (Accueil)
   ============================================================= */
.hero {
  padding-top: calc(var(--nav-h) + 5rem);
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-badge {
  width: 300px;
  height: 300px;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,0.12));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.hero h1 { color: var(--green); margin-bottom: 1.5rem; }
.hero h1 em {
  font-style: italic;
  color: var(--terra);
  font-weight: 600;
}
.hero-lead { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2rem; }

.hero-mora {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--linen-dark);
  border-left: 3px solid var(--gold);
  padding: 0.7rem 1.2rem;
  margin-bottom: 2rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
  border-radius: 0 2px 2px 0;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-badges-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--border);
}
.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}
.hero-badge-item svg {
  color: var(--green);
  width: 1.1em; height: 1.1em;
  flex-shrink: 0;
}

/* =============================================================
   PAGE HERO (pages intérieures)
   ============================================================= */
.page-hero {
  padding-top: calc(var(--nav-h) + 3.5rem);
  padding-bottom: 3.5rem;
  background: var(--green);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(196,139,53,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero .eyebrow::before,
.page-hero .eyebrow::after { background: var(--gold-light); }
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: rgba(255,255,255,0.8); }

.page-hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.page-hero-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.9;
}

/* Breadcrumb */
.breadcrumb {
  padding-top: calc(var(--nav-h) + 1rem);
  padding-bottom: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
}
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { color: var(--text-muted); margin: 0 0.4rem; }

/* =============================================================
   SECTION : CONCEPT GOÛTER
   ============================================================= */
.gouter-section { background: var(--linen); }

.gouter-steps {
  display: flex;
  gap: 0;
  position: relative;
  margin: 3rem 0;
}
.gouter-steps::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: 2rem;
  right: 2rem;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0, var(--gold) 8px, transparent 8px, transparent 16px);
}

.gouter-step {
  flex: 1;
  text-align: center;
  padding: 0 1rem;
  position: relative;
}

.gouter-step__number {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1rem;
  background: var(--white);
  border: 3px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
  position: relative;
  z-index: 1;
}

.gouter-step__time {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.gouter-step h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--green);
  margin-bottom: 0.4rem;
}
.gouter-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================================
   SECTION : ARGUMENTS CLÉ
   ============================================================= */
.arguments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.argument-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
}
.argument-item__icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--linen-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}
.argument-item__icon svg { width: 1.2em; height: 1.2em; }
.argument-item h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.2rem; color: var(--text); }
.argument-item p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* =============================================================
   SECTION : TARIFS
   ============================================================= */
.tarif-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.tarif-card__header {
  background: var(--green);
  padding: 2rem;
  text-align: center;
  color: var(--white);
}
.tarif-card__header h3 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}
.tarif-card__price {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.tarif-card__price sup { font-size: 1.5rem; vertical-align: top; margin-top: 0.5rem; }
.tarif-card__price sub { font-size: 1rem; color: rgba(255,255,255,0.7); }
.tarif-card__body { padding: 2rem; }
.tarif-card__body ul { space-y: 0.6rem; }
.tarif-card__body li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9rem;
}
.tarif-card__body li:last-child { border-bottom: none; }
.tarif-card__body li svg { color: var(--green); width: 1em; height: 1em; flex-shrink: 0; }

/* =============================================================
   SECTION : ZONE D'INTERVENTION
   ============================================================= */
.zone-map {
  background: var(--linen-dark);
  border: 1px solid var(--border);
  padding: 3rem;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.zone-villes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.zone-ville {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
}
.zone-ville svg { width: 0.85em; height: 0.85em; color: var(--gold); }
.zone-ville--hors {
  background: transparent;
  color: var(--text-muted);
  border-style: dashed;
}

/* =============================================================
   SECTION : TÉMOIGNAGES (placeholder)
   ============================================================= */
.temoignage {
  background: var(--white);
  border-left: 4px solid var(--gold);
  padding: 2rem 2.5rem;
  position: relative;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
}
.temoignage::before {
  content: '"';
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.2;
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-family: Georgia, serif;
  line-height: 1;
}
.temoignage cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* =============================================================
   PAGE : CONTACT
   ============================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-card {
  background: var(--linen-dark);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: 2px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 0;
  border-bottom: 1px dashed var(--border);
}
.contact-method:last-child { border-bottom: none; }
.contact-method__icon {
  width: 3rem;
  height: 3rem;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.contact-method__icon svg { width: 1.2em; height: 1.2em; }
.contact-method__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-method__value {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 600;
}
.contact-method__value a {
  color: var(--text);
  transition: color var(--transition);
}
.contact-method__value a:hover { color: var(--teal); }

/* Formulaire contact */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,107,107,0.1);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* =============================================================
   SECTION : ISABELLE / À PROPOS
   ============================================================= */
.isabelle-portrait {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid var(--linen-dark);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  flex-shrink: 0;
}
.isabelle-card {
  background: var(--white);
  padding: 3rem;
  border-radius: 2px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}
.isabelle-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 80px; height: 80px;
  background: var(--gold);
  opacity: 0.08;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.isabelle-quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
  border-left: 4px solid var(--gold);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}

/* =============================================================
   SECTION : FAQ / INFOS PRATIQUES
   ============================================================= */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
  cursor: pointer;
  background: none;
  border: none;
}
.faq-question svg {
  width: 1.2em; height: 1.2em;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--gold);
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 0 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.faq-item.open .faq-answer { display: block; }

/* =============================================================
   CTA BAND
   ============================================================= */
.cta-band {
  background: var(--terra);
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 4rem 0;
  text-align: center;
  color: var(--white);
}
.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-band .btn { margin: 0.4rem; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 900px) {
  :root { --section-py: 3.5rem; --nav-h: 75px; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-inner .eyebrow { justify-content: center; }
  .hero-inner .hero-ctas { justify-content: center; }
  .hero-inner .hero-badges-row { justify-content: center; }
  .hero-badge { order: -1; width: 220px; height: 220px; }

  .arguments-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .gouter-steps { flex-direction: column; }
  .gouter-steps::before { display: none; }
  .page-hero-inner { flex-direction: column; text-align: center; }
  .page-hero-logo { display: none; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }
  .arguments-grid { grid-template-columns: 1fr; }
  .hero-badge { width: 180px; height: 180px; }
  .isabelle-portrait { width: 200px; height: 200px; }
}

/* =============================================================
   UTILITAIRES FLEX / GRID
   ============================================================= */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.gap-3 { gap: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

@media (max-width: 700px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* =============================================================
   REFONTE RESPONSIVE MOBILE — 10/08/2026
   Corrige : héros à hauteur figée qui clippaient le contenu,
   grilles 2 colonnes posées en style inline, gouttières de
   container trop larges, nav qui débordait, paddings desktop.
   ============================================================= */

/* ---------- Tablette & mobile : <= 900px ---------- */
@media (max-width: 900px) {

  /* Gouttières : 2.5rem = 80px perdus sur 375px de large */
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }

  /* Fond fixe : bug de rendu iOS Safari + coût de scroll énorme */
  body { background-attachment: scroll; }

  /* --- HÉROS ---
     Les sections héros ont une hauteur en vh + overflow:hidden posés
     en inline. Sur mobile le contenu (h1 + intro + CTA) dépasse et se
     fait couper. On repasse la section en hauteur automatique et le
     bloc de contenu en flux normal ; l'image reste en fond absolu. */
  .t-hero {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  /* `relative` et non `static` : le calque de dégradé qui précède ce bloc
     est en position:absolute, il se peindrait PAR-DESSUS un contenu non
     positionné. `relative` garde le flux normal tout en restant dans la
     couche des éléments positionnés, et le z-index le met au-dessus. */
  .t-hero__content {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    z-index: 2;
    padding-top: calc(var(--nav-h) + 2.25rem);
    padding-bottom: 3rem;
  }
  .t-hero > img { position: absolute !important; inset: 0 !important; height: 100% !important; z-index: 0; }
  .t-hero h1 { font-size: clamp(1.9rem, 7.5vw, 2.6rem) !important; }
  .t-hero p  { font-size: 1rem !important; }
  .t-hero .btn { width: 100%; text-align: center; }

  /* Héros compact généré par functions.php (hauteur fixe 340px) */
  .tanary-hero > div:first-child { height: auto !important; min-height: 240px; }

  /* --- SPLITS 2 COLONNES INÉGALES (inline style, d'où !important) ---
     Utilisés sur la home ET par tanary_section_isabelle_compact(),
     donc présents sur les ~600 pages villes/services/guides. */
  .t-split { grid-template-columns: 1fr !important; gap: 2.5rem !important; }

  /* --- TOUTES les grilles inline, y compris celles du post_content ---
     Les pages institutionnelles (a-propos, tarifs, zone-intervention…)
     sont l'ancien site statique importé : leur contenu est echo brut par
     page.php avec ses propres grilles inline (1fr 1.6fr, 1fr 1fr 1fr…).
     Impossible d'y poser une classe → on cible l'attribut style.
     Les grilles auto-fit savent déjà se replier, on les laisse tranquilles
     jusqu'au palier 600px. */
  main [style*="grid-template-columns"]:not([style*="auto-fit"]):not([style*="auto-fill"]) {
    grid-template-columns: 1fr !important;
  }
  /* Gouttières desktop (3 à 5rem) intenables sur mobile */
  main [style*="gap:5rem"],
  main [style*="gap:4rem"],
  main [style*="gap:3rem"] { gap: 2rem !important; }
  .t-badge-quote {
    position: static !important;
    max-width: none !important;
    margin-top: 1rem;
    padding: 1.1rem 1.25rem !important;
    font-size: 1rem !important;
  }

  /* --- NAVIGATION : la marque + le burger débordaient à 375px --- */
  .nav-logo { width: 46px; height: 46px; }
  .nav-brand { gap: 0.6rem; }
  .nav-brand-name { font-size: 1.25rem; letter-spacing: 0.08em; }
  .nav-brand-tagline { font-size: 0.52rem; letter-spacing: 0.14em; }
  .nav-toggle { width: 44px; height: 44px; padding: 10px 7px; justify-content: center; }

  /* --- BOUTONS : white-space:nowrap + gros padding = débordement --- */
  .btn { white-space: normal; padding: 0.85rem 1.4rem; }

  /* --- Paddings desktop posés en inline sur les sections --- */
  section[style*="padding:6rem 0"],
  section[style*="padding:5rem 0"],
  section[style*="padding:5rem 0 4rem"] { padding-top: 3.25rem !important; padding-bottom: 3.25rem !important; }

  /* --- Blocs à fort padding intérieur --- */
  .zone-map          { padding: 1.75rem 1.25rem; }
  .isabelle-card     { padding: 1.75rem 1.25rem; }
  .contact-info-card { padding: 1.75rem 1.25rem; }
  .card-atelier      { padding: 1.75rem 1.25rem; }
  .temoignage        { padding: 1.5rem 1.25rem; }
  .tarif-card__header, .tarif-card__body { padding: 1.5rem 1.25rem; }
}

/* ---------- Mobile : <= 600px ---------- */
@media (max-width: 600px) {
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }

  /* Garde-fou : le site est truffé de styles inline (décalages
     négatifs, largeurs max) → on interdit le scroll horizontal. */
  body { overflow-x: hidden; }

  /* À ce palier, même les grilles auto-fit se replient (leur minmax
     de 220-300px ne tient plus dans les ~330px utiles). */
  main [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  main [style*="gap:2.5rem"],
  main [style*="gap:2rem"] { gap: 1.5rem !important; }

  /* Cartes du contenu importé (vérifié : `padding:2.5rem[ 2rem]` n'est
     utilisé que sur des cartes, jamais en `padding:2.5rem 0` de section). */
  main [style*="padding:2.5rem"] { padding: 1.35rem 1.15rem !important; }

  .tarif-card__price { font-size: 3rem; }
  .gouter-step { padding: 0 0 1.5rem; }
  .hero-badges-row { gap: 0.9rem 1.25rem; }

  /* Les rangées de "preuves" du héros passent en colonne lisible */
  .t-hero__content div[style*="gap:2rem"] { gap: 0.5rem 1.25rem !important; }
}

/* ---------- Petit mobile : <= 420px ---------- */
@media (max-width: 420px) {
  :root { --nav-h: 66px; }
  .nav-brand-tagline { display: none; }
  .nav-brand-name { font-size: 1.15rem; }
  .nav-logo { width: 40px; height: 40px; }

  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .eyebrow::before, .eyebrow::after { display: none; }
  .isabelle-portrait { width: 160px; height: 160px; }
  .hero-badge { width: 150px; height: 150px; }
}

/* ---------- Photothèque : bandeau et galerie (inc/photos.php) ---------- */
.t-photo-band img,
.t-gallery img {
  transition: transform 0.5s ease;
}
.t-photo-band figure,
.t-gallery figure {
  background: var(--linen-dark);
}
.t-gallery figure:hover img,
.t-photo-band figure:hover img {
  transform: scale(1.04);
}

@media (max-width: 900px) {
  /* 4 colonnes -> 2 : les vignettes « span 2 » redeviennent pleine largeur. */
  .t-gallery { grid-template-columns: repeat(2, 1fr) !important; grid-auto-rows: 150px !important; }
  .t-gallery figure[style*="span 2"],
  .t-gallery figure[style*="span 4"] { grid-column: span 2 !important; }
}

@media (max-width: 700px) {
  .t-photo-band { grid-template-columns: repeat(2, 1fr) !important; }
  .t-photo-band figure:last-child { grid-column: span 2; }
  .t-photo-band img { height: 180px !important; }
}

@media (max-width: 480px) {
  .t-gallery { grid-auto-rows: 130px !important; }
}

/* Photo d'en-tête des cartes ateliers : elle déborde du padding de la carte. */
.card-atelier__photo {
  margin: -2.5rem -2rem 1.6rem;
  height: 170px;
  overflow: hidden;
  background: var(--linen-dark);
}
.card-atelier__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.card-atelier:hover .card-atelier__photo img { transform: scale(1.04); }

/* Le padding de .card-atelier tombe à 1.75rem/1.25rem sous 900px :
   la marge négative de la photo doit suivre, sinon elle déborde et se fait rogner. */
@media (max-width: 900px) {
  .card-atelier__photo { margin: -1.75rem -1.25rem 1.25rem; height: 150px; }
}
