/* Site de Moireloop : vitrine + pages exigées par l'App Store (confidentialité, assistance) + mentions légales */
:root {
  --fond: #07080d;
  --fond-2: #0e1018;
  --carte: #141724;
  --trait: rgba(255, 255, 255, .09);
  --texte: #eef0f7;
  --doux: #a3a8bb;
  --accent: #6aa8ff;
  --accent-2: #b48cff;
  --rayon: 18px;
  --large: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { display: block; max-width: 100%; }
.contenu { width: min(var(--large), 100% - 32px); margin-inline: auto; }

/* barre du haut */
.barre { position: fixed; inset: 0 0 auto; z-index: 10; padding: 12px 0;
  background: rgba(7, 8, 13, .55); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .06); }
.barre .contenu { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marque { display: flex; align-items: center; gap: 10px; color: var(--texte); font-weight: 650; font-size: 18px; letter-spacing: -.01em; }
.marque:hover { text-decoration: none; }
.marque img { width: 34px; height: 34px; }
.liens { display: flex; gap: 20px; font-size: 15px; }
.liens a { color: var(--doux); }
.liens a:hover { color: var(--texte); text-decoration: none; }

/* accueil */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.hero video, .hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--fond) 0%, rgba(7, 8, 13, .55) 35%, rgba(7, 8, 13, 0) 70%); }
.hero .contenu { position: relative; z-index: 1; padding: 0 0 clamp(48px, 10vh, 110px); }
.hero h1 { margin: 0 0 14px; font-size: clamp(40px, 7vw, 84px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; max-width: 12em; }
.hero p { margin: 0 0 28px; font-size: clamp(17px, 2vw, 21px); color: #d6d9e6; max-width: 34em; }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.bouton { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
  background: var(--texte); color: #0b0c12; font-weight: 600; font-size: 16px; }
.bouton:hover { text-decoration: none; background: #fff; }
.bouton.second { background: rgba(255, 255, 255, .1); color: var(--texte); border: 1px solid var(--trait); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.bouton.second:hover { background: rgba(255, 255, 255, .16); }
.bouton svg { width: 18px; height: 18px; }
.note { font-size: 14px; color: var(--doux); }

section { padding: clamp(64px, 10vw, 120px) 0; }
.titre { margin: 0 0 12px; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; }
.chapo { margin: 0 0 44px; color: var(--doux); font-size: 19px; max-width: 38em; }

/* points forts */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.point { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 26px; }
.point b { display: block; font-size: 18px; margin-bottom: 6px; letter-spacing: -.01em; }
.point span { color: var(--doux); font-size: 16px; }
.point .pastille { width: 38px; height: 38px; border-radius: 11px; margin-bottom: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0b0c12; }
.point .pastille svg { width: 20px; height: 20px; }

/* galerie */
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tuile { margin: 0; position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--carte); border: 1px solid var(--trait); }
.tuile img, .tuile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tuile video { opacity: 0; transition: opacity .5s ease; }
.tuile.joue video { opacity: 1; }
.tuile figcaption { position: absolute; left: 12px; bottom: 10px; z-index: 1; font-size: 14px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; background: rgba(7, 8, 13, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (max-width: 860px) { .galerie { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .galerie { grid-template-columns: 1fr; } .liens a.cache-mobile { display: none; } }

/* étapes */
.etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: e; }
.etape { padding: 24px 0 0; border-top: 1px solid var(--trait); }
.etape::before { counter-increment: e; content: counter(e); display: block; font-size: 15px; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.etape b { display: block; font-size: 18px; margin-bottom: 4px; }
.etape span { color: var(--doux); font-size: 16px; }

/* questions */
details { border-bottom: 1px solid var(--trait); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--doux); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--doux); }

/* fin de page */
.appel { text-align: center; }
.appel img { width: 96px; height: 96px; margin: 0 auto 20px; }
.appel .boutons { justify-content: center; }
footer { border-top: 1px solid var(--trait); padding: 32px 0 48px; font-size: 14px; color: var(--doux); }
footer .contenu { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--doux); }

/* pages de texte (confidentialité, assistance, mentions) */
.page { padding: 130px 0 80px; }
.page .contenu { max-width: 760px; }
.page h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 8px; }
.page .maj { color: var(--doux); font-size: 15px; margin: 0 0 40px; }
.page h2 { font-size: 22px; letter-spacing: -.01em; margin: 40px 0 8px; }
.page p, .page li { color: #cfd2df; }
.page ul { padding-left: 1.2em; }
.page .encadre { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 20px 24px; margin: 24px 0; }

@media (prefers-reduced-motion: reduce) { .hero video, .tuile video { display: none; } }
