/* DA Listen (Figma "Site Listen") : fond beige partout, jamais de fond blanc ; cartes en contour orange 1px.
   Page « Retraites » (version SEO) : hero, galerie, l'esprit des retraites (3 colonnes), prochaines retraites (une carte par lieu), comment ça se passe, avis, FAQ, renvoi vers la formation. */
:root {
  --beige: #F8F2E4;
  --ink: #1A1712;
  --ink-soft: #4F483D;
  --line: #E2D9C6;
  --divider: #C9B98F;
  --orange: #B63903;
  --on-orange: #FFFFFF;
  --placeholder: #D9D9D9;

  --f-title: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Gilda Display", Georgia, "Times New Roman", serif;

  --margin: 40px;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--beige); color: var(--ink); font-family: var(--f-title); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
a { color: var(--orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
svg { display: block; }
img { max-width: 100%; }

.wrap { max-width: 1200px; margin-inline: auto; padding-left: max(var(--margin), env(safe-area-inset-left, 0px)); padding-right: max(var(--margin), env(safe-area-inset-right, 0px)); }
@media (max-width: 640px) { :root { --margin: 16px; } }

.star { color: var(--orange); width: 28px; height: 28px; flex: none; }
.kicker { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); }
.serif { font-family: var(--f-serif); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 1.125rem/1 var(--f-title); text-transform: uppercase;
  padding: 12px 24px; border-radius: 34px; border: 1px solid var(--orange);
  background: var(--orange); color: var(--on-orange); text-decoration: none; cursor: pointer;
  transition: filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
/* Pastille d'état, non cliquable */
.soon { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px dashed currentColor; border-radius: 34px; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Navigation (Nav-bar du DS) ---------- */
.nav { background: var(--beige); border-bottom: 1px solid var(--ink); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 25; }
.nav .wrap { max-width: 1440px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 12px; }
.logo img { display: block; width: 122px; height: auto; }
.menu { display: flex; align-items: center; gap: clamp(24px, 4vw, 60px); }
.menu a { color: var(--ink); font-size: 0.9375rem; line-height: 1.2; text-transform: uppercase; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--orange); }
.menu .chev { width: 12px; height: 8px; }
/* Sous-menu Retraites : les pages lieux, au survol et au clavier */
.has-sub { position: relative; }
.has-sub .sub { display: none; position: absolute; top: 100%; left: 50%; translate: -50% 0; padding-top: 14px; z-index: 30; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.has-sub:hover > a .chev, .has-sub:focus-within > a .chev { rotate: 180deg; }
.sub ul { list-style: none; margin: 0; padding: 8px 0; background: var(--beige); border: 1px solid var(--orange); min-width: 280px; }
.sub a { display: grid; gap: 2px; padding: 10px 20px; text-transform: none; white-space: nowrap; }
.sub a small { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.sub a:hover small { color: var(--orange); }
.menu a.is-section { color: var(--orange); }
.menu-m nav a.subl { padding-left: 20px; text-transform: none; font-size: 0.9375rem; }
.menu-m { display: none; }
.menu-m summary { list-style: none; cursor: pointer; font-size: 0.9375rem; text-transform: uppercase; border: 1px solid var(--orange); color: var(--orange); border-radius: 34px; padding: 8px 18px; }
.menu-m summary::-webkit-details-marker { display: none; }
.menu-m nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--beige); border-bottom: 1px solid var(--ink); padding: 8px max(var(--margin), env(safe-area-inset-left, 0px)) 16px; display: grid; }
.menu-m nav a { color: var(--ink); text-decoration: none; text-transform: uppercase; font-size: 0.9375rem; padding: 12px 0; border-top: 1px solid var(--line); }
.menu-m nav a[aria-current="page"] { color: var(--orange); }

/* ---------- Hero : texte seul, centré ---------- */
.hero { display: grid; justify-items: center; text-align: center; gap: 20px; padding-block: 112px 0; }
.hero h1 { font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.04; letter-spacing: -0.02em; max-width: 20ch; }
.hero .sub { font-family: var(--f-serif); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.25; max-width: 36rem; }
.hero > p:not(.sub):not(.kicker) { color: var(--ink-soft); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.btn-ghost { background: transparent; color: var(--orange); }

/* ---------- Galerie d'ouverture ---------- */
/* Pleine largeur, de bord à bord, juste sous le CTA du hero */
.gallery-band { margin-top: 64px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; grid-template-rows: repeat(2, clamp(200px, 22vw, 340px)); gap: 8px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery img:nth-child(1) { grid-row: span 2; }
.gallery img:nth-child(4) { grid-column: 2 / span 2; }
.gallery img:nth-child(5) { grid-column: 4; grid-row: 1 / 3; }

/* ---------- L'esprit des retraites : trois colonnes, étoile au-dessus de chaque ---------- */
.spirit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spirit-col { display: grid; gap: 14px; align-content: start; padding: 8px 40px; }
.spirit-col:first-child { padding-left: 0; }
.spirit-col:last-child { padding-right: 0; }
.spirit-col + .spirit-col { border-left: 1px solid var(--line); }
.spirit-col h3 { font-family: var(--f-serif); font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.15; }
.spirit-col .lede { font-family: var(--f-serif); font-size: 1.2rem; line-height: 1.35; }
.spirit-col > p:not(.kicker):not(.lede) { color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------- Comment ça se passe ---------- */
.how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--orange); }
.how > div { padding: 32px 28px; display: grid; gap: 12px; align-content: start; }
.how > div + div { border-left: 1px solid var(--orange); }
.how h3 { font-family: var(--f-serif); font-size: 1.35rem; line-height: 1.2; }
.how p { font-size: 0.9375rem; color: var(--ink-soft); }
.how-cta { display: grid; justify-items: center; gap: 20px; margin-top: 48px; text-align: center; }
.how-cta p { font-family: var(--f-serif); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.3; }

/* ---------- Titres de section ---------- */
.head { text-align: center; display: grid; justify-items: center; gap: 6px; padding-top: 104px; margin-bottom: 56px; }
.head h2, .head h1 { font-weight: 600; font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -0.01em; line-height: 1.1; }
#esprit .head { text-align: left; justify-items: start; }
.head p.serif { font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.2; max-width: 40rem; }

/* ---------- Cartes des retraites ---------- */
.retreats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1000px) { .retreats { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; } }
.card { border: 1px solid var(--orange); display: grid; grid-template-rows: auto 1fr; position: relative; transition: box-shadow .2s ease; }
.card .btn::after { content: ""; position: absolute; inset: 0; }
.card:has(.btn):hover { box-shadow: inset 0 0 0 1px var(--orange); }
.card:has(.btn) .pic { transition: filter .3s ease; }
.card:has(.btn):hover .pic { filter: saturate(1.08) brightness(1.03); }
.card .pic { aspect-ratio: 3 / 2; width: 100%; height: auto; object-fit: cover; display: block; }
.card .pic.todo { background: var(--placeholder); display: grid; place-items: center; color: var(--ink-soft); font-size: 0.8125rem; letter-spacing: 0.05em; text-transform: uppercase; text-align: center; padding: 24px; }
.card .body { padding: 24px 24px 28px; display: grid; gap: 14px; align-content: start; grid-template-rows: auto auto auto 1fr auto; }
.card .place-tag { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }
.card h3 { font-family: var(--f-serif); font-size: clamp(1.5rem, 2.2vw, 1.75rem); line-height: 1.15; }
.card .where { font-size: 0.9375rem; color: var(--ink); }
.card .where span { color: var(--ink-soft); }
.card .desc { color: var(--ink-soft); font-size: 0.9375rem; }
.card .foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.card .meta { display: grid; line-height: 1.25; }
.card .meta b { font-family: var(--f-serif); font-weight: 400; font-size: 1.5rem; color: var(--orange); }
.card .meta span { font-size: 0.8125rem; color: var(--ink-soft); }
.card .soon { color: var(--ink-soft); }

/* ---------- Formation : bandeau orange + encart non cliquable ---------- */
.band { background: var(--orange); color: var(--beige); position: relative; overflow: hidden; padding-block: 96px; margin-top: 120px; }
.band-star { position: absolute; width: 180px; height: 180px; color: var(--beige); top: 96px; right: -90px; }
.band .head { padding-top: 0; }
.band .kicker { color: var(--beige); }
.band .head h2, .band .head h1 { font-family: var(--f-serif); font-weight: 400; }
.band { padding-block: 120px; }
.band .head { margin-bottom: 0; gap: 24px; }
.band .head .kicker { margin-bottom: -8px; }
.band .head p.serif { max-width: 34rem; line-height: 1.45; }
.band .soon { color: var(--beige); margin-top: 16px; }
.band .btn { background: var(--beige); border-color: var(--beige); color: var(--orange); margin-top: 16px; }

.todo-note { text-align: center; font-size: 0.8125rem; color: var(--ink-soft); margin-top: 20px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.25rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--ink-soft); max-width: 62ch; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- Pied de page du DS ---------- */
footer { background: var(--orange); color: var(--beige); padding-block: 52px 64px; text-align: center; font-size: 1.125rem; line-height: 1.6; border-top: 1px solid color-mix(in srgb, var(--beige) 45%, transparent); }
footer .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
footer h2 { font-size: 1.125rem; font-weight: 500; text-transform: uppercase; margin-bottom: 32px; }
footer a { color: inherit; }
footer address { font-style: normal; }
.news { display: grid; gap: 12px; justify-items: center; scroll-margin-top: 24px; }
.news label.ok { display: grid; grid-template-columns: 13px minmax(0, 1fr); gap: 10px; text-align: left; font-size: 0.75rem; line-height: 1.4; max-width: 320px; }
.news label.ok input { width: 13px; height: 13px; margin: 2px 0 0; accent-color: var(--beige); }
.news input[type="text"], .news input[type="email"] { width: min(252px, 100%); height: 47px; border: 0; border-radius: 29px; background: var(--beige); color: var(--ink); font: inherit; font-size: 1.125rem; text-align: center; }
.news input::placeholder { color: var(--ink); }
.news button { font: 500 1rem/1 var(--f-title); text-transform: uppercase; padding: 12px 28px; border-radius: 34px; border: 1px solid var(--beige); background: transparent; color: var(--beige); cursor: pointer; }
.news button:hover { background: var(--beige); color: var(--orange); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .how { grid-template-columns: 1fr 1fr; }
  .how > div:nth-child(3) { border-left: 0; }
  .how > div:nth-child(n+3) { border-top: 1px solid var(--orange); }
}
@media (max-width: 760px) {
  .hero { padding-block: 64px 0; }
  .menu { display: none; }
  .menu-m { display: block; }
  .logo img { width: 96px; }
  .gallery-band { margin-top: 40px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 140px 140px; gap: 8px; }
  .gallery img:nth-child(n) { grid-row: auto; grid-column: auto; }
  .gallery img:nth-child(1) { grid-column: 1 / -1; }
  .gallery img:nth-child(5) { display: none; }
  .how { grid-template-columns: minmax(0, 1fr); }
  .how > div + div { border-left: 0; border-top: 1px solid var(--orange); }
  .head { padding-top: 72px; margin-bottom: 40px; }
  .retreats, footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .spirit { grid-template-columns: minmax(0, 1fr); }
  .spirit-col, .spirit-col:first-child, .spirit-col:last-child { padding: 28px 0; }
  .spirit-col + .spirit-col { border-left: 0; border-top: 1px solid var(--line); }
  .card .body { padding: 24px 20px 24px; }
  .band { margin-top: 72px; padding-block: 72px; }
  .band-star { width: 110px; height: 110px; top: 40px; right: -60px; }
  footer h2 { margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- Audit : finitions communes ---------- */
p { text-wrap: pretty; }
.btn { transition: filter .2s ease, transform .2s ease; }
.btn:active { transform: translateY(1px) scale(.98); }
a { text-underline-offset: 3px; transition: color .2s ease; }
.menu a { transition: color .2s ease; }
.skip { position: absolute; left: max(16px, env(safe-area-inset-left, 0px)); top: -100px; z-index: 100; background: var(--orange); color: var(--on-orange); padding: 10px 18px; border-radius: 34px; text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }
footer .wrap.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--beige) 45%, transparent); font-size: 0.8125rem; }
@media (prefers-reduced-motion: reduce) { .btn, a { transition: none; } .btn:active { transform: none; } }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Ancres : laisser la place de la barre de navigation fixe */
[id] { scroll-margin-top: 120px; }

/* ---------- Formation : encart détaillé (page formations.html) ---------- */
.course { max-width: 1080px; margin-inline: auto; margin-top: 56px; border: 1px solid var(--beige); padding: clamp(24px, 4vw, 48px); display: grid; gap: 36px; position: relative; }
.course-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 28px; border-bottom: 1px solid color-mix(in srgb, var(--beige) 45%, transparent); }
.course-top h2 { font-family: var(--f-serif); font-size: clamp(1.6rem, 2.8vw, 2.1rem); line-height: 1.15; }
.course-top p { font-size: 0.9375rem; margin-top: 6px; }
.course .soon { color: var(--beige); margin-top: 0; }
.course-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px 56px; }
.course h3 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 14px; }
.modules { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: m; }
.modules li { counter-increment: m; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: baseline; padding-block: 10px; border-top: 1px solid color-mix(in srgb, var(--beige) 35%, transparent); font-family: var(--f-serif); font-size: 1.25rem; line-height: 1.25; }
.modules li::before { content: counter(m); font-family: var(--f-title); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.modules + p { font-size: 0.8125rem; margin-top: 10px; opacity: .9; }
.facts { display: grid; gap: 28px; align-content: start; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.facts li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; font-size: 0.9375rem; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--beige); margin-top: 0.6em; }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.prices div { display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--beige) 45%, transparent); }
.prices b { font-family: var(--f-serif); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.prices span { font-size: 0.8125rem; }
.course-note { font-size: 0.9375rem; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--beige) 45%, transparent); }
.course-note a { color: inherit; }
@media (max-width: 1000px) { .course-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (max-width: 760px) { .prices { grid-template-columns: minmax(0, 1fr); } .course { margin-top: 40px; } }

/* ---------- Renvoi vers les retraites, bas de formations.html (fond beige entre le bandeau et le pied de page orange) ---------- */
.next .head { margin-bottom: 0; padding-bottom: 104px; }
.next .btn { margin-top: 20px; }
@media (max-width: 760px) { .next .head { padding-bottom: 72px; } }


/* Bandeaux orange : une étoile de chaque côté, en miroir */
.band-star.l { right: auto; left: -90px; }
@media (max-width: 760px) { .band-star.l { right: auto; left: -60px; } }

/* ---------- Charte de participation (charte.html) : texte long, une colonne lisible ---------- */
.doc .head { padding-bottom: 0; }
.doc .head h1 { font-weight: 600; font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -0.01em; line-height: 1.1; }
.doc-body { max-width: 760px; margin: 0 auto 120px; display: grid; gap: 48px; }
.doc-body .lede { font-family: var(--f-serif); font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.45; text-align: center; }
.doc-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.doc-toc a { border: 1px solid var(--orange); border-radius: 34px; padding: 6px 14px; font-size: 0.875rem; text-decoration: none; }
.doc-body section { display: grid; gap: 14px; scroll-margin-top: 24px; }
.doc-body h2 { font-family: var(--f-serif); font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.2; display: flex; align-items: baseline; gap: 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.doc-body h2 span { font-family: var(--f-title); font-size: 0.8125rem; font-weight: 600; color: var(--orange); }
.doc-body section p, .doc-body section li { color: var(--ink-soft); }
.doc-body ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.doc-table { width: 100%; border-collapse: collapse; border: 1px solid var(--orange); }
.doc-table th, .doc-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.doc-table th { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); }
.doc-table td:last-child { font-family: var(--f-serif); font-size: 1.15rem; color: var(--ink); white-space: nowrap; }
.doc-sign { font-family: var(--f-serif); font-size: 1.25rem; color: var(--ink) !important; }
.doc-back { display: flex; justify-content: center; }
@media (max-width: 760px) { .doc-body { gap: 36px; margin-bottom: 72px; } .doc-table th, .doc-table td { padding: 12px; } }

/* Galerie sur téléphone : la 5e photo est masquée, la 4e prend toute la largeur pour ne pas laisser de trou */
@media (max-width: 760px) { .gallery img:nth-child(4) { grid-column: 1 / -1; } }
