/* ==========================================================================
   Styles propres aux pages
   ========================================================================== */

/* ==========================================================================
   ACCUEIL — panorama « travelling » à travers la France
   ========================================================================== */
.hero {
  position: relative;
  height: clamp(34rem, 86svh, 56rem);
  overflow: hidden;
  background: #2A2530;
  color: var(--sur-image);
  isolation: isolate;
}
.hero__piste {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  will-change: transform;
  z-index: -2;
}
.hero__piste img {
  height: 100%;
  width: auto;
  max-width: none;
  filter: brightness(.78) saturate(.95);
  animation: hero-entree 2.4s var(--ease) both;
}
@keyframes hero-entree {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.hero__voile {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 17, 26, .62) 0%, rgba(16, 17, 26, .35) 45%, rgba(16, 17, 26, .05) 75%),
    linear-gradient(to top, rgba(16, 17, 26, .7) 0%, rgba(16, 17, 26, .2) 45%, rgba(16, 17, 26, 0) 65%),
    linear-gradient(to bottom, rgba(16, 17, 26, .45), rgba(16, 17, 26, 0) 25%);
}
.hero__contenu {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(3rem, 7vh, 5.5rem);
  display: grid;
  gap: var(--s-3);
}
.hero h1 {
  font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.4rem);
  line-height: 1.05;
  max-width: 22ch;
}
.hero h1 .ligne { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .ligne > span { display: inline-block; animation: monte 1.3s var(--ease) both; }
.hero h1 .ligne:nth-child(2) > span { animation-delay: .15s; }
@keyframes monte { from { transform: translateY(105%); } to { transform: none; } }

.hero__devise {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.1rem;
  font-size: var(--t-sm);
  letter-spacing: .08em;
  list-style: none;
  margin: 0; padding: 0;
  animation: fondu 1.4s var(--ease) .5s both;
}
.hero__devise li { display: inline-flex; align-items: center; gap: 1.1rem; }
.hero__devise li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--paille); }
.hero .actions { animation: fondu 1.4s var(--ease) .7s both; }
@keyframes fondu { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.hero .bouton { --b-bg: var(--papier); --b-fg: var(--encre); }

/* Indicateur de région traversée */
.hero__region {
  position: absolute;
  right: var(--gouttiere);
  bottom: clamp(3rem, 7vh, 5.5rem);
  display: grid;
  gap: .6rem;
  justify-items: end;
  font-size: var(--t-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  animation: fondu 1.4s var(--ease) 1s both;
}
.hero__region-nom {
  font-family: var(--f-titre);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--t-lg);
  min-height: 1.6em;
  transition: opacity .5s var(--ease);
}
.hero__jauge { display: flex; gap: 6px; }
.hero__jauge span {
  width: 1.6rem; height: 2px;
  background: rgba(251, 249, 245, .35);
  transition: background .5s var(--ease);
}
.hero__jauge span.is-actif { background: var(--paille); }
@media (max-width: 760px) {
  .hero__region { display: none; }
}

/* Manifeste --------------------------------------------------------------- */
.manifeste {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: var(--s-5);
  align-items: start;
}
.manifeste__titre { position: sticky; top: 7rem; display: grid; gap: var(--s-2); }
.manifeste__texte { display: grid; gap: var(--s-2); font-size: var(--t-base); line-height: 1.7; }
.manifeste__texte p + p { margin-top: 0; }
.manifeste__texte p { max-width: 34rem; }
@media (max-width: 860px) {
  .manifeste { grid-template-columns: 1fr; gap: var(--s-3); }
  .manifeste__titre { position: static; }
}


/* Trois lignes rythmées (« Un stage pour… ») */
.triplet {
  list-style: none;
  margin: var(--s-2) 0 0;
  padding: var(--s-3) 0 0;
  border-top: 1px solid var(--filet);
  display: grid;
  gap: .35rem;
  font-family: var(--f-titre);
  font-style: italic;
  font-size: var(--t-lg);
  line-height: 1.35;
  color: var(--texte);
}


/* Pour qui : une ligne par public ----------------------------------------- */
.publics { display: grid; }
.public {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: var(--s-5);
  padding-block: var(--s-5);
  border-top: 1px solid var(--texte);
}
.public:last-child { border-bottom: 1px solid var(--filet); }
.public__titre { display: grid; gap: var(--s-2); align-content: start; }
.public__titre h3 { font-size: var(--t-2xl); line-height: 1.1; }
.public__texte { display: grid; gap: var(--s-2); color: var(--texte-doux); justify-items: start; }
.public__texte p + p { margin-top: 0; }
.public__accent { font-family: var(--f-titre); font-style: italic; font-size: var(--t-lg); line-height: 1.4; color: var(--texte); }
.public__texte .bouton { margin-top: var(--s-2); }
@media (max-width: 860px) { .public { grid-template-columns: 1fr; gap: var(--s-3); padding-block: var(--s-4); } }

/* Régions : défilement horizontal doux sur mobile -------------------------- */
.regions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-2);
}
.regions > :nth-child(even) { margin-top: var(--s-4); }
@media (max-width: 960px) {
  .regions {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(15rem, 72%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--s-2);
    scrollbar-width: thin;
  }
  .regions > * { scroll-snap-align: start; }
  .regions > :nth-child(even) { margin-top: 0; }
}

/* Myriam ------------------------------------------------------------------ */
.myriam {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: var(--s-5);
  align-items: center;
}
.myriam__texte { display: grid; gap: var(--s-3); }
.myriam__signature { font-family: var(--f-titre); font-style: italic; font-size: var(--t-xl); }
.faits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--filet);
  list-style: none;
  margin: 0;
  padding-left: 0;
}
.faits strong { display: block; font-family: var(--f-titre); font-weight: 400; font-size: var(--t-lg); line-height: 1.2; }
.faits span { font-size: var(--t-sm); color: var(--texte-doux); }
@media (max-width: 860px) {
  .myriam { grid-template-columns: 1fr; }
  .myriam .portrait { max-width: 26rem; }
}
@media (max-width: 520px) { .faits { grid-template-columns: 1fr; } }

/* Vidéo à venir */
.video-attente {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  border-radius: var(--rayon);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--sur-image);
}
.video-attente img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.video-attente::before { content: ""; position: absolute; inset: 0; background: rgba(16, 17, 26, .45); z-index: 1; }
.video-attente__centre { position: relative; z-index: 2; display: grid; justify-items: center; gap: var(--s-2); text-align: center; padding: var(--s-3); }
.video-attente__rond {
  width: 4.5rem; height: 4.5rem;
  border-radius: 50%;
  border: 1px solid rgba(251, 249, 245, .7);
  display: grid; place-items: center;
}
.video-attente__rond svg { width: 1.2rem; margin-left: 3px; }

/* Pays -------------------------------------------------------------------- */
.pays {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 var(--s-4);
  list-style: none;
  margin: 0; padding: 0;
}
.pays li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-2);
  padding-block: .9rem;
  border-bottom: 1px solid var(--filet);
}
.pays__nom { font-family: var(--f-titre); font-size: var(--t-lg); }
.pays__langue { font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--texte-doux); }
@media (max-width: 860px) { .pays { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pays { grid-template-columns: 1fr; } }

/* Appel final ------------------------------------------------------------- */
.appel {
  position: relative;
  overflow: hidden;
  color: var(--sur-image);
  isolation: isolate;
}
.appel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; z-index: -2; }
.appel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 17, 26, .8), rgba(16, 17, 26, .35)); z-index: -1; }
.appel__contenu { display: grid; gap: var(--s-3); max-width: 36rem; }
.appel .bouton { --b-bg: var(--papier); --b-fg: var(--encre); }
.appel__liste {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .2rem;
  font-family: var(--f-titre); font-style: italic;
  font-size: var(--t-xl); line-height: 1.3;
}
.appel__signature { display: grid; gap: .3rem; font-family: var(--f-titre); font-size: var(--t-lg); }
.appel__signature span { font-family: var(--f-texte); font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; opacity: .8; }

/* ==========================================================================
   ÉTUDIANTS — secteurs, simulateur
   ========================================================================== */
.secteur {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--s-5);
  align-items: center;
}
.secteur img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--rayon); }
.secteur__texte { display: grid; gap: var(--s-3); }
.secteur__texte p + p { margin-top: 0; }
.groupe-serre { display: grid; gap: .6rem; }
@media (max-width: 860px) { .secteur { grid-template-columns: 1fr; } }

.durees {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
}
.duree {
  display: grid;
  gap: .5rem;
  padding-top: var(--s-3);
  border-top: 1px solid var(--texte);
}
.duree__valeur { font-family: var(--f-titre); font-size: var(--t-2xl); line-height: 1; font-variant-numeric: tabular-nums; }
.duree p { color: var(--texte); font-size: var(--t-base); font-weight: 420; }
@media (max-width: 760px) { .durees { grid-template-columns: 1fr; } }

.simulateur {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  background: var(--bg);
}
.simulateur__reglages { padding: var(--s-4); display: grid; gap: var(--s-3); align-content: start; }
.simulateur__resultat {
  padding: var(--s-4);
  background: var(--encre);
  color: #EEE9DF;
  display: grid;
  gap: var(--s-3);
  align-content: start;
}
:root[data-theme="dark"] .simulateur__resultat { background: #0E1016; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .simulateur__resultat { background: #0E1016; } }
.simulateur__resultat .eyebrow { color: #CDB16F; }
.simulateur__total {
  font-family: var(--f-titre);
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.simulateur__lignes { list-style: none; margin: 0; padding: 0; display: grid; }
.simulateur__lignes li {
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
  padding-block: .75rem;
  border-bottom: 1px solid rgba(238, 233, 223, .16);
  font-size: var(--t-sm);
}
.simulateur__lignes li span:last-child { font-variant-numeric: tabular-nums; text-align: right; }
.simulateur__mention { font-size: var(--t-xs); color: rgba(238, 233, 223, .7); }
.simulateur .bouton { --b-bg: #EEE9DF; --b-fg: #1E2433; justify-self: start; }

.curseur { display: grid; gap: .5rem; }
.curseur input[type="range"] {
  width: 100%;
  accent-color: var(--encre);
  padding: 0;
  border: 0;
}
:root[data-theme="dark"] .curseur input[type="range"] { accent-color: var(--paille); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .curseur input[type="range"] { accent-color: var(--paille); } }
.curseur__graduations { display: flex; justify-content: space-between; font-size: var(--t-xs); color: var(--texte-doux); font-variant-numeric: tabular-nums; }
.curseur__valeur { font-family: var(--f-titre); font-size: var(--t-xl); font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .simulateur { grid-template-columns: 1fr; }
  .simulateur__reglages, .simulateur__resultat { padding: var(--s-3); }
}

/* ==========================================================================
   CORRESPONDANTS
   ========================================================================== */
.correspondants {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4) var(--s-3);
}
.correspondant { display: grid; gap: .8rem; align-content: start; }
.correspondant .portrait { aspect-ratio: 4 / 5; }
.correspondant .portrait__initiales { font-size: clamp(2rem, 4vw, 3rem); }
.correspondant h3 { font-size: var(--t-lg); }
.correspondant p { font-size: var(--t-sm); color: var(--texte-doux); }
@media (max-width: 960px) { .correspondants { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .correspondants { grid-template-columns: 1fr; } }

/* ==========================================================================
   RÉSERVATION — calendrier
   ========================================================================== */
.reservation {
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  background: var(--bg);
  min-height: 34rem;
}
.reservation__resume {
  padding: var(--s-4) var(--s-3);
  border-right: 1px solid var(--filet);
  display: grid;
  gap: var(--s-3);
  align-content: start;
}
.reservation__etape { padding: var(--s-4); display: grid; gap: var(--s-3); align-content: start; }
.reservation__resume dl { margin: 0; display: grid; gap: var(--s-2); }
.reservation__resume dt { font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--texte-doux); }
.reservation__resume dd { margin: .2rem 0 0; font-family: var(--f-titre); font-size: var(--t-lg); line-height: 1.25; }
@media (max-width: 860px) {
  .reservation { grid-template-columns: 1fr; }
  .reservation__resume { border-right: 0; border-bottom: 1px solid var(--filet); padding: var(--s-3); }
  .reservation__etape { padding: var(--s-3); }
}

.motifs { display: grid; gap: var(--s-2); }
.motif {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .3rem var(--s-2);
  padding: var(--s-3);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.motif:hover { border-color: var(--texte); }
.motif[aria-pressed="true"] { border-color: var(--texte); background: var(--surface); }
.motif__titre { font-family: var(--f-titre); font-size: var(--t-lg); }
.motif__duree { font-size: var(--t-sm); color: var(--texte-doux); font-variant-numeric: tabular-nums; }
.motif__desc { grid-column: 1 / -1; font-size: var(--t-sm); color: var(--texte-doux); }

.agenda { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-4); }
@media (max-width: 1000px) { .agenda { grid-template-columns: 1fr; } }

.calendrier__tete { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-2); }
.calendrier__mois { font-family: var(--f-titre); font-size: var(--t-lg); text-transform: capitalize; }
.calendrier__nav { display: flex; gap: .3rem; }
.icone-bouton {
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  border: 1px solid var(--filet);
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
}
.icone-bouton:hover:not([disabled]) { border-color: var(--texte); }
.icone-bouton[disabled] { opacity: .3; cursor: not-allowed; }
.icone-bouton svg { width: 1rem; }

.calendrier__grille {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
}
.calendrier__jsem { font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--texte-doux); padding-block: .4rem; }
.jour {
  aspect-ratio: 1;
  max-width: 100%;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--texte-doux);
  font: inherit;
  font-size: var(--t-sm);
  font-variant-numeric: tabular-nums;
  opacity: .45;
}
.jour.is-dispo {
  opacity: 1;
  color: var(--texte);
  background: var(--surface);
  cursor: pointer;
  font-weight: 500;
  transition: background .25s, color .25s;
}
.jour.is-dispo:hover { background: var(--filet); }
.jour[aria-pressed="true"] { background: var(--texte) !important; color: var(--bg) !important; }

.creneaux__titre { font-family: var(--f-titre); font-size: var(--t-lg); margin-bottom: .3rem; text-transform: capitalize; }
.creneaux__liste {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.2rem, 1fr));
  gap: .5rem;
  max-height: 20rem;
  overflow-y: auto;
  padding-right: .2rem;
}
.creneau {
  padding: .7rem .5rem;
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  background: none;
  color: inherit;
  font: inherit;
  font-size: var(--t-sm);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  display: grid;
  gap: .1rem;
  transition: border-color .25s, background .25s;
}
.creneau small { font-size: .7rem; color: var(--texte-doux); }
.creneau:hover { border-color: var(--texte); }
.creneau[aria-pressed="true"] { background: var(--texte); color: var(--bg); border-color: var(--texte); }
.creneau[aria-pressed="true"] small { color: inherit; opacity: .75; }

.fuseau { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; font-size: var(--t-sm); color: var(--texte-doux); }
.fuseau select {
  font: inherit;
  color: var(--texte);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--filet);
  padding: .2rem 0;
  max-width: 100%;
}
.fuseau select option { background: var(--bg); color: var(--texte); }

.retour {
  justify-self: start;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: var(--t-sm);
  color: var(--texte-doux);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .2em;
}

/* ==========================================================================
   PAIEMENT
   ========================================================================== */
.versements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}
.versement {
  display: grid;
  gap: var(--s-2);
  align-content: start;
  padding: var(--s-4) var(--s-3);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  background: var(--bg);
  cursor: pointer;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.versement:hover { border-color: var(--texte); }
.versement:has(input:checked) { border-color: var(--texte); background: var(--surface); }
.versement input { accent-color: var(--encre); width: 1.1rem; height: 1.1rem; }
.versement__tete { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); }
.versement__titre { font-family: var(--f-titre); font-size: var(--t-xl); line-height: 1.1; }
.versement__texte { font-size: var(--t-sm); color: var(--texte-doux); }
@media (max-width: 760px) { .versements { grid-template-columns: 1fr; } }

.confiance {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  list-style: none;
  margin: 0; padding: 0;
  font-size: var(--t-sm);
  color: var(--texte-doux);
}
.confiance li { display: inline-flex; align-items: center; gap: .5rem; }
.confiance svg { width: 1rem; color: var(--paille-texte); }

/* Contact ----------------------------------------------------------------- */
.coordonnees { display: grid; gap: var(--s-3); align-content: start; }
.coordonnee { display: grid; gap: .3rem; padding-bottom: var(--s-3); border-bottom: 1px solid var(--filet); }
.coordonnee > span:first-child { font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--texte-doux); }
.coordonnee__valeur { font-family: var(--f-titre); font-size: var(--t-lg); display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; word-break: break-word; }
.copier {
  font: inherit;
  font-family: var(--f-texte);
  font-size: var(--t-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--filet);
  border-radius: var(--rayon-pilule);
  padding: .25rem .7rem;
  color: var(--texte-doux);
  cursor: pointer;
}
.copier:hover { border-color: var(--texte); color: var(--texte); }

/* Texte légal ------------------------------------------------------------- */
.texte-long { display: grid; gap: var(--s-3); max-width: 44rem; }
.texte-long h2 { font-size: var(--t-xl); margin-top: var(--s-3); }
.a-completer { background: color-mix(in srgb, var(--paille) 25%, transparent); padding: 0 .25em; }

/* Photo de Myriam ---------------------------------------------------------- */
.photo-myriam {
  margin: 0;
  position: relative;
  max-width: 100%;
}
.photo-myriam img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--rayon);
}
.photo-myriam::after {
  content: "";
  position: absolute;
  left: var(--s-3); right: calc(-1 * var(--s-3)); top: var(--s-3); bottom: calc(-1 * var(--s-3));
  border: 1px solid var(--paille);
  border-radius: var(--rayon);
  z-index: -1;
}
.myriam { isolation: isolate; }
@media (max-width: 860px) {
  .photo-myriam { max-width: 24rem; margin-right: var(--s-3); }
}

/* Étudiants : textes du bandeau, inclus, simulateur dépliable -------------- */
.bandeau__texte { display: grid; gap: .8rem; color: var(--texte-doux); max-width: 36rem; }
.bandeau__texte p + p { margin-top: 0; }
.devise-italique {
  font-family: var(--f-titre);
  font-style: italic;
  font-size: var(--t-lg);
  line-height: 1.4;
  padding-left: var(--s-2);
  border-left: 1px solid var(--paille);
}
.inclus--une-colonne { grid-template-columns: 1fr; }
.simulateur-panneau:not([hidden]) { animation: deplie .7s var(--ease) both; }
@keyframes deplie { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.appel__contenu p { max-width: 34rem; }

/* Correspondants : « trois voix, une même partition » ---------------------- */
.partition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6rem minmax(0, 1fr);
  gap: var(--s-3);
  align-items: center;
}
.partition__voix {
  display: grid;
  gap: .6rem;
  padding: var(--s-4) var(--s-3);
  background: var(--bg);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  align-content: start;
  height: 100%;
}
.partition__phrase { font-family: var(--f-titre); font-size: var(--t-xl); line-height: 1.2; }
.partition__lien { position: relative; height: 1px; background: var(--paille); }
.partition__lien span {
  position: absolute; left: 50%; top: 50%;
  width: .6rem; height: .6rem; border-radius: 50%;
  background: var(--paille);
  transform: translate(-50%, -50%);
}
.partition__ensemble {
  display: grid;
  gap: var(--s-2);
  justify-items: center;
  text-align: center;
  margin-top: var(--s-5);
}
.partition__ensemble .citation { max-width: none; font-size: var(--t-2xl); }
.partition__ensemble p { max-width: 36rem; }
@media (max-width: 760px) {
  .partition { grid-template-columns: 1fr; }
  .partition__lien { width: 1px; height: 3rem; justify-self: center; }
}

.correspondants--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.correspondants--3 .portrait { aspect-ratio: 3 / 2; }
@media (max-width: 960px) { .correspondants--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .correspondants--3 { grid-template-columns: 1fr; } }

/* ==========================================================================
   ACCUEIL — v2 : introduction, rencontre, onglets « Pour qui »
   ========================================================================== */

/* Introduction ------------------------------------------------------------ */
.intro { padding-bottom: 0; overflow: hidden; }
.intro__tete { display: grid; gap: var(--s-3); max-width: 58rem; }
.intro__titre { font-size: var(--t-2xl); line-height: 1.1; }
.intro__corps {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--s-5);
  align-items: end;
  margin-top: var(--s-5);
}
.intro__verbes { list-style: none; margin: 0; padding: 0; display: grid; }
.intro__verbes li {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: var(--s-2);
  align-items: baseline;
  padding-block: 1rem;
  border-top: 1px solid var(--filet);
  font-size: var(--t-base);
  color: var(--texte-doux);
}
.intro__verbes li:last-child { border-bottom: 1px solid var(--filet); }
.intro__verbes span {
  font-family: var(--f-titre);
  font-style: italic;
  font-size: var(--t-lg);
  color: var(--paille-texte);
}
.intro__conclusion {
  font-family: var(--f-titre);
  font-size: var(--t-lg);
  font-weight: 480;
  line-height: 1.45;
  padding-left: var(--s-3);
  border-left: 1px solid var(--paille);
}
@media (max-width: 860px) {
  .intro__corps { grid-template-columns: 1fr; gap: var(--s-4); }
  .intro__verbes li { grid-template-columns: 1fr; gap: .1rem; }
}

/* Bandeau défilant des régions */
.defilant {
  margin-top: var(--s-5);
  border-block: 1px solid var(--filet);
  overflow: hidden;
  padding-block: .8rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.defilant__piste {
  display: flex;
  width: max-content;
  animation: defile 60s linear infinite;
}
.defilant__piste span {
  display: inline-flex;
  align-items: center;
  gap: 2.2rem;
  padding-right: 2.2rem;
  font-family: var(--f-titre);
  font-style: italic;
  font-size: var(--t-lg);
  font-weight: 480;
  color: var(--texte-doux);
  white-space: nowrap;
}
.defilant__piste span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--paille); }
@keyframes defile { to { transform: translateX(-50%); } }

/* La rencontre ------------------------------------------------------------ */
.rencontre {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: var(--s-6);
  align-items: center;
}
.rencontre__collage { position: relative; aspect-ratio: 4 / 5; max-width: 100%; }
.rencontre__img {
  position: absolute;
  width: 66%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--rayon);
  box-shadow: 0 30px 60px -30px rgba(16, 17, 26, .45);
}
.rencontre__img--a { left: 0; top: 0; }
.rencontre__img--b { right: 0; bottom: 0; }
.rencontre__sceau {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 8.5rem; height: 8.5rem;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--paille);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--f-titre);
  font-size: 1rem;
  line-height: 1.05;
  color: var(--texte);
  align-content: center;
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--bg) 60%, transparent);
}
.rencontre__sceau em { font-size: 1.4rem; color: var(--paille-texte); }
.reveal.is-shown .rencontre__sceau { animation: sceau 1.2s var(--ease) .4s both; }
@keyframes sceau { from { transform: translate(-50%, -50%) scale(.6) rotate(-20deg); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }

.rencontre__texte { display: grid; gap: var(--s-4); }
.rencontre__conviction { margin: 0; display: grid; gap: .8rem; padding: var(--s-3) 0 var(--s-3) var(--s-3); border-left: 1px solid var(--paille); }
.rencontre__conviction blockquote {
  margin: 0;
  font-family: var(--f-titre);
  font-style: italic;
  font-size: var(--t-lg);
  line-height: 1.45;
  max-width: 36rem;
}
.rencontre__paras { display: grid; gap: var(--s-2); color: var(--texte-doux); max-width: 36rem; }
.rencontre__paras p + p { margin-top: 0; }
@media (max-width: 1000px) {
  .rencontre { grid-template-columns: 1fr; gap: var(--s-4); }
  .rencontre__collage { max-width: 30rem; width: 100%; }
}
@media (max-width: 640px) { .rencontre__paras { grid-template-columns: 1fr; } }

/* Section sombre ---------------------------------------------------------- */
.section--encre {
  --texte: #EEE9DF;
  --texte-doux: #B8B5AD;
  --filet: rgba(238, 233, 223, .16);
  --paille-texte: #D8B866;
  --bouton-bg: #EEE9DF;
  --bouton-texte: #1E2433;
  --bg: #1E2433;
  background: #1E2433;
  color: var(--texte);
}
:root[data-theme="dark"] .section--encre { --bg: #0E1016; background: #0E1016; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .section--encre { --bg: #0E1016; background: #0E1016; } }

/* Onglets « Pour qui » ------------------------------------------------------ */
.publics-onglets { display: grid; gap: var(--s-5); }
.publics-onglets__liste {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
}
.onglet {
  position: relative;
  display: grid;
  gap: .4rem;
  text-align: left;
  padding: var(--s-3) 0 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--filet);
  color: var(--texte-doux);
  font-family: var(--f-titre);
  font-weight: 480;
  font-size: var(--t-xl);
  line-height: 1.15;
  cursor: pointer;
  transition: color .4s var(--ease);
}
.onglet::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 2px;
  background: var(--paille);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease);
}
.onglet:hover { color: var(--texte); }
.onglet[aria-selected="true"] { color: var(--texte); }
.onglet[aria-selected="true"]::before { transform: scaleX(1); }
.onglet__pour {
  font-family: var(--f-texte);
  font-size: var(--t-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paille-texte);
}

.public-panneau {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: var(--s-5);
  align-items: center;
}
.public-panneau:not([hidden]) { animation: panneau .8s var(--ease) both; }
@keyframes panneau { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.public-panneau__visuel { overflow: hidden; border-radius: var(--rayon); }
.public-panneau__visuel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 34rem;
  object-fit: cover;
  animation: zoom-doux 8s var(--ease) both;
}
@keyframes zoom-doux { from { transform: scale(1.08); } to { transform: scale(1); } }
.public-panneau__texte { display: grid; gap: var(--s-2); justify-items: start; color: var(--texte-doux); }
.public-panneau__texte h3 { font-size: var(--t-2xl); color: var(--texte); margin-bottom: var(--s-1); }
.public-panneau__texte p + p { margin-top: 0; }
.public-panneau__points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.public-panneau__points li {
  padding: .35rem .9rem;
  border: 1px solid var(--filet);
  border-radius: var(--rayon-pilule);
  font-size: var(--t-sm);
  color: var(--texte);
}
.public-panneau__accent {
  font-family: var(--f-titre);
  font-style: italic;
  font-size: var(--t-lg);
  line-height: 1.4;
  color: var(--texte);
  padding-left: var(--s-2);
  border-left: 1px solid var(--paille);
}
.public-panneau__texte .bouton { margin-top: var(--s-2); }

@media (max-width: 860px) {
  .publics-onglets__liste {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(12rem, 70%);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .onglet { font-size: var(--t-lg); }
  .public-panneau { grid-template-columns: 1fr; gap: var(--s-3); }
  .public-panneau__visuel img { aspect-ratio: 16 / 10; }
}

/* Partenaires : duo logement / universités -------------------------------- */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.duo__bloc {
  display: grid;
  gap: var(--s-2);
  align-content: start;
  padding: var(--s-5) var(--s-4);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  background: var(--surface);
}
.duo__bloc h2 { font-size: var(--t-xl); line-height: 1.2; }
.duo__bloc p + p { margin-top: 0; }
.duo__bloc--image { position: relative; overflow: hidden; isolation: isolate; color: var(--sur-image); border: 0; background: #1E2433; }
.duo__bloc--image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: brightness(.7); }
.duo__bloc--image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(16, 17, 26, .88), rgba(16, 17, 26, .45)); }
.duo__contenu { display: grid; gap: var(--s-2); }
.duo__bloc--image .bouton { --b-bg: var(--papier); --b-fg: var(--encre); margin-top: var(--s-1); }
@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
  .duo__bloc { padding: var(--s-4) var(--s-3); }
}

/* Appel final de l'accueil : photo du lac alpin (déjà assombrie) */
.appel--lac img { object-position: 55% 60%; }
.appel--lac::before { background: linear-gradient(90deg, rgba(16, 17, 26, .78) 0%, rgba(16, 17, 26, .5) 45%, rgba(16, 17, 26, .1) 80%); }
.appel { background: #1E2433; }

/* Bloc seul (logement) et bloc large (écoles, page correspondants) -------- */
.duo--seul { grid-template-columns: 1fr; }
.duo__bloc--ligne { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s-5); align-items: center; }
.duo__gauche, .duo__droite { display: grid; gap: var(--s-2); }
.duo__bloc--large { min-height: 26rem; align-content: end; }
.duo__bloc--large .duo__contenu { max-width: 40rem; }
@media (max-width: 860px) {
  .duo__bloc--ligne { grid-template-columns: 1fr; gap: var(--s-3); }
}

/* Parcours étudiants : ce qui est inclus à chaque étape ------------------- */
.etapes--inclus > li { grid-template-columns: 4.5rem minmax(0, .9fr) minmax(0, 1.3fr); }
.etapes--inclus > li > div { display: grid; gap: .7rem; }
.etape__inclus { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.etape__inclus li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .8rem;
  border: 1px solid var(--filet);
  border-radius: var(--rayon-pilule);
  font-size: var(--t-xs);
  letter-spacing: .02em;
  color: var(--texte);
  background: var(--surface);
}
.etape__inclus li::before {
  content: "";
  width: .45rem; height: .45rem;
  border-radius: 50%;
  background: var(--paille);
}
@media (max-width: 760px) {
  .etapes--inclus > li { grid-template-columns: 3rem minmax(0, 1fr); }
  .etapes--inclus > li > div { grid-column: 2; }
}

/* Qui suis-je : récit de Myriam -------------------------------------------- */
.myriam--recit { align-items: start; }
.myriam--recit .myriam__colonne { align-self: stretch; }
.myriam--recit .myriam__texte { gap: var(--s-4); max-width: 40rem; }
.myriam__recit { display: grid; gap: var(--s-2); }
.myriam__recit p { margin: 0; }
.myriam__recit .lead { margin-bottom: var(--s-1); }
.myriam__citation {
  margin: 0;
  display: grid;
  gap: var(--s-2);
  padding: var(--s-3) 0 var(--s-3) var(--s-3);
  border-left: 1px solid var(--paille);
}
.myriam__citation p { margin: 0; }
.myriam__conviction { color: var(--texte-doux); }
.myriam__citation .citation { font-size: var(--t-2xl); max-width: none; }
.myriam__devise { margin: 0; }
.myriam__fin { display: grid; gap: var(--s-3); }
.myriam__fin p { margin: 0; }
.myriam__fin > p:first-child { font-family: var(--f-titre); font-style: italic; font-size: var(--t-lg); line-height: 1.4; }
.myriam__signature span { font-size: .75em; color: var(--texte-doux); }
@media (max-width: 860px) {
  .myriam--recit .photo-myriam { position: static; }
  .myriam__citation .citation { font-size: var(--t-xl); }
}
.myriam__logo { margin: var(--s-2) 0 0; width: min(100%, 20rem); }
.myriam__logo img { width: 100%; }
.logo-sombre { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-clair { display: none; }
  :root:not([data-theme="light"]) .logo-sombre { display: block; }
}
:root[data-theme="dark"] .logo-clair { display: none; }
:root[data-theme="dark"] .logo-sombre { display: block; }

/* Accueil : phrase de conclusion sous « Comment ça marche » */
.parcours__objectif {
  margin: var(--s-5) auto 0;
  padding-top: var(--s-4);
  border-top: 1px solid var(--filet);
  max-width: 46rem;
  text-align: center;
  font-family: var(--f-titre);
  font-size: var(--t-xl);
  line-height: 1.35;
  text-wrap: balance;
}

/* Étudiants : formulaire de demande de devis */
.devis-panneau {
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
}
.devis-panneau:not([hidden]) { animation: panneau .8s var(--ease) both; }
@media (max-width: 640px) { .devis-panneau { padding: var(--s-3); } }

/* Offres : territoires (cartes de même hauteur) */
.territoires {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
}
.territoire {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 0 0 var(--s-3);
  background: var(--bg);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: 0 1px 0 var(--filet);
}
.territoire > :not(.territoire__visuel) { margin-inline: var(--s-3); }
.territoire__visuel { aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: .4rem; background: var(--surface); }
.territoire__visuel img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.territoire:hover .territoire__visuel img { transform: scale(1.04); }
.territoire__visuel--vide {
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--paille) 22%, transparent), transparent 60%),
    linear-gradient(135deg, var(--lin), color-mix(in srgb, var(--paille) 18%, var(--lin)));
  display: grid; place-items: center;
}
.territoire__visuel--vide::after { content: "✦"; color: var(--paille); font-size: 1.6rem; opacity: .7; }
.territoire h3 { font-size: var(--t-xl); min-height: 2.2em; display: flex; align-items: flex-end; }
.territoire__accroche {
  margin-block: 0;
  font-family: var(--f-titre);
  font-style: italic;
  font-size: var(--t-lg);
  line-height: 1.3;
  color: var(--paille-texte);
  min-height: 2.6em;
}
.territoire__visuel.visuel-lieu { margin-bottom: .4rem; }
.territoire__texte {
  display: grid; gap: .6rem;
  color: var(--texte-doux);
  height: 8.4em;                /* 5 lignes : toutes les cartes ont exactement la même hauteur */
  overflow: hidden;
  position: relative;
  transition: max-height .6s var(--ease);
}
.territoire__texte p { margin: 0; }
.territoire:not(.is-ouvert) .territoire__texte::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.4em;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
.territoire.is-ouvert .territoire__texte { height: auto; }

.territoire__texte.is-court::after { display: none; }
.territoire__suite {
  align-self: flex-start;
  margin-top: auto;
  font: inherit; font-size: var(--t-sm); font-weight: 500;
  color: var(--texte);
  background: none; border: 0; padding: .2rem 0;
  border-bottom: 1px solid var(--paille);
  cursor: pointer;
}
.territoire__suite[hidden] { display: inline-block !important; visibility: hidden; }
.territoire__texte { line-height: 1.68; }
@media (max-width: 1000px) { .territoires { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .territoires { grid-template-columns: 1fr; } }
.offres-bientot {
  margin-top: var(--s-2);
  padding: var(--s-3);
  border: 1px dashed var(--filet);
  border-radius: var(--rayon);
  font-family: var(--f-titre);
  font-style: italic;
  font-size: var(--t-lg);
}
.lien-clair { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
@media (min-width: 1100px) { .territoires { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--s-4); } }
/* Logo sous la photo de Myriam */
.myriam__colonne .myriam__logo { margin: calc(var(--s-3) + var(--s-5)) auto 0; width: min(85%, 21rem); }
@media (max-width: 860px) { .myriam__colonne .myriam__logo { margin-left: 0; width: min(70%, 18rem); } }

/* Agenda Cal.com intégré */
.cal-embed iframe { width: 100%; height: 720px; border: 0; border-radius: var(--rayon); background: var(--bg); }
@media (max-width: 640px) { .cal-embed iframe { height: 900px; } }

/* Correspondants : liste des pays du réseau (sans portraits) */
.pays-liste {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 var(--s-4);
  border-bottom: 1px solid var(--filet);
}
.pays-item {
  display: grid;
  gap: .3rem;
  align-content: start;
  padding-block: var(--s-3);
  border-top: 1px solid var(--filet);
}
.pays-item h3 { font-size: var(--t-xl); }
.pays-item p { margin: 0; font-size: var(--t-sm); color: var(--texte-doux); letter-spacing: .02em; }
@media (max-width: 860px) { .pays-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pays-liste { grid-template-columns: 1fr; } }
/* Logo aligné en bas de la colonne, à hauteur de la fin du texte */
@media (min-width: 861px) {
  .myriam--recit .myriam__colonne { display: flex; flex-direction: column; align-self: stretch; }
  .myriam__colonne .myriam__logo { margin-top: auto; padding-top: var(--s-5); }
}
.myriam__colonne > figure { flex-shrink: 0; }

/* ==========================================================================
   Photos de lieux : légendes et galeries
   (titres en USF Bodoni, petites capitales en Jost — aucune autre police)
   ========================================================================== */
.visuel-lieu { position: relative; margin: 0; overflow: hidden; }
.visuel-lieu img { width: 100%; height: 100%; object-fit: cover; display: block; }

.appel__lieu {
  position: absolute;
  right: var(--s-3);
  bottom: var(--s-3);
  z-index: 1;
  padding: .35rem .8rem;
  border-radius: var(--rayon-pilule);
  background: rgba(16, 17, 26, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FBF9F5;
  font-family: var(--f-texte);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.3;
}
.appel .appel__lieu { right: var(--s-4); bottom: var(--s-4); }

.galerie {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 15rem;
  gap: var(--s-2);
}
.galerie--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 13rem; }
.galerie__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--rayon);
  grid-row: span 1;
}
.galerie__item--large { grid-column: span 2; }
.galerie__item--haut { grid-row: span 2; }
.galerie--4 .galerie__item { grid-row: span 2; }
.galerie__item img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.galerie__item:hover img { transform: scale(1.04); }
.galerie__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(16, 17, 26, .7));
  pointer-events: none;
}
.galerie__item figcaption {
  position: absolute;
  left: var(--s-2); right: var(--s-2); bottom: var(--s-2);
  z-index: 1;
  display: grid;
  gap: .15rem;
  color: #FBF9F5;
}
.galerie__lieu { font-family: var(--f-titre); font-style: italic; font-size: var(--t-lg); line-height: 1.2; }
.galerie__region {
  font-family: var(--f-texte);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .85;
}
@media (max-width: 960px) {
  .galerie, .galerie--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 12rem; }
  .galerie__item--large { grid-column: span 2; }
}
@media (max-width: 520px) {
  .galerie, .galerie--4 { grid-template-columns: 1fr; grid-auto-rows: 15rem; }
  .galerie__item--large { grid-column: auto; }
  .galerie__item--haut, .galerie--4 .galerie__item { grid-row: span 1; }
}
.pays-item__detail { text-wrap: balance; color: var(--texte) !important; opacity: .75; }
.pays-item__detail span { white-space: nowrap; }

/* Offres publiées depuis l'administration */
.offres-liste:empty { display: none; }
.offres-liste { display: grid; gap: var(--s-5); margin-top: var(--s-5); }
.offres-region__titre { font-size: var(--t-xl); margin-bottom: var(--s-2); padding-bottom: var(--s-1); border-bottom: 1px solid var(--filet); }
.offres-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--s-3); }
.offre {
  display: flex; flex-direction: column; gap: .6rem;
  padding: var(--s-3);
  background: var(--surface);
  border-radius: var(--rayon);
}
.offre__ref { font-size: var(--t-xs); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--paille-texte); }
.offre__poste { margin: 0; font-family: var(--f-titre); font-size: var(--t-lg); line-height: 1.25; }
.offre dl { margin: 0; display: grid; gap: .3rem; font-size: var(--t-sm); }
.offre dl div { display: flex; gap: .5rem; }
.offre dt { color: var(--texte-doux); }
.offre dt::after { content: " :"; }
.offre dd { margin: 0; }
.offre__note { margin: 0; font-size: var(--t-sm); color: var(--texte-doux); }
.offre .lien-fleche { margin-top: auto; font-size: var(--t-sm); }

/* Témoignages */
.temoignages { display: grid; gap: var(--s-4); }
.temoignages--2, .temoignages--3 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.temoignage { margin: 0; display: grid; gap: var(--s-3); background: var(--bg); border-radius: var(--rayon); overflow: hidden; }
.temoignages--1 .temoignage { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: stretch; max-width: 60rem; }
.temoignage__photo { min-height: 16rem; }
.temoignage__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.temoignages--2 .temoignage__photo, .temoignages--3 .temoignage__photo { aspect-ratio: 4 / 3; min-height: 0; }
.temoignage__corps { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4); }
.temoignages--1 .temoignage__corps { padding-left: 0; justify-content: center; }
.temoignage__etoiles { color: var(--paille); letter-spacing: .2em; font-size: var(--t-lg); }
.temoignage__texte { margin: 0; font-family: var(--f-titre); font-style: italic; font-size: var(--t-lg); line-height: 1.5; display: grid; gap: .7rem; }
.temoignage__texte p { margin: 0; }
.temoignage figcaption { display: grid; gap: .15rem; }
.temoignage__nom { font-weight: 500; }
.temoignage__stage { font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--texte-doux); }
.temoignage__traduire {
  align-self: flex-start;
  font: inherit; font-size: var(--t-sm);
  background: none; border: 1px solid var(--filet); border-radius: var(--rayon-pilule);
  padding: .4rem .9rem; color: var(--texte); cursor: pointer;
}
.temoignage__traduire:hover { border-color: var(--paille); }
.temoignage__langue { color: var(--texte-doux); }
@media (max-width: 760px) {
  .temoignages--1 .temoignage { grid-template-columns: 1fr; }
  .temoignages--1 .temoignage__photo { aspect-ratio: 4 / 3; min-height: 0; }
  .temoignages--1 .temoignage__corps { padding: 0 var(--s-3) var(--s-3); }
}
.section--lin .temoignage { background: var(--bg); }
.section:not(.section--lin) .temoignage { background: var(--surface); }

/* Agenda Google intégré */
.agenda-google iframe { width: 100%; height: 760px; border: 0; border-radius: var(--rayon); background: #fff; }
.agenda-google--lien { padding: var(--s-5); text-align: center; }
.secteur__visuel { border-radius: var(--rayon); aspect-ratio: 5 / 4; }
.offre dt { white-space: nowrap; }
.territoire__visuel.visuel-lieu .appel__lieu { right: var(--s-2); bottom: var(--s-2); }

/* Agenda Cal.com : pleine largeur une fois le motif choisi */
.reservation.is-cal { grid-template-columns: 1fr; }
.reservation.is-cal .reservation__resume { display: none; }
.cal-embed { position: relative; overflow: hidden; border-radius: var(--rayon); }
.cal-embed__cadre { width: 100%; min-height: 640px; overflow: hidden; }
.cal-embed__cadre iframe { display: block; width: 100% !important; }
/* Bande de la couleur de la page qui recouvre la mention « Cal.com » sous l'agenda */
.cal-embed__cadre { position: relative; z-index: 1; }
.cal-embed__masque { position: absolute; left: 0; right: 0; bottom: 0; height: 7.5rem; background: var(--bg); z-index: 10; pointer-events: none; }
/* on reprend l'espace masqué pour ne pas laisser un grand vide sous l'agenda */
.cal-embed { margin-bottom: -4.5rem; }
.cal-embed__secours { margin: var(--s-2) 0 0; font-size: var(--t-sm); text-align: right; }
.cal-embed__secours a { color: var(--texte-doux); }
.cal-embed__cadre { position: relative; }
.cal-embed__cadre:empty::before {
  content: ""; position: absolute; left: 50%; top: 8rem; width: 2rem; height: 2rem; margin-left: -1rem;
  border: 2px solid var(--filet); border-top-color: var(--paille); border-radius: 50%;
  animation: tourne 1s linear infinite;
}
@keyframes tourne { to { transform: rotate(360deg); } }
.galerie { grid-auto-flow: dense; }

/* ---------- Correspondants (gérés depuis /admin) -------------------------- */
.correspondants { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.correspondant { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border-radius: var(--rayon); overflow: hidden; }
.section--lin .correspondant { background: var(--bg); }
.correspondant__photo { aspect-ratio: 4 / 3; }
.correspondant__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.correspondant__corps { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4); }
.correspondant__nom { margin: 0; font-size: var(--t-xl); }
.correspondant__pays, .correspondant__langues { margin: 0; font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--texte-doux); }
.correspondant__langues { margin-top: auto; padding-top: var(--s-2); border-top: 1px solid var(--filet); }
.correspondant__texte { display: grid; gap: .6rem; color: var(--texte-doux); }
.correspondant__texte p { margin: 0; }

/* ---------- Visuels composés du bandeau (mosaïque, duo) ------------------- */
.bandeau__visuel.mosaique, .bandeau__visuel.duo-photos { display: grid; gap: 6px; }
.bandeau__visuel.mosaique img, .bandeau__visuel.duo-photos img { min-height: 0; border-radius: 6px; }
.mosaique { grid-template-columns: 1fr 1fr; grid-template-rows: 1.15fr 1fr 1fr; }
.mosaique img:first-child { grid-column: span 2; }
.duo-photos { grid-template-rows: 1fr 1fr; }
@media (max-width: 860px) {
  .mosaique { grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .mosaique img:first-child { grid-column: auto; grid-row: span 2; }
  .duo-photos { grid-template-rows: none; grid-template-columns: 1.4fr 1fr; }
}

/* ==========================================================================
   Défilement horizontal : témoignages et correspondants
   ========================================================================== */
.defile { display: flex; flex-direction: column; min-width: 0; }
.defile[hidden] { display: none; }
.defile + .defile { margin-top: var(--s-6); }
.defile__piste {
  display: flex; gap: var(--s-4); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  padding-bottom: 2px; outline: none;
  --fondu: 7rem;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - var(--fondu)), transparent 100%);
          mask-image: linear-gradient(to right, #000 0, #000 calc(100% - var(--fondu)), transparent 100%);
}
.defile__piste::-webkit-scrollbar { display: none; }
.defile:not(.defile--debut):not(.defile--fin) .defile__piste {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fondu), #000 calc(100% - var(--fondu)), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 var(--fondu), #000 calc(100% - var(--fondu)), transparent 100%);
}
.defile--fin:not(.defile--debut) .defile__piste {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fondu), #000 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 var(--fondu), #000 100%);
}
.defile.defile--seul .defile__piste, .defile.defile--inutile .defile__piste { -webkit-mask-image: none !important; mask-image: none !important; }
.defile__piste > * { flex: 0 0 min(54rem, 84%); scroll-snap-align: start; }
.defile--seul .defile__piste > * { flex-basis: 100%; max-width: 62rem; }

.defile__nav { order: -1; display: flex; justify-content: flex-end; align-items: center; gap: .6rem; margin-bottom: var(--s-3); }
.defile--inutile .defile__nav { display: none; }
.defile__aide { font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--texte-doux); margin-right: .4rem; }
.defile__fleche {
  width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--filet); background: transparent; color: inherit; cursor: pointer;
  transition: background-color .2s, border-color .2s, opacity .2s;
}
.defile__fleche svg { width: 1.3rem; height: 1.3rem; }
.defile__fleche:hover:not(:disabled) { border-color: var(--paille); background: color-mix(in srgb, var(--paille) 12%, transparent); }
.defile__fleche:disabled { opacity: .3; cursor: default; }
.defile:not(.defile--fin) .defile__fleche[data-sens="1"] { animation: defile-invite 2.4s ease-in-out 1.2s 2; }
@keyframes defile-invite { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .defile__fleche { animation: none !important; } .defile__piste { scroll-behavior: auto; } }

/* Carte témoignage */
.defile .temoignage { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-rows: 1fr; gap: 0; align-items: stretch; max-width: none; }
.defile .temoignage--sans-photo { grid-template-columns: 1fr; }
.defile .temoignage__photo { position: relative; min-height: 22rem; aspect-ratio: auto; overflow: hidden; }
.defile .temoignage__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.defile .temoignage__corps { padding: var(--s-5); justify-content: center; }
.defile .temoignage--sans-photo .temoignage__corps { padding: var(--s-5) var(--s-6); }
.temoignage--logo .temoignage__photo { background: #fff; }

/* Carte correspondant */
.defile .correspondant { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); grid-template-rows: 1fr; }
.defile .correspondant--sans-photo { grid-template-columns: 1fr; }
.defile .correspondant__photo { position: relative; aspect-ratio: auto; min-height: 20rem; overflow: hidden; }
.defile .correspondant__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.defile .correspondant__corps { padding: var(--s-5); }
.correspondant__pays { order: -1; }

@media (max-width: 760px) {
  .defile__piste { --fondu: 2.5rem; gap: var(--s-3); }
  .defile__piste > * { flex-basis: 86%; }
  .defile .temoignage, .defile .correspondant { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .defile .temoignage--sans-photo, .defile .correspondant--sans-photo { grid-template-rows: 1fr; }
  .defile .temoignage__photo { min-height: 0; aspect-ratio: 4 / 3; }
  .defile .correspondant__photo { min-height: 0; aspect-ratio: 1 / 1; }
  .defile .temoignage__corps, .defile .correspondant__corps, .defile .temoignage--sans-photo .temoignage__corps { padding: var(--s-4); }
  .defile__aide { display: none; }
}

/* Image recadrée depuis l'admin : le cadre la contient */
img.est-cadree { will-change: auto; }

.galerie__item[hidden] { display: none; }

/* Cadre créé autour d'une image recadrée (zoom / rotation) */
.cadre-img { display: block; overflow: hidden; }
.cadre-img > img { display: block; width: 100% !important; height: 100% !important; aspect-ratio: auto !important; border-radius: 0 !important; box-shadow: none !important; position: static !important; }

/* Vidéo de présentation (accueil) */
.video-pres__bouton { align-content: center; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; width: 100%; height: 100%; }
.video-pres__bouton:hover .video-attente__rond, .video-pres__bouton:focus-visible .video-attente__rond { transform: scale(1.08); background: rgba(201, 164, 82, .25); }
.video-attente__rond { transition: transform .3s var(--ease), background-color .3s; }
.video-pres--lecture { background: #000; }
.video-pres--lecture::before { display: none; }
.video-pres--lecture video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; z-index: 2; }
