/* ============================================================
   IvoireCakes — Design System
   Palette : crème, chocolat, touches dorées
   Fonts : Playfair Display (titres) + Poppins (texte)
   ============================================================ */

:root {
  --cream: #FBF4EA;
  --cream-dark: #F6ECDD;
  --cream-deep: #EFE2CE;
  --choco: #3E2A23;
  --choco-light: #5A3A2E;
  --gold: #C9A24B;
  --gold-dark: #B08D3A;
  --gold-soft: #E8D5A8;
  --blush: #F2C6C0;
  --white: #FFFFFF;
  --shadow-soft: 0 10px 30px rgba(62, 42, 35, 0.10);
  --shadow-card: 0 6px 20px rgba(62, 42, 35, 0.08);
  --radius: 1rem;
  --radius-lg: 1.75rem;
}

* {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  color: var(--choco);
  background-color: var(--cream);
}

h1, h2, h3, h4, h5, .font-display {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--choco);
}

/* ---------- Boutons ---------- */
.btn-brand {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  font-weight: 600;
  border-radius: 50rem;
  padding: 0.7rem 1.6rem;
  transition: all 0.25s ease;
}
.btn-brand:hover,
.btn-brand:focus {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 162, 75, 0.4);
}

.btn-outline-brand {
  background-color: transparent;
  border: 2px solid var(--choco);
  color: var(--choco);
  font-weight: 600;
  border-radius: 50rem;
  padding: 0.6rem 1.6rem;
  transition: all 0.25s ease;
}
.btn-outline-brand:hover,
.btn-outline-brand:focus {
  background-color: var(--choco);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(62, 42, 35, 0.25);
}

.btn-whatsapp {
  background-color: #25D366;
  border-color: #25D366;
  color: var(--white);
  font-weight: 600;
  border-radius: 50rem;
  padding: 0.7rem 1.6rem;
  transition: all 0.25s ease;
}
.btn-whatsapp:hover,
.btn-whatsapp:focus {
  background-color: #1EBE5A;
  border-color: #1EBE5A;
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- Badges / kickers ---------- */
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-dark);
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
}

/* ---------- Cartes ---------- */
.card-soft {
  background-color: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-soft:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

/* ---------- Icône dans un rond ---------- */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: var(--cream-dark);
  color: var(--gold-dark);
  font-size: 1.5rem;
}

/* ============================================================
   PRESENTATION.HTML — deck de slides
   ============================================================ */

.deck {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.slide {
  min-height: 100vh;
  display: flex;
  align-items: center;
  scroll-snap-align: start;
  padding: 5rem 1.5rem;
  background-color: var(--cream);
  position: relative;
}

/* Alternance douce de fonds */
.slide:nth-child(even) {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}
.slide:nth-child(odd) {
  background: linear-gradient(180deg, var(--cream) 0%, #FFFFFF 100%);
}

.slide-inner {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.slide-title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
}

.slide-number {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-dark);
  opacity: 0.85;
}

/* Barre de progression du deck */
.deck-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  z-index: 1050;
  transition: width 0.15s ease-out;
}

/* Boutons précédent / suivant */
.deck-nav {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.deck-nav .btn {
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--white);
  border: 1px solid var(--cream-deep);
  color: var(--choco);
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}
.deck-nav .btn:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

/* Indicateur "slide X / 10" */
.deck-indicator {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 1040;
  background-color: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: 50rem;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--choco);
  box-shadow: var(--shadow-card);
}

/* Étapes du parcours client (flèches) */
.step-arrow {
  color: var(--gold);
  font-size: 1.4rem;
}

/* Timeline roadmap */
.timeline {
  position: relative;
  padding-left: 1.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), var(--blush));
}
.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.35rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background-color: var(--gold);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--gold-soft);
}
.timeline-item:last-child {
  padding-bottom: 0;
}

@media (max-width: 575.98px) {
  .deck-indicator {
    display: none;
  }
}

/* ============================================================
   INDEX.HTML — landing page
   ============================================================ */

/* ---------- Navbar ---------- */
.navbar-ivoire {
  background-color: rgba(251, 244, 234, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(62, 42, 35, 0.06);
}
.navbar-ivoire .navbar-brand {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--choco);
}
.navbar-ivoire .nav-link {
  color: var(--choco);
  font-weight: 500;
  margin-inline: 0.35rem;
}
.navbar-ivoire .nav-link:hover,
.navbar-ivoire .nav-link.active {
  color: var(--gold-dark);
}
.navbar-ivoire .navbar-toggler {
  border: none;
  color: var(--choco);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(242, 198, 192, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(232, 213, 168, 0.45) 0%, transparent 40%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
  padding: 7rem 0 5rem;
}
.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.12;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-dark);
}
.hero-img {
  border-radius: 50% 50% 50% 50% / 45% 45% 55% 55%;
  box-shadow: var(--shadow-soft);
  border: 8px solid var(--white);
  max-width: 100%;
}

/* ---------- Catégories ---------- */
.category-card {
  text-align: center;
  padding: 1.75rem 1rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--choco);
  display: block;
}
.category-card:hover {
  color: var(--choco);
}
.category-card .icon-circle {
  width: 4.25rem;
  height: 4.25rem;
  font-size: 1.9rem;
  background-color: var(--cream-dark);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.category-card:hover .icon-circle {
  background-color: var(--gold);
  color: var(--white);
}
.category-card .category-name {
  font-weight: 600;
  margin-top: 0.9rem;
  margin-bottom: 0;
}

/* ---------- Best sellers ---------- */
.cake-card {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.cake-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.cake-card:hover img {
  transform: scale(1.04);
}
.cake-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cake-card .cake-price {
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 1.15rem;
}

/* ---------- Pourquoi nous choisir ---------- */
.why-card {
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
}

/* ---------- Témoignages ---------- */
.testimonial-card {
  padding: 2rem 1.75rem;
  height: 100%;
  position: relative;
}
.testimonial-card .quote-icon {
  color: var(--gold-soft);
  font-size: 2.5rem;
  line-height: 1;
}
.testimonial-card .stars {
  color: var(--gold);
}

/* ---------- Bandeau CTA WhatsApp ---------- */
.cta-whatsapp {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  color: var(--white);
}
.cta-whatsapp h2 {
  color: var(--white);
}

/* ---------- Footer ---------- */
.footer-ivoire {
  background-color: var(--choco);
  color: rgba(255, 255, 255, 0.85);
}
.footer-ivoire a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-ivoire a:hover {
  color: var(--gold-soft);
}
.footer-ivoire .footer-brand {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
}
.footer-ivoire .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
  transition: background-color 0.2s ease;
}
.footer-ivoire .social-icon:hover {
  background-color: var(--gold);
  color: var(--choco);
}

/* ---------- Utilitaires ---------- */
.text-choco { color: var(--choco); }
.text-gold { color: var(--gold-dark); }
.bg-cream { background-color: var(--cream); }
.bg-cream-dark { background-color: var(--cream-dark); }
