/* LE MONDE DE SOUFFLE (15 novembre 2026) : le premier écran de l'accueil. Un paysage de velours par
   besoin, le nuage qui respire au rythme de l'app (4 s pour gonfler, 6 s pour redescendre), et la
   question de l'app : « De quoi avez-vous besoin ? ». Remplace la scène 3D du coucher de soleil,
   qui ne parlait que de sport. Ni vidéo, ni bibliothèque : des images et un peu de CSS. */
@font-face{font-family:"Instrument Serif";src:url(fonts/instrument-serif-400.woff2) format("woff2");font-display:swap}
@font-face{font-family:"Instrument Serif";font-style:italic;src:url(fonts/instrument-serif-400-italic.woff2) format("woff2");font-display:swap}

body.accueil main > section.monde {
  --m-papier: #F7F9F2; --m-anis: #D8FF85; --m-nuit: #0A211F; --m-accent: #FFB48A;
  position: relative; isolation: isolate; overflow: hidden; max-width: none;
  /* Elle remonte sous le menu (62 px, posé à 12 px du bandeau) pour que la pastille de verre flotte sur le paysage. */
  margin-top: calc(-1 * var(--entete, 62px) - 12px); padding: calc(var(--entete, 62px) + clamp(28px, 5vh, 56px)) 24px clamp(36px, 6vh, 72px);
  min-height: calc(100vh - 42px); min-height: calc(100svh - 42px); display: grid; place-items: center;
  color: var(--m-papier); background: #0C2A25; text-align: center;
}
body.accueil .monde[data-monde="apaiser"] { --m-accent: #A1D4FF; }
body.accueil .monde[data-monde="sommeil"] { --m-accent: #CDBBFF; }
body.accueil .monde[data-monde="echeance"] { --m-accent: #F2C879; }
body.accueil .monde[data-monde="reveil"] { --m-accent: #FFC9A3; }

/* Les cinq paysages, l'un sur l'autre : seul celui du besoin choisi est visible. */
body.accueil .monde-fond { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: 50% 54%; opacity: 0; transition: opacity 1.2s ease; }
body.accueil .monde[data-monde="effort"] .monde-fond.f-effort, body.accueil .monde[data-monde="apaiser"] .monde-fond.f-apaiser,
body.accueil .monde[data-monde="sommeil"] .monde-fond.f-sommeil, body.accueil .monde[data-monde="echeance"] .monde-fond.f-echeance,
body.accueil .monde[data-monde="reveil"] .monde-fond.f-reveil { opacity: 1; }
body.accueil .f-effort { background-image: url(img/monde/effort-768.jpg); } body.accueil .f-apaiser { background-image: url(img/monde/apaiser-768.jpg); }
body.accueil .f-sommeil { background-image: url(img/monde/sommeil-768.jpg); } body.accueil .f-echeance { background-image: url(img/monde/echeance-768.jpg); }
body.accueil .f-reveil { background-image: url(img/monde/reveil-768.jpg); }
@media (min-width: 700px) {
  body.accueil .f-effort { background-image: url(img/monde/effort.jpg); } body.accueil .f-apaiser { background-image: url(img/monde/apaiser.jpg); }
  body.accueil .f-sommeil { background-image: url(img/monde/sommeil.jpg); } body.accueil .f-echeance { background-image: url(img/monde/echeance.jpg); }
  body.accueil .f-reveil { background-image: url(img/monde/reveil.jpg); }
}
/* Un voile : sombre en haut sous le menu, sombre en bas sous les boutons, pour que le texte se lise. */
body.accueil .monde::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 12, 11, .55) 0%, rgba(4, 12, 11, .12) 26%, rgba(4, 12, 11, .10) 55%, rgba(4, 12, 11, .62) 100%); }

body.accueil .monde-contenu { width: min(760px, 100%); display: grid; justify-items: center; text-shadow: 0 1px 22px rgba(3, 10, 9, .55); }
body.accueil .monde-besoins button, body.accueil .monde .monde-cta { text-shadow: none; }
body.accueil .monde-k { margin: 0; color: var(--m-papier); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .72; }

/* SOUFFLE : quatre humeurs superposées, une seule visible. Elle gonfle en 4 s, redescend en 6 s. */
body.accueil .monde-souffle { position: relative; width: clamp(130px, 16vw, 180px); aspect-ratio: 540 / 384; margin: clamp(14px, 3vh, 28px) 0 clamp(10px, 2vh, 20px);
  animation: m-souffle 10s cubic-bezier(.45, 0, .55, 1) infinite; transform-origin: 50% 100%; }
body.accueil .monde-souffle::before { content: ""; position: absolute; inset: -38% -28%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--m-accent) 42%, transparent), transparent); }
body.accueil .monde-souffle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .9s ease; }
body.accueil .monde[data-humeur="essoufflee"] .h-essoufflee, body.accueil .monde[data-humeur="calme"] .h-calme,
body.accueil .monde[data-humeur="fiere"] .h-fiere, body.accueil .monde[data-humeur="endormie"] .h-endormie { opacity: 1; }
@keyframes m-souffle {
  0%, 100% { transform: translateY(6px) scale(.97, .96); }
  40% { transform: translateY(-8px) scale(1.04, 1.05); }
}

body.accueil .monde h1 { margin: 0; font-family: "Instrument Serif", ui-serif, Georgia, serif; font-weight: 400; letter-spacing: -.01em;
  font-size: clamp(42px, 6.4vw, 78px); line-height: 1; color: var(--m-papier); text-wrap: balance; }
body.accueil .monde h1 em { font-style: italic; color: var(--m-accent); transition: color 1.2s ease; }
body.accueil .monde-l { margin: 14px 0 0; max-width: 34em; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; color: rgba(247, 249, 242, .86); text-wrap: pretty; }

/* LA QUESTION DE L'APP : cinq besoins, on en touche un, le paysage et Souffle changent. */
body.accueil .monde-q { color: var(--m-papier); margin: clamp(20px, 3.5vh, 34px) 0 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .72; }
body.accueil .monde-besoins { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
body.accueil .monde-besoins button { font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--m-papier); padding: 11px 18px; min-height: 44px;
  border-radius: 99px; border: 1px solid rgba(247, 249, 242, .30); background: rgba(6, 18, 16, .42);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .3s, color .3s, border-color .3s, transform .2s; }
body.accueil .monde-besoins button:hover { border-color: rgba(247, 249, 242, .6); }
body.accueil .monde-besoins button:active { transform: scale(.96); }
body.accueil .monde-besoins button[aria-pressed="true"] { background: var(--m-anis); border-color: var(--m-anis); color: var(--m-nuit); }
body.accueil .monde-besoins button:focus-visible, body.accueil .monde-cta:focus-visible, body.accueil .monde-lien:focus-visible { outline: 2px solid var(--m-anis); outline-offset: 3px; }
body.accueil .monde-phrase { margin: 12px 0 0; min-height: 3.1em; max-width: 30em; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.5; color: var(--m-papier); text-wrap: balance; }

body.accueil .monde-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; margin-top: clamp(18px, 3vh, 28px); }
body.accueil .monde .monde-cta { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 99px; text-decoration: none;
  font-weight: 600; background: var(--m-anis); color: var(--m-nuit); box-shadow: 0 0 40px rgba(216, 255, 133, .28); transition: transform .2s; }
body.accueil .monde-cta:active { transform: scale(.97); }
body.accueil .monde .monde-lien { color: var(--m-papier); text-underline-offset: 4px; padding: 12px 4px; }
body.accueil .monde-note { margin: 16px 0 0; font-size: 13px; color: rgba(247, 249, 242, .70); }
body.accueil .monde .monde-note a { color: inherit; }

@media (max-width: 560px) {
  body.accueil .monde-besoins button { font-size: 14px; padding: 10px 14px; }
  body.accueil .monde-fond { background-position: 50% 68%; }
}
@media (prefers-reduced-motion: reduce) {
  body.accueil .monde-souffle { animation: none; }
  body.accueil .monde-fond, .monde-souffle img, .monde h1 em { transition: none; }
}

/* SOUFFLE ET SES QUATRE HUMEURS : une bande sombre, dans le paysage du soir, au milieu de la page claire. */
body.accueil main > section.souffles {
  position: relative; isolation: isolate; overflow: hidden; max-width: none; text-align: center;
  margin-top: clamp(96px, 14vh, 150px); padding: clamp(80px, 12vh, 130px) 24px clamp(170px, 24vh, 230px);
  color: #F7F9F2; background: #0E2F40;
}
body.accueil .souffles-fond { position: absolute; inset: 0; z-index: -1; background: url(img/monde/apaiser.jpg) 50% 47% / cover; }
body.accueil .souffles-fond::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 14, 18, .62), rgba(4, 14, 18, .30) 45%, rgba(4, 14, 18, .66)); }
body.accueil main > section.souffles p.surtitre { color: rgba(247, 249, 242, .78) !important; opacity: 1; }
body.accueil .souffles h2 { margin: 0 auto; max-width: none; color: #F7F9F2; font-family: "Instrument Serif", ui-serif, Georgia, serif; font-weight: 400;
  font-size: clamp(40px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -.01em; }
body.accueil .souffles h2 em { font-style: italic; color: #A1D4FF; }
body.accueil .souffles-p { margin: 18px auto 0; max-width: 36em; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; color: rgba(247, 249, 242, .86); text-wrap: pretty; }
body.accueil .souffles-liste { list-style: none; margin: clamp(36px, 6vh, 60px) auto 0; padding: 0; max-width: 980px; display: grid; gap: 28px 18px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { body.accueil .souffles-liste { grid-template-columns: repeat(4, 1fr); } }
body.accueil .souffles-liste li { display: grid; justify-items: center; gap: 4px; }
body.accueil .souffles-liste img { width: min(150px, 34vw); height: auto; margin-bottom: 10px; animation: m-souffle 10s cubic-bezier(.45, 0, .55, 1) infinite; transform-origin: 50% 100%; }
body.accueil .souffles-liste li:nth-child(2) img { animation-delay: -2.5s; }
body.accueil .souffles-liste li:nth-child(3) img { animation-delay: -5s; }
body.accueil .souffles-liste li:nth-child(4) img { animation-delay: -7.5s; }
body.accueil .souffles-liste strong { font-size: 18px; font-weight: 600; color: #F7F9F2; }
body.accueil .souffles-liste span { font-size: 14px; line-height: 1.4; color: rgba(247, 249, 242, .74); max-width: 15em; }
@media (prefers-reduced-motion: reduce) { body.accueil .souffles-liste img { animation: none; } }
