/* ===========================================
   Template menuisier-foret — Atelier scandinave
   Raleway uniquement — Palette bois nordique
   Hero grid 1/3 texte + 2/3 photo encadree
   =========================================== */

:root {
    --primary: #3D2B1F;
    --accent: #8FAF7E;
    --bg: #FAF8F5;
    --bg-dark: #2A1F17;
    --text: #3D2B1F;
    --text-muted: #8A7B6E;
    --line: rgba(61,43,31,0.12);
    --nav-height: 68px;
    --radius: 4px;
    --transition: 300ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body { font-family: 'Raleway', sans-serif; font-size: 16px; line-height: 1.75; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Raleway', sans-serif; font-weight: 800; line-height: 1.1; }
a { color: var(--primary); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.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: 600; 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; }

/* === Navigation === */
.nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); background: var(--bg); backdrop-filter: blur(10px); z-index: 100; border-bottom: 1px solid var(--line); }
.nav.scrolled { background: var(--bg); box-shadow: 0 2px 16px rgba(61,43,31,0.06); }
.bandeau-promo ~ .nav { top: 40px; }
.nav-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { font-family: 'Raleway', sans-serif; font-size: 14px; font-weight: 800; letter-spacing: 0.25em; text-transform: uppercase; color: var(--primary); 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: 8px; background: var(--primary); color: #fff; font-family: 'Raleway', sans-serif; font-size: 20px; font-weight: 800; text-decoration: none; }
.nav-links { list-style: none; display: flex; gap: 28px; }
.nav-links a { color: var(--text-muted); font-family: 'Raleway', sans-serif; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none; transition: color var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); 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: 24px; height: 2px; background: var(--primary); transition: all var(--transition); }

/* === Hero — Scandinave : 1/3 texte + 2/3 photo encadree === */
.hero-nordic { position: relative; display: grid; grid-template-columns: 1fr 2fr; min-height: 100vh; background: var(--bg); }
.hero-nordic-text { display: flex; flex-direction: column; justify-content: center; padding: 100px 56px 80px; min-width: 0; }
.hero-nordic-tag { font-family: 'Raleway', sans-serif; font-weight: 400; font-size: 0.65rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 48px; }
.hero-nordic-text h1 { font-family: 'Raleway', sans-serif; font-weight: 800; font-size: clamp(2.5rem, 5vw, 4.5rem); color: var(--primary); line-height: 1.05; margin: 0 0 28px; }
.hero-nordic-text p { font-family: 'Raleway', sans-serif; font-weight: 400; font-size: 0.95rem; color: var(--text-muted); line-height: 1.85; margin-bottom: 40px; min-width: 0; }
.btn-cta { display: inline-block; background: transparent; color: var(--primary); border: 1.5px solid var(--primary); padding: 12px 32px; font-family: 'Raleway', sans-serif; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: all 0.25s; align-self: flex-start; cursor: pointer; }
.btn-cta:hover { background: var(--primary); color: #fff; opacity: 1; }
.btn-cta-large { font-size: 0.8rem; padding: 16px 44px; margin-top: 24px; }
.hero-nordic-photo { padding: 40px 40px 40px 0; min-width: 0; display: flex; align-items: stretch; }
.hero-nordic-photo-frame { flex: 1; outline: 8px solid var(--bg); outline-offset: -8px; overflow: hidden; position: relative; }
.hero-nordic-photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Legacy hero classes (hidden — replaced by hero-nordic) */
.hero { display: none; }
.hero-panel-left, .hero-panel-right, .hero-badge, .hero-sub, .hero-bg, .hero-overlay, .hero-content { display: none; }

/* === Sections === */
.section { padding: 80px 0; border-top: 1px solid var(--line); background: var(--bg); }
.section-beige { background: var(--bg); }
.section-dark { background: var(--bg-dark); color: #FAF8F5; }
.section-terracotta { background: var(--primary); color: #fff; border-top-color: transparent; }
.section-title { text-align: center; font-family: 'Raleway', sans-serif; font-weight: 800; font-size: clamp(1.75rem, 4vw, 2.75rem); color: var(--primary); margin-bottom: 12px; }
.section-terracotta .section-title { color: #fff; }
.section-subtitle { text-align: center; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; font-size: 0.9rem; font-family: 'Raleway', sans-serif; }
.section-dark .section-subtitle { color: rgba(250,248,245,0.6); }
.section-terracotta .section-subtitle { color: rgba(255,255,255,0.8); }
.section-terracotta .btn-cta { background: transparent; color: #fff; border-color: #fff; }
.section-terracotta .btn-cta:hover { background: #fff; color: var(--primary); }
.contact-phone { margin: 24px 0 8px; }
.phone-number { font-family: 'Raleway', sans-serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--primary); text-decoration: none; display: inline-block; }
.section-terracotta .phone-number { color: #fff; }

/* === A propos — Scandinave grid 3/2 === */
.apropos-nordic { display: grid; grid-template-columns: 3fr 2fr; gap: 80px; align-items: center; min-width: 0; }
.apropos-nordic-text { min-width: 0; }
.apropos-nordic-label { font-family: 'Raleway', sans-serif; font-weight: 400; font-size: 0.65rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 20px; }
.apropos-nordic-text h2 { font-family: 'Raleway', sans-serif; font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); color: var(--primary); line-height: 1.1; margin-bottom: 20px; }
.apropos-nordic-text p { font-family: 'Raleway', sans-serif; font-weight: 400; font-size: 0.95rem; color: var(--text-muted); line-height: 1.85; margin-bottom: 32px; min-width: 0; }
.apropos-nordic-img { aspect-ratio: 3/4; overflow: hidden; outline: 8px solid var(--bg); outline-offset: -8px; min-width: 0; }
.apropos-nordic-img img { width: 100%; height: 100%; object-fit: cover; }

/* Legacy a propos (hidden) */
.apropos-atelier { display: none; }

/* === Split layout (horaires, etc.) === */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-text h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: 16px; color: var(--primary); }
.split-text p { font-size: 0.9rem; line-height: 1.8; color: var(--text-muted); min-width: 0; }
.split-image img { width: 100%; border-radius: var(--radius); }
.placeholder-img { background: rgba(61,43,31,0.04); border-radius: var(--radius); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 14px; }
.section-dark .placeholder-img { background: rgba(250,248,245,0.08); }

/* === Catalogue / 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: var(--text-muted); border: 1px solid var(--line); border-radius: 30px; font-family: 'Raleway', sans-serif; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer; transition: all var(--transition); }
.menu-tab:hover { border-color: var(--primary); color: var(--primary); }
.menu-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.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 var(--line); }
.menu-item:last-child { border-bottom: none; }
.menu-item-info { min-width: 0; }
.menu-item-info h3 { font-family: 'Raleway', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 4px; color: var(--primary); }
.menu-item-info p { font-size: 0.8rem; color: var(--text-muted); font-style: normal; min-width: 0; }
.menu-item-prix { font-family: 'Raleway', sans-serif; font-size: 16px; color: var(--accent); font-weight: 700; white-space: nowrap; margin-left: 16px; }

/* Dark section catalogue overrides */
.section-dark .menu-tab { color: rgba(250,248,245,0.5); border-color: rgba(250,248,245,0.2); }
.section-dark .menu-tab:hover { border-color: var(--accent); color: var(--accent); }
.section-dark .menu-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.section-dark .menu-item { border-bottom-color: rgba(250,248,245,0.1); }
.section-dark .menu-item-info h3 { color: #FAF8F5; }
.section-dark .menu-item-info p { color: rgba(250,248,245,0.5); }
.section-dark .menu-item-prix { color: var(--accent); }
.section-dark .section-title { color: #FAF8F5; }

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

/* === Footer === */
.footer { background: var(--bg-dark); color: rgba(250,248,245,0.5); padding: 48px 0 24px; font-size: 14px; font-family: 'Raleway', sans-serif; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-logo { font-family: 'Raleway', sans-serif; font-size: 14px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: #FAF8F5; display: block; margin-bottom: 12px; }
.footer h4 { color: rgba(250,248,245,0.7); margin-bottom: 12px; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; }
.footer a { color: rgba(250,248,245,0.5); }
.footer a:hover { color: #FAF8F5; }
.footer p { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(250,248,245,0.1); padding-top: 20px; display: flex; justify-content: space-between; font-size: 13px; }
.footer-credit { color: rgba(250,248,245,0.2); }
.footer-credit a { color: rgba(250,248,245,0.2); }

/* === Formulaires partages === */
.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(--line); border-radius: var(--radius); font-size: 1rem; box-sizing: border-box; font-family: inherit; background: #fff; }
.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(--accent); margin-bottom: 12px; }
.resa-success h3 { font-size: 1.4rem; margin-bottom: 8px; }
.resa-success p { color: var(--text-muted); margin-bottom: 24px; }

/* === Langue === */
.lang-switcher { display: flex; align-items: center; gap: 4px; margin-left: 16px; }
.lang-btn { background: transparent; border: 1px solid var(--line); color: var(--text-muted); 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(61,43,31,0.08); }
.lang-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* === WhatsApp === */
.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: 768px) {
    .nav-toggle { display: flex; }
    .nav-links { position: fixed; top: var(--nav-height); left: 0; right: 0; background: rgba(250,248,245,0.98); flex-direction: column; gap: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height 300ms ease; backdrop-filter: blur(10px); }
    .nav-links.open { max-height: 400px; }
    .nav-links li { border-bottom: 1px solid var(--line); }
    .nav-links a { display: block; padding: 14px 20px; color: var(--text-muted); }
    .hero-nordic { grid-template-columns: 1fr; min-height: auto; }
    .hero-nordic-text { padding: 120px 24px 48px; }
    .hero-nordic-photo { padding: 0; height: 60vh; }
    .hero-nordic-photo-frame { outline: none; }
    .apropos-nordic { grid-template-columns: 1fr; gap: 32px; }
    .apropos-nordic-img { aspect-ratio: 4/3; order: -1; }
    .split { grid-template-columns: 1fr; gap: 24px; }
    .split-image { order: -1; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .section { padding: 60px 0; }
}

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