/* ===========================================
   Template electricien-volt — "Tableau de bord industriel"
   Rajdhani 700 + IBM Plex Mono — Jaune electrique #F5C842 / Noir #0A0E14
   Hero fond tres sombre, grid-lines, layout tableau de controle
   =========================================== */

:root {
    --volt: #F5C842;
    --bg-dark: #0A0E14;
    --bg-panel: #111620;
    --text-light: #E8EDF2;
    --text-muted: #6B7A8D;
    --green: #00D4AA;
    --line: rgba(245,200,66,0.2);
    --primary: #F5C842;
    --secondary: #111620;
    --accent: #0A0E14;
    --text: #E8EDF2;
    --bg-light: #0A0E14;
    --bg-beige: #0D1117;
    --border: rgba(245,200,66,0.15);
    --border-light: rgba(245,200,66,0.08);
    --radius: 0px;
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --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 { font-family: 'IBM Plex Mono', monospace; font-size: 16px; line-height: 1.7; color: var(--text-light); background: var(--bg-dark); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Rajdhani', sans-serif; font-weight: 700; line-height: 1.15; }
a { color: var(--volt); 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(--volt); color: var(--bg-dark); 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 — fond sombre fixe, pas de changement au scroll */
.nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); background: var(--bg-panel); backdrop-filter: blur(10px); z-index: 100; border-bottom: 1px solid var(--line); }
.nav.scrolled { background: var(--bg-panel); box-shadow: none; }
.bandeau-promo ~ .nav { top: 40px; }
.nav-container { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { font-family: 'Rajdhani', sans-serif; font-size: 26px; font-weight: 700; color: var(--volt); text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; }
.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: 0; background: var(--volt); color: var(--bg-dark); font-family: 'Rajdhani', sans-serif; font-size: 24px; font-weight: 700; text-decoration: none; }
.nav-links { list-style: none; display: flex; gap: 32px; }
.nav-links a { color: var(--text-muted); font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; text-decoration: none; transition: color var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--volt); 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(--text-light); transition: all var(--transition); }

/* === HERO — "Tableau de bord industriel" === */
.hero-board { position: relative; min-height: 100vh; display: flex; align-items: center; background: var(--bg-dark); overflow: hidden; }
.hero-board-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.08; filter: grayscale(100%); }
.hero-board-grid-lines { position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, var(--line) 0, var(--line) 1px, transparent 1px, transparent 80px), repeating-linear-gradient(0deg, var(--line) 0, var(--line) 1px, transparent 1px, transparent 80px); opacity: 0.4; }
.hero-board-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 320px; gap: 0; width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 72px; min-width: 0; }
.hero-board-main { padding: 80px 64px 80px 0; border-right: 1px solid var(--line); min-width: 0; }
.hero-board-status { display: flex; align-items: center; gap: 8px; margin-bottom: 40px; }
.hero-board-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 8px var(--green); } 50% { box-shadow: 0 0 16px var(--green), 0 0 32px rgba(0,212,170,0.3); } }
.hero-board-status span { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: var(--green); letter-spacing: 0.1em; text-transform: uppercase; }
.hero-board-main h1 { font-family: 'Rajdhani', sans-serif; font-size: clamp(3.5rem, 7vw, 8rem); font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.02em; line-height: 0.95; margin: 0 0 24px; min-width: 0; }
.hero-board-main h1 span { color: var(--volt); }
.hero-board-main p { font-family: 'IBM Plex Mono', monospace; font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; max-width: 480px; margin-bottom: 40px; min-width: 0; }
.btn-cta { display: inline-block; background: var(--volt); color: var(--bg-dark); padding: 14px 40px; font-family: 'Rajdhani', sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background 0.2s; border: none; cursor: pointer; }
.btn-cta:hover { background: #fff; opacity: 1; }
.btn-cta-large { font-size: 1.1rem; padding: 18px 48px; margin-top: 24px; }
.hero-board-aside { padding: 80px 0 80px 48px; display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.hero-aside-block { border-top: 1px solid var(--line); padding-top: 20px; min-width: 0; }
.hero-aside-key { font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem; color: var(--text-muted); letter-spacing: 0.2em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.hero-aside-val { font-family: 'Rajdhani', sans-serif; font-size: 1.3rem; font-weight: 600; color: var(--text-light); min-width: 0; }
.hero-aside-val.highlight { color: var(--volt); }

/* === A PROPOS — "apropos-circuit" : image gauche + texte panel droit === */
.apropos-circuit { display: grid; grid-template-columns: 2fr 3fr; gap: 0; min-width: 0; }
.apropos-circuit-img { overflow: hidden; min-width: 0; }
.apropos-circuit-img img { width: 100%; height: 100%; min-height: 400px; object-fit: cover; filter: grayscale(20%); }
.apropos-circuit-text { background: var(--bg-panel); padding: 72px 64px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.apropos-circuit-ref { font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; color: var(--volt); letter-spacing: 0.2em; text-transform: uppercase; display: block; margin-bottom: 24px; }
.apropos-circuit-text h2 { font-family: 'Rajdhani', sans-serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; color: var(--text-light); text-transform: uppercase; margin-bottom: 20px; min-width: 0; }
.apropos-circuit-text p { font-family: 'IBM Plex Mono', monospace; font-size: 0.85rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 32px; min-width: 0; }

/* Sections */
.section { padding: 80px 0; }
.section-beige { background: var(--bg-dark); }
.section-dark { background: var(--bg-panel); color: var(--text-light); }
.section-terracotta { background: var(--volt); color: var(--bg-dark); }
.section-title { text-align: center; font-family: 'Rajdhani', sans-serif; font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 12px; text-transform: uppercase; color: var(--text-light); }
.section-terracotta .section-title { color: var(--bg-dark); }
.section-subtitle { text-align: center; font-family: 'IBM Plex Mono', monospace; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; font-size: 0.85rem; }
.section-dark .section-subtitle { color: var(--text-muted); }
.section-terracotta .section-subtitle { color: rgba(10,14,20,0.7); }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-text { min-width: 0; }
.split-text h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: 16px; color: var(--text-light); text-transform: uppercase; }
.split-text p { font-size: 0.85rem; line-height: 1.8; color: var(--text-muted); min-width: 0; }
.split-image { min-width: 0; }
.split-image img { width: 100%; border-radius: 0; box-shadow: var(--shadow); }
.placeholder-img { background: var(--bg-panel); border-radius: 0; 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(255,255,255,0.05); }

/* Catalogue / Prestations */
.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: 0; font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: all var(--transition); }
.menu-tab:hover { border-color: var(--volt); color: var(--volt); }
.menu-tab.active { background: var(--volt); border-color: var(--volt); color: var(--bg-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 var(--line); }
.menu-item:last-child { border-bottom: none; }
.menu-item-info { min-width: 0; }
.menu-item-info h3 { font-family: 'Rajdhani', sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 4px; color: var(--text-light); text-transform: uppercase; }
.menu-item-info p { font-size: 0.8rem; color: var(--text-muted); font-style: italic; min-width: 0; }
.menu-item-prix { font-family: 'IBM Plex Mono', monospace; font-size: 0.85rem; color: var(--volt); font-weight: 500; white-space: nowrap; margin-left: 16px; }

/* 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; color: var(--text-light); }
.jour { font-family: 'Rajdhani', sans-serif; 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; color: var(--text-light); }
.coord-item strong { color: var(--text-light); }
.coord-item a { color: var(--volt); }
.map-container iframe { width: 100%; height: 100%; min-height: 300px; border: none; border-radius: 0; }

/* Contact — section jaune */
.section-terracotta .btn-cta { background: var(--bg-dark); color: var(--volt); }
.section-terracotta .btn-cta:hover { background: var(--bg-panel); }
.contact-phone { margin: 24px 0 8px; }
.phone-number { font-family: 'Rajdhani', sans-serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; color: var(--bg-dark); text-decoration: none; display: inline-block; }
.section-terracotta .phone-number { color: var(--bg-dark); }

/* Contact form */
.contact-form { max-width: 500px; }
.contact-form .form-group { margin-bottom: 16px; }
.contact-form label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.85rem; color: var(--text-light); }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 0; font-size: 0.9rem; font-family: 'IBM Plex Mono', monospace; background: var(--bg-panel); color: var(--text-light); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--volt); }
.contact-form textarea { min-height: 120px; resize: vertical; }

/* Footer */
.footer { background: var(--bg-panel); color: var(--text-muted); padding: 48px 0 24px; font-size: 0.85rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-logo { font-family: 'Rajdhani', sans-serif; font-size: 22px; font-weight: 700; color: var(--volt); display: block; margin-bottom: 12px; text-transform: uppercase; }
.footer h4 { color: var(--text-muted); margin-bottom: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase; }
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--volt); }
.footer p { margin-bottom: 6px; min-width: 0; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; font-size: 0.8rem; }
.footer-credit { color: rgba(255,255,255,0.15); }
.footer-credit a { color: rgba(255,255,255,0.15); }

/* Formulaires partages */
.resa-back { background: none; border: none; color: var(--volt); 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.85rem; color: var(--text-light); }
.resa-form input, .resa-form select { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 0; font-size: 0.9rem; box-sizing: border-box; font-family: 'IBM Plex Mono', monospace; background: var(--bg-panel); color: var(--text-light); }
.resa-form input:focus, .resa-form select:focus { outline: none; border-color: var(--volt); }
.form-error { color: #ff6b6b; font-size: 0.88rem; margin-bottom: 12px; padding: 8px 12px; background: rgba(255,107,107,0.1); border-radius: 0; }
.resa-success { text-align: center; padding: 40px 0; }
.resa-success-icon { font-size: 3.5rem; color: var(--volt); margin-bottom: 12px; }
.resa-success h3 { font-size: 1.4rem; margin-bottom: 8px; color: var(--text-light); }
.resa-success p { color: var(--text-muted); margin-bottom: 24px; }

/* Switcher 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: 0; 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(245,200,66,0.1); }
.lang-btn.active { background: var(--volt); border-color: var(--volt); color: var(--bg-dark); }

/* 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(17,22,32,0.98); flex-direction: column; gap: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height 300ms ease; }
    .nav-links.open { max-height: 400px; }
    .nav-links li { border-bottom: 1px solid var(--line); }
    .nav-links a { display: block; padding: 14px 20px; }

    .hero-board { min-height: 100vh; }
    .hero-board-inner { grid-template-columns: 1fr; padding: 0 24px; }
    .hero-board-main { padding: 120px 0 40px 0; border-right: none; border-bottom: 1px solid var(--line); }
    .hero-board-main h1 { font-size: clamp(2.5rem, 10vw, 4.5rem); }
    .hero-board-aside { padding: 32px 0 60px 0; flex-direction: row; flex-wrap: wrap; gap: 20px; }
    .hero-aside-block { flex: 1 1 140px; min-width: 0; }

    .apropos-circuit { grid-template-columns: 1fr; }
    .apropos-circuit-img { order: -1; }
    .apropos-circuit-img img { min-height: 250px; }
    .apropos-circuit-text { padding: 40px 24px; }

    .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-board-main h1 { font-size: 2.2rem; }
    .hero-board-aside { flex-direction: column; }
}
