/* Vitrine Retreats (02/12/2026). Chargée par la seule page /retreats. Jetons Atlas uniquement : aucune couleur littérale (AtlasDesignSystemTest).
   Principe : peu de cadres, grandes photographies, sections claires et sombres en alternance, texte avant décor. */

.rt { --rt-gutter: clamp(20px, 5vw, 56px); }
.rt-wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--rt-gutter); }

/* ---------- hero ---------- */
.rt-hero { z-index: auto; /* le gabarit du site donne z-index 1020 à tout <header> : sans cela le hero recouvrait l'en-tête Atlas (logo et menu invisibles) */ position: relative; display: flex; align-items: flex-end; min-height: min(86vh, 760px); background: var(--atl-night); color: var(--atl-ivory); overflow: hidden; isolation: isolate; }
.rt-hero__media, .rt-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.rt-hero__media--empty { background: linear-gradient(120deg, var(--atl-night) 0%, var(--atl-forest) 45%, var(--atl-forest-2) 100%); }
.rt-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--atl-night) 0%, transparent 70%), linear-gradient(0deg, var(--atl-night) 0%, transparent 55%); opacity: .82; }
.rt-hero__content { position: relative; width: 100%; padding-top: 150px; padding-bottom: clamp(48px, 8vw, 88px); display: flex; flex-direction: column; gap: var(--atl-s-5); }
.rt-hero h1 { font-size: clamp(46px, 8.4vw, 104px); line-height: .98; color: var(--atl-ivory); }
.rt-hero__sign { font-family: var(--atl-font-display); font-style: italic; font-weight: 300; font-size: clamp(20px, 2.5vw, 30px); line-height: 1.25; color: var(--atl-gold); max-width: 28ch; margin: 0; }
.rt-hero__lead { font-size: 17px; line-height: 1.65; max-width: 54ch; margin: 0; color: var(--atl-ivory); }
.rt-hero__cta { display: flex; flex-wrap: wrap; gap: var(--atl-s-3); }
.rt-hero__cta .atl-btn--ghost { border-color: var(--atl-ivory); color: var(--atl-ivory); }
.rt-hero__cta .atl-btn--ghost:hover { background: var(--atl-ivory); color: var(--atl-night); }

/* ---------- navigation rapide vers les cinq univers ---------- */
.rt-quick { background: var(--atl-forest); color: var(--atl-ivory); }
.rt-quick__list { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rt-quick__list::-webkit-scrollbar { display: none; }
.rt-quick__list li { flex: 0 0 auto; }
.rt-quick__list li + li { border-left: 1px solid var(--atl-night-line); }
.rt-quick a { display: flex; align-items: center; min-height: 56px; padding: 0 clamp(16px, 2.6vw, 32px); color: var(--atl-ivory); text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .06em; white-space: nowrap; }
.rt-quick a:hover { color: var(--atl-gold); }
.rt-quick a:focus-visible { outline: 3px solid var(--atl-gold); outline-offset: -3px; }

/* ---------- mention d'honnêteté ---------- */
.rt-honest { background: var(--atl-night); color: var(--atl-ivory); text-align: center; padding: 14px var(--rt-gutter); font-size: 14px; }
.rt-honest b { color: var(--atl-gold); font: 500 11px/1 var(--atl-font-mono); letter-spacing: .14em; text-transform: uppercase; margin-right: 12px; }

/* ---------- introduction ---------- */
.rt-intro { padding-block: clamp(48px, 7vw, 88px) clamp(24px, 4vw, 48px); background: var(--atl-ivory); }
.rt-intro .rt-wrap { display: grid; gap: var(--atl-s-5) clamp(24px, 5vw, 72px); grid-template-columns: 1fr; align-items: end; }
.rt-intro h2 { font-size: clamp(30px, 4.4vw, 54px); line-height: 1.04; color: var(--atl-forest); }
.rt-intro p { margin: 0; color: var(--atl-mist); font-size: 17px; line-height: 1.7; max-width: 52ch; }

/* ---------- les cinq univers : photo et texte, côte à côte, alternés ---------- */
.rt-world { display: grid; grid-template-columns: 1fr; scroll-margin-top: 0; }
.rt-world[data-atl-theme="night"] { background: var(--atl-forest); color: var(--atl-ivory); }
.rt-world[data-atl-theme="light"] { background: var(--atl-ivory); color: var(--atl-ink); }
.rt-world__media { position: relative; margin: 0; min-height: 260px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--atl-forest-2); }
.rt-world__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rt-world__body { display: flex; flex-direction: column; justify-content: center; gap: var(--atl-s-4); padding: clamp(32px, 6vw, 56px) var(--rt-gutter); }
.rt-world h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.05; color: var(--atl-fg); }
.rt-world[data-atl-theme="light"] h2 { color: var(--atl-forest); }
.rt-world__tag { font-family: var(--atl-font-display); font-style: italic; font-weight: 300; font-size: clamp(18px, 2vw, 24px); margin: 0; color: var(--atl-accent); }
.rt-world p { margin: 0; line-height: 1.7; max-width: 50ch; color: var(--atl-fg-2); }
.rt-world .rt-world__tag { color: var(--atl-accent); }
.rt-facts { display: flex; flex-direction: column; gap: var(--atl-s-3); margin: var(--atl-s-1) 0 0; }
.rt-fact { display: flex; flex-direction: column; gap: 4px; }
.rt-fact dt { font: 500 11px/1.2 var(--atl-font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--atl-accent); }
.rt-fact dd { margin: 0; font-size: 15px; line-height: 1.7; color: var(--atl-fg); }
.rt-fact dd .rt-sep { color: var(--atl-accent); margin-inline: .55em; opacity: .8; }
.rt-fact dd span.rt-item { white-space: nowrap; }
.rt-fact--dest dd { color: var(--atl-fg-2); }
.rt-world__who { font-size: 14px; color: var(--atl-fg-2); }
.rt-world__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--atl-s-3) var(--atl-s-5); margin-top: var(--atl-s-2); }
.rt-world__cta small { font-size: 13px; color: var(--atl-fg-2); }
.rt-world[data-atl-theme="night"] .atl-btn { background: var(--atl-gold); border-color: var(--atl-gold); color: var(--atl-night); }
.rt-world[data-atl-theme="night"] .atl-btn:hover { background: var(--atl-ivory); border-color: var(--atl-ivory); }

@media (min-width: 900px) {
  .rt-intro .rt-wrap { grid-template-columns: 1fr 1.1fr; }
  .rt-world { grid-template-columns: 1fr 1fr; min-height: clamp(400px, 40vw, 520px); }
  .rt-world__media { aspect-ratio: auto; min-height: 0; }
  .rt-world--flip .rt-world__media { order: 2; }
  .rt-world__body { padding-inline: clamp(32px, 5vw, 72px); }
  .rt-world--flip .rt-world__body { padding-left: max(var(--rt-gutter), calc((100vw - 1200px) / 2 + var(--rt-gutter))); }
  .rt-world:not(.rt-world--flip) .rt-world__body { padding-right: max(var(--rt-gutter), calc((100vw - 1200px) / 2 + var(--rt-gutter))); }
}

/* emplacement sans photo : texte seul sur fond de teinte, jamais d'image de remplacement */
.rt-world__media--empty { background: linear-gradient(140deg, var(--atl-forest-2) 0%, var(--atl-night) 100%); }
.rt-slot { position: absolute; left: 14px; bottom: 14px; right: 14px; padding: 8px 12px; background: var(--atl-night); color: var(--atl-gold); font: 500 11px/1.4 var(--atl-font-mono); letter-spacing: .08em; text-transform: uppercase; opacity: .92; max-width: 34ch; }
.rt-credit { position: absolute; right: 10px; bottom: 8px; max-width: calc(100% - 20px); padding: 2px 8px; background: var(--atl-night); color: var(--atl-night-mist); font-size: 11px; line-height: 1.5; opacity: .85; text-align: right; }
.rt-credit--validate { color: var(--atl-gold); opacity: 1; }
.rt-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rt-credit a:focus-visible { outline: 2px solid var(--atl-gold); outline-offset: 2px; }

/* ---------- quatre profils : immersifs ---------- */
.rt-paths { background: var(--atl-night); color: var(--atl-ivory); padding-block: clamp(56px, 8vw, 96px); }
.rt-paths__head { display: flex; flex-direction: column; gap: var(--atl-s-3); max-width: 58ch; margin-bottom: clamp(28px, 4vw, 48px); }
.rt-paths__head h2 { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.04; color: var(--atl-ivory); }
.rt-paths__head p { margin: 0; color: var(--atl-night-mist); line-height: 1.7; }
.rt-paths__grid { display: grid; grid-template-columns: 1fr; gap: clamp(12px, 2vw, 24px); }
.rt-path { position: relative; display: flex; align-items: flex-end; min-height: clamp(340px, 52vw, 460px); overflow: hidden; background: var(--atl-forest-2); isolation: isolate; border-radius: var(--atl-r-control); }
.rt-path__media, .rt-path__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.rt-path::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--atl-night) 4%, transparent 74%); opacity: .93; }
.rt-path__body { display: flex; flex-direction: column; gap: var(--atl-s-2); padding: clamp(20px, 3vw, 32px); width: 100%; }
.rt-path h3 { font-size: clamp(24px, 2.6vw, 32px); color: var(--atl-ivory); }
.rt-path__tag { font-family: var(--atl-font-display); font-style: italic; font-weight: 300; font-size: 18px; margin: 0; color: var(--atl-gold); }
.rt-path p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--atl-ivory); max-width: 44ch; }
.rt-path .atl-btn { align-self: flex-start; margin-top: var(--atl-s-2); background: var(--atl-gold); border-color: var(--atl-gold); color: var(--atl-night); }
.rt-path .atl-btn:hover { background: var(--atl-ivory); border-color: var(--atl-ivory); }
@media (min-width: 900px) { .rt-paths__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- comment ça marche ---------- */
.rt-how { background: var(--atl-ivory); padding-block: clamp(48px, 7vw, 88px); }
.rt-how h2 { font-size: clamp(28px, 3.6vw, 44px); color: var(--atl-forest); margin-bottom: clamp(24px, 3.6vw, 40px); }
.rt-steps { display: grid; grid-template-columns: 1fr; gap: var(--atl-s-5); margin: 0; padding: 0; list-style: none; counter-reset: rt; }
.rt-steps li { counter-increment: rt; display: flex; flex-direction: column; gap: 6px; padding-top: var(--atl-s-3); border-top: 2px solid var(--atl-gold); }
.rt-steps li::before { content: counter(rt); font-family: var(--atl-font-display); font-size: 30px; line-height: 1; color: var(--atl-brass); }
.rt-steps b { font-family: var(--atl-font-display); font-weight: 400; font-size: 22px; color: var(--atl-forest); }
.rt-steps span { color: var(--atl-mist); font-size: 15px; }
@media (min-width: 640px) { .rt-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .rt-steps { grid-template-columns: repeat(4, 1fr); gap: var(--atl-s-6); } }

/* ---------- formulaire ---------- */
.rt-reg { background: var(--atl-forest); color: var(--atl-ivory); padding-block: clamp(48px, 7vw, 96px); scroll-margin-top: 0; }
.rt-reg__grid { display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 4vw, 48px); }
.rt-reg__copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--atl-s-4); max-width: 62ch; }
.rt-reg__copy h2 { font-size: clamp(30px, 4vw, 50px); line-height: 1.05; color: var(--atl-ivory); }
.rt-reg__copy p { margin: 0; color: var(--atl-night-mist); line-height: 1.7; max-width: 52ch; }
.rt-reg__copy .rt-promise { color: var(--atl-ivory); font-size: 15px; padding-top: var(--atl-s-3); border-top: 1px solid var(--atl-night-line); }
.rt-form { max-width: 760px; width: 100%; padding: clamp(20px, 3vw, 36px); gap: var(--atl-s-4); }
.rt-form .atl-field > label, .rt-form legend { font: 700 13px/1.3 var(--atl-font-ui); letter-spacing: 0; text-transform: none; color: var(--atl-ink); padding: 0; }
.rt-form .rt-opt { font-weight: 500; color: var(--atl-mist); }
.rt-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.rt-seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--atl-field-line); border-radius: var(--atl-r-control); overflow: hidden; }
.rt-seg label { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 8px 10px; font-size: 13.5px; font-weight: 600; color: var(--atl-mist); cursor: pointer; background: var(--atl-surface); }
.rt-seg label + label { border-left: 1px solid var(--atl-line); }
.rt-seg label:nth-child(n+3) { border-top: 1px solid var(--atl-line); }
.rt-seg label:nth-child(3) { border-left: 0; }
.rt-seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rt-seg label:has(input:checked) { background: var(--atl-forest); color: var(--atl-ivory); }
.rt-seg label:has(input:focus-visible) { outline: 3px solid var(--atl-forest); outline-offset: -3px; }
.rt-panel { display: none; flex-direction: column; gap: var(--atl-s-4); }
.rt-panel.is-on { display: flex; }
.rt-row2 { display: grid; grid-template-columns: 1fr; gap: var(--atl-s-4); }
.rt-more { border-top: 1px solid var(--atl-line); padding-top: var(--atl-s-3); }
.rt-more > summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--atl-forest); min-height: var(--atl-touch); display: flex; align-items: center; justify-content: space-between; gap: var(--atl-s-3); list-style: none; }
.rt-more > summary::-webkit-details-marker { display: none; }
.rt-more > summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--atl-brass); }
.rt-more[open] > summary::after { content: "−"; }
.rt-more__stack { display: flex; flex-direction: column; gap: var(--atl-s-4); padding-top: var(--atl-s-3); }
.rt-checks { display: flex; flex-direction: column; gap: 2px; }
.rt-form textarea.atl-input { min-height: 88px; resize: vertical; line-height: 1.5; }
.rt-selected { margin: 0; font-size: 13px; color: var(--atl-forest); font-weight: 600; }
@media (min-width: 640px) { .rt-row2 { grid-template-columns: 1fr 1fr; } .rt-seg { grid-template-columns: repeat(4, 1fr); } .rt-seg label:nth-child(n+3) { border-top: 0; } .rt-seg label:nth-child(3) { border-left: 1px solid var(--atl-line); } }

/* ---------- confirmation e-mail / pages de retrait (même identité) ---------- */
.rt-offers { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.rt-offers label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--atl-field-line); border-radius: var(--atl-r-pill); font-size: 13.5px; font-weight: 600; background: var(--atl-surface); color: var(--atl-ink); cursor: pointer; }
.rt-offers input { accent-color: var(--atl-forest); width: 16px; height: 16px; }

@media (prefers-reduced-motion: no-preference) { .rt-world__media img, .rt-path__media img { transition: transform 1.2s ease; } .rt-world:hover .rt-world__media img, .rt-path:hover .rt-path__media img { transform: scale(1.025); } }
