/* =========================================================================
   Flora Player — feuille de style commune
   Palette reprise a l'identique de ui/theme/Theme.kt.
   ========================================================================= */

/* Polices hebergees ici meme : le site affirme ne transmettre aucune donnee,
   il ne peut pas envoyer l'adresse IP du visiteur a un service tiers. */
@font-face {
  font-family: 'Outfit';
  src: url('polices/outfit.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('polices/work-sans.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #03060F;
  --ink-soft: #060D1B;
  --card: #0B1325;
  --border: #152036;
  --border-vif: #1d2a45;
  --text: #FBFBFB;
  --muted: #9CA3B5;
  --cyan: #1FC5FA;
  --blue: #208FF8;
  --deep: #2F70F4;
  --violet: #8445F6;
  --indigo: #5658F5;

  --rayon: 16px;
  --rayon-s: 10px;
  --max: 68rem;
  --max-texte: 52rem;

  --z-nav: 50;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', 'Work Sans', sans-serif;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0;
}

p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; }

a {
  color: var(--cyan);
  text-decoration-color: rgba(31, 197, 250, .4);
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
a:hover { color: #7ADCFF; text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.saut-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cyan);
  color: #001622;
  padding: .8rem 1.2rem;
  border-radius: 0 0 var(--rayon-s) 0;
  font-weight: 600;
  z-index: 100;
}
.saut-contenu:focus { left: 0; }

.contenant {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.contenant-texte { max-width: var(--max-texte); }

/* ------------------------------------------------------------ navigation */

.nav {
  position: sticky;
  top: 1rem;
  z-index: var(--z-nav);
  margin: 1rem 1rem 0;
}
.nav-boite {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .7rem 1.1rem;
  background: rgba(11, 19, 37, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.nav-marque {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.nav-marque img { width: 30px; height: 30px; }
.nav-liens { display: flex; gap: 1.4rem; align-items: center; }
.nav-liens a {
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  transition: color .2s ease;
}
.nav-liens a:hover { color: var(--text); }
@media (max-width: 46rem) {
  .nav-liens { display: none; }
}

/* ----------------------------------------------------------------- boutons */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.bouton svg { width: 19px; height: 19px; flex: none; }

.bouton-plein {
  background: linear-gradient(135deg, var(--cyan), var(--indigo));
  color: #00131F;
  box-shadow: 0 6px 22px rgba(31, 197, 250, .22);
}
.bouton-plein:hover {
  color: #00131F;
  box-shadow: 0 8px 28px rgba(31, 197, 250, .34);
}

.bouton-fantome {
  background: rgba(255, 255, 255, .04);
  border-color: var(--border-vif);
  color: var(--text);
}
.bouton-fantome:hover {
  background: rgba(255, 255, 255, .08);
  border-color: var(--cyan);
  color: var(--text);
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  padding: 5rem 0 4.5rem;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 620px; height: 620px;
  top: -330px; left: -180px;
  background: rgba(31, 197, 250, .15);
}
.hero::after {
  width: 560px; height: 560px;
  top: -160px; right: -220px;
  background: rgba(132, 69, 246, .16);
}
.hero > * { position: relative; z-index: 1; }

.hero-grille {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 56rem) {
  .hero-grille { grid-template-columns: 1fr; gap: 3rem; }
  .hero { padding: 3.5rem 0 3rem; text-align: center; }
  .hero-actions { justify-content: center; }
  .etiquette { margin-inline: auto; }
}

.etiquette {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .9rem .35rem .5rem;
  background: rgba(31, 197, 250, .10);
  border: 1px solid rgba(31, 197, 250, .28);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--cyan);
  margin-bottom: 1.5rem;
}
.pastille {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  margin-left: .4rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.degrade {
  background: linear-gradient(120deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-chapeau {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 2rem;
}
@media (max-width: 56rem) { .hero-chapeau { margin-inline: auto; } }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-bottom: 1.5rem;
}
.hero-note {
  font-size: .9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .5rem;
}
@media (max-width: 56rem) { .hero-note { justify-content: center; } }
.hero-note svg { width: 16px; height: 16px; color: var(--cyan); flex: none; }

/* --------------------------------------------------- maquette d'appareil */

.tv {
  position: relative;
  background: linear-gradient(160deg, #101a30, #070c18);
  border: 1px solid var(--border-vif);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
}
.tv-ecran {
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  overflow: hidden;
}
.tv-barre { display: flex; align-items: center; gap: .5rem; }
.tv-barre span {
  height: 8px;
  border-radius: 999px;
  background: var(--border-vif);
}
.tv-barre .actif { background: linear-gradient(90deg, var(--cyan), var(--indigo)); }
.tv-vedette {
  flex: 1.4;
  border-radius: 8px;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(31, 197, 250, .28), transparent 60%),
    radial-gradient(120% 120% at 90% 100%, rgba(132, 69, 246, .30), transparent 55%),
    var(--card);
  border: 1px solid var(--border);
}
.tv-rangee { display: flex; gap: .55rem; flex: 1; }
.tv-rangee i {
  flex: 1;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--border);
}
.tv-rangee i:nth-child(2) { border-color: rgba(31, 197, 250, .45); }
.tv-pied { display: flex; gap: .45rem; justify-content: center; }
.tv-pied b {
  width: 26px; height: 5px;
  border-radius: 999px;
  background: var(--border-vif);
}
.tv-pied b:first-child { background: var(--cyan); width: 34px; }
.legende-maquette {
  margin-top: .9rem;
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
}

/* --------------------------------------------------------------- sections */

section { padding: 4.5rem 0; }

.section-titre { text-align: center; margin-bottom: 3rem; }
.section-titre .sur-titre {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .8rem;
}
.section-titre h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 700;
  margin-bottom: .9rem;
}
.section-titre p {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 auto;
}

.bande { background: var(--ink-soft); border-block: 1px solid var(--border); }

/* ----------------------------------------------------------------- cartes */

.grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.2rem;
}

.carte {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rayon);
  padding: 1.6rem;
  transition: border-color .2s ease, background-color .2s ease;
}
.carte:hover { border-color: var(--border-vif); }

.carte-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(31, 197, 250, .10);
  border: 1px solid rgba(31, 197, 250, .22);
  color: var(--cyan);
  margin-bottom: 1.1rem;
}
.carte-icone svg { width: 22px; height: 22px; }
.carte h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: .5rem; }
.carte p { color: var(--muted); font-size: .97rem; margin: 0; }

/* ------------------------------------------------------------- appareils */

.appareils {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.2rem;
}
.appareil {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rayon);
}
.appareil svg { width: 38px; height: 38px; color: var(--cyan); margin-bottom: 1rem; }
.appareil h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.appareil p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ------------------------------------------------------------ etapes */

.etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; }
.etape { position: relative; padding-top: 3.2rem; }
.etape-numero {
  position: absolute;
  top: 0; left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--indigo));
  color: #00131F;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}
.etape h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.etape p { color: var(--muted); font-size: .97rem; margin: 0; }

/* ------------------------------------------------------ confidentialite */

.encart {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  align-items: start;
  background:
    linear-gradient(135deg, rgba(31, 197, 250, .09), rgba(132, 69, 246, .09)),
    var(--card);
  border: 1px solid rgba(31, 197, 250, .26);
  border-radius: var(--rayon);
  padding: 2.2rem;
}
.encart > svg { width: 44px; height: 44px; color: var(--cyan); flex: none; }
.encart h2 { font-size: 1.55rem; margin-bottom: .8rem; }
.encart p { color: var(--muted); }
.encart p:last-of-type { margin-bottom: 1.3rem; }
@media (max-width: 40rem) {
  .encart { grid-template-columns: 1fr; padding: 1.6rem; }
}

ul.coches { list-style: none; margin: 0 0 1.4rem; padding: 0; }
ul.coches li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin: .5rem 0;
  color: var(--text);
  font-size: .98rem;
}
ul.coches svg { flex: none; width: 18px; height: 18px; margin-top: .3rem; color: var(--cyan); }

/* -------------------------------------------------------------------- faq */

.faq { max-width: var(--max-texte); margin: 0 auto; }
details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rayon-s);
  margin-bottom: .8rem;
  overflow: hidden;
}
details[open] { border-color: var(--border-vif); }
summary {
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color .2s ease;
}
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--cyan); }
summary::after {
  content: '';
  flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .25s ease;
}
details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
details .reponse { padding: 0 1.3rem 1.2rem; color: var(--muted); }
details .reponse p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- appel */

.appel {
  text-align: center;
  background:
    radial-gradient(70% 130% at 50% 0%, rgba(31, 197, 250, .13), transparent 70%),
    var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 3.5rem 2rem;
}
.appel h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin-bottom: .9rem; }
.appel p { color: var(--muted); max-width: 34rem; margin: 0 auto 1.8rem; }
.appel .hero-actions { justify-content: center; margin-bottom: 0; }

/* ------------------------------------------------------------------ pied */

footer {
  border-top: 1px solid var(--border);
  background: var(--ink-soft);
  padding: 3rem 0 2rem;
  margin-top: 1rem;
}
.pied-grille {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.pied-marque { display: flex; align-items: center; gap: .7rem; }
.pied-marque img { width: 34px; height: 34px; }
.pied-marque strong { font-family: 'Outfit', sans-serif; font-size: 1.05rem; }
.pied-marque span { display: block; color: var(--muted); font-size: .88rem; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.pied-liens a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.pied-liens a:hover { color: var(--cyan); }
.pied-bas {
  padding-top: 1.5rem;
  color: var(--muted);
  font-size: .88rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: space-between;
}

/* ================================================= page « confidentialite » */

.page-entete {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--ink-soft);
  padding: 4rem 0 3rem;
  text-align: center;
}
.page-entete::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  top: -290px; left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  filter: blur(100px);
  background: rgba(31, 197, 250, .14);
  pointer-events: none;
}
.page-entete > * { position: relative; }
.page-entete h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: .6rem; }
.page-entete .maj { color: var(--muted); font-size: .95rem; margin: 0; }

.doc { max-width: var(--max-texte); margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.doc section { padding: 0; scroll-margin-top: 6rem; }
.doc h2 {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 3.5rem 0 1rem;
  font-size: 1.4rem;
  font-weight: 600;
}
.doc h2:first-of-type { margin-top: 0; }
.doc h2 svg { flex: none; width: 22px; height: 22px; color: var(--cyan); }
.doc h3 { margin: 2rem 0 .6rem; font-size: 1.05rem; font-weight: 600; }
.attenue { color: var(--muted); }

.sommaire {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rayon);
  padding: 1.3rem 1.5rem;
  margin-bottom: 3rem;
}
.sommaire h2 {
  margin: 0 0 .8rem;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.sommaire ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.sommaire li { margin: .3rem 0; break-inside: avoid; }
@media (max-width: 34rem) { .sommaire ol { columns: 1; } }

.tableau { overflow-x: auto; margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 30rem; }
caption { text-align: left; color: var(--muted); font-size: .9rem; padding-bottom: .7rem; }
th, td { text-align: left; padding: .8rem .9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th {
  color: var(--muted);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-bottom-color: var(--border-vif);
}
tbody tr:last-child td { border-bottom: none; }

code {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: .87em;
  background: rgba(31, 197, 250, .10);
  color: #9EE4FF;
  padding: .12rem .4rem;
  border-radius: 5px;
  white-space: nowrap;
}

dl.infos { margin: 0; }
dl.infos div {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--border);
}
dl.infos div:last-child { border-bottom: none; }
dl.infos dt { color: var(--muted); font-size: .95rem; }
dl.infos dd { margin: 0; }
@media (max-width: 34rem) {
  dl.infos div { grid-template-columns: 1fr; gap: .15rem; }
}

ul.liste { list-style: none; margin: 1rem 0; padding: 0; }
ul.liste li { position: relative; padding-left: 1.9rem; margin: .6rem 0; }
ul.liste li::before {
  content: '';
  position: absolute;
  left: .35rem; top: .62rem;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
}
