/* =============================================================
   GACHAFU — DESIGN SYSTEM
   Thème CLAIR, accents cyan/rose (univers gacha). Mobile-first.
   ============================================================= */

/* ---------- TOKENS ------------------------------------------- */
:root {
  /* Couleurs de base (claires) */
  --bg:            #F4F7FB;   /* fond de page (blanc bleuté) */
  --bg-2:          #E8EEF7;   /* sections alternées / surfaces */
  --bg-3:          #FFFFFF;   /* cartes */
  --line:          #D3DCEA;   /* bordures */
  --line-soft:     #E5EAF3;

  /* Accents (assez profonds pour rester lisibles sur clair) */
  --neon:          #0A7299;   /* cyan profond — texte/icônes/accents */
  --neon-bright:   #16C6EE;   /* cyan vif — remplissage des boutons */
  --neon-2:        #D62E6B;   /* rose gacha — texte accent + bouton secondaire */
  --neon-2-deep:   #B32A8F;   /* magenta pour les dégradés */
  --neon-glow:     rgba(10,114,153,0.22);

  /* Texte */
  --text:          #14223D;   /* bleu nuit quasi noir */
  --text-soft:     #46536F;
  --text-mute:     #6A7590;

  /* Sémantique */
  --success:       #0E9E63;
  --warning:       #8A5200;

  /* Rayons & ombres (douces, neutres — pas de halo néon) */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow: 0 18px 40px -22px rgba(20,34,61,0.30);
  --glow:   0 10px 28px -12px rgba(20,34,61,0.22);

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(18px, 5vw, 40px);

  /* Typo */
  --font-body: "Inter", "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

/* ---------- RESET / BASE ------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 18px;          /* base plus grande pour un public senior */
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 500px at 80% -10%, rgba(214,46,107,0.05), transparent 60%),
    radial-gradient(1000px 600px at 0% 0%, rgba(10,114,153,0.05), transparent 55%);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

/* ---------- UTILITAIRES -------------------------------------- */
.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section   { padding-block: clamp(56px, 9vw, 110px); }
.center    { text-align: center; }
.neon-text { color: var(--neon); }
.eyebrow {
  display: inline-block; font-family: var(--font-display);
  font-size: .95rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--neon); margin-bottom: 14px;
}
.lead { color: var(--text-soft); font-size: clamp(1.15rem, 1.9vw, 1.35rem); line-height: 1.7; max-width: 60ch; }
.muted { color: var(--text-mute); }

/* ---------- BOUTONS ------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  padding: 16px 30px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn { max-width: 100%; }
/* Boutons dans les cartes / bandeaux : autoriser le retour à la ligne (évite le débordement mobile) */
.card .btn, .cta-band .btn { white-space: normal; }
.btn-primary {
  background: linear-gradient(120deg, var(--neon-bright), #12A2DB);
  color: #06283A; box-shadow: var(--glow); font-weight: 700;
}
.btn-primary:hover { box-shadow: 0 14px 32px -12px rgba(20,34,61,0.32); transform: translateY(-2px); }
.btn-ghost {
  background: #fff; color: var(--text); border-color: var(--line); border-width: 2px;
}
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); }
.btn-secondary {
  background: linear-gradient(120deg, var(--neon-2), var(--neon-2-deep));
  color: #fff; font-weight: 700; box-shadow: var(--glow);
}
.btn-secondary:hover { box-shadow: 0 14px 32px -12px rgba(179,42,143,0.35); transform: translateY(-2px); }
.btn-lg { padding: 19px 40px; font-size: 1.18rem; }
.btn-sm { padding: 11px 20px; font-size: 1rem; }

/* ---------- HEADER ------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
/* Logo : pince + capsule de gacha */
.brand .logo-icon {
  width: 32px; height: 32px; display: block;
  filter: drop-shadow(0 2px 4px rgba(20,34,61,0.15));
}
/* Wordmark bicolore : « Gacha » foncé + « Fu » rose (cf. logo) */
.brand b { color: var(--text); }
.brand .brand-accent { color: var(--neon-2); }
.nav-links { display: flex; align-items: center; gap: 26px; flex-wrap: nowrap; }
.nav-links a { color: var(--text-soft); font-size: 1.05rem; white-space: nowrap; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--neon); }
.nav-links a.only-mobile { display: none; }   /* visible seulement dans le menu mobile */
.nav-cta { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; }

@media (max-width: 1024px) {
  .nav-links {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 22px; transform: translateY(-120%);
    transition: transform .28s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .nav-links a.only-mobile { display: block; }   /* réapparaît dans le menu mobile */
  .nav-toggle { display: block; }
  .nav-cta .btn.hide-mobile { display: none; }
}

/* ---------- HERO --------------------------------------------- */
.hero { position: relative; padding-top: clamp(22px, 3vw, 44px); padding-bottom: clamp(44px, 7vw, 84px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(1.95rem, 4.4vw, 3.1rem); }
.hero h1 span { color: var(--neon); }
.hero .lead { margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; color: var(--text-soft); font-size: .92rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .ic { color: var(--neon); font-weight: 700; }

.hero-visual {
  position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(10,114,153,0.10), transparent 62%),
    linear-gradient(180deg, #FFFFFF, #E7F0F8);
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: clamp(16px, 3vw, 32px);
}
.hero-machine {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(20,34,61,0.16));
}
.price-sticker {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--glow); padding: 11px 15px; text-align: left; max-width: 62%;
}
.price-sticker .pb-label { display: block; color: var(--text-mute); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.price-sticker .new { display: block; font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.75rem); color: var(--neon); line-height: 1.1; }
.price-sticker .save { display: inline-block; margin-top: 6px; background: rgba(10,114,153,0.10); color: var(--neon); border: 1px solid var(--line); font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { width: 100%; max-width: 420px; margin: 0 auto; aspect-ratio: 4/4.4; }
}
@media (max-width: 620px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- BADGE PRIX --------------------------------------- */
.price-badge {
  position: relative; z-index: 1; text-align: center; padding: 22px 26px;
  background: #FFFFFF; border: 1px solid var(--neon); border-radius: var(--r-md);
  box-shadow: var(--glow);
}
.price-badge .pb-label { color: var(--text-mute); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.price-badge .new { font-family: var(--font-display); font-size: clamp(2rem,6vw,2.8rem); color: var(--neon); }
.price-badge .save { display: inline-block; margin-top: 8px; background: rgba(10,114,153,0.10); color: var(--neon); border: 1px solid var(--line); font-weight: 600; font-size: .82rem; padding: 5px 14px; border-radius: 999px; }
.price-badge .pb-note { color: var(--text-soft); font-size: .84rem; margin-top: 12px; max-width: 24ch; margin-inline: auto; }

/* ---------- CARTES / GRILLES --------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-3);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; box-shadow: 0 2px 10px -6px rgba(20,34,61,0.10);
  transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--neon); box-shadow: var(--glow); }
.card .ic-badge {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(10,114,153,0.10); color: var(--neon); margin-bottom: 16px; font-size: 1.4rem;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: 1.08rem; }
.card.center { text-align: center; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 6vw, 3rem); color: var(--neon); margin-bottom: 8px; }

/* ---------- CARTE PRODUIT (catalogue) ------------------------ */
.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-card .thumb { aspect-ratio: 4/3; background: var(--bg-2); position: relative; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .tag {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,0.92);
  border: 1px solid var(--line); color: var(--text-soft); font-size: .74rem; padding: 4px 10px; border-radius: 999px;
}
.product-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card h3 { font-size: 1.2rem; }
.product-card .desc { color: var(--text-soft); font-size: .92rem; flex: 1; }
.product-card .price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.product-card .price-row .from { color: var(--text-mute); font-size: .8rem; }
.product-card .price-row .amount { font-family: var(--font-display); font-size: 1.5rem; color: var(--neon); }
.product-card .price-row .ht { color: var(--text-mute); font-size: .78rem; }

/* ---------- RÉASSURANCE / BANDEAU ---------------------------- */
.reassure {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  padding: 20px; border-block: 1px solid var(--line-soft); background: var(--bg-2);
}
.reassure .item { display: inline-flex; align-items: center; gap: 10px; color: var(--text-soft); font-size: 1.05rem; }
.reassure .ic { color: var(--neon); }

/* ---------- COMPARATIF PRIX ---------------------------------- */
.compare { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.compare .row { display: grid; grid-template-columns: 1fr 1fr; }
.compare .row > div { padding: 20px 22px; }
.compare .head { background: var(--bg-2); font-family: var(--font-display); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); }
.compare .us { background: rgba(10,114,153,0.06); border-left: 2px solid var(--neon); }
.compare .them { border-left: 2px solid var(--line); color: var(--text-soft); }
.compare .val { font-family: var(--font-display); font-size: 1.6rem; }
.compare .us .val { color: var(--neon); }
.compare .them .val { color: var(--text-mute); text-decoration: line-through; }
.compare .row + .row { border-top: 1px solid var(--line-soft); }

/* ---------- SECTIONS ALT ------------------------------------- */
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }

/* ---------- CTA FINAL ---------------------------------------- */
.cta-band {
  border: 1px solid var(--neon); border-radius: var(--r-lg);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(214,46,107,0.08), transparent 55%),
    radial-gradient(120% 140% at 0% 100%, rgba(10,114,153,0.10), transparent 55%),
    #FFFFFF;
  padding: clamp(30px, 5vw, 56px); text-align: center; box-shadow: var(--glow);
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band .lead { margin: 0 auto 26px; }

/* ---------- FICHE PRODUIT ------------------------------------ */
.pdp { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px,5vw,54px); align-items: start; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } }
.gallery .main {
  aspect-ratio: 4/3; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-2);
}
.gallery .main img, .gallery .main video { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.gallery .thumbs button {
  width: 84px; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; padding: 0;
}
.gallery .thumbs button.active { border-color: var(--neon); box-shadow: var(--glow); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-info .cat { color: var(--neon); font-family: var(--font-display); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.pdp-info h1 { margin: 8px 0 12px; }
.pdp-price { display: flex; align-items: baseline; gap: 14px; margin: 18px 0; }
.pdp-price .amount { font-family: var(--font-display); font-size: clamp(2rem,5vw,2.6rem); color: var(--neon); }
.pdp-price .from { color: var(--text-mute); font-size: .85rem; }
.price-note { color: var(--text-soft); font-size: .9rem; margin-top: 8px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pdp-highlights { margin: 22px 0; display: grid; gap: 12px; }
.pdp-highlights li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); }
.pdp-highlights .ic { color: var(--neon); flex: none; margin-top: 3px; }

.specs-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.specs-table tr:nth-child(odd) { background: var(--bg-2); }
.specs-table th, .specs-table td { text-align: left; padding: 14px 18px; font-size: .95rem; }
.specs-table th { color: var(--text-mute); font-weight: 500; width: 42%; }
.specs-table td { color: var(--text); }

/* ---------- FORMULAIRE --------------------------------------- */
.form-card { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px,4vw,38px); box-shadow: 0 2px 10px -6px rgba(20,34,61,0.10); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .9rem; color: var(--text-soft); margin-bottom: 8px; }
.field .req { color: var(--neon-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; background: #F7FAFD; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-sm); font-family: inherit; font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(10,114,153,0.15);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: var(--text-mute); margin-top: 4px; }
.choice-group { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 6px; }
@media (max-width: 620px) { .choice-group { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  display: block; height: 100%; padding: 16px 18px; border: 2px solid var(--line);
  border-radius: var(--r-md); cursor: pointer; font-weight: 600; color: var(--text-soft);
  background: #fff; font-family: var(--font-display); transition: border-color .15s, background .15s, color .15s;
}
.choice input:checked + label { border-color: var(--neon); color: var(--text); background: rgba(10,114,153,0.07); }
.choice input:focus-visible + label { outline: 2px solid var(--neon); outline-offset: 2px; }
.choice label small { display: block; font-weight: 400; font-size: .88rem; color: var(--text-mute); margin-top: 5px; font-family: var(--font-body); }
.form-status { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-sm); font-size: .92rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(14,158,99,0.10); border: 1px solid var(--success); color: #0B7A4A; }
.form-status.err { background: rgba(200,40,40,0.08); border: 1px solid #D64545; color: #B01818; }

/* ---------- FOOTER ------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: 54px 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font-display); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 14px; }
.site-footer a { color: var(--text-soft); font-size: .93rem; display: block; padding: 5px 0; }
.site-footer a:hover { color: var(--neon); }
.footer-bottom { border-top: 1px solid var(--line-soft); margin-top: 34px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; color: var(--text-mute); font-size: .85rem; }
.footer-brand b { color: var(--neon); }
.footer-pro-note { color: var(--warning); font-size: .82rem; margin-top: 8px; font-weight: 600; }

/* ---------- RÉVÉLATION AU DÉFILEMENT ------------------------- */
/* Les éléments apparaissent en fondu + léger glissement quand ils entrent
   dans l'écran (adouci les transitions entre sections). JS ajoute .reveal. */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
/* léger décalage en cascade pour les cartes d'une même grille */
.grid > .reveal:nth-child(2) { transition-delay: .08s; }
.grid > .reveal:nth-child(3) { transition-delay: .16s; }
.grid > .reveal:nth-child(4) { transition-delay: .24s; }
.grid > .reveal:nth-child(5) { transition-delay: .32s; }
.grid > .reveal:nth-child(6) { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Moins d'espace en haut de la 1re section d'une page (évite le grand vide) */
main > section.section:first-child { padding-top: clamp(24px, 3.5vw, 48px); }

/* ---------- FAQ (accordéons) --------------------------------- */
.faq-item {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-md);
  margin-bottom: 14px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 22px; font-family: var(--font-display); font-weight: 600;
  font-size: 1.08rem; color: var(--text); transition: color .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; line-height: 1; color: var(--neon); flex: none;
  transition: transform .2s ease;
}
.faq-item[open] summary { color: var(--neon); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--neon); }
.faq-item p { padding: 0 22px 20px; color: var(--text-soft); }
.faq-item a { color: var(--neon); text-decoration: underline; }

/* ---------- DIVERS ------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; color: var(--text-soft); background: #fff; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.breadcrumb { color: var(--text-mute); font-size: .86rem; margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--neon); }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; }

/* Accessibilité : focus visible clavier */
:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; border-radius: 4px; }
