/* ===========================================================
   La Passerelle — Site
   Système partagé : couleurs, typo, nav, footer
   =========================================================== */

:root {
  --red: #D7263D;
  --red-deep: #b51e32;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --muted: #8a857d;
  --paper: #fdfcfa;
  --cream: #f6f3ee;
  --rule: #e5e2dc;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

/* small caps label */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow.red { color: var(--red); font-weight: 600; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253,252,250,0.97);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  position: relative;
  max-width: var(--max); margin: 0 auto; padding: 0 40px;
  height: 84px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 0; }
.nav-logo img { height: 60px; width: auto; display: block; }
/* logo de la barre de nav masqué sur toutes les pages (visibility pour
   conserver l'équilibre de la barre) */
.nav-logo { visibility: hidden; }
.nav-links {
  display: flex; align-items: center; gap: 38px;
  font-family: 'Inter', sans-serif;
  font-size: 13px; letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.nav-links a { position: relative; padding: 6px 0; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1.5px; background: var(--red);
}
.nav-cta {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500; letter-spacing: 0.03em;
  color: #fff; background: var(--red);
  padding: 11px 20px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--red-deep); transform: translateY(-1px); }
.nav-cta svg { width: 14px; height: 14px; }

/* icône Instagram à côté du numéro */
.nav-ig {
  width: 40px; height: 40px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); border: 1px solid var(--rule);
  transition: border-color .2s, transform .2s;
}
.nav-ig:hover { border-color: var(--ink); transform: translateY(-1px); }
.nav-ig svg { width: 17px; height: 17px; }

/* groupe de droite : CTA + bouton burger */
.nav-right { display: flex; align-items: center; gap: 14px; }

/* bouton hamburger — caché sur desktop */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--rule); border-radius: 10px;
  cursor: pointer; color: var(--ink); padding: 0;
}
.nav-toggle:hover { border-color: var(--ink); }
.nav-toggle svg { width: 20px; height: 20px; display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ============ SECTION SCAFFOLD ============ */
section { position: relative; }
.section-pad { padding: 96px 0; }
.section-pad-sm { padding: 64px 0; }

.h-display {
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.02;
  margin: 0;
  font-size: clamp(40px, 5.2vw, 72px);
}
.h-display em { font-style: italic; }
.h-2 {
  font-weight: 500; letter-spacing: -0.01em; line-height: 1.05;
  margin: 0; font-size: clamp(30px, 3.4vw, 44px);
}
.lead {
  font-size: 20px; line-height: 1.5; color: var(--ink-soft);
  font-style: italic; margin: 0;
}
.body-sans {
  font-family: 'Inter', sans-serif;
  font-size: 15px; line-height: 1.7; color: var(--ink-soft);
}

/* red hairline accent */
.tick { width: 40px; height: 2px; background: var(--red); border: 0; margin: 0; }

/* ============ BUTTONS ============ */
.btn {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500; letter-spacing: 0.03em;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  transition: all .2s; cursor: pointer; border: 1px solid transparent;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #d8d4cc; }
.btn-ghost:hover { border-color: var(--ink); }
.btn svg { width: 15px; height: 15px; }

/* bouton Instagram (noir & blanc, cohérent avec la DA) */
.btn-ig {
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ig:hover { transform: translateY(-1px); background: #000; }

/* groupe de boutons centré (bloc contact) */
.btn-group {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: center;
}

/* adresse cliquable vers Google Maps */
.address-link {
  display: inline-flex; align-items: baseline; gap: 6px;
  border-bottom: 1px solid transparent; transition: border-color .2s, color .2s;
}
.address-link:hover { border-bottom-color: currentColor; }
.arrow-link {
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
  color: var(--red); display: inline-flex; align-items: center; gap: 7px;
  letter-spacing: 0.03em;
}
.arrow-link span { transition: transform .2s; }
.arrow-link:hover span { transform: translateX(4px); }

/* ============ IMAGE SLOTS ============ */
image-slot {
  --is-bg: var(--cream);
  background: var(--cream);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: #d9d5ce;
  padding: 72px 0 40px;
  font-family: 'Inter', sans-serif;
}
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-brand img { height: 124px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.footer-col h4 {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #6f6a62; margin: 0 0 16px; font-weight: 600;
}
.footer-col p, .footer-col a { display: block; font-size: 14px; line-height: 1.9; color: #cfcbc3; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max); margin: 56px auto 0; padding: 22px 40px 0;
  border-top: 1px solid #2c2c2c;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #6f6a62; letter-spacing: 0.04em;
}
.footer-bottom .red-dot { color: var(--red); }

@media (max-width: 860px) {
  .footer .wrap { grid-template-columns: 1fr; gap: 32px; }

  /* affiche le bouton burger */
  .nav-toggle { display: inline-flex; }

  /* le CTA se réduit à son icône pour laisser la place au burger */
  .nav-cta { padding: 11px; }
  .nav-cta .cta-label { display: none; }

  /* les liens deviennent un panneau déroulant sous la nav */
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 8px 0;
    box-shadow: 0 12px 24px rgba(26,26,26,0.06);
    /* caché par défaut, révélé via [data-open] */
    display: none;
  }
  .nav-links[data-open="true"] { display: flex; }
  .nav-links a {
    padding: 15px 40px;
    font-size: 15px;
    border-bottom: 1px solid var(--rule);
  }
  .nav-links a:last-child { border-bottom: none; }
  /* l'underline desktop n'a pas de sens en liste verticale */
  .nav-links a.active { color: var(--red); }
  .nav-links a.active::after { display: none; }
}

/* ============ BANDEAU NIVEAUX ============ */
/* Déplacé depuis le <style> de l'accueil : partagé avec les pages de commune. */
.levels { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--cream); }
.levels .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 28px; gap: 24px; }
.levels .item { text-align: center; flex: 1; }
.levels .item .k { font-size: 26px; line-height: 1; }
.levels .item .k span { color: var(--red); }
.levels .item .l { font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.levels .sep { width: 1px; align-self: stretch; background: var(--rule); }

@media (max-width: 720px) {
  .levels .wrap { flex-wrap: wrap; gap: 20px 0; }
  .levels .item { flex: 0 0 50%; }
  .levels .sep { display: none; }
  .levels .item .k { font-size: 22px; }
}

/* ============ SEO — ÉLÉMENTS AJOUTÉS ============ */

/* Surtitre intégré au <h1> : porte la requête cible sans changer le rendu
   du titre d'accueil, qui reste la phrase d'accroche. */
.h1-kicker {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 26px;
}

/* Blocs de texte rédactionnel (accueil, pages de commune, à propos). */
.prose-block { max-width: 760px; margin: 0 auto; }
.prose-block h2 { margin: 0 0 30px; }
.prose-block h3 {
  font-size: 22px; font-weight: 500; letter-spacing: -0.01em;
  margin: 40px 0 14px;
}
.prose-block p, .prose-block li {
  font-family: 'Inter', sans-serif;
  font-size: 15.5px; line-height: 1.8; color: var(--ink-soft);
  margin: 0 0 20px;
}
.prose-block ul { margin: 0 0 24px; padding-left: 20px; }
.prose-block li { margin-bottom: 10px; }
.prose-block a { color: var(--ink); border-bottom: 1px solid var(--rule); transition: border-color .2s; }
.prose-block a:hover { border-bottom-color: var(--red); }
.prose-block strong { color: var(--ink); font-weight: 600; }

/* Liens de maillage vers les pages de commune. */
.zone-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.zone-links a {
  font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: 0.02em;
  color: var(--ink-soft); background: #fff;
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 10px 20px; transition: border-color .2s, color .2s;
}
.zone-links a:hover { border-color: var(--red); color: var(--ink); }

/* Questions fréquentes — accordéon natif <details>. */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 26px 40px 26px 0; position: relative;
  font-size: 19px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  font-size: 24px; color: var(--red); line-height: 1;
  transition: transform .2s;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item .answer { padding: 0 40px 28px 0; }
.faq-item .answer p {
  font-family: 'Inter', sans-serif;
  font-size: 15px; line-height: 1.8; color: var(--ink-soft); margin: 0 0 14px;
}
.faq-item .answer p:last-child { margin-bottom: 0; }
.faq-item .answer a { color: var(--ink); border-bottom: 1px solid var(--rule); }
.faq-item .answer a:hover { border-bottom-color: var(--red); }

/* Fiche d'informations pratiques (page contact). */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.info-card { border: 1px solid var(--rule); background: #fff; padding: 34px 34px 30px; }
.info-card h3 {
  font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 16px;
}
.info-card p, .info-card a {
  display: block; font-family: 'Inter', sans-serif;
  font-size: 15px; line-height: 1.8; color: var(--ink-soft); margin: 0;
}
.info-card a:hover { color: var(--red); }
.info-card .big { font-family: 'Cormorant Garamond', serif; font-size: 26px; color: var(--ink); line-height: 1.3; overflow-wrap: anywhere; }

/* Bandeau de communes dans le pied de page.
   Sélecteur renforcé : .footer .wrap impose display:grid, qu'il faut annuler. */
.footer .footer-zone {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin-top: 56px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.09);
  font-size: 13px; color: #8d877e;
}
.footer .footer-zone a { color: #cfcbc3; transition: color .2s; }
.footer .footer-zone a:hover { color: #fff; }

/* Cinq entrées de menu au lieu de trois : resserrer avant le point de bascule. */
@media (min-width: 861px) {
  .nav-links { gap: 26px; font-size: 12.5px; }
  .footer .wrap { grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .info-grid { grid-template-columns: 1fr; }
  .zone-links { gap: 8px; }
  .faq-item summary { font-size: 17px; }
}

/* ============ PHOTOS DU CENTRE ============ */
/* Fichiers dans images/locaux/, produits par `npm run photos` (voir README). */
.photo { margin: 0; }
.photo picture {
  display: block; width: 100%; overflow: hidden;
  border-radius: 4px; background: var(--cream);
}
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo figcaption {
  font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-top: 14px; line-height: 1.6;
}

/* Bandeau pleine largeur : pages Cours à l'année et Stages intensifs. */
.photo-band picture { height: clamp(220px, 40vw, 500px); }
.photo-band figcaption { text-align: center; }

/* Photo d'appoint, contenue et centrée : un repère visuel discret,
   sans occuper toute la largeur de la page (page Contact). */
.photo-note { max-width: 460px; margin: 44px auto 0; }
.photo-note picture { height: 250px; }
.photo-note figcaption { text-align: center; }

/* Grille « Nos locaux » : une grande photo, deux petites. */
.photo-grid {
  display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 230px 230px;
  gap: 18px; margin-top: 44px;
}
.photo-grid .photo, .photo-grid picture { height: 100%; }
.photo-grid .big { grid-row: span 2; }

/* Deux photos côte à côte dans un bloc rédactionnel (à propos). */
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 34px 0 44px; }
.photo-pair picture { height: 250px; }

/* Une photo dans un bloc rédactionnel (pages de commune). */
.photo-inline { margin: 6px 0 40px; }
.photo-inline picture { height: clamp(200px, 34vw, 400px); }

@media (max-width: 860px) {
  .photo-grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 14px; }
  .photo-grid .big { grid-row: auto; }
  .photo-grid picture { height: 230px; }
  .photo-grid .big picture { height: 260px; }
  .photo-pair { grid-template-columns: 1fr; gap: 14px; }
  .photo-pair picture { height: 230px; }
}
