/* ============================================================
   TOPAGE.FR · v1.0 · Studio éclairé, écrans de régie
   Base claire #F4F5F7, encre #101319 réservée aux écrans, à la
   bande coulisses et au pied de page. Accent orange top #F2600C.
   Aucun vert. Le rouge #FF4757 n'existe qu'à côté du mot LIVE.
   ============================================================ */
:root {
  --fond: #F4F5F7;
  --carte: #FFFFFF;
  --encre: #101319;
  --ecran: #12151D;
  --trait: #E1E3E9;
  --trait-ecran: #262B38;
  --texte: #1B1E26;
  --texte-doux: #4A4E5A;
  --muet: #737887;
  --muet-ecran: #8B93A7;
  --clair-ecran: #E6E9F0;
  --top: #F2600C;
  --top-vif: #FF7A24;
  --top-pale: #FFE9DC;
  --live: #FF4757;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--fond);
  color: var(--texte);
  font-family: 'Public Sans', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }

h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; line-height: 1.15; letter-spacing: -.01em; color: var(--encre); }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

.centre { max-width: 1160px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

/* ---------- Ponctuation graphique ---------- */
.carre { display: inline-block; width: 11px; height: 11px; background: var(--top); border-radius: 3px; margin-right: .55rem; vertical-align: baseline; }
.eyebrow { font-family: 'Space Grotesk', sans-serif; font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--top); margin-bottom: .8rem; }
.point-etat { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .4rem; vertical-align: 1px; }
.point-attente { background: #A7ADBE; }
.point-top { background: var(--top); }
.point-live { background: var(--live); }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 40; background: rgba(244, 245, 247, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--trait); }
.entete-int { display: flex; align-items: center; gap: 1.4rem; padding: .85rem clamp(1rem, 4vw, 2rem); max-width: 1160px; margin: 0 auto; }
.logo-lien { flex: none; }
.logo-topage { height: 22px; width: auto; }
.nav-principale { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; }
.nav-principale a { text-decoration: none; font-size: .95rem; color: var(--texte-doux); font-weight: 500; }
.nav-principale a:hover { color: var(--encre); }
.menu-case { display: none; }
.bouton-menu { display: none; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1rem;
  background: linear-gradient(180deg, var(--top-vif), var(--top));
  color: #fff; padding: .8rem 1.6rem; border: none; border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 18px rgba(242, 96, 12, .3);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}
.bouton:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 9px 24px rgba(242, 96, 12, .38); }
.bouton-second {
  display: inline-block; text-decoration: none; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .95rem;
  color: var(--encre); background: rgba(242, 96, 12, .07); border: 1px solid rgba(242, 96, 12, .45);
  padding: .7rem 1.3rem; border-radius: 12px; transition: background .14s ease, transform .14s ease;
}
.bouton-second:hover { background: rgba(242, 96, 12, .14); transform: translateY(-1px); }
.entete .bouton { padding: .55rem 1.1rem; font-size: .9rem; }

/* ---------- Héros ---------- */
.heros { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.heros-grille { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.heros h1 { margin: .4rem 0 1.1rem; }
.entite { font-size: 1.08rem; color: var(--texte-doux); max-width: 34rem; margin-bottom: 1.4rem; }
.compte { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 600; color: var(--encre); letter-spacing: .04em; margin-bottom: 1.4rem; }
.compte .deux-points { color: var(--top); animation: bat 1s steps(1) infinite; }
@keyframes bat { 50% { opacity: .25; } }
.heros-actions { display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.2rem; }
.signature-offre { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .98rem; color: var(--encre); border-left: 3px solid var(--top); padding-left: .8rem; }
.signature-offre small { display: block; font-family: 'Public Sans', sans-serif; font-weight: 400; color: var(--muet); font-size: .85rem; }

/* ---------- Écrans de régie (maquettes) ---------- */
.ecran-cadre {
  background: var(--ecran); border: 1.5px solid var(--trait-ecran); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(16, 19, 25, .18);
  overflow: hidden; color: var(--clair-ecran);
}
.ecran-titre { display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem; border-bottom: 1px solid var(--trait-ecran); font-family: 'Space Grotesk', sans-serif; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muet-ecran); }
.voyant { width: 8px; height: 8px; border-radius: 50%; background: var(--top); box-shadow: 0 0 8px rgba(242, 96, 12, .8); }
.ecran-corps { padding: .9rem 1rem 1.1rem; font-size: .86rem; }
.bande-jour { background: rgba(242, 96, 12, .14); color: var(--top-vif); border-radius: 8px; padding: .35rem .7rem; font-family: 'Space Grotesk', sans-serif; font-size: .78rem; letter-spacing: .06em; margin-bottom: .6rem; }
.table-ecran { width: 100%; border-collapse: collapse; }
.table-ecran th { text-align: left; font-family: 'Space Grotesk', sans-serif; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--top-vif); padding: .3rem .5rem; border-bottom: 1px solid var(--trait-ecran); }
.table-ecran td { padding: .42rem .5rem; border-bottom: 1px solid #1B2029; color: var(--clair-ecran); }
.table-ecran td.h { font-family: 'IBM Plex Mono', monospace; color: #fff; }
.table-ecran td.d, .table-ecran td.iv { color: var(--muet-ecran); }
.table-ecran td.iv { font-size: .8rem; }
.table-ecran tr:last-child td { border-bottom: none; }
.pastille-ecran { display: inline-block; font-size: .72rem; font-weight: 600; padding: .18rem .6rem; border-radius: 999px; background: rgba(242, 96, 12, .15); color: var(--top-vif); border: 1px solid rgba(242, 96, 12, .5); }
.pastille-attente { background: transparent; color: var(--muet-ecran); border-color: #3A4152; }
.chemin-ecran { list-style: none; border-left: 2px solid var(--trait-ecran); margin-left: .4rem; padding-left: 1rem; }
.chemin-ecran li { padding: .32rem 0; color: var(--clair-ecran); }
.chemin-ecran .fait::before, .chemin-ecran .attente::before { content: '●'; margin-right: .5rem; }
.chemin-ecran .fait::before { color: var(--top-vif); }
.chemin-ecran .attente::before { color: #3A4152; }
.chemin-ecran .separateur { font-family: 'Space Grotesk', sans-serif; font-size: .72rem; letter-spacing: .14em; color: var(--top-vif); padding-top: .6rem; }
.synthe-ecran { background: #0C0F15; border-radius: 10px; padding: 1.1rem 1rem .9rem; position: relative; margin-top: .6rem; }
.synthe-ecran .live { position: absolute; top: .6rem; right: .8rem; font-family: 'Space Grotesk', sans-serif; font-size: .7rem; letter-spacing: .12em; color: var(--live); }
.synthe-barre { display: inline-block; width: 5px; height: 34px; background: var(--top); border-radius: 2px; vertical-align: middle; margin-right: .7rem; }
.synthe-nom { display: inline-block; vertical-align: middle; }
.synthe-nom strong { display: block; font-size: 1.1rem; color: #fff; font-family: 'Space Grotesk', sans-serif; }
.synthe-nom span { font-size: .8rem; color: var(--top-vif); }

/* ---------- Sections ---------- */
.section { padding: clamp(2.6rem, 6vw, 4.5rem) 0; }
.section-bord { border-top: 1px solid var(--trait); }
.fonction { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.6rem, 4vw, 3.2rem); align-items: center; }
.fonction.inverse { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.fonction.inverse .fonction-texte { order: 2; }
.fonction.inverse .ecran-cadre { order: 1; }
.fonction-texte h2 { margin-bottom: .8rem; }
.fonction-texte p { color: var(--texte-doux); margin-bottom: .7rem; max-width: 34rem; }
.fonction-texte ul { margin: .6rem 0 0 1.1rem; color: var(--texte-doux); }
.fonction-texte li { margin-bottom: .35rem; }

/* ---------- Bande coulisses (sombre) ---------- */
.coulisses { background: var(--encre); color: var(--clair-ecran); padding: clamp(2.6rem, 6vw, 4.2rem) 0; }
.coulisses h2 { color: #fff; margin-bottom: .9rem; }
.coulisses p { color: var(--muet-ecran); max-width: 44rem; margin-bottom: .6rem; }
.coulisses strong { color: var(--top-vif); }
.grand-top { font-size: clamp(2rem, 4.5vw, 3rem); color: #fff; letter-spacing: .05em; margin: 1rem 0 .4rem; }
.grand-top .t { color: var(--top-vif); }

/* ---------- À venir ---------- */
.avenir-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; margin-top: 1.6rem; }
.carte-avenir { background: var(--carte); border: 1px solid var(--trait); border-radius: 14px; padding: 1.3rem 1.2rem 1.1rem; box-shadow: 0 1px 3px rgba(16, 19, 25, .05); }
.carte-avenir h3 { margin: .55rem 0 .45rem; }
.carte-avenir p { font-size: .92rem; color: var(--texte-doux); }
.etiquette-avenir { display: inline-block; font-family: 'Space Grotesk', sans-serif; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--top); background: var(--top-pale); border-radius: 999px; padding: .22rem .7rem; }

/* ---------- Obtenir ---------- */
.etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; margin: 1.6rem 0; counter-reset: etape; }
.etape { background: var(--carte); border: 1px solid var(--trait); border-radius: 14px; padding: 1.4rem 1.2rem 1.2rem; position: relative; box-shadow: 0 1px 3px rgba(16, 19, 25, .05); }
.etape::before { counter-increment: etape; content: counter(etape); font-family: 'IBM Plex Mono', monospace; font-weight: 600; color: var(--top); border: 1.5px solid var(--top); border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; margin-bottom: .8rem; }
.etape h3 { margin-bottom: .4rem; }
.etape p { font-size: .93rem; color: var(--texte-doux); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
.faq details { background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; padding: .9rem 1.2rem; margin-bottom: .7rem; }
.faq summary { cursor: pointer; font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: var(--encre); font-size: 1rem; }
.faq details[open] summary { color: var(--top); margin-bottom: .5rem; }
.faq p { color: var(--texte-doux); font-size: .95rem; }

/* ---------- Constellation ---------- */
.constellation { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; }
.site-lien { text-decoration: none; background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; padding: .8rem 1.1rem; font-size: .92rem; transition: border-color .14s ease, transform .14s ease; }
.site-lien:hover { border-color: var(--top); transform: translateY(-1px); }
.site-lien strong { display: block; font-family: 'Space Grotesk', sans-serif; color: var(--encre); }
.site-lien span { color: var(--muet); font-size: .82rem; }

/* ---------- Appel final ---------- */
.appel-final { text-align: center; padding: clamp(3rem, 7vw, 5rem) 0; }
.appel-final h2 { margin-bottom: .8rem; }
.appel-final p { color: var(--texte-doux); max-width: 36rem; margin: 0 auto 1.6rem; }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: var(--muet-ecran); padding: 2.6rem 0 2rem; }
.pied-grille { display: flex; gap: 2rem; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; }
.pied .logo-topage { height: 20px; margin-bottom: .9rem; }
.pied p { font-size: .85rem; max-width: 30rem; }
.pied a { color: var(--clair-ecran); text-decoration: none; }
.pied a:hover { color: var(--top-vif); }
.pied-liens { display: flex; flex-direction: column; gap: .45rem; font-size: .88rem; }
.pied-bas { border-top: 1px solid #1D222D; margin-top: 2rem; padding-top: 1.1rem; font-size: .78rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .heros-grille, .fonction, .fonction.inverse { grid-template-columns: 1fr; }
  .fonction.inverse .fonction-texte { order: 1; }
  .fonction.inverse .ecran-cadre { order: 2; }
  .bouton-menu {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto; width: 44px; height: 40px; padding: 0 10px;
    border: 1px solid var(--trait); border-radius: 10px; cursor: pointer; background: var(--carte);
  }
  .trait-menu { display: block; height: 2px; border-radius: 2px; background: var(--top); transition: transform .18s ease, opacity .18s ease; }
  .entete:has(.menu-case:checked) .trait-menu:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .entete:has(.menu-case:checked) .trait-menu:nth-child(2) { opacity: 0; }
  .entete:has(.menu-case:checked) .trait-menu:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-principale { display: none; }
  .entete:has(.menu-case:checked) .nav-principale {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--carte); border-bottom: 1px solid var(--trait); padding: .4rem 1rem .8rem;
  }
  .entete:has(.menu-case:checked) .nav-principale a { padding: .7rem .2rem; border-bottom: 1px solid var(--trait); }
  .entete:has(.menu-case:checked) .nav-principale .bouton { margin-top: .7rem; text-align: center; border-bottom: none; }
  .entete { position: sticky; }
  .entete-int { position: relative; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .heros-actions .bouton, .heros-actions .bouton-second { width: 100%; text-align: center; }
  .pied-grille { flex-direction: column; }
}

/* --- v1.1 : logo agrandi, appel d'en-tête encre, bandeaux ---- */
.logo-topage { height: 34px; }
.pied .logo-topage { height: 26px; }
.entete .bouton {
  background: var(--encre);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 19, 25, .25);
}
.entete .bouton:hover { background: #1C2029; filter: none; box-shadow: 0 7px 18px rgba(16, 19, 25, .3); }
.bandeau-illu { line-height: 0; }
.bandeau-illu img { width: 100%; height: clamp(160px, 24vw, 300px); object-fit: cover; }
.lien-fonction { margin-top: .9rem; display: inline-block; }
