/* Page de présentation de Le Radar (RAD-209, DT-99). Thème « violet nuit et rose » de
   l'application mobile (apps/mobile/src/lib/theme.ts). Aucune ressource externe : polices du
   système, icônes en SVG dans la page, aucun script. */

:root {
  color-scheme: dark;
  --fond: #120d1c;
  --surface: #1d1530;
  --surface-2: #2a1f42;
  --bordure: #3d2f5c;
  --texte: #f6eeff;
  --texte-2: #c9bbe2;
  --texte-3: #9a8bba;
  --accent: #ff5caf;
  --accent-doux: rgba(255, 92, 175, 0.14);
  --succes: #4cb37a;
  --info: #8fb2ff;
  --alerte: #e0b44c;
  --rayon: 16px;
  --largeur: 1080px;
  --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.lien-evitement {
  position: absolute;
  left: -9999px;
  top: 0;
}
.lien-evitement:focus {
  left: 16px;
  top: 16px;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}

.conteneur {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 20px;
}

/* En-tête */

.entete {
  position: relative;
  overflow: hidden;
  padding: 56px 0 64px;
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(255, 92, 175, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(143, 178, 255, 0.08), transparent 70%);
  border-bottom: 1px solid var(--bordure);
}

.entete .conteneur {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
}

.marque {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.marque svg { width: 40px; height: 40px; flex: none; }

h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(255, 92, 175, 0.45);
}

.chapeau {
  margin: 0 0 28px;
  max-width: 34em;
  color: var(--texte-2);
  font-size: 19px;
}

.trois-volets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.trois-volets li {
  padding: 8px 14px;
  border: 1px solid var(--bordure);
  border-radius: 999px;
  background: var(--surface);
  color: var(--texte-2);
  font-size: 15px;
}
.trois-volets strong { color: var(--texte); }

/* Téléphone illustratif */

.telephone {
  justify-self: center;
  width: min(300px, 100%);
  padding: 14px;
  border-radius: 40px;
  background: #0b0812;
  border: 1px solid var(--bordure);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(255, 92, 175, 0.12);
}
.ecran {
  border-radius: 28px;
  background: var(--fond);
  padding: 18px 14px 20px;
  overflow: hidden;
}
.ecran-haut {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.ecran-titre { font-weight: 700; font-size: 19px; }
.ecran-secteur { color: var(--texte-3); font-size: 12px; }
.pilules {
  display: flex;
  gap: 6px;
  margin: 10px 0 14px;
  flex-wrap: wrap;
}
.pilule {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--bordure);
  color: var(--texte-2);
  font-size: 11px;
}
.pilule.active { background: var(--accent); border-color: var(--accent); color: var(--fond); font-weight: 600; }

.rangee {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--surface);
}
.rangee.calme { opacity: 0.6; }
.vignette {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--surface-2), var(--bordure));
}
.vignette.rose { background: linear-gradient(135deg, #ff5caf, #7a3dff); }
.vignette.bleu { background: linear-gradient(135deg, #8fb2ff, #3d2f5c); }
.ligne {
  height: 9px;
  border-radius: 5px;
  background: var(--surface-2);
  margin-bottom: 6px;
}
.ligne.courte { width: 55%; }
.etiquette-soiree {
  display: inline-block;
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}
.etiquette-soiree.verte { color: var(--succes); }

/* Sommaire */

.sommaire {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(18, 13, 28, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bordure);
}
.sommaire ul {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.sommaire ul::-webkit-scrollbar { display: none; }
.sommaire a {
  display: block;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--texte-2);
  text-decoration: none;
  font-size: 15px;
}
.sommaire a:hover { background: var(--surface); color: var(--texte); }

/* Sections */

section { padding: 72px 0 24px; scroll-margin-top: 56px; }

.surtitre {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.intro {
  margin: 0 0 32px;
  max-width: 44em;
  color: var(--texte-2);
}

.grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.grille.quatre { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.carte {
  padding: 22px;
  border-radius: var(--rayon);
  background: var(--surface);
  border: 1px solid var(--bordure);
}
.carte.vedette {
  border-color: rgba(255, 92, 175, 0.55);
  background: linear-gradient(160deg, rgba(255, 92, 175, 0.1), var(--surface) 55%);
}
.carte h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.3;
}
.carte p { margin: 0 0 8px; color: var(--texte-2); }
.carte p:last-child { margin-bottom: 0; }
.carte ul { margin: 6px 0 0; padding-left: 20px; color: var(--texte-2); }
.carte li { margin-bottom: 4px; }

.icone {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: var(--accent-doux);
  color: var(--accent);
}
.icone svg { width: 20px; height: 20px; }

.nouveau {
  display: inline-block;
  margin: 0 0 10px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--fond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.carte p.nouveau { color: var(--fond); margin-bottom: 10px; }

/* Bloc large (deux colonnes) */

.bloc-large {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.regles {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.regles th, .regles td {
  padding: 10px 0;
  border-bottom: 1px solid var(--bordure);
  text-align: left;
  vertical-align: top;
}
.regles th { width: 42%; padding-right: 16px; color: var(--texte); font-weight: 600; }
.regles td { color: var(--texte-2); }
.regles tr:last-child th, .regles tr:last-child td { border-bottom: 0; }

.etapes {
  counter-reset: etape;
  margin: 0;
  padding: 0;
  list-style: none;
}
.etapes li {
  counter-increment: etape;
  position: relative;
  padding: 0 0 14px 44px;
  color: var(--texte-2);
}
.etapes li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-doux);
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}
.etapes strong { color: var(--texte); }

/* Volontairement laissé de côté */

.exclus {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.exclus li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px dashed var(--bordure);
  color: var(--texte-3);
  font-size: 15px;
}

/* Pied */

.pied {
  margin-top: 72px;
  padding: 48px 0 56px;
  border-top: 1px solid var(--bordure);
  background: radial-gradient(ellipse 50% 80% at 50% 0%, rgba(255, 92, 175, 0.08), transparent 70%);
  text-align: center;
}
.pied p { margin: 0 auto 10px; max-width: 36em; color: var(--texte-2); }
.pied .petit { color: var(--texte-3); font-size: 14px; }

/* Petits écrans */

@media (max-width: 820px) {
  .entete { padding: 36px 0 44px; }
  .entete .conteneur { grid-template-columns: 1fr; gap: 36px; }
  .bloc-large { grid-template-columns: 1fr; }
  section { padding-top: 56px; }
  body { font-size: 16px; }
  .chapeau { font-size: 17px; }
}

@media (max-width: 380px) {
  .conteneur { padding: 0 16px; }
  .grille { grid-template-columns: 1fr; }
  .carte { padding: 18px; }
}

@media print {
  :root {
    color-scheme: light;
    --fond: #ffffff;
    --surface: #ffffff;
    --surface-2: #eeeeee;
    --bordure: #cccccc;
    --texte: #111111;
    --texte-2: #333333;
    --texte-3: #555555;
    --accent: #b0006a;
    --accent-doux: #fbe3f0;
  }
  .sommaire, .lien-evitement, .telephone { display: none; }
  .entete .conteneur { grid-template-columns: 1fr; }
  .carte { break-inside: avoid; }
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
