@import url('fonts.css');

/* ============================================================
   HAB 360 - Nuit projetee
   Jetons issus de la direction de design active du site.
   ============================================================ */

:root {
  --hab-bg: #070B14;
  --hab-surface: #0F1628;
  --hab-ink: #EAF0FA;
  --hab-muted: #B9C6DA;
  --hab-dim: #C9D5E8;
  --hab-accent: #D5A24E;
  --hab-accent-light: #EFC780;
  --hab-support: #4CC7E6;
  --hab-support-alt: #8B6CF0;

  --hab-glass: rgba(255, 255, 255, 0.05);
  --hab-glass-strong: rgba(255, 255, 255, 0.08);
  --hab-line: rgba(255, 255, 255, 0.12);
  --hab-line-soft: rgba(255, 255, 255, 0.08);

  /* Regle client du 29/08 : un rayon unique de 5px sur tout le site. Les jetons
     sont conserves pour ne pas toucher aux 25 declarations qui les emploient. */
  --hab-r-pill: 5px;
  --hab-r-card: 5px;
  --hab-r-panel: 5px;
  --hab-r-chip: 5px;

  --hab-shadow: 0 40px 90px rgba(3, 6, 14, 0.7);
  --hab-shadow-gold: 0 16px 40px rgba(213, 162, 78, 0.3);

  --hab-display: 'Anton', 'Arial Narrow', sans-serif;
  --hab-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --hab-header-h: 86px;
  --hab-pad-x: clamp(16px, 4vw, 48px);
  --hab-max: 1320px;
  --hab-lecture: 1080px;
  --hab-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Socle ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.hab360,
.editor-styles-wrapper {
  margin: 0;
  padding: 0;
  background: var(--hab-bg);
  color: var(--hab-ink);
  font-family: var(--hab-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* La couleur par defaut des liens est posee en :where pour tomber a une
   specificite qu une simple classe de composant depasse. Sans cela, .hab360 a
   (0,1,1) ecrasait .hab-skip, .hab-drawer__link, .hab-contact et .hab-btn,
   qui redevenaient tous or, jusqu a l or sur or illisible. */
:is(.hab360, .editor-styles-wrapper) :where(a) { color: var(--hab-accent); text-decoration: none; }
:is(.hab360, .editor-styles-wrapper) :where(a):hover { color: var(--hab-accent-light); }
:is(.hab360, .editor-styles-wrapper) ::selection { background: var(--hab-accent); color: var(--hab-bg); }

:is(.hab360, .editor-styles-wrapper) :where(h1, h2, h3, h4, h5, h6) {
  margin: 0;
  font-family: var(--hab-display);
  font-weight: 400;
  text-transform: uppercase;
  color: #FFFFFF;
  letter-spacing: -0.005em;
}

:is(.hab360, .editor-styles-wrapper) :where(p) { margin: 0; }

/* Regle du site : aucun titre ne se borne en largeur. Un Hn occupe la largeur
   de son conteneur et ne doit jamais casser en trois lignes par bridage. */
:is(.hab360, .editor-styles-wrapper) h1, :is(.hab360, .editor-styles-wrapper) h2, :is(.hab360, .editor-styles-wrapper) h3, :is(.hab360, .editor-styles-wrapper) h4, :is(.hab360, .editor-styles-wrapper) h5, :is(.hab360, .editor-styles-wrapper) h6 { max-width: none; }
:is(.hab360, .editor-styles-wrapper) :where(img) { max-width: 100%; }

.hab-shell { position: relative; min-height: 100vh; background: var(--hab-bg); overflow: hidden; }
.hab-wrap { max-width: var(--hab-max); margin: 0 auto; }
.hab-main { position: relative; z-index: 1; padding-top: var(--hab-header-h); }

.hab-skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: 12px 20px; background: var(--hab-accent); color: var(--hab-bg);
  font-weight: 700; border-radius: 0 0 var(--hab-r-chip) 0;
}
.hab-skip:focus { left: 0; }

/* ---------- Halos d arriere plan ---------- */

.hab-halos { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.hab-halo { position: absolute; will-change: transform; }
.hab-halo--cyan {
  top: -18vh; left: -10vw; width: 60vw; height: 60vw;
  background: radial-gradient(circle at 40% 40%, rgba(76, 199, 230, 0.22), rgba(76, 199, 230, 0) 62%);
  animation: habFloat 22s ease-in-out infinite;
}
.hab-halo--violet {
  top: 35vh; right: -18vw; width: 55vw; height: 55vw;
  background: radial-gradient(circle at 50% 50%, rgba(139, 108, 240, 0.20), rgba(139, 108, 240, 0) 64%);
  animation: habDrift 26s ease-in-out infinite;
}
.hab-halo--gold {
  bottom: -20vh; left: 20vw; width: 50vw; height: 50vw;
  background: radial-gradient(circle at 50% 50%, rgba(213, 162, 78, 0.16), rgba(213, 162, 78, 0) 60%);
  animation: habFloat 30s ease-in-out infinite reverse;
}

@keyframes habFloat { 0%, 100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(0,-40px,0) scale(1.08); } }
@keyframes habDrift { 0%, 100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(30px,30px,0) scale(0.94); } }
@keyframes habTicker { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@keyframes habPanelIn { from { opacity: 0; transform: translate3d(0,18px,0); } to { opacity: 1; transform: none; } }
@keyframes habReveal { from { opacity: 0; transform: translate3d(0,26px,0); } to { opacity: 1; transform: none; } }
@keyframes habShine { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }

/* Reveal au defilement. Sans JS et sans support, le contenu reste visible. */
.js [data-reveal] { animation: habReveal 750ms var(--hab-ease) both; }
@supports (animation-timeline: view()) {
  .js [data-reveal] { animation-timeline: view(); animation-range: entry 0% cover 26%; }
}

/* ---------- En tete ---------- */

.hab-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--hab-pad-x);
  background: rgba(7, 11, 20, 0.62);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-bottom: 1px solid var(--hab-line-soft);
}

.hab-brand { display: flex; align-items: baseline; gap: 6px; line-height: 1; }
.hab-brand__mark { font-family: var(--hab-display); font-size: 30px; letter-spacing: 0.5px; color: #FFFFFF; line-height: 1; }
.hab-brand__num {
  font-family: var(--hab-display); font-size: 30px; letter-spacing: 1px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(234, 240, 250, 0.65);
}
.hab-brand__logo { display: block; height: 58px; width: auto; }
.hab-brand__logo--pied { height: 68px; }
.hab-brand__logo--tiroir { height: 46px; }

/* Reflet doré qui traverse le sigle, comme un faisceau sur les murs.
   Le masque le decoupe a la forme du logo : il n en sort jamais. */
.hab-brand { position: relative; }
.hab-brand__reflet {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: var(--hab-logo); mask-image: var(--hab-logo);
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: left center; mask-position: left center;
}
.hab-brand__reflet::after {
  content: ""; position: absolute; top: -30%; bottom: -30%; left: 0; width: 38%;
  background: linear-gradient(100deg, rgba(239,199,128,0) 0%, rgba(239,199,128,0.9) 50%, rgba(239,199,128,0) 100%);
  transform: translate3d(-180%, 0, 0) skewX(-14deg);
  animation: habBalayage 6.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes habBalayage {
  0%, 55% { transform: translate3d(-180%, 0, 0) skewX(-14deg); }
  100%    { transform: translate3d(420%, 0, 0) skewX(-14deg); }
}
.js .hab-header .hab-brand__logo { animation: habReveal 700ms var(--hab-ease) both; }

@media (max-width: 760px) {
  :root { --hab-header-h: 72px; }
  .hab-brand__logo { height: 44px; }
  .hab-brand__logo--pied { height: 56px; }
}

.hab-nav { display: flex; align-items: center; gap: clamp(8px, 1.4vw, 24px); flex-wrap: nowrap; justify-content: flex-end; }
.hab-burger {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 12px;
  border-radius: var(--hab-r-pill); border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--hab-glass); backdrop-filter: blur(12px);
  color: var(--hab-ink); cursor: pointer; font-family: inherit;
  transition: background 200ms ease, border-color 200ms ease;
}
.hab-burger:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.3); }
.hab-burger__bars { display: flex; flex-direction: column; gap: 4px; }
.hab-burger__bars span { display: block; width: 18px; height: 1.6px; border-radius: 5px; background: var(--hab-ink); }
.hab-burger__bars span:last-child { width: 12px; background: var(--hab-accent); }
.hab-burger__label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* Barre d administration WordPress : l en tete fixe ne passe pas dessous. */
.admin-bar .hab-header { top: 32px; }
.admin-bar .hab-drawer { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .hab-header { top: 46px; }
  .admin-bar .hab-drawer { top: 46px; }
}

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

.hab-btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 16px 28px; border: 0; border-radius: var(--hab-r-pill);
  font-family: inherit; font-size: 14px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}
.hab-btn--gold {
  background: linear-gradient(120deg, var(--hab-accent), var(--hab-accent-light) 45%, var(--hab-accent));
  color: var(--hab-bg); box-shadow: var(--hab-shadow-gold);
}
.hab-btn--gold:hover { color: var(--hab-bg); transform: translateY(-3px); box-shadow: 0 22px 50px rgba(213, 162, 78, 0.42); }
.hab-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.18); background: var(--hab-glass);
  backdrop-filter: blur(14px); color: var(--hab-ink);
  font-weight: 600; letter-spacing: 0.06em; padding: 16px 26px;
}
.hab-btn--ghost:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.12); transform: translateY(-3px); }
.hab-btn--sm { padding: 10px 18px; font-size: 13.5px; letter-spacing: 0.06em; }

.hab-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

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

.hab-section { padding: clamp(56px, 8vw, 110px) var(--hab-pad-x) 0; }
.hab-section--top { padding-top: clamp(44px, 7vh, 96px); }
.hab-section--hero { position: relative; padding-top: clamp(48px, 8vh, 110px); }
.hab-section:last-of-type { padding-bottom: clamp(56px, 8vw, 110px); }

.hab-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 8px 16px 8px 10px; border-radius: var(--hab-r-pill);
  border: 1px solid rgba(255, 255, 255, 0.14); background: var(--hab-glass);
  backdrop-filter: blur(14px);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--hab-dim);
}
.hab-eyebrow__icon {
  display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center;
  border-radius: var(--hab-r-pill); background: rgba(213, 162, 78, 0.18);
}

.hab-h1 { font-size: clamp(46px, 9.5vw, 132px); line-height: 0.92; letter-spacing: -0.01em; text-wrap: pretty; }
.hab-h1--page { font-size: clamp(42px, 8vw, 116px); }

/* Au-dessus d une colonne de lecture, 116 px annoncent un texte de 17 px : le
   rapport est de sept pour un. Les pages editoriales — mentions legales, CGV,
   donnees personnelles — gardent la meme police et la meme casse, sur une
   echelle qui double a chaque niveau : 17, 34, 68. */
.hab-h1--texte { font-size: clamp(34px, 5.2vw, 68px); }
.hab-h2 { font-size: clamp(32px, 5vw, 64px); line-height: 1; }
.hab-h3 { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.15; }

.hab-shine {
  background: linear-gradient(100deg, var(--hab-support), var(--hab-support-alt) 38%, var(--hab-accent) 78%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: habShine 9s linear infinite;
}

.hab-lead {
  max-width: 980px; margin-top: 28px;
  font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: var(--hab-muted); text-wrap: pretty;
}
.hab-lead + .hab-lead { margin-top: 20px; }

.hab-hero__title { margin-top: 26px; }

/* ---------- Contenu editorial d une page ----------
   Le contenu occupe toute la largeur du conteneur : aucune borne de lecture,
   conformement a la consigne client du 30/08. */

.hab-contenu { max-width: 1080px; margin-top: 30px; font-size: 17px; line-height: 1.7; color: var(--hab-muted); }
.hab-contenu > * + * { margin-top: 18px; }
.hab-contenu h2 {
  margin-top: clamp(36px, 4vw, 56px); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.05;
}
.hab-contenu h3 { margin-top: clamp(26px, 3vw, 38px); font-size: clamp(19px, 1.8vw, 24px); line-height: 1.1; }
.hab-contenu h2 + *, .hab-contenu h3 + * { margin-top: 14px; }
.hab-contenu ul, .hab-contenu ol { margin-left: 0; padding-left: 22px; }
.hab-contenu li + li { margin-top: 8px; }
.hab-contenu strong { color: var(--hab-ink); font-weight: 600; }

/* Mise en forme editoriale de la page equipe : chapo, questions en exergue
   rythmees par un filet horizontal, et signature finale. Aucun encadre. */
.hab-contenu .hab-chapo {
  font-size: clamp(19px, 2vw, 23px); line-height: 1.55; color: var(--hab-ink);
}
.hab-contenu .hab-fondateurs {
  margin-top: 26px; padding: 22px 26px;
  border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
}
.hab-contenu .hab-question {
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: clamp(18px, 1.9vw, 22px); line-height: 1.5;
  color: var(--hab-ink);
}
.hab-contenu .hab-question + .hab-question { margin-top: 18px; }
.hab-contenu .hab-signature {
  margin-top: 34px;
  font-family: var(--hab-display); font-size: clamp(30px, 4vw, 52px); line-height: 1;
  text-transform: uppercase; color: var(--hab-accent-light);
}
.hab-contenu .hab-chute { margin-top: 18px; font-size: 17px; line-height: 1.7; }

/* ---------- Panorama ---------- */

.hab-figure {
  position: relative; margin: clamp(44px, 7vw, 80px) auto 0;
  border-radius: var(--hab-r-card); overflow: hidden;
  border: 1px solid var(--hab-line); box-shadow: var(--hab-shadow);
}
.hab-figure__img {
  display: block; width: 100%; height: clamp(280px, 46vw, 560px);
  object-fit: cover; will-change: transform;
}
.hab-figure__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0) 40%, rgba(7, 11, 20, 0.85));
}
.hab-figure__foot {
  position: absolute; left: clamp(16px, 3vw, 36px); right: clamp(16px, 3vw, 36px); bottom: clamp(16px, 3vw, 32px);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between;
}
.hab-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hab-tag {
  padding: 9px 16px; border-radius: var(--hab-r-pill);
  border: 1px solid rgba(255, 255, 255, 0.16); background: var(--hab-glass-strong);
  backdrop-filter: blur(16px); font-size: 13px; font-weight: 600; color: var(--hab-ink);
}
.hab-next__label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hab-dim); }
.hab-next__value { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.hab-next__time { font-family: var(--hab-display); font-size: 30px; color: #FFFFFF; line-height: 1; }
.hab-next__count { font-size: 13px; color: var(--hab-muted); }

/* ---------- Bande defilante ---------- */

.hab-ticker {
  margin-top: clamp(48px, 7vw, 90px);
  padding: 18px 0; overflow: hidden;
  border-top: 1px solid var(--hab-line-soft); border-bottom: 1px solid var(--hab-line-soft);
  background: rgba(255, 255, 255, 0.02);
}
.hab-ticker__track { display: flex; width: max-content; animation: habTicker 38s linear infinite; }
.hab-ticker__group { display: flex; align-items: center; gap: 26px; padding-right: 26px; }
.hab-ticker__item { font-family: var(--hab-display); font-size: 22px; color: rgba(234, 240, 250, 0.72); white-space: nowrap; }
.hab-ticker__sep { color: var(--hab-accent); font-size: 12px; }

/* ---------- Cartes de seance ---------- */

.hab-head__lead { max-width: 980px; }
.hab-head__lead { margin-top: 18px; font-size: 17px; line-height: 1.6; color: var(--hab-muted); }

.hab-grid { display: grid; gap: 24px; margin-top: clamp(32px, 4vw, 52px); }
@media (min-width: 760px) { .hab-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .hab-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.hab-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--hab-r-card); border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 300ms var(--hab-ease), box-shadow 300ms var(--hab-ease);
  transform-style: preserve-3d;
}
.hab-card__media { position: relative; overflow: hidden; }
.hab-card__img {
  display: block; width: 100%; height: clamp(200px, 24vw, 260px);
  object-fit: cover; transition: transform 900ms var(--hab-ease);
}
.hab-card:hover .hab-card__img { transform: scale(1.06); }
.hab-card__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,11,20,0) 45%, rgba(7,11,20,0.72)); }
.hab-card__kicker {
  position: absolute; top: 16px; left: 16px;
  padding: 7px 14px; border-radius: var(--hab-r-pill);
  border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(7, 11, 20, 0.55);
  backdrop-filter: blur(10px);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hab-ink);
}
.hab-card__body { display: flex; flex-direction: column; flex: 1; gap: 14px; padding: clamp(20px, 2.2vw, 28px); }
.hab-card__title { font-size: clamp(21px, 2vw, 26px); line-height: 1.05; }
.hab-card__text { font-size: 15.5px; line-height: 1.6; color: var(--hab-muted); }
.hab-card__meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: auto; padding-top: 4px; }
.hab-meta {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; color: var(--hab-dim);
}
.hab-card__cta {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 0; border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--hab-accent);
  transition: gap 200ms ease, color 200ms ease;
}
.hab-card__cta:hover { gap: 14px; color: var(--hab-accent-light); }

/* Fiche longue de seance */
.hab-detail { display: grid; gap: 0; margin-top: 28px; border-radius: var(--hab-r-card); overflow: hidden; border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.04); }
@media (min-width: 900px) { .hab-detail { grid-template-columns: 1fr 1fr; } .hab-detail--flip .hab-detail__media { order: 2; } }
.hab-detail__media { position: relative; overflow: hidden; min-height: 260px; }
.hab-detail__img { display: block; width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.hab-detail__body { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 44px); }
.hab-detail__num { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hab-accent); }
.hab-detail__title { font-size: clamp(26px, 3.2vw, 44px); line-height: 1.02; }
.hab-detail__text { font-size: 16px; line-height: 1.7; color: var(--hab-muted); }

/* ---------- Trois arguments ---------- */

.hab-features { display: grid; gap: 24px; margin-top: clamp(32px, 4vw, 52px); }
@media (min-width: 900px) { .hab-features { grid-template-columns: repeat(3, 1fr); } }
.hab-feature {
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: var(--hab-r-panel); border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}
.hab-feature__title { margin-top: 18px; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.1; }
.hab-feature__text { margin-top: 12px; font-size: 15.5px; line-height: 1.65; color: var(--hab-muted); }

/* ---------- Informations en colonnes ---------- */

.hab-infos { display: grid; gap: 24px; margin-top: clamp(32px, 4vw, 52px); }
@media (min-width: 860px) { .hab-infos { grid-template-columns: repeat(3, 1fr); } }
.hab-info {
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--hab-r-panel); border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}
.hab-info__label { margin-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hab-dim); }
.hab-info__value { margin-top: 8px; font-size: 17px; line-height: 1.5; color: var(--hab-ink); }

/* ---------- Equipe ---------- */

.hab-team { display: grid; gap: 24px; margin-top: clamp(32px, 4vw, 52px); }
@media (min-width: 700px) { .hab-team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .hab-team { grid-template-columns: repeat(4, 1fr); } }
.hab-member {
  display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--hab-r-panel); border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 300ms var(--hab-ease), box-shadow 300ms var(--hab-ease);
  transform-style: preserve-3d;
}
.hab-member__photo {
  display: block; width: 72px; height: 72px; border-radius: var(--hab-r-pill);
  object-fit: cover; border: 1px solid var(--hab-line);
}
.hab-member__initials {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: var(--hab-r-pill);
  border: 1px solid rgba(213, 162, 78, 0.4); background: rgba(213, 162, 78, 0.12);
  font-family: var(--hab-display); font-size: 25px; color: var(--hab-accent-light);
}
.hab-member__role { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hab-dim); }
.hab-member__name { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.1; }
.hab-member__text { font-size: 15px; line-height: 1.6; color: var(--hab-muted); }

/* ---------- Deux colonnes (infos pratiques, contact) ---------- */

.hab-split { display: grid; gap: 24px; margin-top: clamp(32px, 4vw, 52px); align-items: start; }
@media (min-width: 900px) { .hab-split { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* Deux panneaux cote a cote de hauteurs differentes se lisent comme un oubli.
   Le modificateur les egalise ; il n est pose que la ou le contenu s y prete,
   la page Contact partageant la meme classe de base. */
@media (min-width: 900px) { .hab-split--egal { align-items: stretch; } }

.hab-panel {
  padding: clamp(24px, 2.8vw, 36px);
  border-radius: var(--hab-r-panel); border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}
.hab-figure + .hab-panel { margin-top: clamp(32px, 4vw, 52px); }
.hab-panel__title { font-size: clamp(20px, 1.8vw, 25px); line-height: 1.1; }

.hab-hours { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

/* Dix creneaux empiles laissaient 570 px de large pour deux mots : la liste
   passe sur deux colonnes de meme mesure des que la place le permet. Le
   remplissage colonne par colonne conserve l ordre chronologique a la lecture
   verticale, ce qu une grille en lignes aurait perdu. Entre 900 et 1080 px la
   colonne se resserre : la mention passe alors sous l heure. */
@media (min-width: 560px) {
  .hab-hours { display: block; columns: 2; column-gap: 12px; margin-bottom: -10px; }
  .hab-hour { break-inside: avoid; margin-bottom: 10px; flex-wrap: wrap; }
}
.hab-hour {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; border-radius: var(--hab-r-chip);
  border: 1px solid rgba(255, 255, 255, 0.10); background: rgba(255, 255, 255, 0.03);
}
.hab-hour__time { font-family: var(--hab-display); font-size: 22px; color: #FFFFFF; line-height: 1; }
.hab-hour__note { font-size: 13.5px; color: var(--hab-muted); }

.hab-checks { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }

/* L acces tient desormais toute la largeur, sous les deux colonnes : trop court
   pour equilibrer une colonne entiere, il se lit mieux etale qu empile. */
.hab-panel--pleine { margin-top: 24px; }
@media (min-width: 900px) { .hab-panel--pleine { margin-top: 32px; } }

/* Acces : une ligne par mode de transport, picto SVG, jamais d emoji. */
.hab-acces { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
@media (min-width: 700px) { .hab-acces { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 32px; } }
@media (min-width: 1080px) { .hab-acces { grid-template-columns: repeat(4, 1fr); } }
.hab-acces__ligne { display: flex; align-items: flex-start; gap: 14px; }
.hab-acces__icone { flex: none; display: inline-flex; margin-top: 2px; }
.hab-acces__mode {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--hab-dim);
}
.hab-acces__detail { display: block; margin-top: 4px; font-size: 15.5px; line-height: 1.55; color: var(--hab-ink); }
.hab-check { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; line-height: 1.6; color: var(--hab-muted); }
.hab-check svg { flex: none; margin-top: 3px; }

.hab-contacts { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.hab-contact {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: var(--hab-r-pill);
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04);
  font-size: 16px; font-weight: 600; color: var(--hab-ink); align-self: flex-start;
}
a.hab-contact:hover { color: #FFFFFF; border-color: rgba(213, 162, 78, 0.5); }

/* ---------- Formulaire ---------- */

.hab-form { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.hab-form__label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hab-dim); }
.hab-form input,
.hab-form textarea {
  width: 100%; padding: 15px 18px;
  border-radius: var(--hab-r-chip); border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04); color: var(--hab-ink);
  font-family: inherit; font-size: 16px; line-height: 1.5;
  transition: border-color 200ms ease, background 200ms ease;
}
.hab-form input::placeholder,
.hab-form textarea::placeholder { color: #8E9DB5; }
.hab-form input:focus,
.hab-form textarea:focus { outline: none; border-color: var(--hab-accent); background: rgba(255, 255, 255, 0.07); }
.hab-form textarea { resize: vertical; min-height: 140px; }
.hab-form__note { font-size: 13.5px; line-height: 1.55; color: var(--hab-muted); }
.hab-form__msg { padding: 14px 18px; border-radius: var(--hab-r-chip); font-size: 15px; }
.hab-form__msg--ok { border: 1px solid rgba(76, 199, 230, 0.4); background: rgba(76, 199, 230, 0.10); color: var(--hab-ink); }
.hab-form__msg--err { border: 1px solid rgba(213, 162, 78, 0.5); background: rgba(213, 162, 78, 0.12); color: var(--hab-accent-light); }

/* Case de consentement : l input natif est stylise, jamais masque, pour rester
   accessible au clavier et aux lecteurs d ecran. */
.hab-optin { display: flex; align-items: flex-start; gap: 12px; margin-top: 4px; cursor: pointer; }
.hab-optin input {
  appearance: none; -webkit-appearance: none;
  flex: none; width: 22px; height: 22px; min-width: 22px; margin: 1px 0 0;
  padding: 0; box-sizing: border-box;
  display: grid; place-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 5px;
  background: rgba(255, 255, 255, 0.04); cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}
.hab-optin input::before {
  content: ""; width: 6px; height: 11px; margin-top: -2px;
  border: solid var(--hab-bg); border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 160ms var(--hab-ease);
}
.hab-optin input:hover { border-color: rgba(255, 255, 255, 0.45); }
.hab-optin input:checked { background: var(--hab-accent); border-color: var(--hab-accent); }
.hab-optin input:checked::before { transform: rotate(45deg) scale(1); }
.hab-optin input:focus-visible { outline: 2px solid var(--hab-accent-light); outline-offset: 3px; }
.hab-optin__texte { font-size: 14px; line-height: 1.55; color: var(--hab-muted); }

/* ---------- Appel final ---------- */

.hab-cta { padding: clamp(60px, 9vw, 120px) var(--hab-pad-x) 0; }
.hab-cta__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--hab-r-card); border: 1px solid var(--hab-line);
  background: linear-gradient(120deg, rgba(213, 162, 78, 0.14), rgba(139, 108, 240, 0.10) 60%, rgba(76, 199, 230, 0.10));
}
.hab-cta__title { font-size: clamp(30px, 4.6vw, 56px); line-height: 1; }
.hab-cta__text { margin-top: 12px; max-width: 820px; font-size: 16px; line-height: 1.6; color: var(--hab-muted); }

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

.hab-footer { margin-top: clamp(60px, 8vw, 110px); padding: clamp(40px, 5vw, 70px) var(--hab-pad-x) 40px; border-top: 1px solid var(--hab-line-soft); }
.hab-footer__grid { display: grid; gap: 36px; }
@media (min-width: 860px) { .hab-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }
.hab-footer__text { margin-top: 16px; font-size: 15px; line-height: 1.7; color: var(--hab-muted); }
.hab-footer__title { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hab-dim); font-family: var(--hab-body); }
.hab-footer__list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.hab-footer__list a { font-size: 15px; color: var(--hab-muted); }

/* La rubrique du site tient sur deux colonnes : six liens empiles rendaient
   cette colonne deux fois plus haute que ses voisines. */
.hab-footer__list--deux {
  display: block;
  columns: 2;
  column-gap: 28px;
}
.hab-footer__list--deux li { break-inside: avoid; margin-bottom: 10px; }
.hab-footer__list--deux li:last-child { margin-bottom: 0; }
@media (max-width: 420px) { .hab-footer__list--deux { columns: 1; } }
.hab-footer__list a:hover { color: #FFFFFF; }
.hab-socials { display: flex; gap: 12px; margin-top: 18px; }
.hab-social {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: var(--hab-r-pill); border: 1px solid var(--hab-line); background: rgba(255, 255, 255, 0.04);
  transition: background 200ms ease, border-color 200ms ease;
}
.hab-social:hover { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.3); }
.hab-footer__legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--hab-line-soft);
  font-size: 13.5px; color: var(--hab-muted);
}
.hab-footer__copy { margin: 0; }
.hab-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
.hab-footer__links a,
.hab-footer__lien {
  padding: 0; border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: 13.5px; line-height: inherit;
  color: var(--hab-muted); transition: color 200ms ease;
}
.hab-footer__links a:hover,
.hab-footer__lien:hover { color: #FFFFFF; }

/* Le lien de gestion des cookies porte la classe du bouton flottant de CookieAdmin,
   qui impose une pastille bleue en position fixe. Tout ce que cette regle pose est
   redeclare ici, y compris ses deux declarations !important. */
.hab-footer__links button.cookieadmin_re_consent {
  display: inline;
  position: static;
  bottom: auto;
  left: auto;
  height: auto;
  width: auto;
  z-index: auto;
  background-color: transparent;
  box-shadow: none;
  border: 0;
  border-radius: 5px !important;
  padding: 0 !important;
}
@media (max-width: 640px) {
  .hab-footer__legal { flex-direction: column; align-items: flex-start; }
}

/* Une ancre ne doit pas glisser sous l en tete fixe. */
.hab-detail { scroll-margin-top: 100px; }
.admin-bar .hab-detail { scroll-margin-top: 132px; }

/* L en-tete est fixe : sans cette reserve, l ancre du calendrier deposerait le
   titre de la section dessous. */
#calendrier { scroll-margin-top: 100px; }
.admin-bar #calendrier { scroll-margin-top: 132px; }

/* ---------- Billetterie flottante ---------- */

.hab-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border: 0; border-radius: var(--hab-r-pill);
  background: linear-gradient(120deg, var(--hab-accent), var(--hab-accent-light) 45%, var(--hab-accent));
  color: var(--hab-bg); font-family: inherit; font-size: 13.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  box-shadow: 0 16px 34px rgba(213, 162, 78, 0.34);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.hab-float:hover { transform: translateY(-2px); box-shadow: 0 22px 44px rgba(213, 162, 78, 0.44); }
@media (min-width: 1180px) { .hab-float { display: none; } }

/* ---------- Voile et tiroirs ---------- */

.hab-veil {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(4, 7, 13, 0.62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 0; padding: 0; cursor: pointer;
  animation: habPanelIn 300ms ease both;
}
.hab-veil[hidden] { display: none; }

.hab-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; flex-direction: column;
  width: min(460px, 92vw); padding: clamp(22px, 4vw, 36px);
  background: linear-gradient(200deg, rgba(15, 22, 40, 0.92), rgba(7, 11, 20, 0.96));
  backdrop-filter: blur(28px) saturate(150%); -webkit-backdrop-filter: blur(28px) saturate(150%);
  border-left: 1px solid var(--hab-line);
  box-shadow: -30px 0 80px rgba(3, 6, 14, 0.6);
  overflow-y: auto;
  animation: habPanelIn 420ms var(--hab-ease) both;
}
.hab-drawer[hidden] { display: none; }
.hab-drawer--booking { display: block; width: min(520px, 94vw); z-index: 95; background: linear-gradient(200deg, rgba(15, 22, 40, 0.94), rgba(7, 11, 20, 0.97)); }

.hab-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hab-drawer__kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hab-accent); }
.hab-drawer__title { margin-top: 8px; font-size: clamp(26px, 3vw, 34px); line-height: 1; }
.hab-close {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: var(--hab-r-pill);
  border: 1px solid var(--hab-line); background: rgba(255, 255, 255, 0.05);
  cursor: pointer; transition: background 200ms ease;
}
.hab-close:hover { background: rgba(255, 255, 255, 0.12); }

.hab-drawer__nav { display: flex; flex-direction: column; gap: 4px; margin-top: 30px; }
.hab-drawer__link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 4px; border-bottom: 1px solid var(--hab-line-soft);
  font-family: var(--hab-display); font-size: clamp(26px, 6vw, 34px);
  text-transform: uppercase; color: var(--hab-ink);
  transition: color 200ms ease, padding-left 200ms ease;
}
.hab-drawer__link:hover { color: var(--hab-accent-light); padding-left: 10px; }
.hab-drawer__foot { margin-top: auto; padding-top: 30px; }
.hab-drawer__foot .hab-btn { width: 100%; justify-content: center; }
.hab-drawer__addr { margin-top: 18px; font-size: 14.5px; line-height: 1.6; color: var(--hab-muted); }

/* Billetterie */
.hab-book__label { margin-top: 26px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hab-dim); }
.hab-book__list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.hab-pickrow {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; text-align: left;
  border-radius: 5px; border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04); color: var(--hab-ink);
  font-family: inherit; cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}
.hab-pickrow[aria-pressed="true"] { border-color: rgba(213, 162, 78, 0.55); background: rgba(213, 162, 78, 0.14); }
.hab-pickrow__img { width: 66px; height: 52px; border-radius: 5px; flex: none; object-fit: cover; }
.hab-pickrow__title { font-size: 15px; font-weight: 700; }
.hab-pickrow__meta { margin-top: 3px; font-size: 13px; color: var(--hab-muted); }
.hab-pickrow__check { margin-left: auto; flex: none; opacity: 0; transition: opacity 180ms ease; }
.hab-pickrow[aria-pressed="true"] .hab-pickrow__check { opacity: 1; }

.hab-dates { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 6px; }
.hab-dates { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.05); }
.hab-dates::-webkit-scrollbar { height: 6px; }
.hab-dates::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 5px; }
.hab-dates::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.28); border-radius: 5px; }
.hab-date {
  display: flex; flex-direction: column; align-items: center; flex: none;
  min-width: 64px; padding: 12px 10px; border-radius: var(--hab-r-chip);
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04);
  color: var(--hab-ink); font-family: inherit; cursor: pointer; text-align: center;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.hab-date[aria-pressed="true"] { border-color: rgba(213, 162, 78, 0.65); background: rgba(213, 162, 78, 0.18); color: var(--hab-accent-light); }
.hab-date__dow { font-size: 12px; font-weight: 600; text-transform: capitalize; }
.hab-date__day { font-family: var(--hab-display); font-size: 22px; line-height: 1.1; }
.hab-date__month { font-size: 11.5px; opacity: 0.8; }

.hab-times { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.hab-time {
  padding: 12px 20px; border-radius: var(--hab-r-pill);
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04);
  color: var(--hab-ink); font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.hab-time[aria-pressed="true"] { border-color: rgba(213, 162, 78, 0.65); background: rgba(213, 162, 78, 0.18); color: var(--hab-accent-light); }

.hab-book__summary {
  margin-top: 26px; padding: 18px; border-radius: 5px;
  border: 1px solid var(--hab-line); background: rgba(255, 255, 255, 0.04);
}
.hab-book__summary-label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hab-dim); }
.hab-book__summary-value { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--hab-ink); }
.hab-book__go { display: flex; justify-content: center; width: 100%; margin-top: 18px; }
.hab-book__note { margin-top: 14px; font-size: 13px; line-height: 1.55; color: var(--hab-muted); }

/* ---------- Curseur ---------- */

.hab-cursor, .hab-dot { position: fixed; top: 0; left: 0; z-index: 120; pointer-events: none; border-radius: 50%; }
.hab-cursor {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(213, 162, 78, 0.55);
}
.hab-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--hab-accent); }

/* ---------- Heros immersif de l accueil ----------
   La photo de la Halle est claire en haut (mur mappe, pixels a 245) et sombre
   en bas (autour de 80). Le contenu est donc ancre EN BAS, et le voile renforce
   cette zone pour garantir la lisibilite quel que soit le recadrage. */

.hab-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  margin-top: calc(var(--hab-header-h) * -1);
  padding: calc(var(--hab-header-h) + clamp(16px, 3vh, 34px)) var(--hab-pad-x) clamp(20px, 3vh, 38px);
  overflow: hidden;
  isolation: isolate;
}

.admin-bar .hab-hero { min-height: calc(100svh - 32px); }

.hab-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hab-hero__img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center 38%;
  transform-origin: 50% 42%;
  animation: habKen 30s ease-in-out infinite alternate;
}
@keyframes habKen {
  from { transform: scale(1.04); }
  to   { transform: scale(1.13); }
}

/* Voile vertical : laisse respirer le mapping au milieu, assoit le texte en bas. */
.hab-hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 11, 20, 0.80) 0%, rgba(7, 11, 20, 0.38) 46%, rgba(7, 11, 20, 0) 74%),
    linear-gradient(180deg, rgba(7, 11, 20, 0.72) 0%, rgba(7, 11, 20, 0.22) 18%, rgba(7, 11, 20, 0.52) 44%, rgba(7, 11, 20, 0.92) 72%, #070B14 100%);
}

.hab-hero__inner { position: relative; width: 100%; max-width: var(--hab-max); margin: 0 auto; }

/* Sur la photo, le degrade cyan-violet de la maquette jurait. L or, accent unique
   du site, tient seul. Les autres pages gardent le degrade sur fond uni. */
.hab-hero .hab-shine,
.hab-lieu-hero .hab-shine,
.hab-exp-hero .hab-shine {
  background-image: linear-gradient(100deg, #EFC780, #D5A24E 42%, #EFC780);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Entree echelonnee du heros. Sans script, tout reste visible. */
.js .hab-hero__inner > * { animation: habReveal 800ms var(--hab-ease) both; }
.js .hab-hero__inner > *:nth-child(1) { animation-delay: 100ms; }
.js .hab-hero__inner > *:nth-child(2) { animation-delay: 200ms; }
.js .hab-hero__inner > *:nth-child(3) { animation-delay: 320ms; }
.js .hab-hero__inner > *:nth-child(4) { animation-delay: 440ms; }
.js .hab-hero__bar { animation: habFade 900ms 620ms both; }
.hab-hero .hab-h1 { font-size: clamp(40px, 6.6vw, 92px); }
.hab-hero .hab-lead { max-width: 820px; margin-top: 22px; }
.hab-hero .hab-actions { margin-top: clamp(20px, 2.6vh, 30px); }

.hab-hero__bar {
  position: relative; width: 100%; max-width: var(--hab-max); margin: clamp(20px, 3.5vh, 40px) auto 0;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px;
  padding-top: clamp(14px, 2vh, 22px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* Indice de defilement discret, sans texte decoratif. */
.hab-hero__cue {
  position: absolute; left: 50%; bottom: 10px; width: 1px; height: 46px;
  background: linear-gradient(180deg, rgba(234, 240, 250, 0) 0%, rgba(234, 240, 250, 0.55) 100%);
  transform: translateX(-50%);
}
@media (max-width: 900px) { .hab-hero__cue { display: none; } }

@media (max-width: 760px) {
  .hab-hero { min-height: 92svh; }
  .hab-hero__img { object-position: center 42%; }

  /* Mesure du 31/08 : sous le chapo, la facade en pierre monte a 0,93 de
     luminance. Avec l ancien voile, le gris attenue tombait a 1,20 de
     contraste, soit du texte illisible. Le voile est resserre sur la bande
     ou se trouve le texte, sans noyer le haut de l image. */
  .hab-hero__scrim {
    background: linear-gradient(180deg, rgba(7, 11, 20, 0.80) 0%, rgba(7, 11, 20, 0.52) 24%, rgba(7, 11, 20, 0.72) 46%, rgba(7, 11, 20, 0.90) 62%, rgba(7, 11, 20, 0.96) 78%, #070B14 100%);
  }

  /* Le gris attenue est prevu pour un fond sombre, pas pour une photographie.
     Blanc franc et ombre portee, qui rattrape les quelques pixels les plus
     clairs sans assombrir davantage la photographie. */
  .hab-hero .hab-lead {
    color: var(--hab-ink);
    text-shadow: 0 1px 3px rgba(7, 11, 20, 0.75);
  }
  .hab-hero .hab-eyebrow { text-shadow: 0 1px 3px rgba(7, 11, 20, 0.6); }
}

/* ---------- Accessibilite et mouvement ---------- */

.hab-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:is(.hab360, .editor-styles-wrapper) :focus-visible { outline: 2px solid var(--hab-accent-light); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  :is(.hab360, .editor-styles-wrapper) *,
  :is(.hab360, .editor-styles-wrapper) *::before,
  :is(.hab360, .editor-styles-wrapper) *::after { animation: none !important; transition: none !important; }
  :is(.hab360, .editor-styles-wrapper) [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hab-cursor, .hab-dot { display: none !important; }
}

/* ---------- Consentement aux cookies ----------
   Le bandeau et la modale de CookieAdmin sont du site visible : ils suivent le
   rayon unique de 5px. Surcharge du seul rayon, aucune autre propriete touchee.
   Le !important repond a celui que le plugin pose sur ses propres formes. */

.cookieadmin_law_container,
button.cookieadmin_re_consent,
.cookieadmin_consent_inside,
.cookieadmin_btn,
.cookieadmin_cookie_modal,
.cookieadmin-modal-cookies-list,
.cookieadmin_slider,
.cookieadmin_slider::before,
.cookieadmin_preferences,
.cookieadmin_modal_footer button { border-radius: 5px !important; }

/* ---------- Calendrier de la programmation ---------- */

.hab-prog { display: grid; gap: 20px; margin-top: clamp(32px, 4vw, 52px); }
@media (min-width: 620px)  { .hab-prog { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px)  { .hab-prog { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .hab-prog { grid-template-columns: repeat(4, 1fr); } }

.hab-prog__jour {
  padding: clamp(18px, 2vw, 24px);
  border-radius: 5px; border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}
.hab-prog__date {
  font-family: var(--hab-display); font-size: 19px; line-height: 1.1;
  text-transform: uppercase; color: var(--hab-accent-light);
  padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.hab-prog__liste { display: flex; flex-direction: column; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.hab-prog__creneau { display: flex; flex-direction: column; gap: 2px; }
.hab-prog__heure { font-family: var(--hab-display); font-size: 20px; line-height: 1; color: #FFFFFF; }
.hab-prog__titre { font-size: 14px; line-height: 1.4; color: var(--hab-muted); }

.hab-book__vide { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--hab-muted); }

/* ============================================================
   Page L equipe : composition en sections, jamais une colonne unique.
   Aucune photo ne sert de support de texte : toutes celles disponibles
   sont claires (moyenne mesuree entre 95 et 146).
   ============================================================ */

.hab-eq-hero { position: relative; padding: clamp(32px, 5vh, 64px) var(--hab-pad-x) 0; }
.hab-eq-hero__grille { display: grid; gap: clamp(28px, 4vw, 52px); align-items: center; }
@media (min-width: 920px) { .hab-eq-hero__grille { grid-template-columns: 0.9fr 1.1fr; } }

/* L etiquette surplombait le titre a 0px : l accent du E capitale, qui monte
   au dessus de sa ligne (interligne 0.92), passait derriere son fond en verre
   depoli et disparaissait. */
.hab-eq-hero__texte .hab-eyebrow + .hab-h1 { margin-top: 22px; }

.hab-eq-hero__chapo {
  margin-top: 24px; max-width: 620px;
  font-size: clamp(18px, 1.9vw, 22px); line-height: 1.55; color: var(--hab-ink);
}
.hab-eq-hero__photo {
  margin: 0; border-radius: 5px; overflow: hidden;
  border: 1px solid var(--hab-line); box-shadow: var(--hab-shadow);
}
.hab-eq-hero__img { display: block; width: 100%; height: auto; }

/* Les deux fondateurs : bande a fond distinct, noms en tres grand. */
.hab-eq-fondateurs {
  margin-top: clamp(48px, 7vw, 96px);
  padding: clamp(36px, 5vw, 64px) var(--hab-pad-x);
  border-top: 1px solid var(--hab-line-soft);
  border-bottom: 1px solid var(--hab-line-soft);
  background: rgba(255, 255, 255, 0.03);
}
.hab-eq-fondateurs__grille { display: grid; gap: clamp(20px, 3vw, 44px); align-items: center; }
@media (min-width: 920px) { .hab-eq-fondateurs__grille { grid-template-columns: 1fr 1fr; } }
.hab-eq-fondateurs__noms { display: flex; flex-direction: column; gap: 6px; }
.hab-eq-fondateurs__noms span {
  font-family: var(--hab-display); font-size: clamp(28px, 3.6vw, 46px); line-height: 1.04;
  text-transform: uppercase; color: #FFFFFF;
}
.hab-eq-fondateurs__noms span:last-child { color: var(--hab-accent-light); }
.hab-eq-fondateurs__texte { font-size: 17px; line-height: 1.7; color: var(--hab-muted); }

/* Le recit : texte en colonne large, image verticale en appui. */
.hab-eq-recit { display: grid; gap: clamp(24px, 3.5vw, 48px); align-items: start; }
@media (min-width: 920px) { .hab-eq-recit { grid-template-columns: 1.35fr 0.65fr; } }
.hab-eq-recit__texte { font-size: 17px; line-height: 1.7; color: var(--hab-muted); }
.hab-eq-recit__texte p + p { margin-top: 18px; }
.hab-eq-recit__image {
  margin: 0; border-radius: 5px; overflow: hidden;
  border: 1px solid var(--hab-line); box-shadow: var(--hab-shadow);
}
.hab-eq-recit__img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Les trois questions, en escalier : la lecture descend au lieu de s empiler. */
.hab-eq-questions { padding: clamp(48px, 7vw, 90px) var(--hab-pad-x) 0; }
.hab-eq-questions__liste { display: flex; flex-direction: column; }
.hab-eq-question {
  position: relative; max-width: 840px;
  padding: clamp(20px, 2.6vw, 30px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: clamp(19px, 2.1vw, 26px); line-height: 1.4; color: var(--hab-ink);
}
@media (min-width: 920px) {
  .hab-eq-question--2 { margin-left: 12%; }
  .hab-eq-question--3 { margin-left: 24%; }
}

/* Bandeau pleine largeur : rupture franche avant la chute. */
.hab-eq-bandeau { position: relative; margin-top: clamp(48px, 7vw, 90px); overflow: hidden; }
.hab-eq-bandeau__img {
  display: block; width: 100%; height: clamp(200px, 30vw, 380px); object-fit: cover;
}
.hab-eq-bandeau__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.55), rgba(7, 11, 20, 0.20) 45%, rgba(7, 11, 20, 0.85));
}

/* Signature et chute. */
.hab-eq-final__grille { display: grid; gap: clamp(18px, 3vw, 40px); align-items: end; }
@media (min-width: 920px) { .hab-eq-final__grille { grid-template-columns: auto 1fr; } }
.hab-eq-signature {
  font-family: var(--hab-display); font-size: clamp(34px, 5.4vw, 72px); line-height: 0.95;
  text-transform: uppercase; color: var(--hab-accent-light);
}
.hab-eq-chute { font-size: 17px; line-height: 1.7; color: var(--hab-muted); }
.hab-eq-chute p + p { margin-top: 12px; }

/* ============================================================
   Page Le lieu : heros sur la coupole, jalons, recit, mosaique.
   La photo de la coupole est claire partout (moyenne 92 a 163, p95 jusqu a
   244) : le voile doit atteindre 0.8 dans la zone du texte pour tenir le
   contraste. Il est donc dense en bas et leger en haut, ou la coupole reste
   lisible.
   ============================================================ */

.hab-lieu-hero,
.hab-exp-hero {
  position: relative;
  display: flex; align-items: flex-end;
  min-height: 78svh;
  margin-top: calc(var(--hab-header-h) * -1);
  padding: calc(var(--hab-header-h) + clamp(24px, 4vh, 48px)) var(--hab-pad-x) clamp(32px, 5vh, 60px);
  overflow: hidden; isolation: isolate;
}
.admin-bar .hab-lieu-hero,
.admin-bar .hab-exp-hero { min-height: calc(78svh - 32px); }

.hab-lieu-hero__media,
.hab-exp-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hab-lieu-hero__img,
.hab-exp-hero__img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
  animation: habKen 34s ease-in-out infinite alternate;
}
.hab-lieu-hero__scrim,
.hab-exp-hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 11, 20, 0.82) 0%, rgba(7, 11, 20, 0.42) 48%, rgba(7, 11, 20, 0.10) 78%),
    linear-gradient(180deg, rgba(7, 11, 20, 0.62) 0%, rgba(7, 11, 20, 0.28) 26%, rgba(7, 11, 20, 0.58) 56%, rgba(7, 11, 20, 0.93) 82%, #070B14 100%);
}
.hab-lieu-hero__inner,
.hab-exp-hero__inner { position: relative; width: 100%; }
.hab-lieu-hero__titre,
.hab-exp-hero__titre { margin-top: 22px; font-size: clamp(38px, 6.2vw, 88px); }
.hab-lieu-hero__chapo,
.hab-exp-hero__chapo {
  margin-top: 22px; max-width: 720px;
  font-size: clamp(18px, 1.9vw, 22px); line-height: 1.55; color: var(--hab-ink);
}

/* Jalons : la chronologie du recit, en repères. */
.hab-jalons {
  padding: clamp(28px, 4vw, 44px) var(--hab-pad-x);
  border-bottom: 1px solid var(--hab-line-soft);
  background: rgba(255, 255, 255, 0.03);
}
.hab-jalons__grille { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .hab-jalons__grille { grid-template-columns: repeat(4, 1fr); } }
.hab-jalon { display: flex; flex-direction: column; gap: 4px; }
.hab-jalon__annee {
  font-family: var(--hab-display); font-size: clamp(30px, 3.4vw, 46px); line-height: 1;
  color: var(--hab-accent-light);
}
.hab-jalon__fait { font-size: 14px; line-height: 1.4; color: var(--hab-muted); }

/* Recit : deux colonnes de lecture, pas une longue coulee. */
.hab-lieu-titre { max-width: 900px; }
.hab-lieu-amorce {
  margin-top: clamp(22px, 3vw, 34px); max-width: 980px;
  font-size: clamp(18px, 1.9vw, 21px); line-height: 1.6; color: var(--hab-ink);
}
.hab-lieu-recit { margin-top: clamp(24px, 3vw, 38px); font-size: 17px; line-height: 1.75; color: var(--hab-muted); }
.hab-lieu-recit p + p { margin-top: 20px; }
@media (min-width: 980px) {
  .hab-lieu-recit { columns: 2; column-gap: clamp(32px, 4vw, 64px); }
  .hab-lieu-recit p { break-inside: avoid; }
  .hab-lieu-recit p + p { margin-top: 0; padding-top: 20px; }
}

/* Mosaique : hauteurs et largeurs alternees, jamais une grille reguliere. */
.hab-galerie { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-top: clamp(28px, 3.5vw, 44px); }
@media (min-width: 760px) {
  .hab-galerie { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(140px, 15vw, 210px); }
  .hab-galerie__item--haut { grid-row: span 2; }
  .hab-galerie__item--large { grid-column: span 2; }
}
.hab-galerie__item {
  position: relative; margin: 0; overflow: hidden;
  border-radius: 5px; border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}
.hab-galerie__img {
  display: block; width: 100%; height: 100%; min-height: 160px; object-fit: cover;
  transition: transform 800ms var(--hab-ease);
}
.hab-galerie__item:hover .hab-galerie__img { transform: scale(1.06); }
.hab-galerie__credit {
  margin-top: 16px; text-align: right;
  font-size: 13px; letter-spacing: 0.06em; color: var(--hab-muted);
}

/* Chute : le texte du present, mis en avant, et l appel a reserver. */
.hab-lieu-final__grille { display: grid; gap: clamp(22px, 3vw, 44px); align-items: center; }
@media (min-width: 980px) { .hab-lieu-final__grille { grid-template-columns: 1fr auto; } }
.hab-lieu-final__texte {
  font-size: clamp(17px, 1.8vw, 20px); line-height: 1.65; color: var(--hab-ink);
  padding: clamp(22px, 3vw, 34px);
  border-radius: 5px; border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}

/* Heros de L experience : le panorama de projection. Mesures par bandes,
   milieu clair (p95 245) et bas plus sombre (p95 226) : le voile ferme
   franchement le bas, ou se pose le texte. */
.hab-exp-hero__img { object-position: center 38%; }
.hab-exp-hero__scrim {
  background:
    linear-gradient(90deg, rgba(7, 11, 20, 0.78) 0%, rgba(7, 11, 20, 0.38) 46%, rgba(7, 11, 20, 0.08) 76%),
    linear-gradient(180deg, rgba(7, 11, 20, 0.58) 0%, rgba(7, 11, 20, 0.24) 22%, rgba(7, 11, 20, 0.55) 52%, rgba(7, 11, 20, 0.92) 80%, #070B14 100%);
}

/* Fiches de seance : l image ne dicte plus la hauteur de la ligne.
   Sortie du flux, elle epouse la hauteur du texte, ce qui supprime le vide
   qui s ouvrait sous le paragraphe quand la photo etait au format portrait. */
.hab-detail__media { position: relative; min-height: 320px; }
.hab-detail__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; min-height: 0; object-fit: cover;
}
.hab-detail__body { justify-content: space-between; }

/* ==========================================================================
   Blocs Gutenberg
   Le client compose ses pages dans l editeur : un titre, un paragraphe ou un
   bouton pose dans l editeur doit rendre exactement comme le composant
   equivalent du theme, sur le site ET dans l editeur. Une seule source, ce
   fichier, sert les deux contextes grace au :is(.hab360, .editor-styles-wrapper).
   ========================================================================== */

/* Le conteneur d edition reprend l air et la colonne de lecture du site. */
.editor-styles-wrapper { padding: 40px var(--hab-pad-x); }
.editor-styles-wrapper .is-root-container { max-width: none; }

/* Rythme vertical. La regle de base met toutes les marges a zero : sans ce
   rattrapage, le contenu compose dans l editeur arrive entierement tasse. */
:is(.hab360, .editor-styles-wrapper) :is(.hab-contenu, .is-root-container) > * + * { margin-top: 28px; }
:is(.hab360, .editor-styles-wrapper) :is(.hab-contenu, .is-root-container) > * + :where(h2, .wp-block-heading[class*="titre-section"]) { margin-top: 64px; }

/* Titres : les tailles viennent des composants .hab-h1 / .hab-h2 / .hab-h3,
   reprises ici pour les blocs natifs, qui n en portent pas les classes. */
:is(.hab360, .editor-styles-wrapper) h1.wp-block-heading { font-size: clamp(42px, 8vw, 116px); line-height: 0.94; letter-spacing: -0.01em; }
:is(.hab360, .editor-styles-wrapper) h2.wp-block-heading { font-size: clamp(32px, 5vw, 64px); line-height: 1; }
:is(.hab360, .editor-styles-wrapper) h3.wp-block-heading { font-size: clamp(20px, 2vw, 26px); line-height: 1.15; }
:is(.hab360, .editor-styles-wrapper) h4.wp-block-heading { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.2; }

/* Les quatre regles ci-dessus donnent aux blocs natifs la taille des titres de
   SECTION, ce qui convient aux pages composees. Dans la colonne de lecture,
   un h2 a 64 px pese pres de quatre fois le texte qu il annonce. L echelle
   editoriale, que .hab-contenu prevoyait deja pour ses titres, est retablie
   ici pour les blocs natifs, qui ne portent pas les classes du theme.
   Specificite (0,3,1) : elle l emporte sur (0,2,1) sans !important. */
:is(.hab360, .editor-styles-wrapper) .hab-contenu h2.wp-block-heading { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.05; }
:is(.hab360, .editor-styles-wrapper) .hab-contenu h3.wp-block-heading { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.1; }
:is(.hab360, .editor-styles-wrapper) .hab-contenu h4.wp-block-heading { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.2; }

/* Le blanc au-dessus d un titre suit sa taille : 64 px separaient des titres
   devenus deux fois plus petits. */
:is(.hab360, .editor-styles-wrapper) .hab-contenu > * + :where(h2, .wp-block-heading[class*="titre-section"]) { margin-top: clamp(36px, 4vw, 56px); }

/* Texte courant et chapo. */
:is(.hab360, .editor-styles-wrapper) :is(.hab-contenu, .is-root-container) :where(p) { color: var(--hab-muted); text-wrap: pretty; }
:is(.hab360, .editor-styles-wrapper) p.has-chapo-font-size { color: var(--hab-ink); line-height: 1.6; }

/* Listes et citations. */
:is(.hab360, .editor-styles-wrapper) :is(.hab-contenu, .is-root-container) :where(ul, ol) { margin: 0; padding-left: 22px; color: var(--hab-muted); }
:is(.hab360, .editor-styles-wrapper) :is(.hab-contenu, .is-root-container) :where(li + li) { margin-top: 8px; }
:is(.hab360, .editor-styles-wrapper) :is(.hab-contenu, .is-root-container) :where(li)::marker { color: var(--hab-accent); }
:is(.hab360, .editor-styles-wrapper) .wp-block-quote {
  margin: 0; padding: 4px 0 4px 22px;
  border-left: 2px solid var(--hab-accent);
  font-size: clamp(18px, 2vw, 22px); color: var(--hab-ink);
}
:is(.hab360, .editor-styles-wrapper) .wp-block-quote cite { display: block; margin-top: 12px; font-size: 14px; font-style: normal; color: var(--hab-muted); }

/* Images et figures : rayon 5px, comme partout sur le site. */
:is(.hab360, .editor-styles-wrapper) :is(.wp-block-image img, .wp-block-post-featured-image img) { border-radius: var(--hab-r-card); display: block; }
:is(.hab360, .editor-styles-wrapper) .wp-block-image figcaption,
:is(.hab360, .editor-styles-wrapper) figcaption.wp-element-caption { margin-top: 10px; font-size: 13.5px; color: var(--hab-muted); text-align: left; }

/* Boutons : reprise exacte de .hab-btn, sans dependre de la classe du theme. */
:is(.hab360, .editor-styles-wrapper) .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
:is(.hab360, .editor-styles-wrapper) .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border: 0; border-radius: var(--hab-r-pill);
  font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: linear-gradient(120deg, var(--hab-accent), var(--hab-accent-light) 45%, var(--hab-accent));
  color: var(--hab-bg); box-shadow: var(--hab-shadow-gold);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
:is(.hab360, .editor-styles-wrapper) .wp-block-button__link:hover { color: var(--hab-bg); transform: translateY(-3px); box-shadow: 0 22px 50px rgba(213, 162, 78, 0.42); }
:is(.hab360, .editor-styles-wrapper) .is-style-outline .wp-block-button__link,
:is(.hab360, .editor-styles-wrapper) .wp-block-button.is-style-outline > .wp-block-button__link {
  border: 1px solid rgba(255, 255, 255, 0.18); background: var(--hab-glass); color: var(--hab-ink);
  font-weight: 600; letter-spacing: 0.06em; padding: 16px 26px; box-shadow: none;
}
:is(.hab360, .editor-styles-wrapper) .is-style-outline .wp-block-button__link:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.12); }

/* Colonnes et groupes. */
:is(.hab360, .editor-styles-wrapper) .wp-block-columns { gap: 32px; margin: 0; }
:is(.hab360, .editor-styles-wrapper) .wp-block-columns.is-not-stacked-on-mobile { gap: 22px; }
:is(.hab360, .editor-styles-wrapper) .wp-block-group.has-background { padding: clamp(24px, 3vw, 40px); border-radius: var(--hab-r-panel); }
:is(.hab360, .editor-styles-wrapper) .wp-block-separator {
  height: 1px; margin: 0; border: 0; opacity: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}

/* Tableaux. */
:is(.hab360, .editor-styles-wrapper) .wp-block-table table { width: 100%; border-collapse: collapse; }
:is(.hab360, .editor-styles-wrapper) .wp-block-table :is(th, td) { padding: 12px 14px; border-bottom: 1px solid var(--hab-line-soft); text-align: left; color: var(--hab-muted); }
:is(.hab360, .editor-styles-wrapper) .wp-block-table th { color: var(--hab-ink); font-weight: 700; }

/* Colonne de lecture et pleine largeur, reprises de la mise en page du site. */
:is(.hab360, .editor-styles-wrapper) .alignwide { max-width: var(--hab-max); }
:is(.hab360, .editor-styles-wrapper) .alignfull { max-width: none; }

@media (max-width: 760px) {
  .editor-styles-wrapper { padding: 24px 16px; }
  :is(.hab360, .editor-styles-wrapper) .wp-block-columns { gap: 22px; }
}

/* Pages composees dans l editeur : les sections HAB 360 occupent toute la
   largeur et posent leur propre conteneur ; les blocs natifs ajoutes par le
   client se recalent seuls sur la colonne de lecture. Sans cette regle, un
   paragraphe pose dans Gutenberg s etalerait sur toute la largeur d ecran. */
.hab-contenu-libre > :not(section):not(.hab-ticker) {
  max-width: var(--hab-lecture);
  margin-inline: auto;
  padding-inline: var(--hab-pad-x);
}
.hab-contenu-libre > :not(section):not(.hab-ticker) + :not(section):not(.hab-ticker) { margin-top: 28px; }
.hab-contenu-libre > section + :not(section):not(.hab-ticker),
.hab-contenu-libre > .hab-ticker + :not(section):not(.hab-ticker) { margin-top: clamp(56px, 8vw, 110px); }
.hab-contenu-libre > :not(section):not(.hab-ticker):last-child { margin-bottom: clamp(56px, 8vw, 110px); }

/* Frise de jalons posee en section. Variante du bandeau .hab-jalons : meme
   ecriture des dates, mais sans fond ni filet inferieur, chaque repere etant
   introduit par un filet superieur qui reprend la mesure des cartels. */
.hab-jalons--section .hab-jalons__grille { margin-top: 8px; }
.hab-jalons--section .hab-jalon {
  padding-top: 20px;
  border-top: 1px solid var(--hab-line-soft);
}

/* Style « Texte en deux colonnes » propose sur le bloc Groupe. Reprend la mise
   en colonnes du recit du lieu : les paragraphes ne se coupent jamais entre
   deux colonnes, et l ecran etroit revient a une colonne unique. */
.wp-block-group.is-style-hab-colonnes > * { break-inside: avoid; }
@media (min-width: 860px) {
  .wp-block-group.is-style-hab-colonnes {
    columns: 2;
    column-gap: clamp(32px, 4vw, 64px);
  }
  .wp-block-group.is-style-hab-colonnes > * + * { margin-top: 0; padding-top: 20px; }
}
