/* PRAYZ - page d'accueil publique (accueil.html, racine de prayz.app).

   Fichier autonome, comme legal.css : la page ne charge ni bible.css ni responsive.css (règles de
   l'app). Couleurs et polices : jetons.css ; maquettes de l'app : maquettes.css.
   Téléphone d'abord ; les écrans plus larges s'ajoutent en bas du fichier, aux mêmes paliers que
   l'app (40, 48 et 64 rem, toujours en min-width). Survol seulement dans (hover: hover), cibles de
   44 px dans (pointer: coarse), et plus aucun mouvement si le système le demande. */

:root {
  --marque: #3B1D6E;    /* violet de marque : fixe dans les deux modes (le jeton --violet devient lilas en sombre) */
  --marque-2: #27144A;
  --marque-3: #5A34A0;
  --lilas: #E1D4F3;
  --cadre: #FBF9F4;     /* bord des photos, comme un tirage papier */
  --bar-h: 66px;        /* bouton de 48 px + 2 × 8 px de marge intérieure + bordure */
  --bar-space: calc(var(--bar-h) + 40px + env(safe-area-inset-bottom, 0px));
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --grain-clair: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Socle ---------- */
* { box-sizing: border-box; }
/* scroll-padding : une ancre ou un élément qui prend le focus ne finit jamais sous le bandeau fixe. */
html { -webkit-text-size-adjust: 100%; scroll-padding-bottom: var(--bar-space); }
body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--paper);
  background-image: var(--grain);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
#contenu:focus { outline: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.brand-mark { width: 26px; height: 26px; flex: none; color: var(--violet); }
/* Pastilles des maquettes : mêmes couleurs que social.css. */
.av-jaune { background: var(--hl-jaune); } .av-rose { background: var(--hl-rose); } .av-sauge { background: var(--hl-sauge); }
.av-ciel { background: var(--hl-ciel); } .av-lilas { background: var(--hl-lilas); } .av-violet { background: var(--violet); color: var(--violet-ink); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 12px; background: var(--violet); color: var(--violet-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: 72rem; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); }

/* Bouton d'inscription : pilule de 52 px, comme les boutons de l'onboarding. */
.cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
  border-radius: 999px; background: var(--violet); color: var(--violet-ink);
  font-weight: 700; font-size: 16px; letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, transform .2s;
}
.cta:active { transform: translateY(1px); }
.cta-light { background: #FFFFFF; color: var(--marque); }
.cta-light:focus-visible { outline-color: #FFFFFF; }

/* ---------- Écran 1 : accroche et photos ----------
   Grille en trois rangées : bande de photos, texte, bande de photos (et deux colonnes de côté dès
   64rem). Les photos restent dans leur bande : aucune ne peut recouvrir le texte. */
.duo { position: relative; }
.hero {
  --band: clamp(8.5rem, 21svh, 13rem);
  position: relative; z-index: 1; overflow: clip;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--band) auto var(--band);
  grid-template-areas: "top" "copy" "bottom";
  min-height: 100vh; min-height: 100svh;
  background-color: var(--paper);
  background-image:
    radial-gradient(60% 50% at 88% 8%, color-mix(in srgb, var(--violet) 10%, transparent), transparent 70%),
    radial-gradient(55% 45% at 6% 96%, color-mix(in srgb, var(--hl-jaune) 75%, transparent), transparent 70%),
    var(--grain);
}
/* Voile violet qui fonce l'écran pendant que le second remonte (effets au défilement, plus bas). */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 3; background: var(--marque-2); opacity: 0; pointer-events: none; }
.band { position: relative; }
.band-top { grid-area: top; }
.band-bottom { grid-area: bottom; }
.band-left, .band-right, .ph-louange { display: none; }

.hero-copy {
  grid-area: copy; align-self: center; position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 20px var(--gutter-r) 20px var(--gutter-l); text-align: center;
}
.hero h1 {
  max-width: 12.5em;
  font-size: clamp(2.25rem, 3.6vw + 1.2rem, 4.75rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; text-wrap: balance;
}
.hero h1 em { font-family: var(--font-text); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--violet); }
.hero .lead { max-width: 30rem; font-size: 18px; line-height: 1.45; color: var(--muted); }
.hero .cta { margin-top: 6px; }
.hero-note { font-size: 14px; color: var(--muted); }

/* Photo : hauteur relative à sa bande, position horizontale --x, rotation --r. */
.ph {
  position: absolute; left: var(--x); height: calc(var(--band) * var(--s)); aspect-ratio: var(--ar);
  transform: translateX(-50%) rotate(var(--r));
  border: 4px solid var(--cadre); border-radius: 12px; overflow: hidden; background: #D9B28C;
  box-shadow: 0 22px 40px -22px rgba(39, 20, 74, .55), 0 4px 10px -4px rgba(39, 20, 74, .25);
}
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(160deg, rgba(248, 231, 163, .2), rgba(59, 29, 110, .1)); mix-blend-mode: multiply; }

.ph-rassemblement { --x: 15%; --s: .92; --ar: 4 / 5; --r: -5deg; --depth: 70; top: -10%; }
.ph-cercle        { --x: 52%; --s: .62; --ar: 5 / 4; --r: 4deg;  --depth: 40; bottom: 8%; }
.ph-louange       { --x: 70%; --s: .8;  --ar: 4 / 5; --r: -4deg; --depth: 36; bottom: 6%; }
.ph-mains         { --x: 87%; --s: .78; --ar: 1;     --r: 3deg;  --depth: 64; top: -4%; }
.ph-repas         { --x: 16%; --s: .62; --ar: 5 / 4; --r: 3deg;  --depth: 30; top: 10%; }
.ph-bapteme       { --x: 52%; --s: .9;  --ar: 4 / 5; --r: -5deg; --depth: 62; bottom: -10%; }
.ph-assemblee     { --x: 86%; --s: .8;  --ar: 4 / 5; --r: -3deg; --depth: 28; top: 8%; }
.ph-eglise        { --x: 52%; --ar: 4 / 5; --r: -3deg; --depth: 50; }
.ph-culte         { --x: 48%; --ar: 1;     --r: 3deg;  --depth: 56; }

/* ---------- Écran 2 : remonte sur le premier ---------- */
.sheet {
  position: relative; z-index: 2; overflow: hidden;
  min-height: 100vh; min-height: 100svh; display: grid; align-items: center;
  padding: 72px 0 96px; border-radius: 32px 32px 0 0; color: #FFFFFF;
  background: radial-gradient(90% 70% at 72% 38%, var(--marque-3) 0%, var(--marque) 46%, var(--marque-2) 100%);
  box-shadow: 0 -34px 90px -24px rgba(29, 23, 38, .55);
}
.sheet::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--grain-clair); }
.sheet-in { position: relative; width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter-r) 0 var(--gutter-l); display: grid; gap: 48px; }
.sheet h2 { font-size: clamp(2.5rem, 4vw + 1.2rem, 4.5rem); font-weight: 800; line-height: .98; letter-spacing: -.04em; text-wrap: balance; }
.sheet h2 span, .final h2 span { font-family: var(--font-text); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--lilas); }
.sheet dl { display: grid; max-width: 28rem; margin-top: 32px; }
.sheet dl div { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.sheet dt { font-size: 22px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.sheet dd { color: rgba(255, 255, 255, .82); }
/* Emplacement réservé aux téléphones (dessinés par landing.js) : pas de saut de mise en page. */
.sheet-art { min-height: 336px; }
.sheet-art .onb-phones { max-width: 400px; margin: 0 auto; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 72px 0; }
.section-soft { background-color: color-mix(in srgb, var(--violet-soft) 55%, var(--paper)); }
.section h2 { max-width: 20ch; margin-top: 8px; font-size: clamp(2rem, 2.6vw + 1.3rem, 3.25rem); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }

/* Fonctionnalités : une maquette de l'onboarding et son texte. */
.features { display: grid; gap: 56px; margin-top: 40px; }
.feature { display: grid; gap: 24px; align-items: center; }
.feature-art { min-height: 300px; }
.feature-art .onb-art { max-width: 440px; margin: 0 auto; }
.feature h3 { margin-top: 6px; font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.feature-copy > p:not(.eyebrow) { margin-top: 10px; font-size: 17px; color: var(--muted); }
.checks { display: grid; gap: 10px; margin-top: 18px; padding: 0; list-style: none; }
.checks li { display: flex; align-items: flex-start; gap: 10px; }
.checks .i { margin-top: 2px; color: var(--violet); stroke-width: 2.2; }

/* Confiance */
.trust { display: grid; gap: 12px; margin-top: 32px; padding: 0; list-style: none; }
.trust li, .steps li { padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.trust h3, .steps h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.trust p, .steps p { margin-top: 6px; color: var(--muted); }
.more { margin-top: 16px; }
.more a, .faq a { color: var(--violet); font-weight: 600; text-underline-offset: 3px; }
.more a { display: inline-flex; align-items: center; min-height: 44px; }

/* Bêta : étapes numérotées. Le numéro dessiné n'est pas relu (la liste ordonnée le dit déjà). */
.steps { display: grid; gap: 12px; margin-top: 32px; padding: 0; list-style: none; counter-reset: etape; }
.steps li { position: relative; padding-left: 72px; counter-increment: etape; }
.steps li::before {
  content: counter(etape); content: counter(etape) / "";
  position: absolute; left: 20px; top: 18px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--violet); color: var(--violet-ink); font-weight: 800;
}
.notice { max-width: 46rem; margin-top: 20px; padding: 14px 16px; border-radius: 16px; background: var(--violet-soft); border: 1px solid var(--violet-line); font-size: 15px; }
#beta .cta { margin-top: 24px; }

/* Questions : <details> natifs, utilisables au clavier sans script. */
.faq { display: grid; gap: 10px; max-width: 46rem; margin-top: 28px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.faq summary {
  position: relative; display: flex; align-items: center; min-height: 56px; padding: 14px 52px 14px 18px;
  border-radius: 18px; font-weight: 700; font-size: 17px; line-height: 1.3; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--violet); border-bottom: 2px solid var(--violet);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { padding: 0 18px 18px; color: var(--muted); }

/* Dernier appel */
.final {
  position: relative; overflow: hidden; padding: 88px 0; text-align: center; color: #FFFFFF;
  background: radial-gradient(80% 90% at 30% 20%, var(--marque-3) 0%, var(--marque) 50%, var(--marque-2) 100%);
}
.final::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--grain-clair); }
.final .wrap { position: relative; }
.final h2 { max-width: 16ch; margin: 0 auto; font-size: clamp(2.25rem, 3.6vw + 1.2rem, 4rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.final p { max-width: 32rem; margin: 16px auto 0; font-size: 18px; color: rgba(255, 255, 255, .85); }
.final .cta { margin-top: 28px; }

/* Pied de page : il réserve la place du bandeau fixe pour que rien n'y reste caché. */
.foot { padding: 40px 0 calc(var(--bar-space) + 16px); font-size: 14px; color: var(--muted); }
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--violet); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.foot ul { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 12px; padding: 0; list-style: none; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-underline-offset: 3px; }
.credits { margin-top: 8px; font-size: 12px; }

/* ---------- Bandeau fixe, centré en bas ---------- */
.bar {
  position: fixed; z-index: 50; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100% - 32px);
  padding: 8px 8px 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.bar .cta { min-height: 48px; padding: 0 18px; font-size: 15px; }
.bar-brand { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--violet); font-weight: 800; font-size: 20px; letter-spacing: -.03em; text-decoration: none; }
.bar-brand .brand-mark { width: 24px; height: 24px; }
/* Sous 360 px, le logo seul : le bouton garde tout son texte. */
.bar-brand span { display: none; }

/* ---------- Effets au défilement ----------
   En CSS seulement, pour les navigateurs qui les connaissent et si le système ne demande pas moins
   de mouvement. Ailleurs, la page reste fixe et complète. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-copy { animation: accroche-sort linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .hero .ph { animation: photo-monte linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .hero::after { animation: voile linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .sheet-art .onb-phones { animation: telephones-arrivent linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  }
}
@keyframes accroche-sort { to { opacity: 0; translate: 0 -56px; scale: .96; } }
@keyframes photo-monte { to { translate: 0 calc(var(--depth, 40) * -1px); } }
@keyframes voile { to { opacity: .55; } }
@keyframes telephones-arrivent { from { opacity: .4; translate: 0 72px; scale: .94; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- 22.5rem (360 px) : le nom PRAYZ revient dans le bandeau ---------- */
@media (min-width: 22.5rem) {
  .bar-brand span { display: inline; }
}

/* ---------- Écran assez haut : l'accroche reste en place pendant que l'écran violet remonte ----------
   Sur un écran plus petit, elle défile normalement : rien n'y serait recouvert avant d'être lu. */
@media (min-height: 42rem) {
  .hero { position: sticky; top: 0; }
}

/* ---------- 40rem : grand téléphone couché, petite tablette ---------- */
@media (min-width: 40rem) {
  :root { --gutter-l: max(24px, env(safe-area-inset-left, 0px)); --gutter-r: max(24px, env(safe-area-inset-right, 0px)); }
  .ph-louange { display: block; }
  .ph-rassemblement { --x: 11%; }
  .ph-cercle { --x: 34%; }
  .ph-mains { --x: 90%; }
  .ph-repas { --x: 13%; }
  .ph-bapteme { --x: 40%; }
  .ph-assemblee { --x: 84%; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar { gap: 20px; padding-left: 18px; }
  .bar .cta { padding: 0 22px; font-size: 16px; }
}

/* ---------- 48rem : tablette ---------- */
@media (min-width: 48rem) {
  .section { padding: 104px 0; }
  .sheet { border-radius: 40px 40px 0 0; padding: 96px 0 128px; }
  .sheet-in { grid-template-columns: minmax(0, 1fr) minmax(0, 25rem); align-items: center; gap: 56px; }
  .features { gap: 88px; margin-top: 56px; }
  .feature { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
  .feature:nth-child(even) .feature-art { order: 2; }
  .feature h3 { font-size: 32px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps li { padding: 72px 20px 22px; }
  .steps li::before { top: 20px; }
  .final { padding: 120px 0; }
}

/* ---------- 64rem : ordinateur. Photos tout autour, comme dans le brouillon ---------- */
@media (min-width: 64rem) {
  .hero {
    --band: clamp(9rem, 24svh, 15rem);
    grid-template-columns: minmax(0, 1fr) minmax(0, 52rem) minmax(0, 1fr);
    grid-template-areas: "top top top" "left copy right" "bottom bottom bottom";
  }
  .band-left, .band-right { display: block; }
  .band-left { grid-area: left; }
  .band-right { grid-area: right; }
  .band-left .ph, .band-right .ph { top: 50%; height: auto; width: min(72%, 11rem); transform: translate(-50%, -50%) rotate(var(--r)); }
  .hero .lead { font-size: 20px; }
  .ph-rassemblement { --x: 13%; --s: .82; top: auto; bottom: 4%; }
  .ph-cercle { --x: 26%; --s: .7; top: -12%; bottom: auto; }
  .ph-louange { --x: 75%; --s: .66; top: -10%; bottom: auto; }
  .ph-mains { --x: 87%; --s: .78; top: auto; bottom: 6%; }
  .ph-repas { --x: 14%; --s: .7; top: 6%; }
  .ph-bapteme { --x: 27%; --s: .84; bottom: -14%; }
  .ph-assemblee { --x: 80%; --s: .82; top: 8%; }
  .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* Les téléphones sont dessinés pour 400 px de large : on les agrandit d'un bloc. */
  .sheet-in { grid-template-columns: minmax(0, 1fr) minmax(0, 31rem); }
  .sheet-art { min-height: 420px; }
  .sheet-art .onb-phones { zoom: 1.25; }
}

/* ---------- Survol : souris et pavé tactile seulement ---------- */
@media (hover: hover) {
  .cta:hover { background: color-mix(in srgb, var(--violet) 85%, var(--ink)); }
  .cta-light:hover { background: var(--lilas); }
  .faq summary:hover { background: var(--paper-2); }
  .foot a:hover, .more a:hover { text-decoration-thickness: 2px; }
}

/* ---------- Écran tactile : cibles d'au moins 44 px ---------- */
@media (pointer: coarse) {
  .bar-brand { min-width: 44px; justify-content: center; }
}

/* ---------- Animations réduites (même règle que responsive.css pour l'app) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
