/* Site vitrine Vrooma : mêmes couleurs et même police que l'appli (app/src/theme.ts). */
:root {
  --fond: #F6F3EC;
  --carte: #FFFDF8;
  --encre: #1F2230;
  --texte-doux: #77736A;
  --bordure: #E8E2D4;
  --accent: #2F5BD3;
  --accent-doux: #DCE6F7;
  --creme: #EDE6D6;
  --bloc: #1F2230;
  --sur-bloc: #F6F1E6;
  --sur-bloc-doux: rgba(246, 241, 230, 0.7);
  --rayon: 28px;
}
/* Le site reste en clair, comme l'appli (userInterfaceStyle « light »). */
:root { color-scheme: light; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }

.page { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* En-tête */
.entete { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; gap: 16px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--encre); }
.marque img { width: 40px; height: 40px; border-radius: 11px; }
.marque span { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 16px; border-radius: 999px; padding: 12px 22px; border: 0; cursor: pointer; white-space: nowrap;
}
.bouton:hover { filter: brightness(1.08); }
.bouton.discret { background: var(--carte); color: var(--encre); border: 1px solid var(--bordure); }

.section-titre { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 64px 0 18px; }
.grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tuile { background: var(--creme); border-radius: var(--rayon); padding: 26px; overflow: hidden; }
.tuile img { width: 150px; height: 120px; object-fit: contain; margin: 0 0 14px auto; }
.tuile h3 { margin: 0 0 6px; font-size: 21px; font-weight: 800; }
.tuile p { margin: 0; color: var(--texte-doux); font-size: 16px; }

.bandeau {
  background: var(--carte); border: 1px solid var(--bordure); border-radius: var(--rayon);
  padding: 30px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.bandeau h3 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.bandeau p { margin: 0; color: var(--texte-doux); }

/* Pages de texte (légal, aide) */
.texte { max-width: 760px; margin: 12px auto 0; background: var(--carte); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 40px 44px; }
.texte h1 { font-size: 36px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.texte .maj { color: var(--texte-doux); font-size: 15px; margin: 0 0 28px; }
.texte h2 { font-size: 22px; font-weight: 800; margin: 34px 0 8px; }
.texte ul { padding-left: 22px; }
.texte li { margin: 4px 0; }
.a-completer { background: #FFF1C2; color: #5A4500; border-radius: 6px; padding: 1px 6px; font-weight: 700; }
.avis { background: var(--accent-doux); border-radius: 16px; padding: 14px 18px; margin: 18px 0; }

/* Pied de page */
.pied { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; padding: 48px 0 40px; color: var(--texte-doux); font-size: 15px; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pied a { color: var(--texte-doux); text-decoration: none; }
.pied a:hover { color: var(--encre); }

/* Menu */
.menu { display: flex; gap: 26px; margin-left: auto; margin-right: 8px; }
.menu a { color: var(--encre); text-decoration: none; font-weight: 600; font-size: 15px; }
.menu a:hover { color: var(--accent); }

/* Accueil : bloc principal avec téléphones */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 24px;
  background: var(--bloc); color: var(--sur-bloc); border-radius: 36px;
  padding: 56px 56px 0; margin-top: 8px; overflow: hidden; position: relative;
}
.hero::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  right: -80px; top: 40px; background: radial-gradient(circle, rgba(47, 91, 211, 0.55), rgba(47, 91, 211, 0) 70%);
}
.hero-texte { padding-bottom: 56px; position: relative; }
.hero .sur-titre { color: #8EA9F5; font-weight: 700; font-size: 16px; margin: 0 0 12px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.03; font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.hero .intro { color: var(--sur-bloc-doux); font-size: 19px; max-width: 470px; margin: 18px 0 28px; }
.magasins { display: flex; flex-wrap: wrap; gap: 10px; }
.magasin {
  display: inline-block; text-decoration: none; background: #0B0C14; border: 1px solid rgba(246, 241, 230, 0.2);
  border-radius: 14px; padding: 9px 18px; color: var(--sur-bloc); font-size: 13px; line-height: 1.3;
}
.magasin strong { display: block; font-size: 17px; }
.atouts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--sur-bloc-doux); font-size: 15px; }
.atouts li::before { content: "✓"; color: #8EA9F5; font-weight: 800; margin-right: 7px; }
.hero-visuel { position: relative; height: 470px; }

.telephone {
  margin: 0; background: #0B0C14; padding: 9px; border-radius: 44px;
  box-shadow: 0 30px 60px rgba(10, 12, 25, 0.35); overflow: hidden;
}
.telephone img { border-radius: 36px; width: 100%; height: auto; }
.hero-visuel .telephone { position: absolute; width: 236px; }
.hero-visuel .avant { left: 4%; top: 30px; z-index: 2; }
.hero-visuel .arriere { right: 2%; top: 100px; transform: rotate(5deg); opacity: 0.95; }

/* Bande de garanties */
.garanties { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.garanties div { background: var(--carte); border: 1px solid var(--bordure); border-radius: 22px; padding: 18px 20px; }
.garanties strong { display: block; font-size: 19px; font-weight: 800; }
.garanties span { color: var(--texte-doux); font-size: 15px; }

/* Comment ça marche */
.section-intro { color: var(--texte-doux); margin: -8px 0 24px; font-size: 18px; }
.centre { text-align: center; }
.comment { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: center; }
.etapes { display: grid; gap: 10px; }
.etape {
  display: flex; gap: 16px; align-items: flex-start; text-align: left; font: inherit; color: var(--encre);
  background: transparent; border: 1px solid transparent; border-radius: 22px; padding: 16px 18px; cursor: pointer;
}
.etape:hover { background: var(--carte); }
.etape.active { background: var(--carte); border-color: var(--bordure); }
.etape strong { display: block; font-size: 19px; font-weight: 800; }
.etape span span { color: var(--texte-doux); font-size: 16px; }
.numero {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--creme); color: var(--encre); font-weight: 800; font-size: 15px;
}
.etape.active .numero { background: var(--accent); color: #fff; }
.telephone.grand { width: 300px; }

/* Tarifs */
.tarifs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; max-width: 900px; margin: 0 auto; }
.tarif { background: var(--carte); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 26px 22px; position: relative; }
.tarif h3 { margin: 0; font-size: 20px; font-weight: 800; }
.tarif .prix { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 0; line-height: 1.1; }
.tarif .detail { color: var(--texte-doux); margin: 2px 0 14px; font-size: 15px; }
.tarif ul { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.tarif li { padding: 5px 0; border-top: 1px solid var(--bordure); }
.tarif li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }
.tarif.vedette { background: var(--accent); border-color: var(--accent); color: #fff; }
.tarif.vedette .detail { color: rgba(255, 255, 255, 0.8); }
.tarif.vedette li { border-color: rgba(255, 255, 255, 0.25); }
.tarif.vedette li::before { color: #fff; }
.etiquette {
  position: absolute; top: -12px; left: 22px; background: var(--encre); color: var(--fond);
  font-size: 13px; font-weight: 700; border-radius: 999px; padding: 4px 12px;
}
.etiquette.douce { background: var(--accent-doux); color: var(--accent); }
.note { color: var(--texte-doux); font-size: 15px; margin-top: 18px; }

/* Guide de l'examen */
.guide { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.guide div { background: var(--creme); border-radius: var(--rayon); padding: 24px; }
.guide h3 { margin: 14px 0 6px; font-size: 19px; font-weight: 800; }
.guide p { margin: 0; color: var(--texte-doux); font-size: 15px; }
.guide .numero { background: var(--carte); }

/* FAQ */
.faq details { background: var(--carte); border: 1px solid var(--bordure); border-radius: 20px; padding: 0 22px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--texte-doux); }

/* Dernier appel */
.appel {
  margin-top: 64px; background: var(--bloc); color: var(--sur-bloc); border-radius: 32px; padding: 40px 44px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.appel h2 { margin: 0 0 4px; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.appel p { margin: 0; color: var(--sur-bloc-doux); }

@media (max-width: 960px) {
  .menu { display: none; }
  .hero { grid-template-columns: 1fr; padding: 36px 26px 0; border-radius: 28px; }
  .hero-texte { padding-bottom: 8px; }
  .hero-visuel { height: 380px; }
  .hero-visuel .telephone { width: 190px; }
  .hero-visuel .avant { left: 50%; transform: translateX(-88%); top: 10px; }
  .hero-visuel .arriere { right: 50%; transform: translateX(92%) rotate(5deg); top: 60px; }
  .garanties { grid-template-columns: 1fr 1fr; }
  .comment { grid-template-columns: 1fr; gap: 24px; }
  .telephone.grand { width: 260px; margin: 0 auto; }
  .grille, .tarifs, .guide { grid-template-columns: 1fr; }
  .tarifs { gap: 22px; }
  .texte { padding: 28px 22px; }
  .entete .bouton { padding: 10px 16px; font-size: 15px; }
  .appel { padding: 30px 24px; }
}

/* ---------- Animations (désactivées si la personne demande moins d'animations) ---------- */
.anime .revele { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--delai, 0ms); }
.anime .revele.visible { opacity: 1; transform: none; }

/* Entrée du haut de page */
@keyframes monte { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes flotte { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes flotte2 { 0%, 100% { translate: 0 0; } 50% { translate: 0 10px; } }
@keyframes lueur { 0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.9; } 50% { transform: scale(1.15) translate(-30px, 20px); opacity: 1; } }
.anime .hero-texte > * { animation: monte 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.anime .hero-texte > :nth-child(2) { animation-delay: 0.08s; }
.anime .hero-texte > :nth-child(3) { animation-delay: 0.16s; }
.anime .hero-texte > :nth-child(4) { animation-delay: 0.24s; }
.anime .hero-texte > :nth-child(5) { animation-delay: 0.32s; }
.anime .hero::before { animation: lueur 9s ease-in-out infinite; }

/* Petite route qui défile en bas du bloc, avec une voiture */
.route-anim {
  position: absolute; left: 0; right: 0; bottom: 0; height: 38px; background: #14151F; z-index: 3;
  background-image: linear-gradient(90deg, rgba(246, 241, 230, 0.85) 0 40px, transparent 40px 80px);
  background-size: 80px 4px; background-repeat: repeat-x; background-position: 0 50%;
}
.anime .route-anim { animation: route 1.6s linear infinite; }
@keyframes route { to { background-position: -80px 50%; } }
.voiture {
  position: absolute; bottom: 8px; left: 12%; width: 58px; height: 18px; border-radius: 9px 14px 5px 5px; background: var(--accent);
  box-shadow: inset -10px 0 0 rgba(255, 255, 255, 0.15);
}
.voiture::before { content: ""; position: absolute; left: 13px; top: -10px; width: 28px; height: 12px; border-radius: 8px 8px 0 0; background: #6E93FF; }
.voiture::after { content: ""; position: absolute; right: -4px; top: 5px; width: 6px; height: 4px; border-radius: 2px; background: #FFD27A; box-shadow: 0 0 10px 3px rgba(255, 210, 122, 0.6); }
.anime .voiture { animation: roule 14s linear infinite; }
@keyframes roule { from { left: -60px; } to { left: 105%; } }
.hero { padding-bottom: 34px; }

/* Survols */
.bouton, .magasin, .tuile, .tarif, .garanties div, .guide div { transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.2s; }
.bouton:hover, .magasin:hover { transform: translateY(-2px); }
.tuile:hover, .tarif:hover, .garanties div:hover, .guide div:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(31, 34, 48, 0.1); }
.tuile img { transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tuile:hover img { transform: rotate(-4deg) scale(1.08); }

/* Formule mise en avant : reflet qui passe */
.tarif.vedette {
  background-image: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, 0.24) 50%, transparent 58%);
  background-size: 260% 100%; background-repeat: no-repeat; background-position: 130% 0;
}
.anime .tarif.vedette { animation: reflet 5s ease-in-out infinite; }
@keyframes reflet { 0%, 55% { background-position: 130% 0; } 100% { background-position: -30% 0; } }

/* Étapes : changement d'écran et barre de progression */
#ecran-etape { transition: opacity 0.18s ease, transform 0.18s ease; }
#ecran-etape.change { opacity: 0; transform: scale(0.97); }
.telephone.grand { position: relative; }
.barre-etape { position: absolute; left: 30px; right: 30px; top: 16px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); z-index: 2; overflow: hidden; }
.barre-etape::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.barre-etape.court::after { animation: progression 4.5s linear forwards; }
@keyframes progression { to { transform: scaleX(1); } }
.calme .barre-etape { display: none; }

/* FAQ : ouverture douce */
.faq details[open] p { animation: monte 0.35s ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Formules cliquables */
a.tarif { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.tarif .choisir {
  display: block; text-align: center; margin-top: 18px; border-radius: 999px; padding: 12px 16px;
  font-weight: 700; background: var(--accent); color: #fff;
}
.tarif.vedette .choisir { background: #fff; color: var(--accent); }
a.tarif:hover .choisir { filter: brightness(1.08); }
a.tarif:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.avis-abonnement {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--encre); color: var(--fond); border-radius: 18px; padding: 14px 20px; max-width: calc(100% - 32px);
  font-weight: 600; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25); transition: opacity 0.25s, transform 0.25s; z-index: 10;
}
.avis-abonnement.montre { opacity: 1; transform: translate(-50%, 0); }
.lien-ordi { display: inline-block; margin-top: 16px; color: #A9BEF8; font-weight: 700; text-decoration: none; }
.lien-ordi:hover { color: #fff; }
