/* ROQYA, monde visuel du 11/11/2026 (version claire). Chargé après style.css, qu'il corrige et prolonge.
   Idée directrice : l'ouverture reste dans l'ombre des photos, puis le jour se lève et tout le site
   est clair, aéré, avec des couleurs vives : un vert de guérison pour l'action, l'or du logo,
   et une couleur par étape du parcours. */

:root {
  /* page claire */
  --bg: #fbf8f1;
  --bg-2: #f3eee2;
  --text: #13231e;
  --muted: #55645e;
  --line: rgba(19, 35, 30, .12);
  --line-strong: rgba(19, 35, 30, .24);
  --surface: rgba(19, 35, 30, .035);
  --surface-2: rgba(19, 35, 30, .07);
  --vert: #0a8f63;
  --vert-2: #076f4d;
  --vert-pale: #e6f4ec;
  --sable: #f6ecd6;
  --gold: #b07d1f;
  --gold-2: #8f6412;
  --gold-ink: #17120a;
  --or-vif: #e3b95a;
  --nuit: #040708;
  --aqua: var(--vert);

  /* une couleur vive par étape */
  --c-djinns: #6a45f0;
  --c-mal: #e0484d;
  --c-diag: #1b74dc;
  --c-guerison: #0a8f63;
  --c-protection: #d58300;
  --c-biblio: #0e8fa3;

  --font-display: "Gloock", "Times New Roman", serif;
  --font-body: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

html { scrollbar-color: #b9c4bd var(--bg); }
body { font-size: 17px; line-height: 1.6; background: var(--bg); color: var(--text); }
::selection { background: var(--vert); color: #fff; }
:focus-visible { outline: 2px solid var(--vert); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: 400; letter-spacing: -.01em; }

/* Ce que l'ancien monde posait en décor et qui disparaît. */
.aurora, .progress, .marquee { display: none; }

/* ---------- En-tête : clair sur la photo, puis barre blanche ---------- */
.header { --text: #f6f0e2; --muted: #d8d0bf; --line-strong: rgba(246, 240, 226, .3); --surface-2: rgba(246, 240, 226, .12); color: var(--text); }
.header.is-stuck, .header.is-open { --text: #13231e; --muted: #55645e; --line-strong: rgba(19, 35, 30, .24); --surface-2: rgba(19, 35, 30, .07); background: rgba(251, 248, 241, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.brand b { font-family: var(--font-body); font-size: 19px; font-weight: 600; letter-spacing: .3em; color: var(--text); }
.nav-btn { font-weight: 500; }
.nav-item.is-open .nav-btn { box-shadow: none; color: var(--c); }
.drawer { --text: #13231e; --muted: #55645e; --line: rgba(19, 35, 30, .12); --line-strong: rgba(19, 35, 30, .24); --surface-2: rgba(19, 35, 30, .06); color: var(--text); }
.drawer-in { border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: 14px; background: #fffdf8; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 24px 60px rgba(19, 35, 30, .16); }
.drawer-head h3 { color: var(--c); }
.drawer-links a::before { box-shadow: none; }
.btn { border-radius: 12px; font-weight: 600; }
.btn-gold { background: var(--vert); color: #fff; box-shadow: none; }
.btn-gold::after { display: none; }
.btn-gold:hover { background: var(--vert-2); box-shadow: none; transform: none; }
.btn-ghost { background: none; }
.btn-ghost:hover { border-color: var(--vert); background: none; }
.tag { border-radius: 999px; }
.tag.free { color: var(--vert-2); border-color: rgba(10, 143, 99, .45); background: var(--vert-pale); }
.tag.premium { color: var(--gold-2); border-color: rgba(176, 125, 31, .45); background: #fbf1da; }
.chip { border-radius: 10px; font-weight: 600; color: #f6f0e2; }
.toast { color: #f6f0e2; }

/* ---------- Boutons et liens du contenu ---------- */
.m-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 12px; background: var(--vert); color: #fff; font-weight: 600; font-size: 16px; box-shadow: 0 10px 24px -12px rgba(10, 143, 99, .7); transition: background .16s var(--ease), transform .16s var(--ease); }
.m-btn:hover { background: var(--vert-2); }
.m-btn:active { transform: scale(.98); }
.m-lien { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 600; font-size: 16px; color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 6px; transition: color .16s var(--ease), text-decoration-color .16s var(--ease); }
.m-lien:hover, a:hover > .m-lien { color: var(--vert-2); text-decoration-color: var(--vert); }
.m-fleche, .m-sortie { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
a:hover .m-fleche { transform: translateX(4px); }
a:hover .m-sortie { transform: translate(2px, -2px); }
.m-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* ---------- Ouverture : dans l'ombre, la photo à droite, la promesse à gauche ---------- */
.lib { --text: #f6f0e2; --line-strong: rgba(246, 240, 226, .35); display: grid; align-items: end; min-height: 600px; background: var(--nuit); color: var(--text); }
.lib-stage { inset: 0 -4vw 0 4vw; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.lib-stage img { object-position: 35% 42%; }
.lib::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(4, 7, 8, .92) 0%, rgba(4, 7, 8, .6) 30%, rgba(4, 7, 8, 0) 58%); }
.lib-texte { position: relative; z-index: 2; width: 100%; max-width: 1320px; margin-inline: auto; padding: 0 var(--gutter) clamp(48px, 9vh, 104px); }
.lib-texte h1 { max-width: 9ch; font-size: clamp(3rem, 6.6vw, 6rem); line-height: .98; letter-spacing: -.02em; }
.lib-texte p { margin: 26px 0 34px; max-width: 34ch; font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.5; color: #d8d0bf; }
.lib-texte .m-btn { background: var(--or-vif); color: var(--gold-ink); box-shadow: none; }
.lib-texte .m-btn:hover { background: #f2d999; }
.lib-texte .m-lien:hover { color: #f2d999; text-decoration-color: var(--or-vif); }
.lib-tools { z-index: 3; }

/* Le lever du jour : de l'ombre de l'ouverture à la page claire. */
.m-aube { height: clamp(140px, 26vh, 260px); background: linear-gradient(var(--nuit) 0%, #2b1d0c 28%, #a8732a 55%, #f0cd8b 76%, #fbf1dc 90%, var(--bg) 100%); }

/* ---------- Sections ---------- */
.m-section { padding: clamp(72px, 11vh, 140px) 0; }
.m-parcours { padding-top: clamp(40px, 6vh, 72px); }
.m-tete { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 24px 64px; margin-bottom: clamp(40px, 6vh, 72px); }
.m-tete h2 { font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: 1.02; letter-spacing: -.02em; max-width: 14ch; }
.m-tete p { max-width: 36ch; font-size: 1.1rem; color: var(--muted); padding-bottom: .5em; }

/* Les cinq étapes : une liste que l'on descend, une couleur par étape. */
.m-etapes { border-top: 1px solid var(--line-strong); }
.m-etapes li { border-bottom: 1px solid var(--line); }
.m-etape { display: grid; grid-template-columns: 5.5rem minmax(0, 1.05fr) minmax(0, 1fr) 24px; align-items: center; gap: 0 32px; padding: clamp(26px, 3.6vh, 44px) 0; border-radius: 16px; transition: background .2s var(--ease), padding .3s var(--ease); }
.m-num { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--c); font-family: var(--font-display); font-size: 1.35rem; font-variant-numeric: lining-nums tabular-nums; transition: background .2s var(--ease), color .2s var(--ease); }
.m-etape-titre strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1.05; letter-spacing: -.015em; transition: color .2s var(--ease); }
.m-etape-titre span { display: block; margin-top: 10px; max-width: 40ch; color: var(--muted); }
.m-etape-sujets { display: flex; flex-wrap: wrap; gap: 8px; font-size: .93rem; }
.m-etape-sujets span { padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c) 9%, #fff); color: color-mix(in srgb, var(--c) 72%, #13231e); }
.m-etape .m-fleche { width: 24px; height: 24px; color: var(--c); }
.m-etape:hover { background: color-mix(in srgb, var(--c) 7%, transparent); padding-left: 18px; padding-right: 18px; }
.m-etape:hover .m-etape-titre strong { color: var(--c); }
.m-etape:hover .m-num { background: var(--c); color: #fff; }

/* Le verset : une grande respiration verte. */
.m-verset { position: relative; display: grid; align-items: center; min-height: min(78svh, 720px); overflow: clip; isolation: isolate; background: #0b5b45; color: #f4f0e3; text-align: center; }
.m-verset::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 50% 110%, rgba(240, 205, 139, .42), rgba(240, 205, 139, 0) 70%), linear-gradient(#0d6a50, #0a4f3c); }
.m-verset-image { display: none; }
.m-verset blockquote { margin: 0 auto; max-width: 52rem; padding: clamp(56px, 9vh, 96px) 0; }
.m-ar { font-family: var(--font-ar); font-size: clamp(2rem, 4.4vw, 3.8rem); line-height: 1.8; color: #f6dfa4; }
.m-fr { margin-top: 26px; font-family: var(--font-display); font-size: clamp(1.4rem, 2.5vw, 2.2rem); line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.m-verset footer { margin-top: 20px; color: #bfe0d0; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .m-verset::before { animation: m-aube linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    @keyframes m-aube { from { opacity: .55; } to { opacity: 1; } }
  }
}

/* La bibliothèque : quatre rayons, chacun sa couleur. */
.m-rayons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.m-rayons li { --c: var(--c-biblio); }
.m-rayons li:nth-child(1) { --c: var(--c-diag); }
.m-rayons li:nth-child(2) { --c: var(--c-guerison); }
.m-rayons li:nth-child(3) { --c: var(--c-djinns); }
.m-rayons li:nth-child(4) { --c: var(--c-protection); }
.m-rayons a { display: flex; flex-direction: column; height: 100%; min-height: 250px; padding: 28px 26px 26px; border-radius: 18px; background: color-mix(in srgb, var(--c) 8%, #fff); transition: background .2s var(--ease), transform .2s var(--ease); }
.m-rayons h3 { font-size: clamp(1.6rem, 2.3vw, 2.1rem); color: color-mix(in srgb, var(--c) 78%, #13231e); }
.m-rayons p { margin-top: 14px; color: var(--muted); max-width: 26ch; }
.m-tags { display: flex; gap: 8px; margin-top: auto; padding-top: 28px; }
.m-tags .tag { margin: 0; }
.m-rayons a:hover { background: color-mix(in srgb, var(--c) 15%, #fff); transform: translateY(-3px); }

/* La formation : bande sable, la photo de l'homme libéré, le cours à côté. */
.m-formation { background: var(--sable); }
.m-formation-grille { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 96px); }
.m-formation-image { margin: 0; aspect-ratio: 5 / 4; overflow: hidden; border-radius: 22px; background: var(--nuit); box-shadow: 0 30px 60px -30px rgba(19, 35, 30, .55); }
.m-formation-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.18); }
.m-formation-texte h2 { font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: 1.02; letter-spacing: -.02em; }
.m-formation-texte > p { margin-top: 22px; max-width: 38ch; font-size: 1.1rem; color: var(--muted); }
.m-formation-texte ul { margin: 28px 0 36px; border-top: 1px solid var(--line); }
.m-formation-texte li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.m-livres { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; align-items: center; gap: 12px 40px; margin-top: clamp(56px, 8vh, 96px); padding: 24px 28px; border-radius: 18px; background: #fffdf8; }
.m-livres strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 2vw, 1.7rem); }
.m-livres > span:not(.m-lien) { color: var(--muted); }

/* Articles et autres sites. */
.m-liste { border-top: 1px solid var(--line-strong); }
.m-liste li { display: grid; grid-template-columns: 14rem minmax(0, 1.1fr) minmax(0, 1fr); align-items: baseline; gap: 8px 40px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.m-liste-note { font-size: .95rem; color: var(--vert-2); font-weight: 600; }
.m-liste h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.15; }
.m-liste p { color: var(--muted); }
.m-univers { background: var(--vert-pale); }
.m-sites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.m-sites a { display: grid; gap: 8px; height: 100%; padding: 28px 30px; border-radius: 18px; background: #fffdf8; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.m-sites strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 2rem); transition: color .2s var(--ease); }
.m-sites a > span { color: var(--muted); max-width: 40ch; }
.m-sites .m-hote { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: .95rem; font-weight: 600; color: var(--vert-2); }
.m-sites a:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -22px rgba(19, 35, 30, .45); }
.m-sites a:hover strong { color: var(--vert-2); }

/* FAQ */
.m-faq .faq { max-width: none; margin: 0; border-top: 1px solid var(--line-strong); }
.faq summary { font-family: var(--font-display); font-weight: 400; min-height: 76px; }
.faq details[open] summary { color: var(--vert-2); }
.faq details[open] summary::after { border-color: var(--vert); }
.faq .answer { max-width: 70ch; color: var(--muted); }
.faq .answer strong { color: var(--text); }
.m-faq-suite { margin-top: 28px; }

/* Pied de page : un vert profond, pour finir sur du calme. */
.footer { --text: #f4f0e3; --muted: #b9d6c9; --line: rgba(244, 240, 227, .16); margin-top: 0; padding-top: 64px; border-top: 0; background: #0a4f3c; color: var(--text); }
.footer h4 { color: #f6dfa4; letter-spacing: .04em; text-transform: none; font-size: 15px; font-weight: 600; }
.footer .brand b { color: var(--text); }
.notice { border-radius: 14px; }

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 960px) {
  .m-tete { grid-template-columns: 1fr; align-items: start; }
  .m-etape { grid-template-columns: 4.2rem minmax(0, 1fr) 22px; }
  .m-etape-sujets { display: none; }
  .m-rayons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-formation-grille { grid-template-columns: 1fr; }
  .m-livres { grid-template-columns: 1fr; }
  .m-liste li { grid-template-columns: 1fr; }
}
@media (max-aspect-ratio: 1/1), (max-width: 720px) {
  /* Écran en hauteur : la photo en haut, recadrée sur l'homme, la promesse en dessous. */
  .lib { height: auto; min-height: 100svh; align-items: end; }
  .lib-stage { inset: 0 0 auto 0; height: 62svh; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
  .lib-stage img { object-fit: cover; object-position: 50% 30%; }
  .lib::after { background: linear-gradient(rgba(4, 7, 8, 0) 38%, rgba(4, 7, 8, .96) 62%); }
  .lib-texte { padding-top: 50svh; padding-bottom: 40px; }
  .lib-texte h1 { max-width: none; font-size: clamp(2.6rem, 12vw, 4rem); }
  .lib-texte p { margin: 18px 0 26px; }
  .lib-tools { top: calc(var(--header-h) + 12px); bottom: auto; }
}
@media (max-width: 720px) {
  .m-btn { width: 100%; }
  .m-rayons { grid-template-columns: 1fr; }
  .m-rayons a { min-height: 0; }
  .m-tags { padding-top: 18px; }
  .m-sites { grid-template-columns: 1fr; }
  .m-num { width: 2.9rem; height: 2.9rem; font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .m-etape, .m-fleche, .m-sortie, .m-btn, .m-lien, .m-rayons a, .m-sites a { transition: none; }
}
