/* ===========================================
   Template comptable-teal — "Dashboard financier"
   Space Grotesk + Inter — Teal fonce / KPIs
   Sobre, rassurant, professionnel
   =========================================== */

:root {
  --teal: #0D5C63;
  --teal-dark: #083E43;
  --teal-light: rgba(13,92,99,0.08);
  --accent: #1A9A7B;
  --bg: #F4F8F8;
  --bg-off: #EBF2F2;
  --text: #0A2E30;
  --text-muted: #5A7A7D;
  --line: rgba(13,92,99,0.15);
  --line-light: rgba(255,255,255,0.12);
  --primary: #0D5C63;
  --secondary: #F4F8F8;
  --bg-beige: #F4F8F8;
  --bg-dark: #083E43;
  --text-light: #F0F7F8;
  --border: #D0DEDE;
  --border-light: #E4EDED;
  --radius: 6px;
  --shadow: 0 4px 20px rgba(13,92,99,0.10);
  --transition: 300ms ease;
  --nav-height: 68px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; font-weight: 400; font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.15; }
a { text-decoration: none; color: inherit; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }
img { display: block; max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 56px; }
.container-narrow { max-width: 700px; }

/* Bandeau promo */
.bandeau-promo { background: var(--primary); color: #fff; text-align: center; padding: 10px 40px 10px 20px; font-size: 14px; font-weight: 400; position: fixed; top: 0; left: 0; right: 0; z-index: 200; }
.bandeau-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 20px; cursor: pointer; color: inherit; }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); background: var(--teal-dark); z-index: 100; border-bottom: 1px solid var(--line-light); }
.nav.scrolled { box-shadow: 0 2px 16px rgba(13,92,99,0.06); }
.bandeau-promo ~ .nav { top: 40px; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 56px; display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem; font-weight: 700; color: #fff;
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
}
.nav-logo-img { height: 40px; width: auto; display: block; object-fit: contain; }
.nav-logo-initiale { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--radius); background: var(--accent); color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; text-decoration: none; }
.nav-links { list-style: none; display: flex; gap: 32px; }
.nav-links a {
  font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); transition: color 0.2s; text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: #fff; opacity: 1; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 1px; background: #fff; margin: 5px 0; transition: all var(--transition); }

.btn-cta {
  display: inline-block; background: var(--accent);
  color: #fff; padding: 13px 40px;
  font-family: 'Space Grotesk', sans-serif; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.06em; text-decoration: none; white-space: nowrap;
  transition: background 0.2s; border: none; border-radius: 0; cursor: pointer;
}
.btn-cta:hover { background: var(--teal-dark); opacity: 1; }
.btn-cta-large { font-size: 14px; padding: 18px 48px; margin-top: 24px; }
.section-terracotta .btn-cta { background: #fff; color: var(--primary); }
.section-terracotta .btn-cta:hover { background: var(--bg); }
.contact-phone { margin: 24px 0 8px; }
.phone-number { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 500; color: var(--primary); text-decoration: none; display: inline-block; }
.section-terracotta .phone-number { color: #fff; }

/* HERO DASHBOARD */
.hero-dashboard {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.hero-dashboard-photo {
  position: relative; overflow: hidden; min-width: 0;
}
.hero-dashboard-photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center; display: block;
  filter: saturate(0.85);
}
.hero-dashboard-panel {
  background: var(--teal-dark);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px 64px 80px;
  min-width: 0;
}
.hero-dashboard-label {
  font-family: 'Inter', sans-serif; font-size: 0.65rem; font-weight: 400;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 32px;
}
.hero-dashboard-panel h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4.5vw, 4.5rem); font-weight: 700;
  color: #fff; line-height: 1.05; margin-bottom: 40px;
}
.hero-kpis {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--line-light); margin-bottom: 48px;
}
.hero-kpi {
  display: flex; align-items: baseline; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--line-light);
  min-width: 0;
}
.hero-kpi-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem; font-weight: 700; color: var(--accent);
  white-space: nowrap; flex-shrink: 0;
}
.hero-kpi-label {
  font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 400;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.55);
  text-transform: uppercase; min-width: 0;
}

/* Legacy hero (hidden but keeps compatibility) */
.hero { display: none; }
.hero-bg { display: none; }
.hero-overlay { display: none; }

/* A PROPOS DASHBOARD */
.apropos-dash {
  display: grid; grid-template-columns: 2fr 3fr;
  gap: 72px; align-items: center; min-width: 0;
}
.apropos-dash-img { aspect-ratio: 4/5; overflow: hidden; min-width: 0; }
.apropos-dash-img img { width: 100%; height: 100%; object-fit: cover; }
.apropos-dash-text { min-width: 0; }
.apropos-dash-tag {
  font-family: 'Inter', sans-serif; font-size: 0.65rem; font-weight: 400;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 16px;
}
.apropos-dash-text h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 700;
  color: var(--text); margin-bottom: 20px; min-width: 0;
}
.apropos-dash-text p {
  font-family: 'Inter', sans-serif; font-size: 0.9rem;
  color: var(--text-muted); line-height: 1.8; margin-bottom: 32px; min-width: 0;
}

/* Sections */
.section { padding: 96px 0; }
.section-beige { background: var(--bg-off); }
.section-dark { background: var(--bg-dark); color: var(--text-light); }
.section-terracotta { background: var(--primary); color: #fff; }
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 700;
  color: var(--text); margin-bottom: 48px; text-align: center;
}
.section-terracotta .section-title { color: #fff; }
.section-subtitle { text-align: center; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; font-size: 15px; }
.section-dark .section-subtitle { color: rgba(240,247,248,0.55); }
.section-terracotta .section-subtitle { color: rgba(255,255,255,0.7); }

/* Tabs (catalogue, menu) */
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.tab-btn {
  background: none; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); padding: 12px 24px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.2s;
}
.tab-btn.active, .tab-btn:hover { color: var(--teal); border-bottom-color: var(--teal); }

/* Menu tabs */
.menu-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.menu-tab { padding: 10px 24px; background: transparent; color: rgba(240,247,248,0.5); border: 1px solid rgba(240,247,248,0.2); border-radius: 30px; font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; transition: all var(--transition); }
.menu-tab:hover { border-color: #fff; color: #fff; }
.menu-tab.active { background: #fff; border-color: #fff; color: var(--teal-dark); }
.menu-cat { display: none; }
.menu-cat.active { display: block; }
.menu-grid { max-width: 700px; margin: 0 auto; }
.menu-item { display: flex; align-items: flex-start; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid rgba(240,247,248,0.12); }
.menu-item:last-child { border-bottom: none; }
.menu-item-info { min-width: 0; }
.menu-item-info h3 { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 500; margin-bottom: 4px; color: var(--text-light); }
.menu-item-info p { font-size: 13px; color: rgba(240,247,248,0.45); font-style: italic; font-family: 'Inter', sans-serif; min-width: 0; }
.menu-item-prix { font-family: 'Space Grotesk', sans-serif; font-size: 18px; color: #fff; font-weight: 700; white-space: nowrap; margin-left: 16px; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-text { min-width: 0; }
.split-text h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: 16px; color: var(--teal-dark); }
.split-text p { color: var(--text-muted); line-height: 1.85; font-size: 15px; min-width: 0; }
.split-image { min-width: 0; }
.split-image img { width: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.placeholder-img { background: var(--bg-off); border-radius: var(--radius); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 14px; border: 1px solid var(--line); min-height: 200px; }
.section-dark .placeholder-img { background: rgba(240,247,248,0.08); }

/* Horaires */
.horaires-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.horaires-table tr { border-bottom: 1px solid var(--border); }
.horaires-table td { padding: 10px 0; font-size: 15px; border-bottom: 1px solid var(--line); color: var(--text-muted); font-family: 'Inter', sans-serif; font-size: 0.9rem; }
.horaires-table .jour { font-weight: 600; color: var(--text); width: 120px; }
.horaires-table tr.ferme td { opacity: 0.4; }
.ferme .heures { color: var(--text-muted); font-style: italic; }
.coordonnees { margin-top: 28px; }
.coord-item { font-family: 'Inter', sans-serif; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 8px; }
.coord-item a { color: var(--teal); }
.map-container iframe { display: block; width: 100%; min-height: 300px; border: 0; border-radius: var(--radius); }

/* Footer */
.footer { background: #041E22; color: rgba(240,247,248,0.45); padding: 48px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-logo { font-family: 'Space Grotesk', sans-serif; font-size: 22px; color: var(--text-light); display: block; margin-bottom: 12px; font-weight: 700; }
.footer h4 { color: rgba(240,247,248,0.6); margin-bottom: 12px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; }
.footer a { color: rgba(240,247,248,0.45); }
.footer a:hover { color: var(--text-light); }
.footer p { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(240,247,248,0.08); padding-top: 20px; display: flex; justify-content: space-between; font-size: 13px; }
.footer-credit { color: rgba(240,247,248,0.15); }
.footer-credit a { color: rgba(240,247,248,0.15); }

/* === Formulaires & succes === */
.resa-back { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 0.9rem; margin-bottom: 16px; padding: 0; text-decoration: underline; }
.resa-form .form-group { margin-bottom: 16px; }
.resa-form label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.92rem; }
.resa-form input, .resa-form select { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 1rem; box-sizing: border-box; font-family: inherit; }
.resa-form input:focus, .resa-form select:focus { outline: none; border-color: var(--primary); }
.form-error { color: #c0392b; font-size: 0.88rem; margin-bottom: 12px; padding: 8px 12px; background: #fdf0ef; border-radius: 4px; }
.resa-success { text-align: center; padding: 40px 0; }
.resa-success-icon { font-size: 3.5rem; color: var(--primary); margin-bottom: 12px; }
.resa-success h3 { font-size: 1.4rem; margin-bottom: 8px; }
.resa-success p { color: #666; margin-bottom: 24px; }

/* ---- Switcher langue ---- */
.lang-switcher { display: flex; align-items: center; gap: 4px; margin-left: 16px; }
.lang-btn { background: transparent; border: 1px solid rgba(255,255,255,0.4); color: inherit; border-radius: 4px; padding: 3px 7px; font-size: 0.72rem; font-weight: 600; cursor: pointer; letter-spacing: 0.05em; transition: background 0.2s, color 0.2s; line-height: 1.4; }
.lang-btn:hover { background: rgba(255,255,255,0.2); }
.lang-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.whatsapp-float { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.3); z-index: 90; transition: transform var(--transition); }
.whatsapp-float:hover { transform: scale(1.1); opacity: 1; }

/* Responsive */
@media (max-width: 900px) {
  .hero-dashboard { grid-template-columns: 1fr; }
  .hero-dashboard-photo { height: 50vw; min-height: 260px; }
  .hero-dashboard-panel { padding: 56px 28px 64px; }
  .apropos-dash { grid-template-columns: 1fr; gap: 40px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split-image { order: -1; }
  .nav { padding: 16px 24px; }
  .nav-container { padding: 0 24px; }
  .nav-links { display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; background: var(--teal-dark); flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height 300ms ease; }
  .nav-links.open { display: flex; max-height: 500px; }
  .nav-links li { border-bottom: 1px solid var(--line-light); width: 100%; }
  .nav-links a { display: block; padding: 14px 20px; text-align: center; }
  .nav-toggle { display: flex; }
  .container { padding: 0 24px; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 360px) {
  .hero-dashboard-panel h1 { font-size: 2rem; }
}
