/* =============================================
   CRÊPERIE DU BOUT DU MONDE — Style global
   Esthétique : chaleureux, artisanal, breton
   ============================================= */

:root {
  --cream: #F5EFE0;
  --cream-dark: #EDE3CC;
  --brown: #5C3D2E;
  --brown-light: #8B5E3C;
  --brown-dark: #3A2218;
  --ochre: #C8892A;
  --ochre-light: #E8A84A;
  --green: #4A6741;
  --text: #2C1F14;
  --text-muted: #7A6050;
  --white: #FFFDF7;
  --radius: 4px;
  --shadow: 0 4px 24px rgba(60,30,10,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, serif;
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.25; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
em { font-style: italic; color: var(--ochre); }
p { color: var(--text-muted); margin-bottom: 1rem; }
a { color: inherit; text-decoration: none; }

/* ===== LAYOUT ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.section.visible { opacity: 1; transform: translateY(0); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { max-width: 600px; margin: 0.8rem auto 0; }
.section-tag { display: inline-block; font-family: 'Lora', serif; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ochre); border-bottom: 1px solid var(--ochre); padding-bottom: 2px; margin-bottom: 0.8rem; }
.center-cta { text-align: center; margin-top: 2.5rem; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--brown-dark);
  border-bottom: 2px solid var(--ochre);
}
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { display: flex; align-items: center; gap: 0.8rem; color: var(--cream); }
.logo-icon { font-size: 1.5rem; color: var(--ochre); }
.logo-text { font-family: 'Playfair Display', serif; font-size: 0.85rem; line-height: 1.2; }
.logo-text em { font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav-links a { color: var(--cream-dark); font-size: 0.9rem; font-family: 'Lora', serif; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ochre); }
.btn-connexion {
  background: var(--ochre); color: var(--brown-dark) !important;
  padding: 0.5rem 1.2rem; border-radius: var(--radius);
  font-weight: 500; font-size: 0.85rem !important;
  transition: background 0.2s, transform 0.1s !important;
}
.btn-connexion:hover { background: var(--ochre-light) !important; transform: translateY(-1px); }
.nav-burger { display: none; background: none; border: none; color: var(--cream); font-size: 1.5rem; cursor: pointer; }
.nav-mobile { display: none; flex-direction: column; background: var(--brown-dark); padding: 1rem 2rem 1.5rem; gap: 1rem; border-top: 1px solid rgba(200,137,42,0.3); }
.nav-mobile.open { display: flex; }
.nav-mobile a { color: var(--cream-dark); font-family: 'Lora', serif; font-size: 1rem; }
.btn-connexion-mobile { background: var(--ochre); color: var(--brown-dark) !important; padding: 0.6rem 1.2rem; border-radius: var(--radius); text-align: center; font-weight: 500; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 90vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  background: var(--brown-dark);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1559181567-c3190ca9be3d?w=1600&q=75') center/cover;
  opacity: 0.18;
}
.hero-texture {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(30,12,4,0.7) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 820px; padding: 0 2rem; animation: heroIn 1.1s ease both; }
.hero-eyebrow { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ochre); margin-bottom: 1rem; font-family: 'Lora', serif; }
.hero h1 { color: var(--cream); margin-bottom: 1.2rem; }
.hero-sub { color: rgba(245,239,224,0.75); font-size: 1.05rem; max-width: 560px; margin: 0 auto 2.5rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); color: rgba(245,239,224,0.4); font-size: 1.3rem; animation: bob 2s ease-in-out infinite; z-index: 2; }
@keyframes heroIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--ochre); color: var(--brown-dark);
  padding: 0.85rem 2rem; border-radius: var(--radius);
  font-family: 'Lora', serif; font-weight: 500; font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--ochre-light); transform: translateY(-2px); }
.btn-secondary {
  border: 1.5px solid rgba(245,239,224,0.45); color: var(--cream);
  padding: 0.85rem 2rem; border-radius: var(--radius);
  font-family: 'Lora', serif; font-size: 0.95rem;
  transition: border-color 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--ochre); color: var(--ochre); transform: translateY(-2px); }
.btn-text { color: var(--ochre); font-size: 0.95rem; font-weight: 500; border-bottom: 1px solid var(--ochre); padding-bottom: 2px; transition: opacity 0.2s; }
.btn-text:hover { opacity: 0.75; }

/* ===== INTRO ===== */
.intro { background: var(--white); }
.intro-text h2 { margin-bottom: 1.2rem; }
.intro-text .section-tag { display: block; margin-bottom: 0.5rem; }
.photo-stack { position: relative; height: 440px; }
.photo-card { position: absolute; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc1 { width: 78%; height: 340px; top: 0; right: 0; }
.pc2 { width: 52%; height: 220px; bottom: 0; left: 0; border: 5px solid var(--white); }

/* ===== SPÉCIALITÉS ===== */
.specialites { background: var(--cream); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--white); border: 1px solid var(--cream-dark); border-radius: 6px;
  padding: 2rem 1.5rem; transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-emoji { font-size: 2rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.6rem; font-size: 1.1rem; }
.card p { font-size: 0.9rem; }
.card-price { display: inline-block; margin-top: 0.8rem; color: var(--ochre); font-weight: 700; font-size: 1rem; font-family: 'Playfair Display', serif; }

/* ===== VALEURS ===== */
.valeurs { background: var(--brown); }
.valeurs-inner { display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 2rem; padding: 1rem 0; }
.valeur { text-align: center; color: var(--cream); flex: 1 1 180px; }
.valeur-icon { font-size: 2rem; display: block; margin-bottom: 0.8rem; }
.valeur h4 { font-size: 1rem; color: var(--cream); margin-bottom: 0.4rem; }
.valeur p { color: rgba(245,239,224,0.65); font-size: 0.85rem; }
.valeur-sep { width: 1px; height: 80px; background: rgba(200,137,42,0.35); flex-shrink: 0; }

/* ===== INFOS ===== */
.infos { background: var(--white); }
.horaires-table { margin: 1.5rem 0; border-top: 1px solid var(--cream-dark); }
.h-row { display: flex; justify-content: space-between; padding: 0.7rem 0; border-bottom: 1px solid var(--cream-dark); font-size: 0.9rem; }
.h-row .fermé { color: var(--text-muted); font-style: italic; }
.adresse-block { margin-top: 1.2rem; }
.adresse-block p { font-size: 0.95rem; margin-bottom: 0.4rem; }
.adresse-block a { color: var(--ochre); text-decoration: underline; }
.map-placeholder {
  background: var(--cream); border: 1px solid var(--cream-dark); border-radius: 6px;
  height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 0.8rem;
}
.map-pin { font-size: 2.5rem; }
.map-placeholder p { font-size: 1rem; font-weight: 500; color: var(--text); }
.map-placeholder span { font-size: 0.85rem; color: var(--text-muted); }

/* ===== FOOTER ===== */
.footer { background: var(--brown-dark); padding: 2.5rem 0; border-top: 2px solid var(--ochre); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: var(--cream); font-family: 'Playfair Display', serif; font-size: 1rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--cream-dark); font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--ochre); }
.footer-legal p { color: rgba(245,239,224,0.4); font-size: 0.78rem; }

/* ===== MENU PAGE ===== */
.menu-hero { background: var(--brown-dark); padding: 4rem 0 3rem; text-align: center; border-bottom: 2px solid var(--ochre); }
.menu-hero h1 { color: var(--cream); }
.menu-hero p { color: rgba(245,239,224,0.65); margin-top: 0.8rem; }
.menu-section { margin-bottom: 3.5rem; }
.menu-section h2 { font-size: 1.6rem; margin-bottom: 0.3rem; color: var(--brown); border-bottom: 2px solid var(--ochre); padding-bottom: 0.4rem; display: inline-block; }
.menu-section .cat-desc { font-size: 0.88rem; font-style: italic; margin-bottom: 1.5rem; }
.menu-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.menu-item { background: var(--white); border: 1px solid var(--cream-dark); border-radius: 6px; padding: 1.2rem 1.4rem; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.menu-item-info h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.menu-item-info p { font-size: 0.85rem; margin: 0; }
.menu-item-price { color: var(--ochre); font-family: 'Playfair Display', serif; font-weight: 700; white-space: nowrap; font-size: 1rem; }
.menu-note { background: var(--cream-dark); border-left: 3px solid var(--ochre); padding: 1rem 1.2rem; border-radius: 0 4px 4px 0; font-size: 0.88rem; margin-top: 1rem; }

/* ===== CONTACT PAGE ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.contact-info h2 { margin-bottom: 1.2rem; }
.contact-form { background: var(--white); border: 1px solid var(--cream-dark); border-radius: 6px; padding: 2.5rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.4rem; color: var(--brown); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.7rem 1rem; border: 1px solid var(--cream-dark); border-radius: var(--radius);
  font-family: 'Lora', serif; font-size: 0.9rem; background: var(--cream);
  color: var(--text); transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--ochre); }
.form-group textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { background: var(--ochre); color: var(--brown-dark); border: none; padding: 0.9rem 2rem; border-radius: var(--radius); font-family: 'Lora', serif; font-size: 1rem; font-weight: 500; cursor: pointer; width: 100%; transition: background 0.2s; }
.form-submit:hover { background: var(--ochre-light); }
.success-msg { display: none; background: #e6f4ea; border: 1px solid #a8d5b0; color: #2d6a38; padding: 1rem; border-radius: var(--radius); text-align: center; margin-top: 1rem; font-size: 0.9rem; }

/* ===== MENTIONS LÉGALES ===== */
.mentions-content { max-width: 800px; margin: 0 auto; padding: 4rem 2rem; }
.mentions-content h1 { margin-bottom: 2rem; font-size: 2rem; }
.mentions-content h2 { font-size: 1.2rem; color: var(--brown); margin: 2rem 0 0.5rem; }
.mentions-content p { font-size: 0.95rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .photo-stack { height: 280px; }
  .pc1 { width: 85%; height: 240px; }
  .pc2 { width: 55%; height: 160px; }
  .valeur-sep { display: none; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 75vh; }
}
@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
}
