/* ============================================================
   LAURA PÂTISSERIE — Feuille de style
   ============================================================

   Pour changer la charte graphique, modifiez principalement
   la section "VARIABLES" ci-dessous : couleurs et polices.
   Le reste du fichier n'a normalement pas besoin d'être touché.

   TABLE DES MATIÈRES
   ──────────────────
   1. Variables (couleurs, polices)
   2. Reset & base
   3. Header & navigation
   4. Composants partagés (boutons, sections, tableaux…)
   5. Accueil (hero, citation)
   6. Grilles de cartes & galeries
   7. Pages détail (duo-items, buffet…)
   8. À propos
   9. Contact & formulaire
   10. Popup & lightbox
   11. Footer
   12. Animations
   13. Responsive (mobile)
   ============================================================ */


/* ============================================================
   1. VARIABLES
   Pour changer la charte : modifiez les valeurs ici.
   ============================================================ */

:root {
  /* Palette de couleurs */
  --cream:  #faf6f1;   /* fond principal */
  --warm:   #f2e9de;   /* fond secondaire / encadrés */
  --sand:   #d9c9b6;   /* bordures */
  --brown:  #6b4f3a;   /* texte secondaire */
  --dark:   #2c1f15;   /* texte principal / fond footer */
  --accent: #7d5238;   /* couleur d'accentuation */
  --gold:   #ba894d;   /* dorure (footer, logo) */
  --text:   #3d2b1f;   /* texte courant */

  /* Typographie */
  --serif: 'Cormorant Garamond', Georgia, serif;  /* titres, citations */
  --sans:  'Jost', sans-serif;                    /* corps de texte */
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }


/* ============================================================
   3. HEADER & NAVIGATION
   ============================================================ */

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(250, 246, 241, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
}

.logo { cursor: pointer; display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }

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

nav a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
nav a:hover, nav a.active { border-color: var(--accent); color: var(--accent); }

nav a.cta {
  background: var(--dark);
  color: var(--cream);
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
  border: none;
}
nav a.cta:hover { background: var(--accent); }

/* Burger (mobile) */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
  background: none;
  border: none;
}
.burger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--dark);
  transition: transform 0.3s, opacity 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Menu mobile plein écran */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--cream);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: var(--serif); font-size: 2rem; font-weight: 300; color: var(--dark); }
.mobile-nav a:hover { color: var(--accent); }


/* ============================================================
   4. COMPOSANTS PARTAGÉS
   ============================================================ */

/* En-tête de page intérieure */
.page-header {
  padding: 10rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(to bottom, var(--warm), var(--cream));
  border-bottom: 1px solid var(--sand);
}
.page-header .eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--dark);
}

/* Conteneurs de sections */
.section      { padding: 5rem 2rem; max-width: 900px;  margin: 0 auto; }
.section-wide { padding: 5rem 2rem; max-width: 1100px; margin: 0 auto; }

/* Boutons */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary { background: var(--dark); color: var(--cream); }
.btn-primary:hover { background: var(--accent); }
.btn-secondary { border: 1px solid var(--brown); color: var(--brown); }
.btn-secondary:hover { background: var(--warm); }

/* Encadré info / appel à l'action */
.info-box {
  background: var(--warm);
  border: 1px solid var(--sand);
  border-radius: 3px;
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
}
.info-box h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; color: var(--dark); margin-bottom: 1rem; }
.info-box p  { color: var(--brown); font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.8; }

/* Lien retour */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown);
  cursor: pointer;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.back-link:hover { color: var(--accent); }
.back-link::before { content: '←'; }

/* Intro centrée (pages détail) */
.detail-intro {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 2.5rem;
  text-align: center;
}

/* Sections détail avec titre souligné */
.detail-section { margin-bottom: 3rem; }
.detail-section h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--sand);
}
.detail-section h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--dark);
  margin: 1.5rem 0 0.5rem;
}
.detail-section ul { list-style: none; padding: 0; }
.detail-section ul li {
  font-size: 0.88rem;
  color: var(--brown);
  padding: 0.3rem 0 0.3rem 1rem;
  border-bottom: 1px solid rgba(217, 201, 182, 0.4);
  position: relative;
}
.detail-section ul li::before { content: '—'; position: absolute; left: 0; color: var(--sand); }

/* Tableaux de tarifs */
.tarif-table { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; font-size: 0.88rem; }
.tarif-table th { background: var(--dark); color: var(--cream); padding: 0.6rem 1rem; text-align: left; font-weight: 400; letter-spacing: 0.05em; }
.tarif-table td { padding: 0.6rem 1rem; border-bottom: 1px solid var(--sand); color: var(--brown); }
.tarif-table tr:nth-child(even) td { background: var(--warm); }


/* ============================================================
   5. ACCUEIL (HERO & CITATION)
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 60%, rgba(125, 82, 56, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 70% 30%, rgba(186, 137, 77, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease both;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300; line-height: 1.1; color: var(--dark); margin-bottom: 1rem;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero h1 em { font-style: italic; color: var(--accent); }

.hero-tagline {
  font-family: var(--serif); font-style: italic;
  font-size: 1.15rem; color: var(--brown); margin-bottom: 2.5rem;
  animation: fadeUp 0.8s 0.2s ease both;
}
.hero-notice {
  display: inline-block;
  background: var(--warm); border: 1px solid var(--sand); border-radius: 3px;
  padding: 0.85rem 1.75rem; font-size: 0.85rem; line-height: 1.7;
  margin-bottom: 3rem; max-width: 520px;
  animation: fadeUp 0.8s 0.3s ease both;
}
.hero-notice strong { color: var(--brown); font-weight: 500; }

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  margin-bottom: 5rem;
  animation: fadeUp 0.8s 0.4s ease both;
}
.hero-divider {
  width: 60px; height: 1px; background: var(--sand);
  margin: 0 auto 3rem;
  animation: fadeUp 0.8s 0.5s ease both;
}
.hero-intro {
  max-width: 660px;
  font-family: var(--serif); font-size: 1.12rem; line-height: 1.95; color: var(--text);
  margin-bottom: 5rem;
  animation: fadeUp 0.8s 0.6s ease both;
}

.hero-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 820px; width: 100%;
  border: 1px solid var(--sand);
  animation: fadeUp 0.8s 0.7s ease both;
}
.hero-card {
  padding: 2rem 1.5rem; text-align: center;
  border-right: 1px solid var(--sand);
  cursor: pointer; transition: background 0.2s;
}
.hero-card:last-child { border-right: none; }
.hero-card:hover { background: var(--warm); }
.hero-card-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.hero-card h3 { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; color: var(--dark); margin-bottom: 0.4rem; }
.hero-card p  { font-size: 0.82rem; color: var(--brown); line-height: 1.5; }

.hero-quote { background: var(--warm); padding: 6rem 2rem; text-align: center; border-top: 1px solid var(--sand); }
.hero-quote blockquote {
  max-width: 700px; margin: auto;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 300; color: var(--dark); line-height: 1.85;
}


/* ============================================================
   6. GRILLES DE CARTES & GALERIES
   ============================================================ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem; margin: 2.5rem 0;
}
.card {
  border: 1px solid var(--sand); border-radius: 2px;
  overflow: hidden; cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 6px 24px rgba(44, 31, 21, 0.1); transform: translateY(-2px); }
.card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; background: var(--accent); }
.card-placeholder {
  width: 100%; aspect-ratio: 3/2; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.25); font-size: 2rem;
}
.card h2 { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; color: var(--dark); padding: 1.25rem 1.5rem; }

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem; margin: 2rem 0;
}
.photo-gallery img {
  width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 2px;
  cursor: pointer; transition: opacity 0.2s;
}
.photo-gallery img:hover { opacity: 0.85; }


/* ============================================================
   7. PAGES DÉTAIL
   ============================================================ */

/* Élément image + texte côte à côte */
.duo-item {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; align-items: start;
  padding: 1.5rem 0; border-bottom: 1px solid var(--sand);
}
.duo-item:last-child { border-bottom: none; }
.duo-item h2 { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; color: var(--dark); margin-bottom: 0.5rem; }
.duo-item p  { font-size: 0.88rem; color: var(--brown); line-height: 1.7; }
.duo-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 2px; background: var(--accent); cursor: pointer; }
.duo-placeholder {
  width: 100%; aspect-ratio: 4/3; background: var(--accent); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.2); font-size: 1.5rem;
}

/* Grille buffet de migniardises */
.buffet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem; margin: 2rem 0;
}
.buffet-col { background: var(--warm); border: 1px solid var(--sand); border-radius: 2px; padding: 1.5rem; }
.buffet-col h3 {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 400; color: var(--dark);
  margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--sand);
}
.buffet-col p { font-size: 0.85rem; color: var(--brown); line-height: 1.8; }


/* ============================================================
   8. À PROPOS
   ============================================================ */

.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.about-text p { font-family: var(--serif); font-size: 1.08rem; line-height: 1.95; color: var(--text); margin-bottom: 1.5rem; text-align: center; }
.about-photo  { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 2px; }


/* ============================================================
   9. CONTACT & FORMULAIRE
   ============================================================ */

.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 5rem; }
.contact-info h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; color: var(--dark); margin-bottom: 2rem; }
.contact-detail { margin-bottom: 2rem; }
.contact-detail .label { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.4rem; }
.contact-detail p { font-size: 0.9rem; color: var(--brown); line-height: 1.7; }
.contact-detail a { color: var(--accent); }
.contact-detail a:hover { text-decoration: underline; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.73rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brown); }
.form-group input,
.form-group textarea {
  background: var(--cream); border: 1px solid var(--sand); border-radius: 2px;
  padding: 0.75rem 1rem; font-family: var(--sans); font-size: 0.9rem; color: var(--dark);
  transition: border-color 0.2s; width: 100%; resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }

.rgpd-row { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.8rem; color: var(--brown); line-height: 1.6; }
.rgpd-row input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); }

.form-success { display: none; background: var(--warm); border: 1px solid var(--sand); border-radius: 3px; padding: 2.5rem; text-align: center; }


/* ============================================================
   10. POPUP & LIGHTBOX
   ============================================================ */

#popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.3s;
}
#popup-overlay.show { opacity: 1; visibility: visible; }

#popup-box {
  background: white; padding: 2.5rem;
  width: 90%; max-width: 440px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  text-align: center;
}
#popup-box h2 { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; color: var(--dark); margin-bottom: 1.25rem; }
#popup-box p  { font-size: 0.9rem; color: #555; line-height: 1.7; margin-bottom: 0.75rem; }
#popup-close  { display: inline-block; margin-top: 1.25rem; background: #f0f0f0; color: #333; padding: 0.6rem 1.75rem; border-radius: 6px; cursor: pointer; font-weight: 500; font-size: 0.9rem; }
#popup-close:hover { background: var(--sand); }

#lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 9999; align-items: center; justify-content: center; }
#lightbox.show { display: flex; }
#lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 2px; }
#lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; color: white; font-size: 2rem; cursor: pointer; line-height: 1; }


/* ============================================================
   11. FOOTER
   ============================================================ */

footer { background: var(--dark); color: rgba(250, 246, 241, 0.7); padding: 4rem 2rem; text-align: center; }

.foot-logo { font-family: var(--serif); font-size: 1.3rem; color: var(--cream); margin-bottom: 1.25rem; display: inline-block; cursor: pointer; }
.foot-logo span { color: var(--gold); font-style: italic; }

.foot-social { display: flex; gap: 1rem; justify-content: center; margin-bottom: 1.5rem; }
.foot-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 50%;
  font-size: 0.75rem; color: rgba(255,255,255,0.7); transition: all 0.2s;
}
.foot-social a:hover { border-color: var(--gold); color: var(--gold); }

footer nav { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
footer nav a { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(250, 246, 241, 0.55); }
footer nav a:hover { color: var(--cream); }

.foot-bottom { font-size: 0.78rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.75rem; }


/* ============================================================
   12. ANIMATIONS
   ============================================================ */

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


/* ============================================================
   13. RESPONSIVE (MOBILE)
   ============================================================ */

@media (max-width: 768px) {
  header { padding: 0.9rem 1.5rem; }
  nav { display: none; }
  .burger { display: flex; }

  .hero h1 { font-size: 2.8rem; }
  .hero-cards { grid-template-columns: 1fr; }
  .hero-card { border-right: none; border-bottom: 1px solid var(--sand); }

  .about-layout,
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }

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

  .section,
  .section-wide { padding: 4rem 1.25rem; }

  .page-header { padding: 8rem 1.5rem 3rem; }
}
