/* =========================================================
   COMPONENTS — éléments réutilisables (boutons, header, footer,
   cartes, accordéon, citations, etc.)
   ========================================================= */

/* ---- Boutons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1.05rem;
  padding: .9rem 1.6rem; border-radius: var(--radius);
  border: 1.5px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--terracotta-deep); color: var(--cream); }
.btn-primary:hover { background: var(--terracotta-darker); }
.btn-outline { background: transparent; color: var(--espresso); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--terracotta-deep); color: var(--terracotta-deep); }
.btn-on-accent { background: var(--cream); color: var(--terracotta-darker); }
.btn-on-accent:hover { background: #fff; }
.btn-sm { padding: .58rem 1.1rem; font-size: .98rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; text-decoration: none; color: var(--espresso);
  border-bottom: 1.5px solid var(--line-strong); padding-bottom: 3px;
  transition: color .2s ease, border-color .2s ease;
}
.link-arrow .arw { transition: transform .2s ease; }
.link-arrow:hover { color: var(--terracotta-deep); border-color: var(--terracotta); }
.link-arrow:hover .arw { transform: translateX(4px); }

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--beige) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 2rem; height: 96px; }
/* Logo de marque — SVG horizontal (emblème ET + ESTELLE TISSIER + COACHING) */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 68px; width: auto; display: block; }
@media (max-width: 720px) { .brand-logo { height: 56px; } }
.nav { display: flex; gap: 1.7rem; margin-left: auto; }
.nav a { text-decoration: none; color: var(--espresso); font-size: .99rem; position: relative; padding: .3rem 0; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: var(--terracotta); transition: width .25s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--terracotta-deep); }
.nav-cta { margin-left: .4rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: .5rem; margin-left: auto; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--espresso); transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { display: none; flex-direction: column; gap: .2rem; padding: .5rem var(--gutter) 1.75rem; background: var(--beige); border-bottom: 1px solid var(--line); }
.nav-mobile a { text-decoration: none; color: var(--espresso); padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.nav-mobile .btn { margin-top: 1.1rem; border-bottom: 0; }

/* ============ FOOTER ============ */
.site-footer { background: var(--espresso); color: var(--beige); padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(245,240,234,.14); }
.footer-brand-name { font-family: var(--font-title); font-size: 1.5rem; font-weight: 600; margin-bottom: .85rem; }
.footer-tag { color: color-mix(in srgb, var(--beige) 72%, var(--espresso)); max-width: 40ch; }
/* Bloc contact (e-mail + réseaux) dans la colonne marque.
   Footer sur fond espresso : icônes claires au repos, terracotta au survol (accent du site). */
.footer-contact { margin-top: 1.4rem; }
.footer-email { display: inline-block; color: color-mix(in srgb, var(--beige) 82%, var(--espresso)); text-decoration: none; font-size: .98rem; transition: color .2s ease; }
.footer-email:hover { color: var(--beige); }
.footer-social { display: flex; gap: .25rem; margin: .9rem 0 0 -8px; }
.footer-social-link { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; color: color-mix(in srgb, var(--beige) 82%, var(--espresso)); transition: color .2s ease, transform .2s ease; }
.footer-social-link:hover { color: var(--terracotta); transform: translateY(-1px); }
.footer-social-link svg { width: 22px; height: 22px; display: block; }
.footer-col h4 { font-family: var(--font-body); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 1rem; font-weight: 600; }
.footer-col a { display: block; color: color-mix(in srgb, var(--beige) 82%, var(--espresso)); text-decoration: none; padding: .35rem 0; font-size: .98rem; }
.footer-col a:hover { color: var(--beige); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; padding-top: 1.75rem; }
.footer-bottom p { font-size: var(--fs-small); color: color-mix(in srgb, var(--beige) 58%, var(--espresso)); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-left: auto; }
.footer-legal-links a { color: color-mix(in srgb, var(--beige) 65%, var(--espresso)); text-decoration: none; font-size: var(--fs-small); }
.footer-legal-links a:hover { color: var(--beige); }

/* ============ CARTES ============ */
.card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 2.5vw, 2.25rem); }

/* ============ ACCORDÉON FAQ (natif <details>) ============ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  cursor: pointer; padding: 1.5rem 0; list-style: none;
  font-family: var(--font-title); font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: var(--espresso);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-icon { flex: none; width: 26px; height: 26px; position: relative; transition: transform .3s ease; }
.faq-item .faq-icon::before, .faq-item .faq-icon::after { content: ""; position: absolute; background: var(--terracotta-deep); border-radius: 2px; }
.faq-item .faq-icon::before { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.faq-item .faq-icon::after { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); transition: opacity .3s ease; }
.faq-item[open] .faq-icon::after { opacity: 0; }
.faq-item .faq-answer { padding: 0 0 1.6rem; color: var(--espresso-soft); max-width: 70ch; }

/* ============ IMAGE ARCHITECTURALE (placeholder réutilisable) ============
   Second registre visuel : structure / clarté / progression.
   Réutilisé en phase 2 (page Accompagnement, plan 90 jours). */
/* Structure en 3 couches : image (fond) → voile espresso → texte par-dessus.
   Tant que la vraie image n'est pas fournie, .arch-img montre un placeholder
   (pierre + lignes obliques) clairement visible SOUS le voile. */
.arch-slot { position: relative; width: 100%; overflow: hidden; }
.arch-slot[data-arch="21-9"] { aspect-ratio: 21 / 9; }
.arch-slot[data-arch="16-9"] { aspect-ratio: 16 / 9; }
.arch-slot[data-arch="3-4"]  { aspect-ratio: 3 / 4; }

/* 1. Couche image — placeholder pierre + lignes obliques (évocation escalier/architecture).
      Remplacer background-color/-image par la vraie image quand elle est fournie. */
.arch-img {
  position: absolute; inset: 0; z-index: 0;
  background-color: #9C8E7D;
  background-image: repeating-linear-gradient(118deg, rgba(61, 43, 31, 0.16) 0 2px, transparent 2px 54px);
  background-size: cover; background-position: center;
}
/* 2. Voile espresso semi-transparent — assure la lisibilité du texte par-dessus l'image */
.arch-veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(105deg, rgba(61, 43, 31, 0.70) 0%, rgba(61, 43, 31, 0.62) 42%, rgba(61, 43, 31, 0.40) 100%); }
/* 3. Libellé du placeholder (au-dessus du voile, en bas à droite) */
.arch-fallback {
  position: absolute; right: clamp(1.25rem, 5vw, 4.5rem); bottom: 1.1rem; z-index: 2; margin: 0;
  text-align: right; color: var(--beige); font-weight: 600; font-size: var(--fs-small);
}
.arch-fallback .arch-meta { display: block; margin-top: .3rem; font-weight: 400; color: #CBBBA8; }
/* 4. Texte clé — par-dessus tout */
.arch-band { position: relative; }
.arch-band .arch-overlay { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; pointer-events: none; padding-inline: clamp(1.5rem, 5vw, 4.5rem); }
.arch-band .arch-statement {
  font-family: var(--font-title); color: var(--cream);
  font-size: clamp(1.8rem, 4vw, 3.2rem); letter-spacing: -.01em;
  max-width: 34rem; /* texte dans la partie gauche sombre, détaché des lames claires à droite */
  text-shadow: 0 1px 10px rgba(28, 18, 12, 0.45); /* lisible sur fond clair comme sombre */
}
.arch-band .arch-statement em { font-style: italic; color: #E0A283; } /* terracotta clairci pour le contraste sur fond sombre */

/* ============ CITATIONS / TÉMOIGNAGES ============ */
.quote { margin: 0; }
.quote blockquote { font-family: var(--font-title); font-size: 1.3rem; line-height: 1.45; margin: 0 0 1rem; color: var(--espresso); }
.quote blockquote::before { content: "«"; color: var(--terracotta); margin-right: .15em; }
.quote blockquote::after { content: "»"; color: var(--terracotta); margin-left: .15em; }
.quote figcaption { font-size: var(--fs-small); color: var(--espresso-soft); }
.quote figcaption strong { color: var(--espresso); }

/* =========================================================
   RESPONSIVE — header & footer partagés
   Ces composants sont propagés par tools/sync-partials.py et présents
   sur TOUTES les pages. Leurs règles responsives vivent donc ici (chargé
   partout) et non dans une CSS de page (home.css / legal.css).
   ========================================================= */
@media (max-width: 960px) {
  /* Bascule en menu burger : la nav complète ne tient plus sur une ligne sous ~960px */
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile.open { display: flex; }
  .header-inner { gap: 1rem; }

  /* Footer : de 3 colonnes à 2 */
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  /* Footer : une seule colonne, liens légaux pleine largeur */
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-legal-links { margin-left: 0; width: 100%; }
}
