/* =====================================================================
   Café du Rond-Point — feuille de style
   Direction : « bistrot éditorial chaleureux »
   Mobile-first · sans framework
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Couleurs */
  --cream:      #f6efe4;   /* fond papier */
  --cream-2:    #efe4d3;   /* surface alternée */
  --paper:      #fbf7ef;   /* cartes claires */
  --brick:      #a23b2d;   /* accent principal (rouge brique) */
  --brick-dark: #822e22;
  --cognac:     #8a5a36;   /* bois / cognac */
  --coffee:     #3a2a20;   /* brun café (fonds foncés) */
  --coffee-2:   #2a1d16;
  --soft-black: #1c1714;
  --ink:        #2c2118;   /* texte courant */
  --muted:      #6f5f50;   /* texte secondaire */
  --line:       #e0d2bd;   /* filets / bordures */
  --gold:       #c8a86a;   /* liseré chaud discret */

  /* Typo */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Échelle fluide */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.92rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.08rem + 0.6vw, 1.55rem);
  --step-2:  clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --step-3:  clamp(2.1rem, 1.5rem + 2.8vw, 3.6rem);
  --step-hero: clamp(2.8rem, 1.6rem + 6vw, 6rem);

  /* Rythme / formes */
  --space: clamp(3.5rem, 2.5rem + 4vw, 7rem);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 40px -24px rgba(58, 42, 32, 0.45);
  --shadow-soft: 0 8px 24px -16px rgba(58, 42, 32, 0.4);
  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  /* Grain atmosphérique très subtil */
  background-image:
    radial-gradient(circle at 18% 12%, rgba(200, 168, 106, 0.10), transparent 38%),
    radial-gradient(circle at 88% 0%, rgba(162, 59, 45, 0.07), transparent 42%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; font-weight: 600; color: var(--coffee); }

.container { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }

/* ---------- 3. Typo utilitaires ---------- */
.kicker {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--brick);
  margin-bottom: 0.8rem;
}
.section-title { font-size: var(--step-3); letter-spacing: -0.01em; }
.section-lead { color: var(--muted); margin-top: 0.9rem; max-width: 46ch; }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }

.badge {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  background: rgba(162, 59, 45, 0.10);
  color: var(--brick-dark);
  border: 1px dashed rgba(162, 59, 45, 0.4);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.placeholder-text { color: var(--muted); font-style: italic; }

/* ---------- 4. Boutons ---------- */
.btn {
  --bg: var(--brick);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, box-shadow 0.25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.btn-primary { background: var(--brick); color: var(--cream); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--brick-dark); }

.btn-ghost { background: rgba(246, 239, 228, 0.12); color: var(--cream); border-color: rgba(246, 239, 228, 0.55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(246, 239, 228, 0.22); }

.btn-outline { background: transparent; color: var(--brick); border-color: var(--brick); }
.btn-outline:hover { background: var(--brick); color: var(--cream); }

.btn-block { width: 100%; }
.btn-sm { padding: 0.65rem 1.1rem; font-size: var(--step--1); }

/* ---------- 5. Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 239, 228, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(100% - 2.4rem, var(--maxw));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--brick); color: var(--cream);
  font-family: var(--font-display); font-size: 1.15rem;
}
.brand-text { font-family: var(--font-display); font-size: 1.12rem; color: var(--coffee); }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { font-size: var(--step--1); font-weight: 500; color: var(--ink); position: relative; padding: 0.2rem 0; }
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--brick); transition: width 0.3s var(--ease);
}
.site-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { background: var(--brick); color: var(--cream); padding: 0.5rem 1rem !important; border-radius: 999px; }
.nav-cta:hover { background: var(--brick-dark); }

.nav-burger { display: none; }
.nav-toggle { display: none; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--cream);
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
  background: var(--coffee);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(28, 23, 20, 0.25) 0%, rgba(28, 23, 20, 0.15) 40%, rgba(28, 23, 20, 0.82) 100%),
    radial-gradient(120% 80% at 20% 110%, rgba(162, 59, 45, 0.45), transparent 60%);
}
.hero-content {
  padding: clamp(2rem, 6vw, 5rem) clamp(1.2rem, 5vw, 4rem) clamp(4.5rem, 8vw, 6rem);
  max-width: 760px;
}
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 0.3em; font-size: var(--step--1);
  font-weight: 600; color: var(--gold); margin-bottom: 1rem;
}
.hero-title {
  font-size: var(--step-hero); color: var(--cream); letter-spacing: -0.015em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
.hero-subtitle { font-size: var(--step-1); margin-top: 0.6rem; color: rgba(246, 239, 228, 0.92); font-family: var(--font-display); font-weight: 400; font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(246,239,228,0.6); border-radius: 999px;
  display: grid; justify-items: center; padding-top: 7px;
}
.hero-scroll span { width: 4px; height: 8px; border-radius: 2px; background: var(--cream); animation: scrollDot 1.6s var(--ease) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(-4px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ---------- 7. Sections génériques ---------- */
.section { padding-block: var(--space); }
.section[id] { scroll-margin-top: 84px; } /* compense le header collant pour les ancres */
.about { background: var(--cream); }
.menu { background: var(--cream-2); }
.reservation { background: var(--coffee); color: var(--cream); }
.location { background: var(--cream); }
.contact { background: var(--cream-2); }

/* ---------- 8. À propos ---------- */
.about-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
.about-text p { margin-top: 1rem; color: var(--ink); max-width: 60ch; }
.about-tags { list-style: none; padding: 0; margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.about-tags li {
  font-size: var(--step--1); font-weight: 500;
  background: var(--paper); border: 1px solid var(--line);
  padding: 0.45rem 0.9rem; border-radius: 999px; color: var(--cognac);
}
.about-aside { display: grid; gap: 1.2rem; }
.about-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(45deg, rgba(138,90,54,0.10) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, var(--cognac), var(--brick));
  display: grid; place-items: center; text-align: center;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.photo-note { color: rgba(246,239,228,0.92); font-family: var(--font-display); font-size: var(--step-1); line-height: 1.2; }
.about-quote {
  background: var(--paper); border-left: 4px solid var(--brick);
  padding: 1.2rem 1.4rem; border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display); font-style: italic; color: var(--coffee);
  box-shadow: var(--shadow-soft);
}

/* ---------- 9. Menu ---------- */
.menu-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.menu-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow-soft);
}
.menu-card h3 { font-size: var(--step-1); color: var(--brick-dark); margin-bottom: 0.9rem; position: relative; padding-bottom: 0.6rem; }
.menu-card h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 38px; height: 3px; background: var(--gold); border-radius: 2px; }

.menu-card--feature {
  background: linear-gradient(155deg, var(--coffee), var(--coffee-2));
  color: var(--cream); border-color: transparent;
}
.menu-card--feature h3 { color: var(--cream); }
.menu-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.menu-card-head h3 { margin-bottom: 0; padding-bottom: 0; }
.menu-card-head h3::after { display: none; }
.menu-price { font-family: var(--font-display); font-size: var(--step-1); color: var(--gold); white-space: nowrap; }
.menu-card-desc { margin-top: 0.8rem; color: rgba(246,239,228,0.85); }

.menu-list { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.menu-list li { display: flex; align-items: baseline; gap: 0.5rem; }
.menu-list .dish { color: var(--ink); font-weight: 500; }
.menu-list .dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-3px); }
.menu-list .price { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.menu-placeholder { margin-top: 1rem; font-size: var(--step--1); font-style: italic; color: var(--brick); opacity: 0.85; }
.menu-card--feature .menu-placeholder { color: var(--gold); opacity: 1; }
.menu-foot { margin-top: 1.6rem; text-align: center; color: var(--muted); font-size: var(--step--1); }

/* ---------- 10. Réservation ---------- */
.reservation-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; }
.reservation .kicker { color: var(--gold); }
.reservation .section-title { color: var(--cream); }
.reservation-intro p { color: rgba(246,239,228,0.85); margin-top: 1rem; max-width: 46ch; }
.reservation-phone { margin-top: 1.8rem; }
.reservation-phone span { display: block; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold); }
.phone-big { font-family: var(--font-display); font-size: var(--step-2); color: var(--cream); }
.phone-big:hover { color: var(--gold); }
.reservation-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.reservation .btn-outline { color: var(--cream); border-color: rgba(246,239,228,0.7); }
.reservation .btn-outline:hover { background: var(--cream); color: var(--coffee); border-color: var(--cream); }
.small-note { margin-top: 1.2rem; font-size: var(--step--1); color: rgba(246,239,228,0.7); }
.small-note a { color: var(--gold); text-decoration: underline; }

.reservation-form {
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2.2rem);
  box-shadow: var(--shadow);
}
.form-demo-note {
  background: rgba(162, 59, 45, 0.08); color: var(--brick-dark);
  border: 1px dashed rgba(162, 59, 45, 0.4); border-radius: var(--radius);
  padding: 0.7rem 0.9rem; font-size: var(--step--1); margin-bottom: 1.4rem;
}
.field { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: var(--step--1); font-weight: 600; color: var(--cognac); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: var(--step-0); color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 0.75rem 0.9rem; width: 100%; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brick);
  box-shadow: 0 0 0 3px rgba(162, 59, 45, 0.15);
}
.reservation-form .small-note { color: var(--muted); }
.reservation-form .small-note a { color: var(--brick); }
.form-feedback {
  margin-top: 1rem; padding: 0.8rem 1rem; border-radius: 10px;
  background: rgba(138, 90, 54, 0.12); color: var(--coffee);
  font-size: var(--step--1); border: 1px solid rgba(138,90,54,0.3);
}

/* ---------- 11. Emplacement ---------- */
.location-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; align-items: stretch; }
.location-address { font-family: var(--font-display); font-size: var(--step-1); font-style: normal; color: var(--coffee); margin: 1.2rem 0; }
.location-facts { list-style: none; padding: 0; display: grid; gap: 0.9rem; margin-bottom: 1.8rem; }
.location-facts li { padding-left: 1.4rem; position: relative; color: var(--ink); }
.location-facts li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--brick); }
.location-facts strong { color: var(--cognac); }

.location-map { min-height: 320px; }
.map-placeholder {
  height: 100%; min-height: 320px;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--line);
  background:
    radial-gradient(circle at 50% 38%, rgba(162,59,45,0.10), transparent 55%),
    repeating-linear-gradient(0deg, rgba(138,90,54,0.05) 0 24px, transparent 24px 48px),
    repeating-linear-gradient(90deg, rgba(138,90,54,0.05) 0 24px, transparent 24px 48px),
    var(--paper);
  display: grid; place-items: center; align-content: center; gap: 0.7rem; text-align: center; padding: 1.5rem;
}
.map-pin { font-size: 2.4rem; }
.map-text { color: var(--muted); font-size: var(--step--1); }
.map-link { color: var(--brick); font-weight: 600; text-decoration: underline; font-size: var(--step--1); }

/* ---------- 12. Contact ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; }
.contact-item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.contact-label { flex-basis: 130px; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.14em; color: var(--cognac); font-weight: 600; }
.contact-value { font-family: var(--font-display); font-size: var(--step-1); color: var(--coffee); }
a.contact-value:hover { color: var(--brick); }

.contact-hours { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2rem); box-shadow: var(--shadow-soft); }
.contact-hours h3 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.hours-note { font-size: var(--step--1); color: var(--brick); margin-bottom: 1rem; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { text-align: left; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours-table th { color: var(--ink); font-weight: 500; }
.hours-table td { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 13. Footer ---------- */
.site-footer { background: var(--coffee-2); color: var(--cream); padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.footer-inner { display: grid; gap: 1.6rem; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 0.8rem; }
.footer-name { font-family: var(--font-display); font-size: var(--step-1); }
.footer-addr { color: rgba(246,239,228,0.7); font-size: var(--step--1); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; }
.footer-nav a { color: rgba(246,239,228,0.85); font-size: var(--step--1); }
.footer-nav a:hover { color: var(--gold); }
.footer-phone { font-family: var(--font-display); font-size: var(--step-1); color: var(--cream); }
.footer-phone:hover { color: var(--gold); }
.footer-legal { text-align: center; color: rgba(246,239,228,0.55); font-size: var(--step--1); padding: 2rem 1rem 1.4rem; }

/* ---------- 14. CTA mobile fixe ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; gap: 0.6rem; padding: 0.7rem 1rem;
  background: rgba(246, 239, 228, 0.94); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.mobile-cta .btn { flex: 1; }
.mobile-cta .btn-ghost { color: var(--coffee); border-color: var(--cognac); background: transparent; }

/* ---------- 15. Révélation au scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 16. Responsive ---------- */
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1.3fr 0.9fr; align-items: center; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-card--feature { grid-column: 1 / -1; display: flex; flex-direction: column; }
  .reservation-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .location-grid { grid-template-columns: 1fr 1.1fr; }
  .contact-grid { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
  .footer-inner { grid-template-columns: auto 1fr auto; }
  .footer-nav { justify-content: center; }
}

@media (min-width: 1024px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
  .menu-card--feature { grid-column: span 1; }
}

/* Menu mobile (burger) */
@media (max-width: 767px) {
  .nav-burger {
    display: inline-flex; flex-direction: column; gap: 5px;
    width: 42px; height: 42px; align-items: center; justify-content: center;
    cursor: pointer; border-radius: 10px;
  }
  .nav-burger span { width: 22px; height: 2px; background: var(--coffee); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
  .site-nav {
    position: fixed; inset: 66px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 0.6rem 1.2rem 1.2rem;
    transform: translateY(-130%); transition: transform 0.35s var(--ease);
    box-shadow: var(--shadow); max-height: calc(100svh - 66px); overflow-y: auto;
  }
  .site-nav a { padding: 0.9rem 0.2rem; border-bottom: 1px solid var(--line); font-size: var(--step-0); }
  .site-nav a::after { display: none; }
  .nav-cta { margin-top: 0.8rem; text-align: center; }
  .nav-toggle:checked ~ .site-nav { transform: translateY(0); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-cta { display: flex; }
  body { padding-bottom: 68px; } /* place pour la barre fixe */
  .field-row { grid-template-columns: 1fr; }
  .hero { min-height: 88svh; }
}

/* ---------- 17. Accessibilité : motion réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
