/* OutSider — site vitrine. Identité de l'app (front/OutSider/DesignSystem/Theme.swift) : encre, ivoire, violets. */

@font-face {
  font-family: "Inter OS"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter OS"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --encre: #07050D;
  --surface: #120D1E;
  --surface-2: #1A1329;
  --ivoire: #F6F3FB;
  --ivoire-2: rgba(246, 243, 251, 0.72);
  --gris: rgba(246, 243, 251, 0.52);
  --filet: rgba(246, 243, 251, 0.10);
  --filet-2: rgba(246, 243, 251, 0.18);
  --violet: #7C3AED;
  --violet-vif: #A855F7;
  --lavande: #C6A4FF;
  --vert: #6EE7B7;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter OS", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --gouttiere: clamp(16px, 4.5vw, 48px);
  --largeur: 1200px;
  --courbe: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--encre); color: var(--ivoire);
  font: 400 17px/1.55 var(--sans); letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(168, 85, 247, 0.4); }
:focus-visible { outline: 2px solid var(--lavande); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
p { text-wrap: pretty; }

/* Fond : deux halos, très lents */
.fond { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.fond span { position: absolute; border-radius: 50%; filter: blur(90px); animation: derive 40s ease-in-out infinite alternate; }
.fond span:nth-child(1) { width: 70vmax; height: 70vmax; left: -25vmax; top: -40vmax; background: radial-gradient(closest-side, rgba(124, 58, 237, 0.38), transparent); }
.fond span:nth-child(2) { width: 55vmax; height: 55vmax; right: -25vmax; top: 35vh; background: radial-gradient(closest-side, rgba(88, 28, 135, 0.42), transparent); animation-delay: -15s; }
@keyframes derive { to { transform: translate3d(5vmax, 5vmax, 0) scale(1.1); } }

/* ===== Barre de navigation flottante ===== */
.barre {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 2 * var(--gouttiere)), 980px);
  display: flex; align-items: center; gap: 24px; padding: 8px 8px 8px 18px; border-radius: 999px;
  background: rgba(18, 13, 30, 0.62); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--filet), 0 12px 40px -20px rgba(0, 0, 0, 0.8);
}
.marque { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.marque span { font-weight: 650; font-size: 16px; letter-spacing: -0.02em; }
.barre__nav { display: flex; gap: 4px; margin-left: auto; }
.barre__nav a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--gris); text-decoration: none; transition: color .2s, background .2s; }
.barre__nav a:hover { color: var(--ivoire); background: rgba(246, 243, 251, 0.06); }

/* ===== Boutons ===== */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font: 600 15px/1 var(--sans); letter-spacing: -0.01em; color: #fff;
  background: linear-gradient(180deg, #B46BFA, #7C3AED);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.2), 0 14px 40px -14px rgba(168, 85, 247, 0.9);
  transition: transform .25s var(--courbe), box-shadow .25s, filter .25s;
}
.bouton:hover { transform: translateY(-2px); filter: brightness(1.08); }
.bouton:active { transform: translateY(0) scale(.98); }
.bouton--petit { min-height: 38px; padding: 0 16px; font-size: 14px; }
.bouton--verre { background: rgba(246, 243, 251, 0.07); box-shadow: inset 0 0 0 1px var(--filet-2); color: var(--ivoire); }
.bouton--verre:hover { background: rgba(246, 243, 251, 0.12); }

.surtitre { margin: 0 0 16px; font-size: 14px; font-weight: 600; color: var(--lavande); letter-spacing: -0.005em; }
.h1-ligne { display: block; }
.degrade { background: linear-gradient(100deg, var(--ivoire) 10%, var(--lavande) 55%, var(--violet-vif)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== Ouverture ===== */
.ouverture {
  max-width: var(--largeur); margin: 0 auto; min-height: 100svh;
  padding: 130px var(--gouttiere) 80px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 7px 14px 7px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--ivoire-2); background: rgba(246, 243, 251, 0.05); box-shadow: inset 0 0 0 1px var(--filet);
}
.badge__point { width: 8px; height: 8px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.16); animation: pouls 2.4s ease-in-out infinite; }
@keyframes pouls { 50% { box-shadow: 0 0 0 7px rgba(110, 231, 183, 0); } }
.ouverture h1 { font-size: clamp(42px, 5.2vw, 74px); line-height: 1.02; letter-spacing: -0.047em; }
.ouverture__chapeau { max-width: 30em; margin: 28px 0 0; font-size: clamp(18px, 1.4vw, 21px); color: var(--ivoire-2); letter-spacing: -0.015em; }
.ouverture__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.ouverture__scene { display: flex; justify-content: center; perspective: 1400px; }
.inclinable { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -14deg)); transition: transform .5s var(--courbe); }

.flottant {
  position: absolute; z-index: 3; display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 18px;
  font-size: 12px; line-height: 1.35; color: var(--ivoire-2);
  background: rgba(26, 19, 41, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--filet-2), 0 24px 50px -20px rgba(0, 0, 0, 0.9);
  transform: translateZ(60px); animation: flotte 7s ease-in-out infinite;
}
.flottant b { color: var(--ivoire); font-weight: 600; }
.flottant--invitation { left: -78px; top: 120px; flex-direction: column; align-items: flex-start; gap: 4px; }
.flottant__titre { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gris); }
.flottant__code { font: 600 16px/1 var(--mono); letter-spacing: 0.06em; color: var(--ivoire); }
.flottant--presence { right: -56px; bottom: 140px; animation-delay: -3.5s; }
.flottant__icone { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(110, 231, 183, 0.16); color: var(--vert); font-weight: 700; }
@keyframes flotte { 50% { transform: translateZ(60px) translateY(-10px); } }

/* ===== Bandeau ===== */
.bandeau {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px;
  max-width: var(--largeur); margin: 0 auto; padding: 28px var(--gouttiere);
  border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet);
}
.bandeau p { margin: 0; font-size: clamp(15px, 1.5vw, 19px); font-weight: 600; letter-spacing: -0.02em; color: var(--ivoire-2); }
.bandeau span { color: var(--violet-vif); }

/* ===== Téléphone ===== */
.telephone {
  --l: 316px; position: relative; width: var(--l); aspect-ratio: 316 / 650; flex: none;
  padding: 11px; border-radius: 56px;
  background: linear-gradient(145deg, #3a3346, #15111d 30%, #0d0a13 70%, #2c2537);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08), inset 0 0 0 3px #08060c,
    0 50px 100px -30px rgba(0, 0, 0, 0.95), 0 0 120px -40px rgba(168, 85, 247, 0.55);
}
.telephone__ecran { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 46px; background: var(--encre); isolation: isolate; }
.telephone__ecran::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(120% 70% at 50% -10%, rgba(88, 28, 135, 0.75), transparent 60%), radial-gradient(90% 60% at 100% 100%, rgba(124, 58, 237, 0.25), transparent 70%); }
.ilot { position: absolute; z-index: 20; top: 11px; left: 50%; width: 92px; height: 27px; margin-left: -46px; border-radius: 20px; background: #000; }

.ecran {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column;
  opacity: 0; transform: scale(.97) translateY(14px); filter: blur(4px);
  transition: opacity .55s var(--courbe), transform .65s var(--courbe), filter .55s;
  font-size: 12.5px; line-height: 1.4; letter-spacing: -0.01em; pointer-events: none;
}
.ecran.actif,
.telephone[data-ecran="accueil"] [data-nom="accueil"], .telephone[data-ecran="invitation"] [data-nom="invitation"],
.telephone[data-ecran="evenements"] [data-nom="evenements"], .telephone[data-ecran="scan"] [data-nom="scan"],
.telephone[data-ecran="participants"] [data-nom="participants"], .telephone[data-ecran="conversation"] [data-nom="conversation"],
.telephone[data-ecran="notification"] [data-nom="notification"] { opacity: 1; transform: none; filter: none; }

.statut { display: flex; justify-content: space-between; align-items: center; height: 50px; padding: 0 28px 0 34px; font-size: 13px; font-weight: 600; flex: none; }
.statut__icones { display: flex; gap: 4px; align-items: center; }
.statut__icones i { display: block; width: 15px; height: 10px; border-radius: 2px; background: var(--ivoire); opacity: .9; }
.statut__icones i:nth-child(1) { width: 14px; clip-path: polygon(0 100%, 25% 100%, 25% 70%, 37% 70%, 37% 100%, 50% 100%, 50% 40%, 62% 40%, 62% 100%, 75% 100%, 75% 10%, 87% 10%, 87% 100%, 100% 100%, 100% 0, 100% 100%); }
.statut__icones i:nth-child(2) { width: 13px; border-radius: 50% 50% 2px 2px / 100% 100% 2px 2px; opacity: .85; }
.statut__icones i:nth-child(3) { width: 22px; height: 11px; border-radius: 3.5px; background: transparent; box-shadow: inset 0 0 0 1.2px rgba(246, 243, 251, 0.5), inset 0 0 0 3px var(--encre), inset 0 0 0 9px var(--ivoire); }

/* Composants de l'app */
.app-page { position: relative; flex: 1; display: flex; flex-direction: column; padding: 8px 20px 22px; }
.app-retour { margin: 0 0 14px; color: var(--lavande); font-size: 13px; }
.app-titre { margin: 0 0 6px; font-size: 21px; font-weight: 700; letter-spacing: -0.03em; }
.app-titre--grand { font-size: 28px; margin: 6px 0 14px; }
.app-texte { margin: 0 0 16px; color: var(--gris); }
.app-aide { margin: 10px 0 0; font-size: 11px; color: var(--gris); }
.app-bouton {
  display: grid; place-items: center; height: 46px; margin-top: auto; border-radius: 999px;
  font-weight: 600; font-size: 14px; color: #fff; background: linear-gradient(180deg, #B46BFA, #7C3AED);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 30px -10px rgba(168, 85, 247, .9);
}
.app-bouton--petit { height: 36px; margin-top: 12px; font-size: 12px; }
.app-lien { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--gris); }
.app-lien b { color: var(--ivoire); font-weight: 600; }

/* 1. Accueil */
.accueil { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 22px 22px; }
.accueil__logo { width: 54px; height: auto; filter: drop-shadow(0 0 24px rgba(198, 164, 255, .7)); }
.accueil__nom { margin: 12px 0 34px; font: 600 26px/1 ui-serif, "New York", Georgia, serif; letter-spacing: 0; }
.accueil__ligne { margin: 0 0 8px; font: 400 17px/1.25 ui-serif, "New York", Georgia, serif; letter-spacing: 0; color: var(--ivoire-2); }
.accueil__ligne--claire { color: var(--ivoire); }
.accueil__mention { margin: 18px 0 0; font-size: 11px; color: var(--gris); }
.accueil .app-bouton { width: 100%; }

/* 2. Code d'invitation */
.champ-code {
  display: flex; align-items: center; height: 52px; padding: 0 16px; border-radius: 14px;
  background: rgba(246, 243, 251, 0.05); box-shadow: inset 0 0 0 1.5px rgba(198, 164, 255, .5);
  font: 600 19px/1 var(--mono); letter-spacing: 0.08em;
}
.curseur { width: 2px; height: 22px; margin-left: 2px; background: var(--lavande); animation: clignote 1s steps(1) infinite; }
@keyframes clignote { 50% { opacity: 0; } }
[data-nom="invitation"] .app-bouton { opacity: .45; transition: opacity .3s, box-shadow .3s; }
[data-nom="invitation"].valide .app-bouton { opacity: 1; }
.toast {
  position: absolute; left: 20px; right: 20px; bottom: 80px; padding: 12px 14px; border-radius: 16px; text-align: center; font-weight: 600;
  background: rgba(110, 231, 183, 0.14); color: var(--vert); box-shadow: inset 0 0 0 1px rgba(110, 231, 183, .3);
  opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .5s var(--courbe);
}
[data-nom="invitation"].valide .toast { opacity: 1; transform: none; transition-delay: .45s; }

/* 3. Événements */
.carte-evt { padding: 14px 16px; border-radius: 18px; margin-bottom: 10px; background: rgba(26, 19, 41, 0.85); box-shadow: inset 0 0 0 1px var(--filet); }
.carte-evt--direct { background: linear-gradient(160deg, rgba(124, 58, 237, .35), rgba(26, 19, 41, .9) 60%); box-shadow: inset 0 0 0 1px rgba(198, 164, 255, .35); }
.carte-evt--attenue { opacity: .6; }
.carte-evt__quand { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 11px; font-weight: 600; color: var(--lavande); }
.carte-evt__titre { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.carte-evt__lieu { margin: 2px 0 0; color: var(--gris); font-size: 12px; }
.pastille-direct { width: 6px; height: 6px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 8px var(--vert); }
.onglets { display: flex; justify-content: space-around; margin: auto -20px -22px; padding: 12px 0 20px; border-top: 1px solid var(--filet); background: rgba(7, 5, 13, .6); font-size: 10.5px; color: var(--gris); }
.onglets .actif { color: var(--lavande); font-weight: 600; }
.telephone[data-ecran="evenements"] .carte-evt { animation: monte .6s var(--courbe) both; }
.telephone[data-ecran="evenements"] .carte-evt:nth-child(3) { animation-delay: .1s; }
.telephone[data-ecran="evenements"] .carte-evt:nth-child(4) { animation-delay: .2s; }
@keyframes monte { from { opacity: 0; transform: translateY(18px); } }

/* 4. Scan */
.ecran--scan { background: radial-gradient(80% 50% at 50% 40%, #2a2235, #050307); }
.viseur { position: relative; width: 196px; height: 196px; margin: 70px auto 0; }
.viseur__qr { position: absolute; inset: 22px; display: grid; grid-template-columns: repeat(21, 1fr); padding: 8px; border-radius: 10px; background: var(--ivoire); filter: blur(.3px); transform: rotate(-4deg) scale(.96); }
.viseur__qr i { background: var(--encre); opacity: 0; }
.viseur__qr i.on { opacity: 1; }
.coin { position: absolute; width: 34px; height: 34px; border: 3px solid var(--ivoire); }
.coin--1 { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.coin--2 { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 14px 0 0; }
.coin--3 { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 14px; }
.coin--4 { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.viseur__ligne { position: absolute; left: 12px; right: 12px; top: 16px; height: 2px; border-radius: 2px; background: var(--lavande); box-shadow: 0 0 16px 3px rgba(198, 164, 255, .8); opacity: 0; }
.telephone[data-ecran="scan"] .viseur__ligne { animation: balaye 1.4s ease-in-out .2s 1 both; }
@keyframes balaye { 0% { opacity: 0; top: 16px; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; top: 176px; } }
.telephone[data-ecran="scan"] .coin { animation: verrouille .5s var(--courbe) 1.5s both; }
@keyframes verrouille { to { border-color: var(--vert); transform: scale(.92); } }
.scan__aide { text-align: center; margin: 26px 0 0; color: var(--ivoire-2); }
.succes {
  position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px;
  background: rgba(7, 5, 13, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0;
}
.telephone[data-ecran="scan"] .succes { animation: apparait-succes .6s var(--courbe) 2.1s both; }
@keyframes apparait-succes { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.succes__cercle { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; font-size: 30px; font-weight: 700; color: var(--vert); background: rgba(110, 231, 183, .14); box-shadow: 0 0 0 10px rgba(110, 231, 183, .06), 0 0 40px rgba(110, 231, 183, .4); }
.succes__titre { margin: 18px 0 6px; font: 600 22px/1.15 ui-serif, "New York", Georgia, serif; letter-spacing: 0; }
.succes__texte { margin: 0; color: var(--ivoire-2); font-size: 12.5px; }

/* 5. Participants */
.personnes { list-style: none; margin: 0; padding: 0; }
.personnes li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--filet); }
.telephone[data-ecran="participants"] .personnes li { animation: monte .5s var(--courbe) both; }
.telephone[data-ecran="participants"] .personnes li:nth-child(2) { animation-delay: .06s; }
.telephone[data-ecran="participants"] .personnes li:nth-child(3) { animation-delay: .12s; }
.telephone[data-ecran="participants"] .personnes li:nth-child(4) { animation-delay: .18s; }
.telephone[data-ecran="participants"] .personnes li:nth-child(5) { animation-delay: .24s; }
.telephone[data-ecran="participants"] .personnes li:nth-child(6) { animation-delay: .3s; }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.avatar--petit { width: 30px; height: 30px; }
.avatar--t190 { background: radial-gradient(circle at 30% 25%, hsl(190 70% 72%), hsl(220 55% 35%)); }
.avatar--t210 { background: radial-gradient(circle at 30% 25%, hsl(210 70% 74%), hsl(240 50% 36%)); }
.avatar--t236 { background: radial-gradient(circle at 30% 25%, hsl(30 85% 75%), hsl(330 55% 42%)); }
.avatar--t268 { background: radial-gradient(circle at 30% 25%, hsl(268 85% 80%), hsl(268 55% 38%)); }
.avatar--t312 { background: radial-gradient(circle at 30% 25%, hsl(160 60% 72%), hsl(190 50% 30%)); }
.avatar--t340 { background: radial-gradient(circle at 30% 25%, hsl(340 80% 78%), hsl(300 45% 36%)); }
.personnes__nom { flex: 1; font-weight: 600; font-size: 14px; }
.etiquette { padding: 6px 11px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--ivoire); background: rgba(246, 243, 251, .08); box-shadow: inset 0 0 0 1px var(--filet-2); }
.etiquette--ok { color: var(--vert); background: rgba(110, 231, 183, .1); box-shadow: inset 0 0 0 1px rgba(110, 231, 183, .25); }
.etiquette--accent { color: #fff; background: linear-gradient(180deg, #B46BFA, #7C3AED); box-shadow: none; }
.etiquette--bascule { display: grid; }
.etiquette--bascule span { grid-area: 1 / 1; text-align: center; transition: opacity .3s; }
.etiquette--bascule span:last-child { opacity: 0; }
.telephone[data-ecran="participants"] .etiquette--bascule { animation: presse .9s var(--courbe) 1.3s both; }
.telephone[data-ecran="participants"] .etiquette--bascule span:first-child { animation: efface .01s 1.65s both; }
.telephone[data-ecran="participants"] .etiquette--bascule span:last-child { animation: montre .3s 1.65s both; }
@keyframes presse { 30% { transform: scale(.9); } 100% { transform: none; opacity: .62; } }
@keyframes efface { to { opacity: 0; } }
@keyframes montre { to { opacity: 1; } }
.interrupteur { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding: 12px 14px; border-radius: 14px; background: rgba(26, 19, 41, .85); box-shadow: inset 0 0 0 1px var(--filet); font-size: 12px; }
.interrupteur i { width: 36px; height: 22px; border-radius: 999px; background: rgba(246, 243, 251, .15); position: relative; }
.interrupteur i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--ivoire); }

/* 6. Conversation */
.app-page--conversation { padding-top: 0; }
.conv-tete { display: flex; align-items: center; gap: 10px; padding: 6px 0 12px; border-bottom: 1px solid var(--filet); font-size: 13px; }
.conv-tete small { color: var(--gris); font-size: 10.5px; }
.bulles { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; }
.bulle { max-width: 78%; margin: 0; padding: 9px 13px; border-radius: 18px; font-size: 12.5px; line-height: 1.35; opacity: 0; transform: translateY(10px) scale(.96); }
.bulle--recue { align-self: flex-start; background: rgba(246, 243, 251, .09); border-bottom-left-radius: 6px; }
.bulle--envoyee { align-self: flex-end; background: linear-gradient(180deg, #9F5AF6, #7C3AED); border-bottom-right-radius: 6px; }
.telephone[data-ecran="conversation"] .bulle { animation: bulle .45s var(--courbe) both; }
.telephone[data-ecran="conversation"] .bulle:nth-child(1) { animation-delay: .25s; }
.telephone[data-ecran="conversation"] .bulle:nth-child(2) { animation-delay: 1.05s; }
.telephone[data-ecran="conversation"] .bulle:nth-child(3) { animation-delay: 1.85s; }
.telephone[data-ecran="conversation"] .bulle:nth-child(4) { animation-delay: 2.65s; }
@keyframes bulle { to { opacity: 1; transform: none; } }
.saisie { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(246, 243, 251, .06); box-shadow: inset 0 0 0 1px var(--filet); color: var(--gris); font-size: 12.5px; }
.saisie i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--violet); color: #fff; font-style: normal; font-weight: 700; }

/* 7. Écran verrouillé */
.ecran--verrou { background: radial-gradient(120% 80% at 50% 0%, #3b1a78, #120a24 55%, #050308); }
.verrou { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 18px 12px; }
.verrou__date { margin: 0; font-size: 14px; font-weight: 600; color: var(--ivoire-2); }
.verrou__heure { margin: 0; font-size: 76px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.notif {
  display: flex; gap: 10px; align-items: center; width: 100%; margin-top: 34px; padding: 11px 13px; border-radius: 20px;
  background: rgba(246, 243, 251, .14); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); opacity: 0;
}
.notif img { width: 34px; height: 34px; border-radius: 9px; }
.notif p { margin: 0; font-size: 12.5px; }
.notif__tete { display: flex; justify-content: space-between; gap: 12px; min-width: 200px; }
.notif__tete span { color: var(--gris); font-size: 11px; }
.notif > div { flex: 1; }
.telephone[data-ecran="notification"] .notif { animation: descend .7s var(--courbe) .5s both; }
@keyframes descend { from { opacity: 0; transform: translateY(-30px) scale(.96); } to { opacity: 1; transform: none; } }
.verrou__note { margin: auto 0 18px; font-size: 11px; color: var(--gris); }

/* ===== Histoire (défilement) ===== */
.histoire { position: relative; padding: clamp(100px, 13vw, 170px) 0 0; }
.histoire__intro { max-width: 760px; margin: 0 auto; padding: 0 var(--gouttiere); text-align: center; }
.histoire__intro h2, .section__tete h2 { font-size: clamp(38px, 5vw, 66px); line-height: 1.02; letter-spacing: -0.045em; }
.histoire__intro > p:last-child, .section__tete > p:last-child { margin: 20px auto 0; max-width: 34em; font-size: 19px; color: var(--ivoire-2); }
.histoire__corps { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.histoire__etapes { padding: 20vh 0 30vh; }
.etape { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; max-width: 30em; opacity: .28; transition: opacity .5s; }
.etape.active { opacity: 1; }
.etape__num { margin: 0 0 18px; font: 600 13px/1 var(--mono); color: var(--lavande); letter-spacing: .08em; }
.etape h3 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -0.04em; }
.etape p:last-child { margin: 18px 0 0; font-size: 18px; color: var(--ivoire-2); }
.histoire__scene { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; gap: 28px; }
.progression { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.progression li { width: 6px; height: 6px; border-radius: 3px; background: var(--filet-2); transition: height .4s var(--courbe), background .4s; }
.progression li.active { height: 22px; background: var(--lavande); }

/* ===== Sections ===== */
.section { max-width: var(--largeur); margin: 0 auto; padding: clamp(110px, 14vw, 180px) var(--gouttiere) 0; }
.section--etroite { max-width: 860px; }
.section__tete { text-align: center; max-width: 760px; margin: 0 auto clamp(48px, 6vw, 72px); }

[data-lumiere] { position: relative; overflow: hidden; }
[data-lumiere]::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(168, 85, 247, .16), transparent 60%);
}
[data-lumiere]:hover::before { opacity: 1; }

.grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tuile { padding: 30px 28px 32px; border-radius: 26px; background: linear-gradient(180deg, rgba(26, 19, 41, .7), rgba(18, 13, 30, .45)); box-shadow: inset 0 0 0 1px var(--filet); transition: transform .4s var(--courbe), box-shadow .4s; }
.tuile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(198, 164, 255, .28); }
.tuile__chiffre { margin: 0; font-size: clamp(40px, 4vw, 54px); font-weight: 800; line-height: 1; letter-spacing: -0.05em; background: linear-gradient(180deg, var(--ivoire), var(--lavande)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tuile h3 { margin: 10px 0 12px; font-size: 18px; font-weight: 650; letter-spacing: -0.02em; }
.tuile p:last-child { margin: 0; color: var(--gris); font-size: 15px; }

.organisateurs {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center;
  padding: clamp(36px, 6vw, 80px); border-radius: 36px;
  background: radial-gradient(90% 120% at 100% 0%, rgba(124, 58, 237, .4), transparent 60%), linear-gradient(160deg, rgba(26, 19, 41, .92), rgba(10, 7, 18, .92));
  box-shadow: inset 0 0 0 1px rgba(198, 164, 255, .18);
}
.organisateurs h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.03; letter-spacing: -0.045em; }
.organisateurs__texte > p:not(.surtitre) { margin: 20px 0 32px; color: var(--ivoire-2); font-size: 18px; max-width: 30em; }
.organisateurs__qr { display: flex; justify-content: center; }
.qr-orga { width: min(280px, 100%); padding: 22px 22px 18px; border-radius: 30px; text-align: center; background: rgba(7, 5, 13, .7); box-shadow: inset 0 0 0 1px var(--filet-2), 0 40px 80px -40px rgba(0, 0, 0, .9); }
.qr-orga__titre { margin: 0 0 14px; font-weight: 650; font-size: 15px; }
.qr-orga__grille { display: grid; grid-template-columns: repeat(25, 1fr); aspect-ratio: 1; padding: 12px; border-radius: 18px; background: var(--ivoire); box-shadow: 0 0 70px -15px rgba(168, 85, 247, .8); }
.qr-orga__grille i, .viseur__qr i { aspect-ratio: 1; }
.qr-orga__grille i { background: var(--encre); transform: scale(0); transition: transform .4s var(--courbe); }
.qr-orga__grille i.on { transform: scale(1.02); }
.qr-orga__code { margin: 16px 0 6px; font: 700 26px/1 var(--mono); letter-spacing: .14em; }
.qr-orga__minuteur { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: 12.5px; color: var(--gris); }
.qr-orga__minuteur b { color: var(--ivoire); font-variant-numeric: tabular-nums; }
.qr-orga__minuteur svg { width: 16px; height: 16px; transform: rotate(-90deg); }
.qr-orga__minuteur circle { fill: none; stroke: var(--filet-2); stroke-width: 3.5; }
.qr-orga__minuteur circle:last-child { stroke: var(--lavande); stroke-dasharray: 97.4; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }

.questions details { border-bottom: 1px solid var(--filet); }
.questions details:first-child { border-top: 1px solid var(--filet); }
.questions summary { list-style: none; cursor: pointer; position: relative; padding: 24px 48px 24px 0; font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; letter-spacing: -0.02em; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--lavande); transition: transform .3s var(--courbe); }
.questions details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.questions details p { margin: 0 0 26px; max-width: 40em; color: var(--ivoire-2); }

.final { max-width: 820px; margin: 0 auto; padding: clamp(120px, 15vw, 200px) var(--gouttiere) 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.final img { filter: drop-shadow(0 0 30px rgba(198, 164, 255, .6)); }
.final h2 { margin-top: 28px; font-size: clamp(42px, 6vw, 80px); line-height: 1; letter-spacing: -0.05em; }
.final p { margin: 20px 0 34px; color: var(--ivoire-2); font-size: 19px; }

.pied { max-width: var(--largeur); margin: clamp(110px, 14vw, 170px) auto 0; padding: 32px var(--gouttiere) 44px; border-top: 1px solid var(--filet); display: grid; grid-template-columns: auto 1fr; gap: 16px 32px; align-items: center; }
.pied__marque { display: flex; align-items: center; gap: 9px; font-weight: 650; letter-spacing: -0.02em; }
.pied__liens { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 24px; }
.pied__liens a { color: var(--gris); text-decoration: none; font-size: 14px; }
.pied__liens a:hover { color: var(--ivoire); }
.pied__copyright { grid-column: 1 / -1; margin: 0; color: rgba(246, 243, 251, .36); font-size: 13px; }

/* Pages de texte (mentions, confidentialité, 404) */
.page { max-width: 760px; margin: 0 auto; padding: 150px var(--gouttiere) 0; }
.page h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.045em; margin-bottom: 10px; }
.page .maj { color: var(--gris); font-size: 14px; margin: 0 0 44px; }
.page h2 { margin: 44px 0 10px; font-size: 24px; letter-spacing: -0.03em; }
.page p, .page li { color: var(--ivoire-2); }
.page a { color: var(--lavande); }
.page .a-completer { color: #FFB86B; font-style: italic; }

/* Apparitions */
.js .apparait { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--courbe), transform 1s var(--courbe); }
.js .apparait.visible { opacity: 1; transform: none; }
.ouverture__texte .apparait:nth-child(2) { transition-delay: .08s; }
.ouverture__texte .apparait:nth-child(3) { transition-delay: .16s; }
.ouverture__texte .apparait:nth-child(4) { transition-delay: .24s; }
.ouverture__scene.apparait { transition-delay: .2s; }

/* ===== Adaptations ===== */
@media (max-width: 1080px) {
  .flottant--invitation { left: -30px; }
  .flottant--presence { right: -20px; }
}
@media (max-width: 900px) {
  .barre__nav { display: none; }
  .barre .bouton { margin-left: auto; }
  .ouverture { grid-template-columns: minmax(0, 1fr); padding-top: 120px; text-align: left; gap: 64px; }
  .ouverture__scene { order: 2; }
  .inclinable { --rx: 4deg; --ry: -8deg; }
  .telephone--hero { zoom: .82; }
  .flottant--invitation { left: -18px; top: 70px; }
  .flottant--presence { right: -14px; bottom: 90px; }

  .histoire__corps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .histoire__scene { display: none; }
  .histoire__etapes { padding: 24px 0 0; }
  .etape { min-height: 0; max-width: none; opacity: 1; padding: 64px 0 8px; align-items: stretch; }
  .etape h3 { font-size: 30px; }
  .etape p:last-child { margin-top: 12px; font-size: 16.5px; }
  .etape .telephone { zoom: .8; margin: 36px auto 0; }

  .grille { grid-template-columns: minmax(0, 1fr); }
  .organisateurs { grid-template-columns: minmax(0, 1fr); }
  .pied { grid-template-columns: 1fr; }
  .pied__liens { justify-content: flex-start; }
}
@media (min-width: 901px) and (max-width: 1100px) { .grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .flottant--invitation { display: none; } .flottant--presence { right: -6px; bottom: 70px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js .apparait { opacity: 1; transform: none; }
  .inclinable { transform: none; }
}
