/* ============================================================
   Toute la page d'accueil aux couleurs de l'ouverture « ciel » (12/11/2026).
   Charte Amaterasu (reference/amaterasu-DESIGN.md) : trois fonds qui alternent
   — l'ombre turquoise de la photo, les bandes de lumière blanc → cyan,
   les sections blanches — et une seule encre, le violet #1b2978.
   Pilules à filet fin, aucune ombre portée, capitales très espacées.
   Chargé après ciel.css ; tout est limité à body.accueil-ciel.
   ============================================================ */
.accueil-ciel {
  --violet: #1b2978;
  --indigo: #19366c;
  --encre: #0c1734;
  --ardoise: #4f6383;
  --cyan: #84cdee;
  --teal: #75cdd6;
  --ceruleen: #579dc0;
  --orage: #466187;
  --nuit-teal: #0b3a52;
  --filet: rgba(27, 41, 120, .16);
  --filet-fort: rgba(27, 41, 120, .32);
  --lumiere: radial-gradient(at 5.62% 33.12%, #ffffff 30%, #84cdee 100%);
  --lumiere-inverse: radial-gradient(at 94% 20%, #ffffff 26%, #84cdee 100%);
  --vague: linear-gradient(174deg, #2a398e 5%, #5566c5 100%);

  /* Les couleurs par rubrique deviennent des nuances de la même famille bleue. */
  --c-djinns: #1b2978;
  --c-mal: #19366c;
  --c-diag: #2b5f8f;
  --c-guerison: #237b97;
  --c-protection: #466187;
  --c-biblio: #3f87ad;

  --bg: #ffffff;
  --text: var(--encre);
  --muted: var(--ardoise);
  --line: var(--filet);
  --line-strong: var(--filet-fort);
  --font-display: "Inter Tight", "Albert Sans", system-ui, sans-serif;
  --font-body: "Inter Tight", "Albert Sans", system-ui, sans-serif;
  font-family: var(--font-body);
  font-weight: 350;
  background: #fff;
  color: var(--encre);
}
.accueil-ciel ::selection { background: var(--violet); color: #fff; }
.accueil-ciel :focus-visible { outline: 1px solid var(--violet); outline-offset: 4px; border-radius: 20px; }
html:has(.accueil-ciel) { scrollbar-color: #9fb6cf #fff; }

/* Petites capitales très espacées : la voix « étiquette » de la charte. */
.accueil-ciel .m-liste-note,
.accueil-ciel .m-verset footer,
.accueil-ciel .footer h4,
.accueil-ciel .m-hote { font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; }

/* Titres : très fins, serrés, violets sur fond clair. */
.accueil-ciel h1, .accueil-ciel h2, .accueil-ciel h3 { font-family: var(--font-display); }
.accueil-ciel .m-tete h2,
.accueil-ciel .m-formation-texte h2 { font-weight: 200; font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -.04em; color: var(--violet); max-width: 13ch; }
.accueil-ciel .m-tete p,
.accueil-ciel .m-formation-texte > p { font-weight: 350; color: var(--ardoise); }

/* ---------- Boutons : pilules à filet violet ---------- */
.accueil-ciel .m-btn {
  min-height: 0; padding: 16px 26px; border-radius: 20px;
  border: 1px solid var(--violet); background: transparent; color: var(--violet);
  font: 500 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  box-shadow: none; position: relative; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ciel-ease), border-color .5s var(--ciel-ease);
}
.accueil-ciel .m-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--vague); transform: translateY(101%); transition: transform .6s var(--ciel-ease); }
.accueil-ciel .m-btn:hover { background: transparent; color: #fff; border-color: #3a47a8; }
.accueil-ciel .m-btn:hover::before { transform: none; }
.accueil-ciel .m-lien { min-height: 0; padding: 6px 0; font: 500 12px/1.4 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--violet); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ciel-ease); }
.accueil-ciel .m-lien:hover, .accueil-ciel a:hover > .m-lien { color: var(--violet); background-size: 100% 1px; }
.accueil-ciel .tag { border-radius: 20px; font: 500 10px/1 var(--font-body); letter-spacing: .2em; padding: 6px 10px; background: transparent; }
.accueil-ciel .tag.free { color: #1d6c86; border-color: rgba(35, 123, 151, .45); background: transparent; }
.accueil-ciel .tag.premium { color: var(--violet); border-color: rgba(27, 41, 120, .45); background: transparent; }

/* ---------- En-tête une fois la photo passée : blanc, encre violette ---------- */
.accueil-ciel .header.is-stuck, .accueil-ciel .header.is-open, .accueil-ciel .header.montre {
  --text: var(--violet); --muted: #3b4a7a; --line-strong: var(--filet-fort); --surface-2: rgba(27, 41, 120, .06);
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--filet);
}
.accueil-ciel .brand img { display: none; }
.accueil-ciel .brand b { font: 500 13px/1 var(--font-body); letter-spacing: .42em; color: var(--text); }
.accueil-ciel .nav-btn { font: 500 11px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; }
.accueil-ciel .btn { border-radius: 20px; font: 500 11px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
.accueil-ciel .btn-gold { background: var(--vague); color: #fff; }
.accueil-ciel .btn-gold:hover { background: var(--violet); }
.accueil-ciel .btn-ghost { border: 1px solid var(--filet-fort); color: var(--violet); }
.accueil-ciel .btn-ghost:hover { border-color: var(--violet); }
.accueil-ciel .drawer { --text: var(--encre); --muted: var(--ardoise); --line: var(--filet); }
.accueil-ciel .drawer-in { border: 1px solid var(--filet); border-top: 1px solid var(--c); border-radius: 20px; background: rgba(255, 255, 255, .96); box-shadow: none; }
.accueil-ciel .drawer-head h3 { font-weight: 300; letter-spacing: -.02em; }
.accueil-ciel .drawer-links a::before { width: 5px; height: 5px; box-shadow: none; }

/* ---------- Passage de la photo à la lumière ---------- */
/* Le dégradé recouvre le haut de la bande de lumière et s'y fond, sans couture. */
.accueil-ciel .m-aube { position: relative; z-index: 1; height: clamp(160px, 26vh, 280px); margin-bottom: calc(-1 * clamp(160px, 26vh, 280px)); pointer-events: none; background: linear-gradient(#0d2f44 0%, rgba(42, 111, 146, .85) 30%, rgba(132, 205, 238, .35) 66%, rgba(255, 255, 255, 0) 100%); }
.accueil-ciel .m-parcours { position: relative; padding-top: calc(clamp(160px, 26vh, 280px) + clamp(24px, 4vh, 56px)); }

/* ---------- Les cinq étapes : bande de lumière blanc → cyan ---------- */
.accueil-ciel .m-parcours { background: var(--lumiere); }
.accueil-ciel .m-etapes { border-top: 1px solid var(--filet-fort); }
.accueil-ciel .m-etapes li { border-bottom: 1px solid var(--filet); }
.accueil-ciel .m-etape { border-radius: 0; grid-template-columns: 6rem minmax(0, 1.05fr) minmax(0, 1fr) 24px; }
.accueil-ciel .m-num { width: auto; height: auto; background: none; display: block; color: var(--c); font: 200 clamp(2.4rem, 3.6vw, 3.4rem)/1 var(--font-display); letter-spacing: -.04em; }
.accueil-ciel .m-etape-titre strong { font-weight: 300; font-size: clamp(1.7rem, 2.8vw, 2.6rem); letter-spacing: -.035em; color: var(--violet); }
.accueil-ciel .m-etape-titre span { color: var(--ardoise); }
.accueil-ciel .m-etape-sujets span { padding: 6px 12px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); background: rgba(255, 255, 255, .45); color: color-mix(in srgb, var(--c) 85%, #0c1734); font-size: .88rem; }
.accueil-ciel .m-etape .m-fleche { color: var(--violet); }
.accueil-ciel .m-etape:hover { background: rgba(255, 255, 255, .55); padding-left: 22px; padding-right: 22px; }
.accueil-ciel .m-etape:hover .m-num { background: none; color: var(--violet); }
.accueil-ciel .m-etape:hover .m-etape-titre strong { color: var(--violet); }

/* ---------- Le verset : aurore bleu nuit et turquoise qui ondule, cercles fins ---------- */
.accueil-ciel .m-verset { background: #071735; color: #fff; min-height: min(92svh, 860px); }
.accueil-ciel .m-verset::before { display: none; }
.ciel-aurore { position: absolute; inset: -10%; z-index: -2; filter: blur(70px) saturate(120%); }
.ciel-aurore i { position: absolute; border-radius: 50%; mix-blend-mode: screen; opacity: .85; }
.ciel-aurore i:nth-child(1) { width: 70%; height: 80%; left: -10%; top: 30%; background: radial-gradient(closest-side, #2f8fb3, transparent); animation: ciel-derive-1 22s ease-in-out infinite alternate; }
.ciel-aurore i:nth-child(2) { width: 60%; height: 70%; right: -8%; top: -12%; background: radial-gradient(closest-side, #5bb7d6, transparent); animation: ciel-derive-2 26s ease-in-out infinite alternate; }
.ciel-aurore i:nth-child(3) { width: 55%; height: 60%; left: 30%; bottom: -20%; background: radial-gradient(closest-side, #23338f, transparent); animation: ciel-derive-3 30s ease-in-out infinite alternate; }
@keyframes ciel-derive-1 { to { transform: translate(18%, -14%) scale(1.15); } }
@keyframes ciel-derive-2 { to { transform: translate(-22%, 16%) scale(.9); } }
@keyframes ciel-derive-3 { to { transform: translate(-16%, -10%) scale(1.2); } }
.ciel-cercles { position: absolute; z-index: -1; left: 50%; top: 50%; width: min(78vh, 760px); height: min(78vh, 760px); margin: calc(min(78vh, 760px) / -2) 0 0 calc(min(78vh, 760px) / -2); fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: .6; transform: rotate(calc(var(--rot, 0) * 1deg)); will-change: transform; }
.ciel-cercles .centre { stroke: rgba(255, 255, 255, .55); stroke-width: .8; }
.accueil-ciel .m-ar { color: #fff; font-size: clamp(2.1rem, 4.6vw, 4rem); text-shadow: 0 0 40px rgba(132, 205, 238, .35); }
.accueil-ciel .m-fr { font-family: var(--font-display); font-weight: 200; font-size: clamp(1.5rem, 2.8vw, 2.6rem); letter-spacing: -.03em; line-height: 1.15; color: rgba(255, 255, 255, .94); }
.accueil-ciel .m-verset footer { margin-top: 28px; color: var(--teal); }

/* ---------- Bibliothèque : section blanche, colonnes séparées par des filets ---------- */
.accueil-ciel .m-biblio { background: #fff; }
.accueil-ciel .m-rayons { gap: 0; border-top: 1px solid var(--filet-fort); }
.accueil-ciel .m-rayons li + li { border-left: 1px solid var(--filet); }
.accueil-ciel .m-rayons a { border-radius: 0; background: none; padding: 34px 28px 30px; min-height: 280px; position: relative; overflow: hidden; isolation: isolate; }
.accueil-ciel .m-rayons a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lumiere); opacity: 0; transition: opacity .6s var(--ciel-ease); }
.accueil-ciel .m-rayons a:hover { background: none; transform: none; }
.accueil-ciel .m-rayons a:hover::before { opacity: 1; }
.accueil-ciel .m-rayons h3 { font-weight: 300; font-size: clamp(1.6rem, 2.2vw, 2rem); letter-spacing: -.03em; color: var(--violet); }
.accueil-ciel .m-rayons p { color: var(--ardoise); }

/* ---------- Formation : lumière inversée, la photo de l'homme apaisé ---------- */
.accueil-ciel .m-formation { background: var(--lumiere-inverse); }
.accueil-ciel .m-formation-image { aspect-ratio: 4 / 5; border-radius: 20px; box-shadow: none; background: var(--nuit-teal); }
.accueil-ciel .m-formation-image img { object-position: 46% 30%; transform: translate3d(0, var(--py, 0px), 0) scale(1.22); will-change: transform; }
.accueil-ciel .m-formation-texte ul { border-top: 1px solid var(--filet-fort); }
.accueil-ciel .m-formation-texte li { border-bottom: 1px solid var(--filet); color: var(--encre); }
.accueil-ciel .m-livres { border-radius: 20px; background: rgba(255, 255, 255, .55); border: 1px solid var(--filet); }
.accueil-ciel .m-livres strong { font-weight: 300; letter-spacing: -.03em; color: var(--violet); }

/* ---------- Articles : blanc, filets ---------- */
.accueil-ciel .m-articles { background: #fff; }
.accueil-ciel .m-liste { border-top: 1px solid var(--filet-fort); }
.accueil-ciel .m-liste li { border-bottom: 1px solid var(--filet); transition: background .5s var(--ciel-ease); }
.accueil-ciel .m-liste-note { color: #1d6c86; }
.accueil-ciel .m-liste h3 { font-weight: 300; letter-spacing: -.03em; color: var(--violet); }

/* ---------- Autres sites : retour à l'ombre turquoise de la photo ---------- */
.accueil-ciel .m-univers { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(110deg, #08324b 0%, #0c4766 45%, #1a6f93 100%); color: #fff; }
.accueil-ciel .m-univers::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 50% 70% at 90% 0%, rgba(170, 238, 250, .45), transparent 70%); }
.accueil-ciel .m-univers .m-tete h2 { color: #fff; }
.accueil-ciel .m-univers .m-tete p { color: rgba(255, 255, 255, .78); }
.accueil-ciel .m-sites { gap: 0; border-top: 1px solid rgba(255, 255, 255, .3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.accueil-ciel .m-sites li { border-bottom: 1px solid rgba(255, 255, 255, .18); }
.accueil-ciel .m-sites li:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .18); }
.accueil-ciel .m-sites a { border-radius: 0; background: none; padding: 32px 30px; color: #fff; transition: background .5s var(--ciel-ease); }
.accueil-ciel .m-sites a:hover { transform: none; box-shadow: none; background: rgba(255, 255, 255, .07); }
.accueil-ciel .m-sites strong { font-weight: 200; font-size: clamp(1.8rem, 2.8vw, 2.6rem); letter-spacing: -.04em; color: #fff; }
.accueil-ciel .m-sites a:hover strong { color: #fff; }
.accueil-ciel .m-sites a > span { color: rgba(255, 255, 255, .75); }
.accueil-ciel .m-sites .m-hote { color: var(--teal); }

/* ---------- FAQ : blanc, encre violette ---------- */
.accueil-ciel .m-faq { background: #fff; }
.accueil-ciel .m-faq .faq { border-top: 1px solid var(--filet-fort); }
.accueil-ciel .faq details { border-bottom: 1px solid var(--filet); }
.accueil-ciel .faq summary { font-family: var(--font-display); font-weight: 300; letter-spacing: -.02em; color: var(--encre); transition: color .4s var(--ciel-ease); }
.accueil-ciel .faq summary:hover, .accueil-ciel .faq details[open] summary { color: var(--violet); }
.accueil-ciel .faq summary::after { border-color: var(--filet-fort); background: linear-gradient(var(--violet), var(--violet)) center / 11px 1px no-repeat, linear-gradient(var(--violet), var(--violet)) center / 1px 11px no-repeat; }
.accueil-ciel .faq details[open] summary::after { border-color: var(--violet); }

/* ---------- Pied de page : l'ombre turquoise, comme l'ouverture ---------- */
.accueil-ciel .footer { --text: #fff; --muted: rgba(255, 255, 255, .7); --line: rgba(255, 255, 255, .16); background: radial-gradient(ellipse 60% 80% at 95% 0%, rgba(132, 205, 238, .28), transparent 70%), linear-gradient(160deg, #061a2e 0%, #0b3a52 100%); color: #fff; }
.accueil-ciel .footer h4 { color: var(--teal); }
.accueil-ciel .footer .brand b { color: #fff; }
.accueil-ciel .notice { border-radius: 20px; }

/* ---------- Apparitions au défilement : flou qui se dissipe, en cascade ---------- */
html.ciel-js .ciel-r { opacity: 0; transform: translate3d(0, 28px, 0); filter: blur(8px); }
html.ciel-js .ciel-r.vu { opacity: 1; transform: none; filter: none; transition: opacity 1.1s var(--ciel-ease), transform 1.3s var(--ciel-ease), filter 1.1s var(--ciel-ease); transition-delay: calc(var(--i, 0) * 80ms); }
/* Les grands titres montent ligne par ligne derrière un masque. */
html.ciel-js .ciel-titre-r { clip-path: inset(0 0 100% 0); transform: translate3d(0, 40%, 0); }
html.ciel-js .ciel-titre-r.vu { clip-path: inset(0 0 -10% 0); transform: none; transition: clip-path 1.2s var(--ciel-ease), transform 1.4s var(--ciel-ease); }

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 960px) {
  .accueil-ciel .m-etape { grid-template-columns: 4.4rem minmax(0, 1fr) 22px; }
  .accueil-ciel .m-rayons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .accueil-ciel .m-rayons li:nth-child(3) { border-left: 0; }
  .accueil-ciel .m-rayons li:nth-child(n+3) { border-top: 1px solid var(--filet); }
  .accueil-ciel .m-formation-image { aspect-ratio: 4 / 3; }
}
@media (max-width: 720px) {
  .accueil-ciel .m-btn { width: auto; }
  .accueil-ciel .m-rayons { grid-template-columns: 1fr; }
  .accueil-ciel .m-rayons li + li { border-left: 0; border-top: 1px solid var(--filet); }
  .accueil-ciel .m-rayons a { min-height: 0; padding: 28px 4px; }
  .accueil-ciel .m-sites { grid-template-columns: 1fr; }
  .accueil-ciel .m-sites li:nth-child(odd) { border-right: 0; }
  .accueil-ciel .m-sites a { padding: 26px 4px; }
  .accueil-ciel .m-num { font-size: 2.2rem; }
  .accueil-ciel .m-etape { grid-template-columns: 3.2rem minmax(0, 1fr) 20px; gap: 0 14px; }
  .ciel-cercles { width: 120vw; height: 120vw; margin: -60vw 0 0 -60vw; }
}
@media (prefers-reduced-motion: reduce) {
  .ciel-aurore i { animation: none; }
  html.ciel-js .ciel-r, html.ciel-js .ciel-titre-r { opacity: 1; transform: none; filter: none; clip-path: none; }
  .accueil-ciel .m-formation-image img { transform: scale(1.22); }
}

/* ---------- Mot « ROQYA » en filigrane qui défile sur la bande des autres sites ---------- */
.ciel-fantome {
  position: absolute; z-index: -1; left: 0; bottom: -.3em;
  white-space: nowrap; pointer-events: none;
  font: 200 clamp(110px, 17vw, 280px)/1 var(--font-display); letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .12);
  will-change: translate;
}
@media (prefers-reduced-motion: reduce) { .ciel-fantome { translate: none !important; } }

/* La bande des autres sites garde de la place sous la liste pour le filigrane. */
.accueil-ciel .m-univers { padding-bottom: clamp(150px, 22vw, 300px); }
