/* =====================================================================
   Page d'immersion NestMe (Marius, 23/11/2026) · en plus de salon.css, dont elle reprend les couleurs,
   la typographie, .cta, .chip, .carte, .bloc et le carrousel .defile. Tout ce qui est propre à la page
   commence par imm- (ou .tuile pour le mur), pour ne rien changer aux autres pages.
   ===================================================================== */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Les ancres ne passent pas sous la navigation collante */
[id] { scroll-margin-top: 76px; }

/* --- Navigation : le chapitrage ------------------------------------------------------------------ */
.imm-nav { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--ligne);
  backdrop-filter: saturate(1.4) blur(6px); }
.imm-nav__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1100px;
  margin: 0 auto; padding: 0 16px; min-height: 52px; }
.imm-nav__marque { font-family: Montserrat, system-ui, sans-serif; font-weight: 800; font-size: 15px; color: var(--encre);
  text-decoration: none; white-space: nowrap; }
.imm-nav__liens { display: flex; gap: 4px; }
.imm-nav__liens a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 600;
  color: var(--texte); text-decoration: none; white-space: nowrap; }
.imm-nav__liens a span:first-child { margin-right: 4px; color: var(--violet); font-variant-numeric: tabular-nums; }
.imm-nav__liens a:hover, .imm-nav__liens a.est-actif { background: var(--violet-pale); color: var(--violet-fonce); }
.imm-nav__ouvre { display: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--ligne-forte); border-radius: 999px;
  background: #fff; font: inherit; font-size: 14px; font-weight: 700; color: var(--encre); cursor: pointer; }
@media (max-width: 899px) {
  .imm-nav__ouvre { display: block; }
  .imm-nav__liens { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 6px 12px 12px; background: #fff; border-bottom: 1px solid var(--ligne); box-shadow: 0 16px 30px -20px rgba(14, 11, 28, .35); }
  .imm-nav.est-ouverte .imm-nav__liens { display: flex; }
  .imm-nav__liens a { padding: 12px 10px; font-size: 16px; }
}

/* --- S1 · Haut de page : la mosaïque à la manière d'Alec Henry ------------------------------------------
   Marius, 23/11 : « comme le fait Alec » (entrepreneurs.com, capture du 18/11), puis « un peu plus petites, plus proche
   d'Alec, et un survol sur toutes ». Chez Alec : fond sombre, photos carrées en colonnes alignées en bas, hautes aux bords
   et basses au centre (un U autour du titre), presque effacées, qui s'allument au survol avec le nom.
   Ici, 22 photos d'environ 110 px : 12 colonnes de 4, 3, 2, 1, 1, 0, 0, 1, 1, 2, 3, 4. Le texte tient dans les 6 colonnes
   du centre et finit au-dessus de la dernière rangée ; son bloc laisse passer la souris (pointer-events), sinon il
   recouvrait les 4 photos du bas, sans survol. Les chiffres les plus forts sont en bas, au plus près du bouton.
   Sous 1200 px (Alec cache son mur), le mur passe sous le bouton. */
.imm-hero { position: relative; overflow: hidden; padding: 36px 16px 32px; background: var(--encre); color: #fff; }
.imm-hero__panneau { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; text-align: center; }
.imm-hero__panneau .chip { display: table; margin: 0 auto 14px; }
.imm-pont { margin: 0 0 12px; font-size: 16px; color: #CFC8E6; }
.imm-hero__panneau h1 { color: #fff; font-size: clamp(27px, 6.4vw, 44px); line-height: 1.18; }   /* 1.18 : les capitales accentuées (PRÊTS À) ne touchent pas la ligne du dessus */
.imm-hero__panneau h1 em { font-style: normal; color: #C3AEFF; }
.imm-hero__panneau .cta { margin-top: 24px; }
.imm-hero__panneau .cta-note { color: #BDB6D3; }
.imm-hero .imm-suite { color: #CDB8FF; }
.imm-hero a:focus-visible { outline: 3px solid #FFD84D; outline-offset: 3px; border-radius: 6px; }   /* visible sur le fond sombre */

.imm-mur { --col: 4; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 880px; margin: 28px auto 0;
  padding: 0; list-style: none; }
.imm-mur .tuile { width: calc((100% - (var(--col) - 1) * 6px) / var(--col)); }

.tuile { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 9px; background: #1B1733; outline: none; }
.tuile__in { position: absolute; inset: 0; }
.tuile__face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; filter: grayscale(.4);
  transition: opacity .35s ease, filter .35s ease; }
.tuile__dos { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 22px 5px 7px; background: linear-gradient(180deg, rgba(10, 8, 22, 0) 0%, rgba(10, 8, 22, .9) 42%); color: #fff;
  text-align: center; opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; }
.tuile__dos strong { font-family: Montserrat, system-ui, sans-serif; font-size: 12.5px; line-height: 1.2; color: #fff; }   /* salon.css teinte les <strong> en encre */
.tuile__dos span { font-size: 13px; font-weight: 800; line-height: 1.2; }
.tuile__dos small { font-size: 11px; line-height: 1.25; opacity: .85; }
@media (hover: hover) {
  .tuile:hover .tuile__face { opacity: 1; filter: none; }
  .tuile:hover .tuile__dos { opacity: 1; transform: none; }
}
.tuile:focus-visible .tuile__face, .tuile.est-revelee .tuile__face { opacity: 1; filter: none; }
.tuile:focus-visible .tuile__dos, .tuile.est-revelee .tuile__dos { opacity: 1; transform: none; }
.tuile:focus-visible::after { content: ""; position: absolute; inset: 0; z-index: 2; border: 3px solid #FFD84D; border-radius: 9px;
  pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .tuile__face, .tuile__dos { transition: none; } }

/* Mobile, piste A (Marius, 23/11, réglée le 24/11) : le texte et le bouton sur le fond sombre uni, puis le mur plein
   écran juste dessous, 5 colonnes de petites cases bord à bord, les plus gros gains en haut (ordre des rangs). Sa HAUTEUR
   suit l'écran : immersion.js (calageMobile) pose --mur-h pour que le début de la section suivante (le rond qui invite à
   descendre et la 1re ligne du titre) soit visible sans faire défiler, quel que soit le téléphone. Ce qui dépasse est
   coupé, et le fondu du bas efface la dernière rangée visible dans le blanc : on croit que le mur continue. David de Dax et
   Antoine (rangs 21 et 22) n'y sont pas. Toutes les cases visibles se touchent. */
@media (max-width: 639px) {
  .imm-hero { --t: calc((100vw - 4 * 4px) / 5); --g: 4px; padding: 28px 16px 0;
    --fondu: min(calc(var(--t) + var(--g)), calc(var(--mur-h, 999px) * .55)); }
  .imm-mur { display: grid; grid-template-columns: repeat(5, var(--t)); grid-auto-rows: var(--t); gap: var(--g); justify-content: center;
    width: auto; max-width: none; height: var(--mur-h, auto); margin: 22px -16px 0; padding: 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .4) 0, #000 calc(0.45 * var(--t)));
            mask-image: linear-gradient(180deg, rgba(0, 0, 0, .4) 0, #000 calc(0.45 * var(--t))); }
  .imm-mur .tuile { width: auto; aspect-ratio: auto; }
  .imm-mur .tuile:nth-child(n+21) { display: none; }
  .tuile, .tuile:focus-visible::after { border-radius: 7px; }
  /* Cases de 72 px : une fois touchée, le texte prend toute la case, centré sur un voile sombre */
  .tuile__dos { top: 0; justify-content: center; padding: 3px 2px; background: rgba(10, 8, 22, .74); }
  .tuile__dos strong, .tuile__dos span { font-size: 10.5px; line-height: 1.1; }
  .tuile__dos { gap: 0; }
  .tuile__dos small { display: none; }
}
/* Écrans de téléphone peu hauts (iPhone SE, petits Android, barres du navigateur affichées) : texte du haut resserré,
   pour laisser au mur au moins une rangée avant le début de la section suivante */
@media (max-width: 639px) and (max-height: 740px) {
  .imm-hero { padding-top: 18px; }
  .imm-pont { font-size: 14px; margin-bottom: 6px; }
  .imm-hero__panneau h1 { font-size: 25px; line-height: 1.16; }
  .imm-hero__panneau .cta { margin-top: 16px; }
  .imm-mur { margin-top: 16px; }
}
/* Petits téléphones (360 px et moins) : texte resserré, pour que le bouton reste haut dans l'écran */
@media (max-width: 360px) {
  /* 4 colonnes : à 5 colonnes, les cases (61 px à 320) ne tenaient pas leurs textes */
  .imm-hero { --t: calc((100vw - 3 * 4px) / 4); }
  .imm-mur { grid-template-columns: repeat(4, var(--t)); }
  .imm-hero { padding-top: 20px; }
  .imm-pont { font-size: 14px; margin-bottom: 8px; }
  .imm-hero__panneau h1 { font-size: 23px; }
  .imm-hero__panneau .cta { margin-top: 18px; }
  .imm-hero__panneau .imm-suite { margin-top: 10px; }
}
/* Tablette : grille de 8 colonnes de 75 à 105 px ; la 3e rangée (les 6 plus petits gains) centrée et à moitié effacée */
@media (min-width: 640px) and (max-width: 1199px) {
  .imm-hero { --t: calc((min(100vw, 912px) - 32px - 7 * 6px) / 8); padding-bottom: 0; --fondu: calc(var(--t) + 6px); }
  .imm-mur { display: grid; grid-template-columns: repeat(8, var(--t)); grid-auto-rows: var(--t); justify-content: center;
    max-width: none; margin-bottom: 0; }
  .imm-mur .tuile { width: auto; }
  .imm-mur .tuile:nth-child(17) { grid-column-start: 2; }
}
/* Cases de moins de 110 px (mobile, tablette, bureau jusqu'à 1380 px) : textes resserrés pour tenir dans la case */
@media (max-width: 1380px) {
  .tuile__dos { padding: 14px 3px 6px; }
  .tuile__dos strong { font-size: 11.5px; }
  .tuile__dos span { font-size: 11.5px; }
  .tuile__dos small { font-size: 10.5px; }
}
/* Tablette : la dernière rangée, à moitié effacée, affiche son texte EN HAUT de la case, dans la moitié visible */
@media (min-width: 640px) and (max-width: 1199px) {
  .imm-mur .tuile:nth-child(n+17) .tuile__dos { top: 0; bottom: auto; padding: 6px 4px 16px; transform: translateY(-6px);
    background: linear-gradient(0deg, rgba(10, 8, 22, 0) 0%, rgba(10, 8, 22, .9) 42%); }
}

/* Bureau large : le U d'Alec, autour du titre. La 4e rangée (les 10 plus petits gains) n'apparaît qu'à moitié : un quart
   est coupé par le bas du haut de page, le reste passe sous le fondu. */
@media (min-width: 1200px) {
  .imm-hero { --t: clamp(94px, 7.6vw, 124px); --g: 6px; padding: 56px 16px 0; --fondu: calc(var(--t) + var(--g)); }
  .imm-hero__panneau { max-width: calc(6 * var(--t) + 5 * var(--g)); padding-bottom: calc(var(--t) + 24px); pointer-events: none; }
  .imm-hero__panneau a, .imm-hero__panneau button { pointer-events: auto; }
  .imm-mur { position: absolute; left: 50%; bottom: 0; z-index: 1; max-width: none; margin: 0; transform: translateX(-50%);
    display: grid; grid-template-columns: repeat(12, var(--t)); grid-template-rows: repeat(4, var(--t)); gap: var(--g); }
  .imm-mur .tuile { width: auto; aspect-ratio: auto; }
  .tuile__face { opacity: .2; }
  .tuile:nth-child(1) { grid-row: 1; grid-column: 1; }
  .tuile:nth-child(2) { grid-row: 1; grid-column: 12; }
  .tuile:nth-child(3) { grid-row: 2; grid-column: 2; }
  .tuile:nth-child(4) { grid-row: 2; grid-column: 11; }
  .tuile:nth-child(5) { grid-row: 2; grid-column: 1; }
  .tuile:nth-child(6) { grid-row: 2; grid-column: 12; }
  .tuile:nth-child(7) { grid-row: 3; grid-column: 3; }
  .tuile:nth-child(8) { grid-row: 3; grid-column: 10; }
  .tuile:nth-child(9) { grid-row: 3; grid-column: 2; }
  .tuile:nth-child(10) { grid-row: 3; grid-column: 11; }
  .tuile:nth-child(11) { grid-row: 3; grid-column: 1; }
  .tuile:nth-child(12) { grid-row: 3; grid-column: 12; }
  .tuile:nth-child(13) { grid-row: 4; grid-column: 5; }
  .tuile:nth-child(14) { grid-row: 4; grid-column: 8; }
  .tuile:nth-child(15) { grid-row: 4; grid-column: 4; }
  .tuile:nth-child(16) { grid-row: 4; grid-column: 9; }
  .tuile:nth-child(17) { grid-row: 4; grid-column: 3; }
  .tuile:nth-child(18) { grid-row: 4; grid-column: 10; }
  .tuile:nth-child(19) { grid-row: 4; grid-column: 2; }
  .tuile:nth-child(20) { grid-row: 4; grid-column: 11; }
  .tuile:nth-child(21) { grid-row: 4; grid-column: 1; }
  .tuile:nth-child(22) { grid-row: 4; grid-column: 12; }
  .imm-mur .tuile:nth-child(n+13) .tuile__dos { top: 0; bottom: auto; padding: 7px 5px 20px; transform: translateY(-6px);
    background: linear-gradient(0deg, rgba(10, 8, 22, 0) 0%, rgba(10, 8, 22, .9) 42%); }
}

/* --- Fondu vers la section suivante (Marius, 23/11) ------------------------------------------------------------
   La dernière rangée du mur n'apparaît qu'à moitié : le dégradé du bas du haut de page la fait passer au blanc de la
   section de Mathieu, comme si le mur continuait dessous. Pas de rangée de profils en double (Marius, 23/11).
   --fondu = la hauteur du dégradé, posée par taille d'écran : il commence en haut de la dernière rangée. Il laisse passer
   la souris : les cases à moitié effacées gardent leur survol. */
.imm-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: var(--fondu, 0px);
  pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .1) 22%,
  rgba(255, 255, 255, .45) 50%, rgba(255, 255, 255, .85) 75%, var(--fond) 90%, var(--fond) 100%); }

/* --- Mathieu et les doutes : une seule section blanche (Marius, 23/11) ---------------------------------------- */
.imm-mathieu { padding-bottom: 12px; }
.imm-doutes-suite { padding-top: 28px; }
.imm-doutes-suite .imm-doute { border: 1px solid var(--ligne); box-shadow: 0 14px 30px -24px rgba(14, 11, 28, .35); }
.imm-doutes-suite .imm-question { border: 1px solid var(--ligne); background: var(--fond-bleu); }

/* --- Liste prioritaire : le rendez-vous au-dessus du bouton (Marius, 23/11) ------------------------------------- */
main .wrap > p.imm-rdv { max-width: none; margin: 30px auto 0; font-family: Montserrat, system-ui, sans-serif; font-size: 24px;
  font-weight: 800; line-height: 1.25; color: var(--encre); text-align: center; }
main .wrap > p.imm-rdv__suite { max-width: 36em; margin: 8px auto 0; text-align: center; text-wrap: balance; }

/* --- Section Mathieu : le sous-titre sous la vidéo, au-dessus de « Vu sur » (Marius, 24/11) ----------------- */
.imm-mathieu .wrap > p.imm-sous-titre { max-width: 30em; margin: 0 auto 14px; font-family: Montserrat, system-ui, sans-serif;
  font-size: 20px; font-weight: 800; line-height: 1.4; color: var(--encre); text-align: center; text-wrap: balance; }
.imm-centre { margin-left: auto !important; margin-right: auto !important; text-align: center; }
.imm-rdv__photo { margin: 34px auto 0; }
#liste .wrap > .imm-rdv__photo + p.imm-rdv { margin-top: 14px; }

/* --- La fenêtre d'agendas (Marius, 24/11) --------------------------------------------------------------- */
.imm-agenda { width: min(92vw, 380px); max-height: 92vh; padding: 28px 22px 22px; border: 0; border-radius: 18px; color: var(--encre);
  background: #fff; box-shadow: 0 30px 80px -20px rgba(14, 11, 28, .6); }
.imm-agenda::backdrop { background: rgba(14, 11, 28, .62); }
.imm-agenda h2 { margin: 0 0 6px; padding: 0 28px; font-size: 21px; line-height: 1.25; text-align: center; }
.imm-agenda__quand { margin: 0 0 18px; font-size: 15px; color: var(--texte-doux); text-align: center; }
.imm-agenda__choix { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.imm-agenda__choix a { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 10px 16px; border: 1.5px solid var(--ligne-forte);
  border-radius: 12px; background: #fff; font-size: 16px; font-weight: 700; color: var(--encre); text-decoration: none; }
.imm-agenda__choix a:hover { border-color: var(--violet); background: var(--violet-pale); }
.imm-agenda__choix a:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.imm-agenda__choix svg { flex: none; width: 34px; height: 34px; }
.imm-agenda__fermer { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--texte-doux); cursor: pointer; }
.imm-agenda__fermer:hover { background: var(--violet-pale); color: var(--encre); }
.imm-agenda__fermer:focus-visible { outline: 3px solid var(--violet); }
.imm-agenda__fermer svg { width: 22px; height: 22px; }

/* --- Invitation à descendre, sous la mosaïque (Marius, 24/11) ------------------------------------------------
   Un rond blanc avec une flèche, dans le blanc du haut de la section de Mathieu. Il rebondit 3 fois puis s'arrête (rien
   ne bouge sans fin), jamais si le visiteur a demandé moins d'animations. */
.imm-mathieu { position: relative; }
.imm-defiler { position: absolute; top: 8px; left: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin-left: -22px;
  border: 1.5px solid var(--ligne-forte); border-radius: 50%; background: #fff; color: var(--violet); text-decoration: none;
  box-shadow: 0 10px 22px -12px rgba(14, 11, 28, .4); animation: imm-rebond 1.2s ease-in-out .8s 3; }   /* 0,8 s + 3 × 1,2 s = 4,4 s : sous les 5 s au-delà desquelles un mouvement doit pouvoir se mettre en pause */
.imm-defiler svg { width: 22px; height: 22px; }
.imm-defiler:hover { border-color: var(--violet); background: var(--violet-pale); }
.imm-defiler:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
@keyframes imm-rebond { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@media (prefers-reduced-motion: reduce) { .imm-defiler { animation: none; } }
/* Marius, 24/11 : sur mobile seulement ; sur tablette et ordinateur, le rond n'existe pas */
@media (min-width: 640px) { .imm-defiler { display: none; } }
@media (max-width: 639px) { .imm-mathieu { padding-top: 72px; } }   /* la place du rond, sans le coller au titre */

/* --- Les liens-toboggan : la dernière phrase de chaque section mène à la suivante -------------- */
.imm-suite { display: table; margin: 30px auto 0; padding: 6px 0; font-weight: 700; color: var(--violet);
  text-align: center; text-decoration: none; }
.imm-suite::after { content: " ↓"; }
.imm-suite:hover { text-decoration: underline; text-underline-offset: 3px; }
.imm-hero__panneau .imm-suite { margin-top: 18px; }

/* --- Blocs communs ----------------------------------------------------------------------------- */
#mathieu h2, #liste h2, #doutes h2, #live h2, .imm-fin h2 { text-align: center; margin-bottom: 18px; }
.bloc .wrap > p { margin-top: 12px; font-size: 17px; line-height: 1.6; }
.imm-large { max-width: 1040px; }
.imm-fort { font-weight: 800; color: var(--encre); }
.imm-lien { font-weight: 700; color: var(--violet); overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
/* Le bandeau presse de la landing (salon.css), centré sous le titre de Mathieu */
.imm-mathieu .presse { max-width: 600px; margin: 0 auto 6px; }
.imm-mathieu .wrap > p { margin-left: auto; margin-right: auto; text-align: center; }   /* une seule phrase, centrée comme le titre */
.imm-legende { font-size: 14px !important; color: var(--texte-doux); text-align: center; }

/* --- Vidéos et emplacements ------------------------------------------------------------------- */
.imm-video { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #14112B; }
.imm-video img { display: block; width: 100%; height: 100%; object-fit: cover; }
.imm-video .play { position: absolute; inset: 0; display: grid; place-items: center; width: 64px; height: 64px; margin: auto;
  border-radius: 50%; background: var(--violet); }
.imm-video .play svg { width: 24px; height: 24px; margin-left: 4px; }
.imm-video:hover .play, .imm-video:focus-visible .play { background: var(--violet-fonce); }
.imm-video:focus-visible { outline: 4px solid #FFD84D; outline-offset: -4px; }   /* à l'intérieur : la carte rogne ce qui dépasse */
.imm-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.imm-video--a-venir { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border: 2px dashed var(--sourcer-bord); background: var(--sourcer-fond); color: var(--sourcer-texte); font-weight: 700; text-align: center; padding: 16px; }
.imm-video--a-venir img { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.imm-video--photo { background: var(--fond-bleu); }
.imm-video__note { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 6px; background: var(--sourcer-fond);
  color: var(--sourcer-texte); font-size: 12px; font-weight: 700; }
.imm-mathieu .imm-video { max-width: 640px; margin: 0 auto 26px; }
/* La vidéo de Mathieu : le lecteur Wistia (code de Marius), flou sur sa vignette tant qu'il charge */
.imm-lecteur { max-width: 760px; margin: 0 auto 28px; overflow: hidden; border-radius: 14px; background: #14112B;
  box-shadow: 0 24px 50px -30px rgba(14, 11, 28, .55); }
wistia-player[media-id='sz8np2367w']:not(:defined) { background: center / contain no-repeat url('https://fast.wistia.com/embed/medias/sz8np2367w/swatch');
  display: block; filter: blur(5px); padding-top: 56.25%; }

/* --- S4 · Les doutes -------------------------------------------------------------------------- */
.imm-doutes { display: grid; gap: 16px; margin: 26px 0 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .imm-doutes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .imm-doutes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.imm-doute { overflow: hidden; padding: 0 0 18px; }
.imm-doute .imm-video { border-radius: 0; }
.imm-doute h3 { margin: 16px 18px 6px; font-size: 18px; line-height: 1.3; }
.imm-doute p { margin: 0 18px; font-size: 16px; line-height: 1.5; color: var(--texte); }
.imm-citation { margin-top: 8px !important; font-style: normal; color: var(--texte-doux) !important; }

/* La question à Mathieu, en fin de section */
.imm-question { max-width: 640px; margin: 28px auto 0; padding: 22px; text-align: left; }
.imm-question h3 { margin: 0 0 14px; font-size: 19px; line-height: 1.3; text-align: center; }
.imm-champ { display: grid; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--texte); }
.imm-champ textarea, .imm-champ input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--ligne-forte);
  border-radius: 10px; font: inherit; font-size: 16px; color: var(--encre); background: #fff; resize: vertical; }
.imm-champ textarea:focus, .imm-champ input:focus { outline: 3px solid var(--violet-pale); border-color: var(--violet); }
.imm-question .cta { margin-top: 16px; }
.imm-erreur { margin-top: 10px; font-size: 14px; font-weight: 600; color: #B42318; }
.imm-recu { margin: 6px 0 0; font-size: 17px; font-weight: 700; color: var(--vert); text-align: center; }
.imm-question.est-envoyee .imm-champ, .imm-question.est-envoyee .cta { display: none; }

/* --- S4 · Les 3 choses, avec leurs icônes (Marius, 23/11) -------------------------------------------- */
.imm-trois { display: grid; gap: 12px; max-width: 640px; margin: 22px auto 0; padding: 0; list-style: none; }
.imm-trois li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border: 1px solid var(--ligne);
  border-radius: 14px; background: #fff; font-size: 17px; font-weight: 700; line-height: 1.45; color: var(--encre); }
.imm-trois__icone { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--violet-pale); color: var(--violet); }
.imm-trois__icone svg { width: 22px; height: 22px; }
.imm-trois li > span:last-child { padding-top: 9px; }

/* --- S6 · Fin --------------------------------------------------------------------------------- */
.imm-fin { text-align: center; }
.imm-fin__photo { display: block; width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; object-fit: cover; }
.imm-signature { font-size: 15px !important; font-weight: 600; color: var(--texte-doux); }
.imm-fin .cta, #liste .cta, #live .cta { margin-top: 22px; }

/* --- Carrousel : même composant que la page de fin ------------------------------------------- */
.imm-defile { margin-top: 24px; }

/* Titres des cartes et des sections : lignes équilibrées, pas de mot seul en dernière ligne */
.imm-doute h3, main h2 { text-wrap: balance; }

/* Lignes de 75 caractères au plus en bureau */
main .wrap > p { max-width: 31em; }
main .wrap > p.imm-legende { margin-left: auto; margin-right: auto; }

/* --- Haut de page : la VSL remplace le titre et le premier bouton (Marius, 25/11) ------------------------------
   Le titre de la section Mathieu devient le h1, plus long que l'ancien : corps réduit. La vidéo prend la place du
   bouton, dans la largeur du panneau (6 colonnes de la mosaïque en bureau large). En bureau large, le panneau laisse
   passer la souris vers les photos (pointer-events: none) : le lecteur doit la reprendre, sinon il ne se clique pas. */
.imm-hero__panneau h1 { font-size: clamp(26px, 6vw, 40px); line-height: 1.2; }
.imm-hero__panneau .imm-lecteur { margin: 22px auto 0; box-shadow: 0 18px 44px -22px rgba(0, 0, 0, .7);
  aspect-ratio: 16 / 9; }   /* la place de la vidéo est réservée avant le chargement du lecteur : sur mobile, le calage du mur (immersion.js) mesurait la page sans elle */
@media (min-width: 1200px) { .imm-hero__panneau .imm-lecteur, .imm-hero__panneau wistia-player { pointer-events: auto; } }
@media (max-width: 639px) and (max-height: 740px) { .imm-hero__panneau h1 { font-size: 23px; } .imm-hero__panneau .imm-lecteur { margin-top: 16px; } }
@media (max-width: 360px) { .imm-hero__panneau h1 { font-size: 22px; } }

/* 2e passe (Marius, 25/11) : sous la vidéo, « Vu sur », puis la phrase sur Mathieu, au-dessus de la mosaïque. Sur le
   fond sombre, les logos (encre noire ou de couleur, gris sur la landing) passent en blanc. Le Parisien est un cartouche
   plein (texte blanc sur fond bleu) : en blanc, il deviendrait un rectangle vide, il reste gris. */
.imm-hero .presse { max-width: 600px; margin: 18px auto 0; }
.imm-hero .presse__titre { color: #BDB6D3; }
.imm-hero .presse__liste img,
.imm-hero .presse__liste img[src*="figaro-immobilier"],
.imm-hero .presse__liste img[src*="entrepreneurs"] { filter: grayscale(1) brightness(0) invert(1); opacity: .72; }
.imm-hero .presse__liste img[src*="le-parisien"] { filter: grayscale(1); opacity: .8; }
.imm-hero__mathieu { max-width: 30em; margin: 14px auto 0; font-family: Montserrat, system-ui, sans-serif; font-size: 18px;
  font-weight: 700; line-height: 1.4; color: #fff; text-wrap: balance; }
@media (max-width: 639px) { .imm-hero .presse { margin-top: 14px; } .imm-hero__mathieu { margin-top: 10px; font-size: 16px; } }
/* Bureau large : le panneau laisse passer la souris ; le bandeau la reprend (défilement au doigt si moins d'animations) */
@media (min-width: 1200px) { .imm-hero__panneau .presse__fenetre { pointer-events: auto; } }
/* La section Mathieu, vide, est retirée : le rond d'invitation à descendre est en tête de « Tes doutes » */
.imm-doutes-suite { position: relative; }
@media (max-width: 639px) { .imm-doutes-suite { padding-top: 72px; } }

