/* Théorix — site vitrine. Branding aligné sur l'app (bleu nuit + jaune + ambre, claymorphism). */
:root {
  --nuit: #14304f;
  --bleu: #1d4e89;
  --ambre: #f5a623;
  --jaune: #ffd23f;
  --vert: #2e9e5b;
  --fond: #f8fafc;
  --carte: #ffffff;
  --texte: #1c2737;
  --texte-doux: #5b6b7d;
  --bordure: #e6edf4;
  --ombre: 0 18px 40px rgba(20, 48, 79, 0.12);
  --ombre-douce: 0 8px 22px rgba(20, 48, 79, 0.08);
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--texte);
  background: var(--fond);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Fredoka', 'Nunito', system-ui, sans-serif; font-weight: 600; letter-spacing: -.3px; }
a { color: var(--bleu); text-decoration: none; }
.wrap { width: min(1100px, 92%); margin: 0 auto; }

/* En-tête */
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bordure);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo {
  display: flex; align-items: center; gap: 11px;
  font-family: 'Fredoka', system-ui, sans-serif; font-weight: 600;
  font-size: 26px; letter-spacing: -.6px; color: var(--nuit); line-height: 1;
}
.logo img {
  width: 46px; height: 46px; object-fit: cover; object-position: center;
  border-radius: 50%; box-shadow: 0 3px 9px rgba(20, 48, 79, .2);
}
.logo b { color: var(--ambre); font-weight: 600; }
/* Variante du wordmark dans le pied (sur fond nuit) */
footer .logo { color: #fff; font-size: 24px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--nuit); font-weight: 600; }
.btn {
  display: inline-block; background: var(--bleu); color: #fff; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; box-shadow: var(--ombre-douce);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--ombre); }
.btn:active { transform: translateY(0) scale(.97); }
.btn.jaune { background: var(--jaune); color: var(--nuit); }
/* Focus clavier visible partout (accessibilité) */
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--ambre); outline-offset: 3px; border-radius: 6px; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--nuit), var(--bleu)); color: #fff; padding: 64px 0 80px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: center; }
.hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.1; letter-spacing: .2px; }
.hero h1 .jaune { color: var(--jaune); }
.hero p.sous { font-size: 18px; color: #d7e2ee; margin: 18px 0 26px; max-width: 30em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.pill { display:inline-block; background: rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.22); color:#fff; padding:6px 14px; border-radius:999px; font-size:13px; font-weight:600; margin-bottom: 18px; }
.hero-img { display: flex; justify-content: center; position: relative; }
.hero-img::before {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 63, .28), rgba(255, 210, 63, 0) 68%);
  filter: blur(6px); z-index: 0;
}
.hero-img img {
  position: relative; z-index: 1; width: min(430px, 100%);
  filter: drop-shadow(0 18px 26px rgba(0,0,0,.30));
  animation: flotte 4s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}

/* L'animation « signature » : la mascotte qui tient le panneau bleu bouge doucement (conservée du concept de l'app). */
@keyframes flotte { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* Sections */
section.bloc { padding: 72px 0; }
.titre-bloc { text-align: center; margin-bottom: 12px; }
.titre-bloc h2 { font-size: clamp(26px, 4vw, 38px); color: var(--nuit); }
.titre-bloc p { color: var(--texte-doux); max-width: 38em; margin: 10px auto 0; }

/* Cartes fonctionnalités */
.grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; }
.carte {
  background: var(--carte); border-radius: 26px; padding: 28px;
  box-shadow: 0 10px 30px rgba(20, 48, 79, .10), 0 2px 6px rgba(20, 48, 79, .05);
  border: 1px solid #eef3f8;
  transition: transform .2s ease, box-shadow .2s ease;
}
.carte:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(20, 48, 79, .16); }
.carte .ico {
  width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 12px;
}
.carte .ico img { width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(20, 48, 79, .14)); }
.carte h3 { font-size: 19px; color: var(--nuit); margin-bottom: 6px; }
.carte p { color: var(--texte-doux); font-size: 15px; }

/* Section mascotte */
.mascotte { background: var(--carte); }
.mascotte .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 30px; align-items: center; }
.mascotte img {
  width: min(300px, 76%); margin: 0 auto; display: block;
  -webkit-mask-image: linear-gradient(to bottom, #000 76%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 76%, transparent 99%);
}
.mascotte h2 { font-size: clamp(24px, 4vw, 34px); color: var(--nuit); }
.mascotte p { color: var(--texte-doux); margin-top: 12px; font-size: 17px; }

/* CTA bas */
.cta-bas { background: linear-gradient(160deg, var(--bleu), var(--nuit)); color: #fff; text-align: center; border-radius: var(--radius); padding: 54px 24px; }
.cta-bas h2 { font-size: clamp(24px, 4vw, 34px); }
.cta-bas p { color: #d7e2ee; margin: 12px 0 24px; }
.stores { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Pied */
footer { background: var(--nuit); color: #cdd9e6; padding: 40px 0; margin-top: 20px; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
footer a { color: #cdd9e6; }
footer a:hover { color: #fff; }
footer .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.note-juridique { color: #8aa0b6; font-size: 12px; margin-top: 18px; max-width: 60em; }

/* Pages légales */
.legal { padding: 50px 0 70px; }
.legal .wrap { width: min(820px, 92%); }
.legal h1 { font-size: 32px; color: var(--nuit); }
.legal .maj { color: var(--texte-doux); font-size: 13px; margin: 6px 0 18px; }
.legal .intro { background: var(--carte); border: 1px solid var(--bordure); border-radius: 14px; padding: 16px 18px; color: var(--texte); }
.legal h2 { color: var(--bleu); font-size: 18px; margin: 26px 0 6px; }
.legal p, .legal li { color: var(--texte); font-size: 15px; }
.legal ul { margin: 6px 0 6px 20px; }
.legal .retour { display: inline-block; margin-bottom: 18px; font-weight: 600; }
.legal .avertissement { background: #fef3e2; border: 1px solid var(--ambre); border-radius: 12px; padding: 12px 16px; color: #92600a; font-size: 14px; margin-bottom: 20px; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.vu { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 820px) {
  .hero .wrap, .mascotte .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .grille { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-img img { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
