/* ============================================================
   LANDING.CSS — Page d'accueil publique Pizzatore Maestro
   Couleurs reprises de main.css (Fuchsia × Orange × Ambre)
   ============================================================ */

:root {
  --primary:      #FF1477;
  --primary-dark: #CC005E;
  --accent:       #FF7200;
  --yellow:       #FFAB00;
  --grad:         linear-gradient(135deg, #FF1477 0%, #FF6535 100%);
  --dark:         #1A1A2E;
  --dark-2:       #24243C;
  --cream:        #FFF5F9;
  --white:        #FFFFFF;
  --border:       #F0DDE9;
  --text:         #1A1A2E;
  --muted:        #6E5E6C;
  --radius-sm:    14px;
  --radius:       22px;
  --radius-lg:    32px;
  --shadow:       0 10px 30px rgba(255,20,120,0.12);
  --shadow-lg:    0 24px 70px rgba(0,0,0,0.35);
  --max:          1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-dark); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 0; border-radius: 50px; cursor: pointer; text-decoration: none;
  font: inherit; font-weight: 800; font-size: .95rem; letter-spacing: .2px;
  padding: .85rem 1.6rem; transition: transform .2s, box-shadow .2s, background .2s, opacity .2s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(255,20,120,.38); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,20,120,.5); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s, box-shadow .25s, backdrop-filter .25s;
}
.site-header.scrolled { background: rgba(26,26,46,.86); backdrop-filter: blur(12px); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; font-weight: 900; font-size: 1.15rem; letter-spacing: -.3px; }
.brand-logo { font-size: 1.5rem; }
.header-nav { display: flex; align-items: center; gap: 1.4rem; }
.header-nav a.link { color: rgba(255,255,255,.78); text-decoration: none; font-weight: 600; font-size: .9rem; }
.header-nav a.link:hover { color: #fff; }
.header-nav .btn { padding: .55rem 1.1rem; font-size: .85rem; }
@media (max-width: 760px) { .header-nav a.link { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--dark);
  background-image:
    radial-gradient(circle at 12% 30%, rgba(255,20,120,.28) 0%, transparent 50%),
    radial-gradient(circle at 90% 85%, rgba(255,114,0,.22) 0%, transparent 45%);
  padding: 110px 0 70px;
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 3.5rem; } .hero { padding: 140px 0 100px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  color: #FFD3E6; border-radius: 50px; padding: .35rem .9rem; font-size: .8rem; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.4rem); line-height: 1.08; font-weight: 900; letter-spacing: -1.4px;
  margin: 1.1rem 0 1.1rem;
}
.hero h1 .grad { background: linear-gradient(90deg, #FF6EB5, #FFAB00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.08rem; color: rgba(255,255,255,.76); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.8rem; list-style: none; color: rgba(255,255,255,.7); font-size: .88rem; font-weight: 600; }
.hero-points li::before { content: "✓"; color: var(--yellow); font-weight: 900; margin-right: .4rem; }

/* Visuel pizza + carte d'accès */
.hero-visual { position: relative; display: flex; justify-content: center; }
.pizza-plate {
  position: absolute; width: 640px; aspect-ratio: 1; top: 50%; left: 50%;
  transform: translate(-12%, -50%); border-radius: 50%; overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.55); animation: spin 140s linear infinite;
}
.pizza-plate img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.22); }
@keyframes spin { to { transform: translate(-12%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pizza-plate { animation: none; } }
@media (max-width: 979px) {
  .pizza-plate { width: 320px; top: -40px; left: auto; right: -110px; transform: none; animation: none; opacity: .55; }
}

/* ---------- Carte d'accès (connexion / demande) ---------- */
.auth-card {
  position: relative; z-index: 2; width: 100%; max-width: 430px;
  background: var(--white); color: var(--text); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.6rem 1.5rem 1.8rem;
}
@media (min-width: 980px) { .auth-card { margin-right: auto; margin-left: -10px; } .hero-visual { justify-content: flex-start; } }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); border-radius: 50px; padding: 4px; margin-bottom: 1.3rem; }
.tab {
  border: 0; background: transparent; border-radius: 50px; padding: .6rem .5rem; cursor: pointer;
  font: inherit; font-weight: 800; font-size: .86rem; color: var(--muted); transition: background .2s, color .2s;
}
.tab[aria-selected="true"] { background: var(--white); color: var(--primary-dark); box-shadow: 0 3px 12px rgba(255,20,120,.15); }
.panel[hidden] { display: none; }
.panel-title { font-size: 1.25rem; font-weight: 900; letter-spacing: -.4px; margin-bottom: .2rem; }
.panel-sub { color: var(--muted); font-size: .88rem; margin-bottom: 1.1rem; }

.field { margin-bottom: .85rem; }
.field label { display: block; font-weight: 700; font-size: .82rem; margin-bottom: .3rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .93rem; color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: #fff;
  padding: .7rem .9rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 78px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,20,120,.14); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.pwd-wrap { position: relative; }
.pwd-wrap input { padding-right: 3rem; }
.pwd-toggle { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; cursor: pointer; font-size: 1.05rem; padding: .4rem; color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--primary-dark); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .75rem; color: var(--muted); margin-top: .7rem; text-align: center; }
.alert { border-radius: var(--radius-sm); padding: .7rem .9rem; font-size: .86rem; margin-bottom: .9rem; }
.alert[hidden] { display: none; }
.alert-error { background: #FFE9EF; color: #A1003F; }
.alert-success { background: #E6FBF4; color: #046B4F; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
@media (max-width: 767px) { .section { padding: 60px 0; } }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.kicker { color: var(--primary-dark); font-weight: 800; font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; }
.section h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 900; letter-spacing: -.9px; line-height: 1.15; margin: .4rem 0 .8rem; }
.section-head p { color: var(--muted); font-size: 1.02rem; }

/* Fonctionnalités */
.features { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature {
  background: var(--white); border-radius: var(--radius); padding: 1.6rem 1.4rem;
  box-shadow: 0 2px 12px rgba(255,20,120,.06); border: 1px solid #fbe9f2; transition: transform .22s, box-shadow .22s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 1rem; }
.feature h3 { font-size: 1.07rem; font-weight: 800; margin-bottom: .45rem; letter-spacing: -.2px; }
.feature p { color: var(--muted); font-size: .92rem; }

/* Bloc pâte */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.split-img { position: relative; }
.split-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; height: auto; }
.badge-float {
  position: absolute; background: #fff; color: var(--text); border-radius: 18px; padding: .75rem 1rem; box-shadow: 0 12px 34px rgba(0,0,0,.15);
  font-size: .85rem; font-weight: 700; display: flex; align-items: center; gap: .6rem;
}
.badge-float strong { display: block; font-size: 1.05rem; color: var(--primary-dark); }
.badge-float.b1 { left: -10px; bottom: 26px; }
.badge-float.b2 { right: -8px; top: 22px; }
@media (max-width: 600px) { .badge-float.b1 { left: 8px; } .badge-float.b2 { right: 8px; } }
.check-list { list-style: none; margin-top: 1.2rem; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; font-size: .97rem; }
.check-list li::before { content: "🍅"; flex-shrink: 0; }
.dark-section { background: var(--dark); color: #fff; }
.dark-section .section-head p, .dark-section p { color: rgba(255,255,255,.72); }
.dark-section .kicker { color: #FF8CC6; }
.cta-band .kicker { color: #fff; }

/* Galerie (carrousel horizontal, glissable au doigt) */
.carousel { position: relative; }
.gallery {
  list-style: none; display: grid; grid-auto-flow: column; gap: 1rem;
  /* Pas de scroll-behavior:smooth ici : combiné au scroll-snap, Chrome fait un défilement animé
     au chargement, ce qui stoppe la mesure du LCP (erreur NO_LCP sur PageSpeed).
     Les flèches défilent en douceur via scrollBy({behavior:"smooth"}). */
  grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .25rem .25rem 1rem; scrollbar-width: thin; scrollbar-color: var(--primary) transparent;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 600px)  { .gallery { grid-auto-columns: calc((100% - 2rem) / 3); } }
@media (min-width: 1000px) { .gallery { grid-auto-columns: calc((100% - 3rem) / 4); } }
.gallery li { scroll-snap-align: start; }
.carousel-btn {
  position: absolute; top: calc(50% - .5rem); transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--primary-dark); font-size: 1.8rem; line-height: 1; box-shadow: 0 8px 24px rgba(0,0,0,.18);
  display: none; transition: transform .2s, opacity .2s;
}
.carousel-btn:hover { transform: translateY(-50%) scale(1.08); }
.carousel-btn[disabled] { opacity: 0; pointer-events: none; }
.carousel-btn.prev { left: -14px; }
.carousel-btn.next { right: -14px; }
@media (min-width: 760px) { .carousel-btn { display: grid; place-items: center; } }
.gallery figure { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: #2a2a40; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem 1rem .8rem; color: #fff; font-weight: 800; font-size: .95rem;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
}

/* Étapes */
.steps { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: step; }
.step { position: relative; background: var(--white); border-radius: var(--radius); padding: 2rem 1.4rem 1.5rem; border: 1px solid #fbe9f2; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 1.4rem; width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 900; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(255,20,120,.35);
}
.step h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .92rem; }

/* Bandeau CTA */
.cta-band {
  background: var(--grad); color: #fff; border-radius: var(--radius-lg); padding: 2.6rem 1.6rem; text-align: center;
  box-shadow: 0 20px 50px rgba(255,20,120,.3);
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 1.4rem; }
.cta-band .btn { background: #fff; color: var(--primary-dark); box-shadow: 0 8px 24px rgba(0,0,0,.18); }

/* Texte SEO */
.seo-text { max-width: 820px; margin: 0 auto; }
.seo-text h2 { text-align: left; }
.seo-text h3 { font-size: 1.15rem; font-weight: 800; margin: 1.6rem 0 .5rem; letter-spacing: -.2px; }
.seo-text p { color: #4a3f49; margin-bottom: .9rem; }
.seo-text ul { margin: 0 0 1rem 1.2rem; color: #4a3f49; }
.seo-text li { margin-bottom: .35rem; }
.seo-more { overflow: hidden; transition: max-height .5s ease; }
.seo-more.collapsed { max-height: 0; }
.read-more {
  margin-top: .4rem; background: transparent; border: 2px solid var(--primary); color: var(--primary-dark);
}
.read-more:hover { background: var(--primary); color: #fff; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: .8rem; }
.faq details { background: var(--white); border-radius: var(--radius-sm); border: 1px solid #fbe9f2; padding: 0 1.2rem; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-weight: 800; font-size: 1rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--primary); font-weight: 700; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 0 1.1rem; color: #4a3f49; }
.faq .answer p + p { margin-top: .6rem; }

/* Pied de page */
.site-footer { background: var(--dark); color: rgba(255,255,255,.6); padding: 2.5rem 0; font-size: .88rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
