/* Cintra : ce qui s'ajoute à la DA du site (site.css : jetons jour / nuit,
   fond, boutons, cartes). Aucune couleur en dur ici sauf les reflets blancs
   et les liserés aqua, valables dans les deux matières. */

.nav-haut { display: flex; gap: 26px; margin-left: auto; margin-right: 18px; }
.nav-haut a { color: var(--mute); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.nav-haut a:hover { color: var(--fort); }
.haut-droite { display: flex; align-items: center; gap: 10px; }
.logo-v.grand { width: 54px; height: 54px; border-radius: 16px; font-size: 27px; margin: 0 auto 14px; }

/* Bouton jour / nuit : soleil affiché la nuit (pour repasser au jour), lune le jour */
.theme-bouton { width: 44px; height: 44px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 12px; cursor: pointer; color: var(--txt); background: var(--btn-verre-fond); box-shadow: var(--btn-verre-ombre); transition: box-shadow .25s ease, transform .25s ease; }
.theme-bouton svg { width: 20px; height: 20px; }
.theme-bouton .soleil, :root[data-theme="dark"] .theme-bouton .lune { display: none; }
:root[data-theme="dark"] .theme-bouton .soleil { display: block; }
.theme-bouton:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }
.theme-bouton:active { transform: scale(.94); }

/* Tarifs */
#tarifs .intro { max-width: 900px; }
.periode { display: inline-flex; gap: 4px; margin-top: 16px; padding: 4px; border-radius: 14px; background: var(--creux); box-shadow: inset 0 0 0 1px var(--ligne); }
.periode button { height: 42px; padding: 0 18px; border: 0; border-radius: 11px; cursor: pointer; background: transparent; color: var(--mute); font: 600 14.5px var(--corps); }
.periode button em { font-style: normal; color: var(--lien); font-size: 12.5px; margin-left: 6px; }
.periode button.actif { color: var(--btn-texte); background: var(--btn-fond); box-shadow: var(--btn-ombre); }
.periode button.actif em { color: inherit; opacity: .85; }
.forfaits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.forfait { display: flex; flex-direction: column; gap: 6px; padding: 24px 24px 22px; overflow: visible; }
.forfait h3 { font-size: 19px; font-weight: 700; }
.forfait .prix { margin: 2px 0 0; color: var(--mute); }
.forfait .prix b { font-family: var(--titre); font-size: clamp(32px, 3vw, 38px); font-weight: 800; color: var(--fort); letter-spacing: -.02em; }
.forfait .prix span { margin-left: 6px; }
.forfait .sous-prix { margin: -2px 0 4px; color: var(--faible); font-size: 14px; }
.forfait ul { flex: 1; list-style: none; padding: 0; margin: 6px 0 14px; display: grid; gap: 8px; align-content: start; }
.forfait li { display: grid; grid-template-columns: 20px 1fr; gap: 9px; color: var(--mute); font-size: 14.5px; line-height: 1.4; }
.forfait li svg { width: 18px; height: 18px; color: var(--aqua); margin-top: 1px; }
.forfait .btn { --h: 52px; width: 100%; }
.forfait .comete.large { display: flex; }
.forfait.mis-en-avant { box-shadow: var(--carte-ombre-survol), 0 0 0 1.5px rgba(94, 242, 214, .55), 0 0 60px rgba(94, 242, 214, .12); }
.badge-forfait { position: absolute; top: -13px; left: 26px; padding: 5px 12px; border-radius: 999px; color: var(--encre); background: var(--aqua-bombe); font: 700 11px/1.2 var(--titre); letter-spacing: .1em; text-transform: uppercase; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 4px 16px rgba(30, 200, 180, .35); }
.forfait.actuel { box-shadow: var(--carte-ombre-survol), 0 0 0 2px var(--aqua); }
.note-tarifs { text-align: center; color: var(--faible); font-size: 13.5px; margin: 16px auto 0; max-width: 820px; }

/* Compte */
.compte { padding: clamp(24px, 4vw, 38px); }
.compte-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 18px; }
.compte-tete h2 { margin: 14px 0 6px; font-size: clamp(26px, 3.4vw, 38px); }
.compte-tete p { margin: 0; }
.compte-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.compte-merci { margin: 22px 0 0; padding: 14px 18px; border-radius: 16px; color: var(--txt); background: rgba(94, 242, 214, .14); box-shadow: inset 0 0 0 1px rgba(94, 242, 214, .5); }
.compte-installer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 22px; padding: 18px 20px; border-radius: 16px; background: var(--creux); box-shadow: inset 0 0 0 1px var(--ligne); }
.compte-installer b, .compte-installer span { display: block; }
.compte-installer span { color: var(--mute); font-size: 14.5px; }
.compte-installer .btn[aria-disabled="true"] { pointer-events: none; filter: saturate(.3); opacity: .7; }

/* Connexion */
.connexion { width: min(440px, 92vw); padding: 34px 28px 26px; border: 0; color: var(--txt); text-align: center; overflow: visible; background: var(--fond-page); background-image: var(--carte-fond); }
.connexion::backdrop { background: var(--rideau); }
.connexion h2 { font-size: 22px; }
.connexion .mute { margin: 8px 0 20px; font-size: 14.5px; }
.connexion .fermer { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; background: var(--creux); color: var(--txt); font-size: 22px; line-height: 1; }
.connexion .google { width: 100%; text-transform: none; letter-spacing: 0; font-family: var(--corps); font-size: 15.5px; font-weight: 600; }
.connexion .google svg { width: 20px; height: 20px; }
.connexion .ou { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--faible); font-size: 13px; }
.connexion .ou::before, .connexion .ou::after { content: ""; flex: 1; height: 1px; background: var(--ligne); }
.connexion form { display: grid; gap: 10px; }
.connexion input { width: 100%; height: 54px; padding: 0 16px; border-radius: 14px; border: 0; outline: 0; background: var(--champ); color: var(--txt); font: 500 16px var(--corps); text-align: center; box-shadow: inset 0 0 0 1px var(--ligne-forte); }
.connexion input::placeholder { color: var(--faible); }
.connexion input:focus { box-shadow: inset 0 0 0 1.5px var(--aqua), 0 0 0 4px rgba(94, 242, 214, .2); }
.connexion #code { font-family: var(--titre); font-size: 22px; letter-spacing: .3em; }
.connexion .btn { --h: 52px; }
.connexion .lien { background: none; border: 0; color: var(--mute); cursor: pointer; font: 500 14px var(--corps); text-decoration: underline; }
.connexion .erreur { min-height: 0; margin: 12px 0 0; }

/* Pages légales */
.legal-haut { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.legal { padding: 40px 0 80px; max-width: 820px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin: 28px 0 10px; }
.legal h2 { font-size: 19px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--mute); }
.legal .maj { color: var(--faible); font-size: 14px; }

/* Héros : un écran plein (titre, texte, actions), la démo vient en dessous */
.heros-plein { position: relative; min-height: calc(100svh - 66px); display: grid; align-items: center; padding: 40px 0 96px; }
.heros-plein h1 { margin: 20px 0 22px; font-size: clamp(32px, 5.2vw, 72px); }
.heros-plein .intro { margin: 0 auto 30px; max-width: 700px; }
.heros-plein .actions { justify-content: center; }
.atouts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; list-style: none; padding: 0; margin: 30px 0 0; color: var(--mute); font-size: 14.5px; font-weight: 600; }
.atouts li { display: inline-flex; align-items: center; gap: 8px; }
.atouts svg { width: 17px; height: 17px; color: var(--aqua); }
.defiler { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 4px; color: var(--faible); text-decoration: none; font: 600 11.5px var(--titre); letter-spacing: .14em; text-transform: uppercase; }
.defiler svg { width: 22px; height: 22px; animation: descend 2.2s ease-in-out infinite; }
@keyframes descend { 0%, 100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(6px); opacity: 1; } }

/* Démo : titre court, puis le cadre à la hauteur de l'écran (titre + démo
   entière visibles ensemble). Une image tant qu'on ne la lance pas. */
.wrap-large { width: min(1320px, 100% - 2 * var(--marge)); margin-inline: auto; }
.bloc-demo { padding-top: 64px; }
/* Titre à gauche, phrase à droite : une ligne de moins, la démo garde la place */
.entete-ligne { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: 18px; text-align: left; }
.entete-ligne h2 + p, .entete-ligne .intro { margin: 0; max-width: 520px; font-size: 15.5px; }
.demo-cadre { border-radius: 22px; overflow: hidden; background: var(--fond-page); box-shadow: var(--carte-ombre-survol), 0 0 0 1px var(--ligne-forte), 0 0 90px rgba(94, 242, 214, .14); }
:root[data-theme="dark"] .demo-cadre { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22), 0 50px 120px rgba(0, 0, 0, .7), 0 0 90px rgba(94, 242, 214, .16); }
.demo-barre { display: flex; align-items: center; gap: 14px; height: 50px; padding: 0 10px 0 16px; background: var(--carte-fond); border-bottom: 1px solid var(--ligne); font-size: 13.5px; }
.demo-points { display: flex; gap: 7px; flex: none; }
.demo-points i { width: 11px; height: 11px; border-radius: 50%; background: var(--ligne-forte); }
.demo-points i:first-child { background: #5ef2d6; box-shadow: 0 0 8px rgba(94, 242, 214, .6); }
.demo-onglets { flex: 1; min-width: 0; display: flex; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.demo-onglets::-webkit-scrollbar { display: none; }
.demo-onglets button { flex: none; height: 34px; padding: 0 14px; border: 0; border-radius: 10px; cursor: pointer; background: transparent; color: var(--mute); font: 600 13.5px var(--corps); white-space: nowrap; }
.demo-onglets button.actif { color: var(--btn-texte); background: var(--btn-fond); box-shadow: var(--btn-ombre); }
.demo-onglets button:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }
.demo-plein { flex: none; color: var(--lien); text-decoration: none; font-weight: 600; white-space: nowrap; padding: 0 8px; }
/* Hauteur : l'écran moins la barre du site, le titre, la barre de la démo et une marge */
.demo-ecran { position: relative; height: clamp(420px, calc(100svh - 66px - 172px), 860px); background: var(--fond-page); }
.demo-ecran iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--fond-page); }
.demo-affiche { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: var(--fond-page); display: block; overflow: hidden; }
.demo-affiche picture { display: block; width: 100%; height: 100%; }
.demo-affiche img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .8s cubic-bezier(.2, .8, .2, 1), filter .4s ease; }
.demo-affiche .nuit, :root[data-theme="dark"] .demo-affiche .jour { display: none; }
:root[data-theme="dark"] .demo-affiche .nuit { display: block; }
.demo-jouer { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; background: radial-gradient(ellipse 55% 50% at 50% 50%, rgba(238, 242, 244, .86), rgba(238, 242, 244, .5) 60%, rgba(238, 242, 244, .18)); }
:root[data-theme="dark"] .demo-jouer { background: radial-gradient(ellipse 55% 50% at 50% 50%, rgba(2, 5, 7, .82), rgba(2, 5, 7, .5) 60%, rgba(2, 5, 7, .2)); }
.demo-jouer .btn { pointer-events: none; }
.demo-cadre.lancee .demo-affiche { display: none; }

@media (hover: hover) and (pointer: fine) {
  .periode button:not(.actif):hover { color: var(--fort); }
  .theme-bouton:hover { box-shadow: var(--btn-verre-ombre), inset 0 0 0 1px rgba(94, 242, 214, .6); }
  .demo-onglets button:not(.actif):hover { color: var(--fort); background: var(--creux); }
  .demo-affiche:hover img { transform: scale(1.015); filter: saturate(1.05); }
}

/* Écran d'ordinateur très bas (≤ 720 px) : l'intro et le choix mensuel /
   annuel sur une ligne, cartes resserrées, pour garder les 3 forfaits entiers
   sous le titre. */
@media (min-width: 961px) and (max-height: 720px) {
  #tarifs .entete { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 22px; }
  #tarifs .entete h2 { flex-basis: 100%; }
  #tarifs .entete .intro { margin: 8px 0 0; font-size: 15px; max-width: none; }
  #tarifs .periode { margin-top: 8px; }
  .forfait { padding: 20px 22px 18px; gap: 4px; }
  .forfait .prix b { font-size: 30px; }
  .forfait ul { gap: 6px; margin: 4px 0 10px; }
  .forfait li { font-size: 14px; }
  .forfait .btn { --h: 46px; }
  .note-tarifs { margin-top: 10px; }
}

@media (max-width: 960px) {
  .nav-haut { display: none; }
  .entete-ligne { display: block; text-align: center; }
  .entete-ligne .intro { margin: 10px auto 0; }
  .forfaits { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: 26px; }
}

@media (max-width: 640px) {
  .periode button { padding: 0 12px; font-size: 14px; }
  .compte-installer .btn { width: 100%; }
  .theme-bouton { width: 40px; height: 40px; }
  .heros-plein { min-height: calc(100svh - 60px); padding: 28px 0 84px; }
  .heros-plein h1 { font-size: clamp(30px, 9vw, 40px); }
  .atouts { flex-direction: column; align-items: center; gap: 8px; margin-top: 24px; font-size: 14px; }
  .demo-cadre { border-radius: 18px; margin-inline: calc(-1 * var(--marge) + 6px); }
  .demo-barre { height: 48px; padding: 0 6px; gap: 6px; }
  .demo-points { display: none; }
  .demo-onglets { justify-content: flex-start; }
  .demo-onglets button { padding: 0 11px; font-size: 13px; }
  .demo-plein { font-size: 0; padding: 0 10px; }
  .demo-plein::after { content: "↗"; font-size: 17px; }
  .demo-ecran { height: clamp(480px, calc(100svh - 60px - 170px), 760px); }
}
