:root {
  --texte-principal: #f4f6fb;
  --texte-secondaire: rgba(244, 246, 251, 0.75);
  --bleu: #2196f3;
  --bleu-clair: #64b5f6;
  --or: #f5b300;
  --bordure: rgba(255, 255, 255, 0.14);
  --carte-fond: rgba(20, 24, 34, 0.55);
  --rayon: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #05070c;
  color: var(--texte-principal);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.conteneur { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.conteneur-etroit { max-width: 720px; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 16px; }
h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; text-align: center; margin-bottom: 44px; }
h3 { font-size: 19px; font-weight: 700; }
p { color: var(--texte-secondaire); }
a { color: var(--bleu-clair); }

/* Fond photo propre a chaque section + voile de lisibilite par-dessus - meme mecanique que
   .fond-pochette-app/--card-opacity/--blur-amount dans l'appli, juste applique par section
   plutot qu'a toute la fenetre (retour utilisateur : plusieurs fonds, ne pas se limiter a un seul). */
.section-fond {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.fond-hero { background-image: url("images/fond-hero.jpg"); }
.fond-intro { background-image: url("images/fond-intro.jpg"); }
.fond-fonctionnalites { background-image: url("images/fond-fonctionnalites.jpg"); }
.fond-tarif { background-image: url("images/fond-tarif.jpg"); }
.voile-section {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.75) 0%, rgba(5, 7, 12, 0.9) 60%, rgba(5, 7, 12, 0.98) 100%);
}

.section { padding: 90px 0; }
#licences.section { background: #070a12; padding: 70px 0; }

/* Blocs "vitres" - coeur visuel de l'appli, repris a l'identique : fond semi-transparent,
   flou derriere, bordure claire fine, effet de flottement au survol. */
.carte-verre {
  background: var(--carte-fond);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

/* En-tete - barre flottante arrondie (retour utilisateur, reference image precise) : ne touche
   pas les bords de la fenetre, coins arrondis sur tout le perimetre, pas juste en bas. */
.entete {
  position: sticky; top: 18px; z-index: 20;
  display: flex; justify-content: center;
  padding: 0 24px;
}
.entete-barre {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%; max-width: 1100px;
  padding: 10px 14px 10px 22px;
  background: rgba(10, 13, 20, 0.75);
  border: 1px solid var(--bordure);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
}
.marque { display: flex; align-items: center; }
.marque-logo { height: 30px; width: auto; }
.entete-droite { display: flex; align-items: center; gap: 30px; }
.nav-principale { display: flex; gap: 30px; }
.nav-principale a {
  color: rgba(244, 246, 251, 0.85); text-decoration: none; font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.12em; transition: color 0.2s ease;
}
.nav-principale a:hover { color: var(--bleu-clair); }

/* Bouton d'appel a l'action de la barre - reprend le principe "pastille pleine tres visible,
   contraste fort" de la reference (bouton or plein plutot qu'un bouton-accent classique). */
.bouton-reserver {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #f5c542, #d99a1b);
  color: #2a1e00; text-decoration: none; font-weight: 800; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 11px 22px; border-radius: 999px;
  box-shadow: 0 10px 26px rgba(245, 179, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bouton-reserver:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(245, 179, 0, 0.5); }
.bouton-reserver-icone { font-size: 12px; }

/* Boutons */
.bouton {
  display: inline-block; text-decoration: none; font-weight: 700; text-align: center;
  border-radius: var(--rayon); border: 1px solid transparent; transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.15s ease;
}
.bouton-petit { padding: 8px 18px; font-size: 13px; }
.bouton-grand { padding: 16px 32px; font-size: 16px; }
.bouton-pleine-largeur { width: 100%; padding: 14px; font-size: 15px; }
.bouton-accent {
  background: linear-gradient(135deg, var(--bleu), #1565c0);
  color: #fff; box-shadow: 0 8px 24px rgba(33, 150, 243, 0.4);
}
.bouton-accent:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(33, 150, 243, 0.55); }
.bouton-discret { background: rgba(255, 255, 255, 0.08); color: var(--texte-principal); border-color: var(--bordure); }
.bouton-discret:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-3px); }
.bouton[aria-disabled="true"] { cursor: default; opacity: 0.85; }

/* Hero */
.hero { display: flex; align-items: center; justify-content: center; padding: 10px 0 120px; }
.hero-texte { padding: 100px 0 70px; }
.hero-interieur { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.hero-lueur {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgb(0, 0, 0) 0%, rgb(0, 0, 0) 45%, transparent 72%);
  filter: blur(10px); pointer-events: none; z-index: 0;
  animation: pulsation 6s ease-in-out infinite;
}
@keyframes pulsation {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}
.hero-logo { width: min(280px, 62vw); margin-bottom: 20px; position: relative; z-index: 1; filter: drop-shadow(0 0 10px rgb(0, 0, 0)); }
.hero-logo.hero-logo-grand { width: min(580px, 77vw); max-width: none; margin-bottom: 0; }
.hero h1 { max-width: 780px; position: relative; z-index: 1; }
.hero-sous-titre { max-width: 640px; font-size: 17px; margin: 0 auto 34px; position: relative; z-index: 1; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; position: relative; z-index: 1; }
.hero-note { font-size: 13px; opacity: 0.75; position: relative; z-index: 1; }

.hero-defilement {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, 0.4); border-radius: 999px; z-index: 1;
}
.hero-defilement span {
  display: block; width: 4px; height: 8px; margin: 6px auto; border-radius: 999px; background: var(--bleu-clair);
  animation: defilement 1.8s ease-in-out infinite;
}
@keyframes defilement {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}

/* Fonctionnalites - une carte vedette plus grande, le reste en grille reguliere : evite l'uniformite
   plate signalee ("la disposition n'est pas creative"). */
.grille-fonctionnalites {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.carte-fonctionnalite { padding: 30px; transition: transform 0.25s ease, border-color 0.25s ease; }
.carte-fonctionnalite:hover { transform: translateY(-6px); border-color: rgba(33, 150, 243, 0.5); }
.carte-vedette { grid-column: span 3; display: flex; flex-direction: column; padding: 40px; }
.carte-vedette h3 { font-size: 24px; }
.carte-vedette p { font-size: 15px; max-width: 640px; }
.icone-fonctionnalite {
  font-size: 22px; font-weight: 800; color: var(--or); margin-bottom: 16px;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: rgba(245, 179, 0, 0.14); border-radius: 12px;
}
.carte-fonctionnalite p { font-size: 14px; margin: 0; }

/* Tarifs */
.grille-tarifs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 720px; margin: 0 auto; }
.note-paiement-manuel { text-align: center; font-size: 13px; margin-top: 24px; }
.carte-tarif { padding: 34px; position: relative; transition: transform 0.25s ease; }
.carte-tarif:hover { transform: translateY(-6px); }
.carte-tarif-vedette { border-color: var(--or); box-shadow: 0 20px 50px rgba(245, 179, 0, 0.2); }
.badge-vedette {
  position: absolute; top: -13px; right: 26px; background: linear-gradient(135deg, #f5c542, #d99a1b);
  color: #3a2a00; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 4px 12px; border-radius: 999px;
}
.prix { font-size: 36px; font-weight: 800; color: var(--texte-principal); margin: 0 0 22px; }
.prix-note { font-size: 13px; font-weight: 500; color: var(--texte-secondaire); }
.liste-tarif { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; }
.liste-tarif li { font-size: 14px; color: var(--texte-secondaire); padding-left: 22px; position: relative; }
.liste-tarif li::before { content: "✓"; position: absolute; left: 0; color: var(--bleu-clair); font-weight: 700; }

/* Licences */
.carte-licences { padding: 40px; }
.titre-interne { text-align: left; margin-bottom: 18px; }
.liste-licences { padding-left: 20px; }
.liste-licences li { margin-bottom: 10px; font-size: 14px; color: var(--texte-secondaire); }
.note-licences { font-size: 13px; opacity: 0.75; margin: 0; }

/* Pied de page - ligne de copyright en vraie typo professionnelle (retour utilisateur : reference
   image jointe, majuscules espacees plutot qu'une simple petite ligne grise). */
.pied-de-page { border-top: 1px solid var(--bordure); padding: 40px 0; background: #05070c; }
.pied-de-page-interieur { display: flex; align-items: center; justify-content: center; gap: 18px; flex-direction: column; }
.pied-logo { height: 36px; width: auto; opacity: 0.85; }
.pied-copyright {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--texte-secondaire); margin: 0; text-align: center;
}

/* Animations au defilement */
.au-reveil { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.au-reveil.visible { opacity: 1; transform: translateY(0); }
.au-reveil-1.visible { transition-delay: 0.05s; }
.au-reveil-2.visible { transition-delay: 0.15s; }
.au-reveil-3.visible { transition-delay: 0.25s; }

@media (max-width: 900px) {
  .grille-fonctionnalites { grid-template-columns: repeat(2, 1fr); }
  .carte-vedette { grid-column: span 2; }
}
@media (max-width: 700px) {
  .nav-principale { display: none; }
  .section { padding: 60px 0; }
  .section-fond { background-attachment: scroll; }
  .grille-fonctionnalites { grid-template-columns: 1fr; }
  .carte-vedette { grid-column: span 1; }
  .hero { min-height: auto; padding-bottom: 80px; }
}

/* Panneau de paiement — reste sur le site, tres anime, meme langage visuel (carte vitree, halo,
   logo) que le reste du site plutot qu'une page utilitaire posee a part. */
.voile-modal-paiement {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(3, 4, 8, 0.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.voile-modal-paiement.visible { opacity: 1; pointer-events: auto; }

.modal-paiement {
  position: fixed; z-index: 91;
  top: 50%; left: 50%;
  width: min(460px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0; pointer-events: none;
  background: rgba(10, 13, 20, 0.88);
  border: 1px solid var(--bordure);
  border-radius: 22px;
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  padding: 36px 30px 30px;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-paiement.visible { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }

.modal-paiement-logo-fond {
  position: absolute; top: -40px; right: -40px; width: 220px; opacity: 0.06;
  pointer-events: none; z-index: 0; filter: blur(1px);
}
.modal-paiement-fermer {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--bordure);
  background: rgba(255, 255, 255, 0.06); color: var(--texte-principal);
  cursor: pointer; font-size: 14px; transition: background 0.2s ease, transform 0.2s ease;
}
.modal-paiement-fermer:hover { background: rgba(255, 255, 255, 0.14); transform: rotate(90deg); }

.etape-paiement {
  position: relative; z-index: 1;
  display: none;
  opacity: 0; transform: translateY(10px);
  animation: apparitionEtape 0.4s ease forwards;
}
.etape-paiement.etape-active { display: block; }
@keyframes apparitionEtape {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.etape-paiement h2 { font-size: 20px; margin-bottom: 8px; }
.modal-note { font-size: 14px; color: var(--texte-secondaire); margin: 0 0 18px; }
.modal-paiement label { display: block; margin: 14px 0 6px; font-size: 13px; color: var(--texte-secondaire); }
.modal-paiement input, .modal-paiement select {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--bordure);
  background: rgba(255, 255, 255, 0.05); color: var(--texte-principal); font-size: 14px; box-sizing: border-box;
}
.modal-paiement input:focus, .modal-paiement select:focus { outline: 2px solid var(--bleu-clair); outline-offset: 1px; }
.modal-erreur { color: #ff6b6b; font-size: 13px; margin: 12px 0 0; min-height: 16px; }
.modal-paiement .bouton { margin-top: 20px; }

.modal-retour {
  background: none; border: none; color: var(--texte-secondaire); font-size: 13px;
  cursor: pointer; padding: 0; margin-bottom: 14px; transition: color 0.2s ease;
}
.modal-retour:hover { color: var(--bleu-clair); }

.grille-methodes { display: flex; flex-direction: column; gap: 12px; }
.carte-methode {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 16px; border-radius: 14px; border: 1px solid var(--bordure);
  background: rgba(255, 255, 255, 0.04); color: var(--texte-principal);
  cursor: pointer; transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  position: relative;
}
.carte-methode:not(:disabled):hover { transform: translateY(-3px) scale(1.01); border-color: rgba(33, 150, 243, 0.5); background: rgba(255, 255, 255, 0.07); }
.carte-methode:disabled { opacity: 0.5; cursor: default; }
.icone-methode { font-size: 22px; width: 32px; text-align: center; }
.nom-methode { font-weight: 700; font-size: 14px; }
.badge-methode-bientot {
  margin-left: auto; font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.1); padding: 4px 8px; border-radius: 999px;
}

/* Confirmation animee - c'est le moment le plus visible du parcours, doit se voir avant de se lire. */
.succes-halo {
  width: 120px; height: 120px; margin: 0 auto 8px; border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 217, 100, 0.35) 0%, rgba(33, 150, 243, 0.12) 55%, transparent 75%);
  filter: blur(4px);
  animation: pulsationSucces 2.4s ease-in-out infinite;
}
@keyframes pulsationSucces {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.12); opacity: 1; }
}
.succes-coche {
  width: 68px; height: 68px; margin: -94px auto 18px; border-radius: 50%;
  background: linear-gradient(135deg, #4cd964, #1f9e46);
  color: #fff; font-size: 32px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(76, 217, 100, 0.4);
  animation: apparitionCoche 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}
@keyframes apparitionCoche {
  from { transform: scale(0) rotate(-45deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}
[data-etape="succes"], [data-etape="redirection"] { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .au-reveil { opacity: 1; transform: none; transition: none; }
  .hero-lueur, .hero-defilement span { animation: none; }
  .modal-paiement, .voile-modal-paiement, .etape-paiement, .succes-halo, .succes-coche { animation: none; transition: none; }
}
