/* ===== VARIABLES & RESET ===== */
:root {
  --creme: #FFF8F0;
  --creme-fonce: #F5E6D0;
  --chocolat: #3D1A08;
  --chocolat-moyen: #6B3520;
  --caramel: #C8721A;
  --caramel-clair: #F0A84C;
  --rose: #E8637A;
  --rose-clair: #FDEDF0;
  --vert: #4A7C59;
  --blanc: #FFFFFF;
  --texte: #2C1A0E;
  --texte-doux: #6B4C3B;
  --ombre: rgba(61, 26, 8, 0.12);

  --font-titre: 'Playfair Display', Georgia, serif;
  --font-corps: 'Nunito', sans-serif;

  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-corps);
  background: var(--creme);
  color: var(--texte);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--creme-fonce);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex-direction: column;
  line-height: 1;
}

.logo-main {
  font-family: var(--font-titre);
  font-weight: 900;
  font-size: 1.7rem;
  color: var(--caramel);
  letter-spacing: -1px;
}

.logo-dash {
  font-family: var(--font-titre);
  font-weight: 900;
  font-size: 1.7rem;
  color: var(--rose);
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--texte-doux);
  margin-top: 1px;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav a {
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--texte-doux);
  transition: color 0.2s;
}

nav a:hover { color: var(--caramel); }

.btn-nav {
  background: var(--caramel) !important;
  color: var(--blanc) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem !important;
  transition: background 0.2s, transform 0.1s !important;
}

.btn-nav:hover {
  background: var(--chocolat-moyen) !important;
  transform: translateY(-1px);
}

/* ===== HERO ===== */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  min-height: 70vh;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--rose);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-titre);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--chocolat);
  margin-bottom: 1.2rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--caramel);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--texte-doux);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.btn-hero {
  display: inline-block;
  background: var(--caramel);
  color: var(--blanc);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(200, 114, 26, 0.35);
}

.btn-hero:hover {
  background: var(--chocolat-moyen);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(200, 114, 26, 0.4);
}

/* Hero déco */
.hero-deco {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 380px;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
}

.c1 {
  width: 320px; height: 320px;
  background: var(--creme-fonce);
}

.c2 {
  width: 220px; height: 220px;
  background: rgba(200, 114, 26, 0.12);
  top: 30px; right: 20px;
}

.c3 {
  width: 120px; height: 120px;
  background: rgba(232, 99, 122, 0.15);
  bottom: 40px; left: 20px;
}

.hero-emoji {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  animation: wobble 3s ease-in-out infinite;
}

@keyframes wobble {
  0%, 100% { transform: rotate(-4deg) scale(1); }
  50% { transform: rotate(4deg) scale(1.06); }
}

/* ===== SECTIONS ===== */
.catalogue, .commande {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: var(--font-titre);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--chocolat);
  margin-bottom: 0.6rem;
}

.section-header p {
  font-size: 1rem;
  color: var(--texte-doux);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== GRILLE GÂTEAUX ===== */
.gateaux-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
}

/* Carte gâteau */
.gateau-card {
  background: var(--blanc);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 20px var(--ombre);
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}

.gateau-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(61, 26, 8, 0.18);
  border-color: var(--caramel-clair);
}

.card-photo {
  height: 200px;
  background: linear-gradient(135deg, var(--creme-fonce), var(--creme));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  overflow: hidden;
  position: relative;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-photo-placeholder {
  font-size: 4.5rem;
  opacity: 0.6;
}

.card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-nom {
  font-family: var(--font-titre);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--chocolat);
  line-height: 1.2;
}

.card-sous-titre {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--texte-doux);
  margin: 0.25rem 0 0.8rem;
  opacity: 0.7;
}

.card-description {
  font-size: 0.92rem;
  color: var(--texte-doux);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1.5px dashed var(--creme-fonce);
}

.card-meta {
  display: flex;
  gap: 1rem;
}

.card-meta-item {
  font-size: 0.8rem;
  color: var(--texte-doux);
  font-weight: 600;
}

.card-meta-item span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
}

.card-prix {
  font-family: var(--font-titre);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--caramel);
}

.card-btn {
  display: block;
  text-align: center;
  margin-top: 1rem;
  padding: 0.65rem;
  background: var(--creme-fonce);
  color: var(--chocolat-moyen);
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s;
}

.gateau-card:hover .card-btn {
  background: var(--caramel);
  color: var(--blanc);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(61, 26, 8, 0.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.modal-overlay.hidden { display: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--blanc);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 1rem;
  color: var(--texte);
  font-weight: 700;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.modal-close:hover { background: var(--rose-clair); }

.modal-photos {
  height: 260px;
  background: linear-gradient(135deg, var(--creme-fonce), var(--creme));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-photos-placeholder {
  font-size: 7rem;
  opacity: 0.5;
}

.modal-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 1.8rem 2rem 2rem;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-header h2 {
  font-family: var(--font-titre);
  font-size: 2rem;
  font-weight: 900;
  color: var(--chocolat);
  line-height: 1.15;
}

.modal-sous-titre {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--texte-doux);
  opacity: 0.65;
  margin-top: 0.2rem;
}

.modal-price-tag {
  background: var(--caramel);
  color: var(--blanc);
  font-family: var(--font-titre);
  font-size: 1.6rem;
  font-weight: 900;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
}

.modal-description {
  font-size: 1rem;
  color: var(--texte-doux);
  line-height: 1.7;
  margin-bottom: 1.4rem;
  font-style: italic;
  padding: 1rem 1.2rem;
  background: var(--rose-clair);
  border-radius: var(--radius);
  border-left: 4px solid var(--rose);
}

.modal-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.meta-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.9rem;
  background: var(--creme);
  border-radius: var(--radius);
  text-align: center;
}

.meta-icon { font-size: 1.4rem; margin-bottom: 0.3rem; }
.meta-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--texte-doux); opacity: 0.6; }
.meta-value { font-size: 1rem; font-weight: 800; color: var(--chocolat-moyen); margin-top: 0.15rem; }

/* Ingrédients */
.modal-ingredients { margin-bottom: 1.8rem; }

.modal-ingredients h3 {
  font-family: var(--font-titre);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--chocolat);
  margin-bottom: 0.9rem;
}

.ingredient-groupe {
  margin-bottom: 1rem;
}

.ingredient-groupe-nom {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--caramel);
  margin-bottom: 0.4rem;
}

.ingredient-liste {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ingredient-liste li {
  background: var(--creme-fonce);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--texte);
}

.btn-commander {
  width: 100%;
  padding: 1rem;
  background: var(--caramel);
  color: var(--blanc);
  border: none;
  border-radius: 50px;
  font-family: var(--font-corps);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(200, 114, 26, 0.35);
}

.btn-commander:hover {
  background: var(--chocolat-moyen);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(200, 114, 26, 0.4);
}

/* ===== FORMULAIRE ===== */
.commande {
  background: var(--blanc);
  border-radius: var(--radius-xl);
  max-width: 780px;
  margin: 0 auto;
  box-shadow: 0 8px 40px var(--ombre);
}

.form-commande {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--texte);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 2px solid var(--creme-fonce);
  border-radius: var(--radius);
  font-family: var(--font-corps);
  font-size: 0.95rem;
  color: var(--texte);
  background: var(--creme);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--caramel);
  box-shadow: 0 0 0 3px rgba(200, 114, 26, 0.15);
  background: var(--blanc);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B4C3B' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  padding: 1rem 2rem;
  background: var(--caramel);
  color: var(--blanc);
  border: none;
  border-radius: 50px;
  font-family: var(--font-corps);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(200, 114, 26, 0.35);
  align-self: center;
  min-width: 260px;
}

.btn-submit:hover {
  background: var(--chocolat-moyen);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(200, 114, 26, 0.4);
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--texte-doux);
  opacity: 0.7;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 2.5rem 2rem;
  margin-top: 4rem;
  font-size: 0.88rem;
  color: var(--texte-doux);
  border-top: 2px dashed var(--creme-fonce);
}

.heart { color: var(--rose); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    min-height: auto;
    gap: 2rem;
  }

  .hero-deco { height: 220px; }
  .c1 { width: 200px; height: 200px; }
  .c2 { width: 140px; height: 140px; }
  .c3 { width: 80px; height: 80px; }
  .hero-emoji { font-size: 5rem; }

  .form-row { grid-template-columns: 1fr; }

  .modal { border-radius: var(--radius-lg); }
  .modal-header { flex-direction: column; }

  .header-inner { padding: 0.8rem 1.2rem; }
  nav a:not(.btn-nav) { display: none; }

  .catalogue, .commande { padding: 3rem 1.5rem; }
}
