/* ==========================================================
   LAZY RIVER — charte visuelle "La rivière lente"
   Palette : Eau profonde / Brume / Galet / Sable de rive
   Typos  : Italiana (display) · Figtree (corps)
   ========================================================== */

:root {
  --eau: #1e3d3a;        /* eau profonde — titres, fonds sombres */
  --eau-claire: #35625c; /* eau à mi-profondeur — accents, liens */
  --brume: #eef3f1;      /* fond principal, légèrement froid */
  --brume-2: #e2ebe8;    /* fond de section alternée */
  --galet: #7e9791;      /* textes secondaires, filets */
  --sable: #c8b69a;      /* touche chaude, très dosée */
  --encre: #22312f;      /* texte courant */
  --blanc: #fbfdfc;

  --display: "Playfair Display", serif;
  --corps: "Figtree", system-ui, sans-serif;

  --max: 1100px;
  --rythme: clamp(4.5rem, 10vw, 8.5rem); /* espacement vertical des sections */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--corps);
  font-weight: 400;
  color: var(--encre);
  background: var(--brume);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--eau-claire); text-decoration: none; }

.conteneur {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

/* ---------- Typographie ---------- */

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 600;
  color: var(--eau);
  line-height: 1.12;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); }

.surtitre {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--galet);
  margin-bottom: 1.25rem;
}

.grand-texte {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--encre);
  max-width: 42ch;
}

/* ---------- En-tête ---------- */

.entete {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.1rem 0;
  background: color-mix(in srgb, var(--brume) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--galet) 25%, transparent);
}

.entete .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.marque {
  font-weight: 600;
  font-family: var(--display);
  font-size: 1.55rem;
  color: var(--eau);
  letter-spacing: 0.06em;
}

.marque span { color: var(--galet); }

.nav { display: flex; gap: clamp(1.2rem, 3vw, 2.4rem); align-items: center; }

.nav a {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--encre);
  letter-spacing: 0.04em;
}

.nav a:hover { color: var(--eau-claire); }

.nav .cta-nav {
  padding: 0.55rem 1.25rem;
  border: 1px solid var(--eau);
  border-radius: 999px;
  color: var(--eau);
  transition: background 0.4s ease, color 0.4s ease;
}

.nav .cta-nav:hover { background: var(--eau); color: var(--brume); }

@media (max-width: 640px) {
  .nav a:not(.cta-nav) { display: none; }
}

/* ---------- Boutons ---------- */

.bouton {
  display: inline-block;
  padding: 0.95rem 2.2rem;
  border-radius: 999px;
  background: var(--eau);
  color: var(--brume);
  font-weight: 400;
  letter-spacing: 0.05em;
  font-size: 0.98rem;
  border: 1px solid var(--eau);
  cursor: pointer;
  transition: background 0.4s ease, transform 0.4s ease;
}

.bouton:hover { background: var(--eau-claire); transform: translateY(-2px); }

.bouton--clair {
  background: transparent;
  color: var(--eau);
}

.bouton--clair:hover { background: var(--eau); color: var(--brume); }

/* ---------- La rivière (élément signature) ---------- */

.riviere {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.riviere path {
  fill: none;
  stroke: var(--galet);
  stroke-opacity: 0.35;
  stroke-width: 1.5;
  stroke-dasharray: 6 14;
  animation: derive 60s linear infinite;
}

@keyframes derive {
  to { stroke-dashoffset: -1000; }
}

@media (prefers-reduced-motion: reduce) {
  .riviere path { animation: none; }
  html { scroll-behavior: auto; }
  .apparition { opacity: 1 !important; transform: none !important; }
}

/* ---------- Sections ---------- */

section { position: relative; padding: var(--rythme) 0; }

.section-sombre {
  background: var(--eau);
  color: var(--brume);
}

.section-sombre h2, .section-sombre h3 { color: var(--brume); }
.section-sombre .surtitre { color: var(--sable); }

.section-alterne { background: var(--brume-2); }

/* ---------- Héros ---------- */

.heros {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  background:
    radial-gradient(1200px 600px at 80% -10%, color-mix(in srgb, var(--galet) 22%, transparent), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, color-mix(in srgb, var(--sable) 18%, transparent), transparent 65%),
    var(--brume);
  overflow: hidden;
}

.heros h1 { max-width: 14ch; margin: 1.2rem 0 1.6rem; }

.heros .grand-texte { margin-bottom: 2.6rem; color: var(--encre); }

.heros .conteneur { position: relative; z-index: 1; }

/* ---------- Manifeste / philosophie ---------- */

.manifeste { display: grid; gap: 3.5rem; }

.manifeste-ligne {
  font-weight: 600;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.35;
  color: var(--brume);
  max-width: 30ch;
}

.manifeste-ligne em {
  font-style: normal;
  color: var(--sable);
}

.manifeste-ligne:nth-child(even) { justify-self: end; text-align: right; }

/* ---------- Séjours ---------- */

.carte-sejour {
  position: relative;
  z-index: 1;
  background: var(--blanc);
  border: 1px solid color-mix(in srgb, var(--galet) 30%, transparent);
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  box-shadow: 0 22px 55px -30px color-mix(in srgb, var(--eau) 45%, transparent);
}

@media (max-width: 800px) { .carte-sejour { grid-template-columns: 1fr; } }

.carte-visuel {
  min-height: 320px;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--eau-claire) 85%, transparent), var(--eau) 90%),
    var(--eau);
  position: relative;
}

/* Remplacer par une vraie photo :
   .carte-visuel { background: url("images/garda.jpg") center/cover; } */

.carte-visuel::after {
  content: "Lac de Garde · Italie";
  position: absolute;
  bottom: 1.2rem; left: 1.4rem;
  color: var(--brume);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

.carte-contenu { padding: clamp(1.8rem, 4vw, 3rem); }

.carte-contenu h3 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0.4rem 0 1rem;
}

.meta-sejour {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: 1.2rem 0 1.8rem;
  padding: 1rem 0;
  border-top: 1px solid var(--brume-2);
  border-bottom: 1px solid var(--brume-2);
  font-size: 0.92rem;
  color: var(--galet);
}

.meta-sejour strong { color: var(--encre); font-weight: 500; }

.prochains {
  margin-top: 3.5rem;
  text-align: center;
}

.prochains p { max-width: 52ch; margin: 0.8rem auto 1.8rem; color: var(--galet); }

.form-email {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.form-email input {
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--galet) 50%, transparent);
  background: var(--blanc);
  font-family: var(--corps);
  font-size: 0.98rem;
  min-width: min(320px, 80vw);
}

.form-email input:focus { outline: 2px solid var(--eau-claire); outline-offset: 2px; }

/* ---------- Pied de page ---------- */

.pied {
  background: var(--eau);
  color: color-mix(in srgb, var(--brume) 75%, transparent);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.92rem;
}

.pied .conteneur {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: baseline;
}

.pied .marque {
  font-weight: 600; color: var(--brume); }

.pied a { color: color-mix(in srgb, var(--brume) 85%, transparent); }
.pied a:hover { color: var(--brume); }

/* ---------- Apparitions au défilement ---------- */

.apparition { transition: opacity 1.1s ease, transform 1.1s ease; }

/* Le masquage n'existe que si le JS est actif (classe .js posée dans <head>).
   Sans JS, ou en cas de défaillance, tout le contenu reste visible. */
html.js .apparition:not(.visible) {
  opacity: 0;
  transform: translateY(24px);
}

/* ---------- Page séjour ---------- */

.heros-sejour {
  min-height: 72svh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 0 4rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--eau) 20%, transparent), var(--eau) 115%),
    radial-gradient(1000px 500px at 75% 0%, color-mix(in srgb, var(--eau-claire) 70%, transparent), transparent 70%),
    var(--eau);
  color: var(--brume);
}

/* Remplacer par une vraie photo :
   .heros-sejour { background: linear-gradient(180deg, rgba(30,61,58,.25), rgba(30,61,58,.85)), url("../../images/garda-hero.jpg") center/cover; } */

.heros-sejour h1 { color: var(--brume); max-width: 16ch; }

.infos-cles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: color-mix(in srgb, var(--galet) 35%, transparent);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 2.5rem;
}

.infos-cles > div {
  background: var(--blanc);
  padding: 1.2rem 1.3rem;
}

.infos-cles .libelle {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--galet);
  margin-bottom: 0.25rem;
}

.infos-cles .valeur { font-weight: 500; color: var(--eau); }

.programme { display: grid; gap: 0; margin-top: 2.5rem; }

.jour {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--galet) 28%, transparent);
}

@media (max-width: 560px) { .jour { grid-template-columns: 1fr; gap: 0.4rem; } }

.jour-date {
  font-weight: 600;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--eau-claire);
}

.jour h3 { margin-bottom: 0.3rem; }

.jour p { color: var(--galet); font-size: 0.98rem; }

.grille-inclus {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.inclus-item {
  background: color-mix(in srgb, var(--blanc) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--brume) 18%, transparent);
  border-radius: 16px;
  padding: 1.6rem;
}

.inclus-item h3 { margin-bottom: 0.5rem; font-size: 1.25rem; }
.inclus-item p { font-size: 0.95rem; color: color-mix(in srgb, var(--brume) 80%, transparent); }

.bloc-prix {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.prix {
  font-weight: 600;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 4.5rem);
  color: var(--eau);
  margin: 0.5rem 0;
}

.prix-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  color: var(--galet);
}

.note-vol {
  font-size: 0.9rem;
  color: var(--galet);
  border: 1px dashed color-mix(in srgb, var(--galet) 50%, transparent);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  margin-top: 1.5rem;
}

/* ---------- Formulaire pré-inscription ---------- */

.formulaire {
  max-width: 640px;
  margin: 2.5rem auto 0;
  display: grid;
  gap: 1.1rem;
}

.deux-colonnes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

@media (max-width: 560px) { .deux-colonnes { grid-template-columns: 1fr; } }

.champ label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  color: var(--eau);
}

.champ input,
.champ select,
.champ textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--galet) 45%, transparent);
  background: var(--blanc);
  font-family: var(--corps);
  font-size: 0.98rem;
  color: var(--encre);
}

.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: 2px solid var(--eau-claire);
  outline-offset: 1px;
}

.champ textarea { min-height: 110px; resize: vertical; }

.consentement {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--galet);
}

.consentement input { margin-top: 0.3rem; }

.succes {
  display: none;
  text-align: center;
  background: var(--brume-2);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  margin-top: 2rem;
}

.succes.visible { display: block; }

.erreur-envoi {
  display: none;
  color: #8c3b2e;
  font-size: 0.92rem;
  text-align: center;
}

.erreur-envoi.visible { display: block; }

/* ==========================================================
   V2 — photos, évocations, sections split, Instagram
   ========================================================== */

/* Visuel de la carte séjour : photo Malcesine */
.carte-visuel {
  background: url("images/garda-village.jpg") center 65% / cover no-repeat;
}

/* Héros de la page séjour : photo + voile */
.heros-sejour {
  background:
    linear-gradient(180deg, rgba(30, 61, 58, 0.30) 30%, rgba(30, 61, 58, 0.82) 100%),
    url("images/garda-village.jpg") center 60% / cover no-repeat;
}

/* Bande photo panoramique pleine largeur */
.bande-photo {
  width: 100%;
  aspect-ratio: 16 / 5;
  min-height: 220px;
  background: url("images/garda-hero.jpg") center / cover no-repeat;
}

/* Évocations — lignes poétiques en cascade */
.evocations { display: grid; gap: 1.1rem; margin-top: 2.5rem; }

.evocation {
  font-weight: 600;
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  color: var(--eau);
  line-height: 1.3;
}

.evocation:nth-child(2) { padding-left: clamp(0rem, 6vw, 4rem); }
.evocation:nth-child(3) { padding-left: clamp(0rem, 12vw, 8rem); }
.evocation:nth-child(4) { padding-left: clamp(0rem, 6vw, 4rem); }
.evocation:nth-child(5) { padding-left: 0; }

.intention {
  margin-top: 3rem;
  max-width: 46ch;
  font-size: 1.1rem;
}

.intention strong {
  font-weight: 600;
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--eau);
  margin-top: 0.6rem;
  line-height: 1.35;
}

/* "Parfois pour…" — cascade dans la section sombre */
.parfois {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin: 2rem 0;
}

.parfois span {
  font-weight: 600;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  color: var(--brume);
  border: 1px solid color-mix(in srgb, var(--brume) 30%, transparent);
  border-radius: 999px;
  padding: 0.45rem 1.3rem;
}

.parfois span em { font-style: normal; color: var(--sable); }

/* Section split texte / photo */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.split-photo {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 22px 55px -30px color-mix(in srgb, var(--eau) 45%, transparent);
}

.split-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Lien Instagram */
.insta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.insta svg { width: 19px; height: 19px; }

/* Crédits photos */
.credits {
  margin-top: 2rem;
  width: 100%;
  font-size: 0.72rem;
  color: color-mix(in srgb, var(--brume) 45%, transparent);
}

.credits a { color: inherit; text-decoration: underline; }

/* ==========================================================
   V3 — mosaïque "Une parenthèse"
   ========================================================== */

.mosaique-section { padding: 0; }

.mosaique {
  display: grid;
  grid-template-columns: 29fr 26fr 45fr;
  grid-template-areas:
    "texte texte mer"
    "photo1 photo2 sombre";
}

@media (max-width: 860px) {
  .mosaique {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "texte texte"
      "mer mer"
      "photo1 photo2"
      "sombre sombre";
  }
}

.mosaique-texte {
  grid-area: texte;
  background: #f3f0e9; /* panneau clair légèrement chaud, écho au sable */
  padding: clamp(2.5rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mosaique-texte h2 { max-width: 15ch; }

.liste-icones {
  list-style: none;
  margin-top: 2.2rem;
  display: grid;
  gap: 1.3rem;
}

.liste-icones li {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding-left: 1rem;
  border-left: 1px solid color-mix(in srgb, var(--galet) 40%, transparent);
}

.liste-icones .icone {
  flex: 0 0 46px;
  width: 46px; height: 46px;
  border: 1px solid color-mix(in srgb, var(--eau) 45%, transparent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--eau);
}

.liste-icones .icone svg { width: 22px; height: 22px; }

.liste-icones span.texte {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--eau);
  line-height: 1.6;
}

.mosaique-mer { grid-area: mer; min-height: 420px; background: url("images/parenthese-mer.jpg") center / cover no-repeat; }
.mosaique-photo1 { grid-area: photo1; min-height: 300px; background: url("images/yoga-sunset.jpg") center / cover no-repeat; }
.mosaique-photo2 { grid-area: photo2; min-height: 300px; background: url("images/parenthese-pins.jpg") center / cover no-repeat; }

.mosaique-sombre {
  grid-area: sombre;
  position: relative;
  overflow: hidden;
  background: var(--eau);
  color: var(--brume);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mosaique-sombre .riviere path { stroke: var(--brume); stroke-opacity: 0.14; }

.monogramme {
  width: 52px; height: 52px;
  border: 1px solid color-mix(in srgb, var(--brume) 45%, transparent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 1.6rem;
  color: var(--sable);
}

.monogramme svg { width: 26px; height: 26px; }

.mosaique-sombre .amorce {
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--brume) 80%, transparent);
  max-width: 34ch;
}

.mosaique-sombre .intention-forte {
  font-weight: 600;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.35;
  color: var(--brume);
  margin-top: 1rem;
  max-width: 22ch;
  position: relative;
  z-index: 1;
}

/* ==========================================================
   V4 — section "Changer de rythme" (panneau clair + désert)
   ========================================================== */

.rythme-section { padding: 0; }

.rythme-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
}

@media (max-width: 860px) { .rythme-grid { grid-template-columns: 1fr; } }

.rythme-panneau {
  position: relative;
  overflow: hidden;
  background: #f3f0e9;
  padding: clamp(2.5rem, 6vw, 5rem);
}

.rythme-panneau .riviere path { stroke: var(--galet); stroke-opacity: 0.4; }

.rythme-panneau > :not(.riviere) { position: relative; z-index: 1; }

.rythme-photo {
  min-height: 420px;
  background: url("images/rythme-terrasse.jpg") center / cover no-repeat;
}

.question {
  font-weight: 600;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.3;
  color: var(--eau);
  margin: 2.5rem 0 1.8rem;
  max-width: 22ch;
}

.question em { font-style: normal; color: var(--sable); }

.ralentir {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--encre);
  margin-bottom: 1.6rem;
}

.ralentir svg { width: 20px; height: 20px; color: var(--eau-claire); flex: 0 0 20px; }

.pilules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.pilule {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid color-mix(in srgb, var(--eau) 35%, transparent);
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  color: var(--encre);
  background: color-mix(in srgb, var(--blanc) 55%, transparent);
}

.pilule svg { width: 18px; height: 18px; color: var(--eau-claire); flex: 0 0 18px; }

.pilule em { font-style: normal; color: var(--sable); font-weight: 500; }

.rythme-bande {
  position: relative;
  overflow: hidden;
  background: var(--eau);
  color: var(--brume);
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) 1.5rem;
}

.rythme-bande .riviere path { stroke: var(--brume); stroke-opacity: 0.14; }

.rythme-bande .monogramme { margin: 0 auto 1.4rem; position: relative; z-index: 1; }

.rythme-bande .naissance {
  font-weight: 600;
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.35;
}

.rythme-bande .naissance em { font-style: normal; color: var(--sable); }

/* ==========================================================
   V5 — encart professeure de yoga
   ========================================================== */

.encart-prof {
  max-width: 720px;
  margin: 0 auto;
  background: #f3f0e9;
  border-radius: 22px;
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 22px 55px -35px color-mix(in srgb, var(--eau) 40%, transparent);
}

@media (max-width: 620px) { .encart-prof { flex-direction: column; text-align: center; } }

.encart-prof img {
  flex: 0 0 140px;
  width: 140px; height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--sable) 70%, transparent);
}

.encart-prof h3 { margin-bottom: 0.4rem; }

.encart-prof .role {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--galet);
  display: block;
  margin-bottom: 0.6rem;
}

.encart-prof p { font-size: 0.98rem; }

.encart-prof .lien-prof {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 500;
  border-bottom: 1px solid var(--eau-claire);
  padding-bottom: 1px;
}

/* ---------- Correctif photo désert : hauteur maîtrisée + légende ---------- */

.rythme-photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  background-position: center 40%;
}

.rythme-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(30, 45, 42, 0.55) 100%);
}

.photo-legende {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--brume);
}

.photo-legende span {
  font-weight: 600;
  display: block;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.photo-legende small {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

@media (max-width: 860px) {
  .rythme-photo { min-height: 0; aspect-ratio: 4 / 3; }
}
