/* ==========================================================================
   Nirvana Lab · accueil.css : ce qui n'appartient qu'à la page d'accueil (2 déc. 2026 · 23:59)
   Le reste (en-tête, cartes, étapes, téléphones, contact, pied) est dans systeme.css.
   ========================================================================== */

/* ---------- 1. Ouverture : le grand moment ---------- */

.ouverture {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--entete-h) + env(safe-area-inset-top) + 4px) 0 40px;
}
html:not(.js) .ouverture { min-height: 0; padding-top: 16px; }
.ouverture__grille { display: grid; gap: 14px; }

.ouverture__halo {
  order: -1; position: relative; display: grid; place-items: center;
  height: clamp(220px, 34svh, 310px);
}
@media (min-width: 600px) and (max-width: 959px) { .ouverture__halo { height: clamp(260px, 36svh, 400px); } }
/* Une lueur bleu royal derrière le halo : le seul endroit où le fond s'éclaire. */
.ouverture__halo::before {
  content: ""; position: absolute; inset: -4% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(40, 66, 190, .42), rgba(27, 47, 143, .16) 55%, transparent);
}
.ouverture__halo .lotus { --lotus-l: min(78%, 78svh); }
/* L'interrupteur d'animations, près du grand moment : sous le texte sur téléphone, sous le halo sur PC. */
.ouverture__interrupteur { order: -1; justify-self: center; margin: -6px 0 6px; }

.ouverture__texte { display: flex; flex-direction: column; align-items: flex-start; }
.ouverture h1 { margin-bottom: var(--e-5); }
.ouverture h1 em { display: inline-block; }
.ouverture .chapeau { margin-bottom: var(--e-6); }
.ouverture .actions { width: 100%; }
.ouverture .actions .bouton { flex: 1 1 240px; }
.ouverture .zone { margin-top: var(--e-5); }
@media (max-width: 559px) {
  .ouverture .surtitre { letter-spacing: .1em; font-size: .8125rem; margin-bottom: var(--e-4); }
  .ouverture .surtitre::before { display: none; }
}

.descendre { display: none; }
@media (min-width: 960px) {
  .ouverture { padding-bottom: 72px; }
  .ouverture__grille { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: 24px; }
  .ouverture__halo { order: 0; height: auto; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: end; }
  .ouverture__interrupteur { order: 0; grid-column: 2; grid-row: 2; justify-self: center; margin-top: -8px; }
  .ouverture .actions .bouton { flex: 0 0 auto; }
  .ouverture .chapeau { max-width: 28em; }
  .grains-actifs .ouverture__texte.voile::before { right: 44px; } /* le voile s'arrête avant la lueur du halo */

  .descendre {
    position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 88px; min-height: 44px;
    font-size: .8125rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
    color: var(--texte-doux); transition: opacity .3s ease, color .2s ease;
  }
  .descendre:hover { color: var(--or-clair); }
  .descendre::after { content: ""; width: 1px; height: 28px; background: linear-gradient(var(--or), transparent); transform-origin: top; animation: goutte 2.6s var(--doux) infinite; }
  .defile .descendre { opacity: 0; pointer-events: none; }
}
@media (min-width: 960px) and (max-height: 760px) { .descendre { display: none; } }
@keyframes goutte { 0% { transform: scaleY(0); opacity: 0; } 35% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- 2. Offres : l'aube (grand arc d'or) au-dessus du titre ---------- */

.offres { padding-top: clamp(36px, 5vw, 64px); }
.aube { position: relative; width: 100%; height: clamp(84px, 11vw, 150px); margin-bottom: clamp(16px, 3vw, 32px); pointer-events: none; }
.repli--aube { position: absolute; inset: 0 4%; width: 92%; height: 100%; }
.offres__pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; margin-top: 30px; }
.offres__pied .mention { max-width: 36em; }

/* ---------- 3. Étapes : rien de propre à l'accueil (systeme.css, .pas) ---------- */

/* ---------- 4. Réalisations : un halo derrière le téléphone du milieu ---------- */

.realisations .vitrine { --tel-l: min(236px, 62vw); }
.vitrine__halo {
  position: absolute; left: calc(50% - var(--tel-l) * .78); top: calc(((var(--tel-l) - 16px) * 16 / 9 + 16px) / 2 - var(--tel-l) * .78);
  width: calc(var(--tel-l) * 1.56); height: calc(var(--tel-l) * 1.56); pointer-events: none;
}
.repli--halo { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(217, 181, 100, .55); box-shadow: 0 0 36px rgba(217, 181, 100, .25), inset 0 0 36px rgba(217, 181, 100, .12); }
.repli--halo::after { content: ""; position: absolute; inset: 7%; border-radius: 50%; border: 1px solid rgba(217, 181, 100, .3); }
@media (min-width: 900px) { .realisations .vitrine { --tel-l: clamp(200px, 18.5vw, 258px); } }

/* ---------- 5. Le Lab : une graine de lumière ---------- */

.lab__grille { display: grid; gap: 16px; }
.lab__graine { position: relative; height: 250px; display: grid; place-items: center; }
.lab__graine::before {
  content: ""; position: absolute; inset: -4% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(36, 60, 176, .3), transparent);
}
.repli--graine { width: min(100%, 320px); height: 100%; }
.lab__texte { display: flex; flex-direction: column; align-items: flex-start; }
.lab__texte h2 { margin-bottom: var(--e-5); }
.lab__phrase { color: var(--or-clair); font: italic 500 clamp(1.5rem, .8vw + 1.3rem, 1.85rem)/1.35 var(--police-titre); margin-bottom: var(--e-4); max-width: 22em; }
.lab__texte p + p { margin-top: var(--e-4); }
@media (min-width: 900px) {
  .lab__grille { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 64px; }
  .lab__graine { height: 430px; }
}

/* ---------- 6. Engagements : le lotus posé sur l'eau ---------- */

.engagements__grille { display: grid; gap: 36px; }
.engagements__lotus { position: relative; height: 150px; max-width: 320px; margin-bottom: 20px; display: grid; place-items: center; }
.engagements__lotus .lotus { --lotus-l: 140px; }
.engagements__tete h2 { margin-bottom: var(--e-4); }
@media (min-width: 900px) {
  .engagements__grille { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 80px; align-items: center; }
  .engagements__lotus { height: 210px; max-width: 360px; margin-bottom: 28px; }
  .engagements__lotus .lotus { --lotus-l: 190px; }
}

/* ---------- 7. Contact final ---------- */

.contact { padding-bottom: 0; }
.contact__bloc { display: grid; justify-items: center; text-align: center; }
.contact__sceau { position: relative; width: min(180px, 44vw); aspect-ratio: 1; margin-bottom: 14px; display: grid; place-items: center; }
.contact__sceau::before {
  content: ""; position: absolute; inset: -40%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(36, 60, 176, .32), transparent);
}
.contact__sceau .lotus { --lotus-l: 86%; }
.contact__texte { display: grid; justify-items: center; width: 100%; }
.contact__texte h2 { margin-bottom: var(--e-4); }
.contact__texte .chapeau { margin-bottom: var(--e-6); }
.contact .moyens { margin-bottom: var(--e-5); }
.contact .actions { justify-content: center; }
.contact .actions .bouton { flex: 1 1 250px; }
.contact .zone { margin-top: var(--e-6); text-align: left; }
@media (min-width: 680px) { .contact .actions .bouton { flex: 0 0 auto; } }
@media (min-width: 960px) {
  .contact__bloc { grid-template-columns: auto minmax(0, 760px); justify-content: center; align-items: center; gap: clamp(48px, 6vw, 96px); text-align: left; }
  .contact__sceau { width: 260px; margin-bottom: 0; }
  .contact__texte { justify-items: start; }
  .contact .actions { justify-content: flex-start; }
}
