/* =========================================================
   O MARIE ANNIE – Design System
   site2hitop | o-marie-annie.hitop.fr
   Aesthetic: Bistro chaleureux – chaleur, authenticité, artisanat
   Fonts: Playfair Display (titres) + Lato (corps)
   ========================================================= */

/* --- Google Fonts preconnect handled in <head> --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Lato:wght@300;400;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --c-bg:        #fdf8f2;
  --c-cream:     #f5ede0;
  --c-warm:      #e8d5b7;
  --c-terracotta:#c0622f;
  --c-terra-dark:#9a4a20;
  --c-brown:     #5c3d1e;
  --c-text:      #2d1f0e;
  --c-text-light:#7a5c3a;
  --c-white:     #ffffff;
  --c-border:    #dcc9a8;
  --c-green:     #4a6741;

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Lato', Helvetica, sans-serif;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;

  --shadow-soft: 0 4px 20px rgba(92,61,30,.10);
  --shadow-card: 0 2px 12px rgba(92,61,30,.12);

  --nav-h: 70px;
  --section-pad: clamp(3rem,6vw,6rem);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Typography ---- */
h1,h2,h3,h4 {
  font-family: var(--ff-display);
  line-height: 1.2;
  color: var(--c-brown);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p  { color: var(--c-text); font-size: 1rem; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--c-terracotta); color: #fff; padding: .5rem 1rem;
  border-radius: var(--radius-sm); z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-white);
  border-bottom: 2px solid var(--c-border);
  box-shadow: var(--shadow-soft);
  height: var(--nav-h);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none;
}
.nav-brand img {
  height: 48px; width: auto;
}
.nav-brand-tagline {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: .85rem;
  color: var(--c-text-light);
  display: none;
}
@media(min-width:768px) { .nav-brand-tagline { display: block; } }

/* Desktop nav */
.nav-menu {
  display: flex; align-items: center; gap: 0;
}
.nav-menu > li {
  position: relative;
}
.nav-menu > li > a {
  display: block;
  padding: .5rem .9rem;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--c-brown);
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  background: var(--c-cream);
  color: var(--c-terracotta);
}

/* Dropdown */
.nav-menu .has-dropdown > a::after {
  content: ' ▾'; font-size: .7rem;
}
.nav-dropdown {
  display: none;
  position: absolute; top: 100%; left: 0;
  min-width: 220px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: .5rem 0;
  z-index: 200;
}
.nav-dropdown a {
  display: block;
  padding: .55rem 1.2rem;
  font-size: .88rem;
  color: var(--c-brown);
  transition: background .15s, color .15s;
}
.nav-dropdown a:hover {
  background: var(--c-cream);
  color: var(--c-terracotta);
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  display: block;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer;
  padding: .5rem;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--c-brown);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media(max-width:899px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    bottom: 0;
    background: var(--c-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 0;
    overflow-y: auto;
    border-top: 1px solid var(--c-border);
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li { width: 100%; border-bottom: 1px solid var(--c-border); }
  .nav-menu > li > a { padding: .9rem 0; font-size: 1rem; }
  .nav-dropdown {
    display: none;
    position: static;
    box-shadow: none; border: none;
    background: var(--c-cream);
    border-radius: 0;
    padding: 0;
  }
  .has-dropdown.open .nav-dropdown { display: block; }
  .nav-dropdown a { padding: .6rem 1.2rem; }
  .has-dropdown > a::after { content: ' +'; }
  .has-dropdown.open > a::after { content: ' −'; }
}
@media(min-width:900px) {
  .nav-menu { display: flex !important; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(360px, 60vh, 560px);
  display: flex; align-items: center;
  background: var(--c-cream);
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(92,61,30,.72) 0%, rgba(192,98,47,.4) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  padding: clamp(2rem,5vw,4rem) 1.5rem;
  color: var(--c-white);
}
.hero-content h1 {
  color: var(--c-white);
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
  margin-bottom: 1rem;
}
.hero-content p {
  color: rgba(255,255,255,.92);
  font-size: clamp(.95rem,2vw,1.15rem);
  max-width: 600px;
  margin-bottom: 1.5rem;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-bottom: 2rem;
}
.hero-badge {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(4px);
  color: var(--c-white);
  padding: .35rem .9rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 1rem;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .7rem 1.6rem;
  border-radius: 999px;
  font-family: var(--ff-body);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.btn-primary {
  background: var(--c-terracotta);
  color: var(--c-white);
  border-color: var(--c-terracotta);
}
.btn-primary:hover { background: var(--c-terra-dark); border-color: var(--c-terra-dark); }
.btn-secondary {
  background: transparent;
  color: var(--c-white);
  border-color: var(--c-white);
}
.btn-secondary:hover { background: var(--c-white); color: var(--c-brown); }
.btn-outline {
  background: transparent;
  color: var(--c-terracotta);
  border-color: var(--c-terracotta);
}
.btn-outline:hover { background: var(--c-terracotta); color: var(--c-white); }
.btn-sm { padding: .45rem 1rem; font-size: .8rem; }

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  max-width: 1200px; margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--c-cream); }
.section-dark { background: var(--c-brown); color: var(--c-white); }
.section-dark h2, .section-dark h3 { color: var(--c-warm); }
.section-dark p { color: var(--c-warm); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header .label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--c-terracotta);
  margin-bottom: .5rem;
}
.section-header h2 { margin-bottom: .75rem; }
.section-header p { color: var(--c-text-light); max-width: 540px; margin: 0 auto; }

/* Ornament / divider */
.ornament {
  text-align: center;
  margin: 1.2rem 0;
  color: var(--c-terracotta);
  font-size: 1.4rem;
  letter-spacing: .3em;
  opacity: .6;
}

/* =========================================================
   CARDS GRID
   ========================================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(92,61,30,.18); }
.card-img {
  width: 100%; height: 200px;
  object-fit: cover;
}
.card-body { padding: 1.2rem 1.4rem 1.5rem; }
.card-body h3 { margin-bottom: .5rem; font-size: 1.2rem; }
.card-body p { font-size: .9rem; color: var(--c-text-light); margin-bottom: 1rem; }
.card-price {
  display: inline-block;
  background: var(--c-cream);
  color: var(--c-terracotta);
  font-weight: 700;
  font-size: .9rem;
  padding: .2rem .7rem;
  border-radius: 999px;
  margin-bottom: .8rem;
}

/* =========================================================
   MENU ITEMS (plats)
   ========================================================= */
.menu-section { margin-bottom: 3rem; }
.menu-section h2 {
  font-size: 1.7rem;
  margin-bottom: 1.5rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--c-border);
  display: flex; align-items: center; gap: .75rem;
}
.menu-section h2::before {
  content: '';
  display: inline-block; width: 6px; height: 6px;
  background: var(--c-terracotta);
  border-radius: 50%;
  flex-shrink: 0;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.menu-item {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  transition: border-color .2s, box-shadow .2s;
}
.menu-item:hover {
  border-color: var(--c-terracotta);
  box-shadow: var(--shadow-card);
}
.menu-item h4 { color: var(--c-brown); margin-bottom: .25rem; }
.menu-item .fr { font-size: .9rem; color: var(--c-text); margin-bottom: .2rem; }
.menu-item .en { font-size: .82rem; color: var(--c-text-light); font-style: italic; }
.menu-price-tag {
  display: inline-block;
  margin-top: .6rem;
  background: var(--c-terracotta);
  color: #fff;
  font-weight: 700;
  padding: .15rem .7rem;
  border-radius: 999px;
  font-size: .85rem;
}

/* =========================================================
   HORAIRES / INFO BOX
   ========================================================= */
.info-box {
  background: var(--c-white);
  border: 2px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}
.info-box h3 { margin-bottom: 1rem; }
.hours-grid { display: grid; gap: .4rem; }
.hours-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .4rem 0;
  border-bottom: 1px dashed var(--c-border);
  font-size: .92rem;
}
.hours-row:last-child { border: none; }
.hours-label { font-weight: 700; }
.hours-closed { color: #c0392b; font-weight: 700; }
.hours-open  { color: var(--c-green); font-weight: 700; }

/* Address block */
.address-block {
  display: flex; flex-direction: column; gap: .4rem;
}
.address-block a {
  color: var(--c-terracotta);
  font-weight: 700;
  transition: color .2s;
}
.address-block a:hover { color: var(--c-terra-dark); text-decoration: underline; }

/* =========================================================
   PHOTO GALLERY
   ========================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative; overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 16/9;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(44,27,10,.8));
  color: #fff;
  padding: 1rem .8rem .5rem;
  font-size: .8rem;
  font-style: italic;
  transform: translateY(100%);
  transition: transform .3s;
}
.gallery-item:hover .gallery-caption { transform: none; }

/* =========================================================
   MAP
   ========================================================= */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 2px solid var(--c-border);
}
.map-container iframe {
  width: 100%; height: 360px; border: none; display: block;
}

/* =========================================================
   BAGAGERIE
   ========================================================= */
.bagagerie-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--c-terracotta);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: .8rem 1.6rem;
  font-size: 1.3rem;
  font-weight: 900;
  font-family: var(--ff-display);
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
}

/* =========================================================
   TWO COLUMNS
   ========================================================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media(max-width:768px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
}
@media(max-width:900px) {
  .three-col { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:560px) {
  .three-col { grid-template-columns: 1fr; }
}

/* =========================================================
   PAGE HERO (inner pages)
   ========================================================= */
.page-hero {
  position: relative; overflow: hidden;
  height: clamp(220px, 35vw, 380px);
  display: flex; align-items: flex-end;
}
.page-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(44,27,10,.85) 0%, rgba(44,27,10,.3) 60%, transparent 100%);
}
.page-hero-content {
  position: relative; z-index: 2;
  padding: 2rem 1.5rem;
  max-width: 1200px; width: 100%;
  margin: 0 auto;
}
.page-hero-content h1 { color: var(--c-white); margin-bottom: .25rem; }
.breadcrumb {
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  display: flex; flex-wrap: wrap; gap: .3rem; align-items: center;
}
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .5; }

/* =========================================================
   SOURCE LINK BANNER
   ========================================================= */
.source-banner {
  background: var(--c-cream);
  border-top: 1px solid var(--c-border);
  padding: .6rem 1.5rem;
  text-align: center;
  font-size: .8rem;
  color: var(--c-text-light);
}
.source-banner a { color: var(--c-terracotta); font-weight: 700; }
.source-banner a:hover { text-decoration: underline; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--c-brown);
  color: var(--c-warm);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-col h4 {
  color: var(--c-white);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}
.footer-col p, .footer-col a {
  font-size: .88rem;
  color: var(--c-warm);
  line-height: 1.8;
}
.footer-col a:hover { color: var(--c-white); text-decoration: underline; }
.footer-col ul li { margin-bottom: .3rem; }
.footer-logo img { height: 56px; filter: brightness(0) invert(1); opacity: .85; margin-bottom: .75rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 1.2rem;
  display: flex; flex-wrap: wrap; gap: .75rem;
  justify-content: space-between; align-items: center;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: #fff; }

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  background: var(--c-terracotta);
  color: #fff;
  border: none; border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
  box-shadow: var(--shadow-card);
  z-index: 50;
  display: flex; align-items: center; justify-content: center;
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-3px); }

/* =========================================================
   MENTIONS LÉGALES
   ========================================================= */
.legal-content {
  max-width: 800px; margin: 0 auto;
}
.legal-content h2 {
  font-size: 1.2rem;
  margin: 2rem 0 .75rem;
  color: var(--c-terracotta);
}
.legal-content p, .legal-content li {
  font-size: .95rem;
  margin-bottom: .5rem;
}

/* =========================================================
   PDF DOWNLOAD LINKS
   ========================================================= */
.dl-cards {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin: 1.5rem 0;
}
.dl-card {
  display: flex; align-items: center; gap: .8rem;
  background: var(--c-white);
  border: 2px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  transition: border-color .2s, box-shadow .2s;
  cursor: pointer;
}
.dl-card:hover { border-color: var(--c-terracotta); box-shadow: var(--shadow-card); }
.dl-card-icon { font-size: 1.6rem; }
.dl-card-text strong { display: block; font-size: .9rem; color: var(--c-brown); }
.dl-card-text span { font-size: .8rem; color: var(--c-text-light); }

/* =========================================================
   GLACES – image clickable
   ========================================================= */
.glace-img-wrap {
  position: relative; cursor: zoom-in;
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.glace-img-wrap img { width: 100%; transition: transform .3s; }
.glace-img-wrap:hover img { transform: scale(1.03); }
.glace-zoom-hint {
  position: absolute; bottom: .6rem; right: .7rem;
  background: rgba(44,27,10,.7); color: #fff;
  font-size: .75rem; padding: .2rem .6rem; border-radius: 999px;
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.9);
  justify-content: center; align-items: center;
  padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: var(--radius-md); }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none;
  color: #fff; font-size: 2rem; cursor: pointer;
}

/* =========================================================
   ANIMATIONS (entrance)
   ========================================================= */
@media(prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .fade-up.visible { opacity: 1; transform: none; }
}

/* =========================================================
   UTILITIES
   ========================================================= */
.text-center { text-align: center; }
.text-terra  { color: var(--c-terracotta); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-2 { gap: 1rem; }
.flex  { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

/* Print */
@media print {
  .site-header, .back-top, .source-banner { display: none; }
}
