/* ===========================================
   Template plombier-rapid — Rapid Plomberie
   Oswald + Roboto — Bleu nuit profond, urgence rouge
   Hero sans photo, telephone geant, badge 24h/7j
   =========================================== */

:root {
    --nuit: #081428;
    --bleu: #1B4F8A;
    --rouge: #C0392B;
    --blanc: #FFFFFF;
    --jaune: #F39C12;
    --text-dim: rgba(255,255,255,0.65);
    --line: rgba(255,255,255,0.1);
    --bg-light: #F4F7FB;
    --text: #1A2A3A;
    --text-muted: #5A7088;
    --border: #C4D8EC;
    --border-light: #DCE8F4;
    --radius: 6px;
    --shadow: 0 4px 24px rgba(10,35,66,0.08);
    --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: 'Roboto', sans-serif; font-size: 16px; line-height: 1.7; color: var(--text); background: var(--bg-light); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Oswald', sans-serif; font-weight: 700; line-height: 1.15; }
a { color: var(--bleu); 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(--rouge); color: #fff; text-align: center; padding: 10px 40px 10px 20px; font-size: 14px; font-weight: 700; 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(--nuit); z-index: 100; border-bottom: 1px solid var(--line); }
.nav.scrolled { box-shadow: 0 2px 16px rgba(8,20,40,0.4); }
.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: 'Oswald', sans-serif; font-size: 22px; font-weight: 700; color: var(--blanc); 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: 8px; background: var(--rouge); color: #fff; font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 700; text-decoration: none; }
.nav-links { list-style: none; display: flex; gap: 28px; }
.nav-links a { color: rgba(255,255,255,0.55); font-family: 'Roboto', sans-serif; font-size: 11px; font-weight: 400; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; transition: color var(--transition); }
.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: 24px; height: 2px; background: #fff; transition: all var(--transition); }

/* === Hero — Urgence nuit, telephone geant === */
.hero-urgence { min-height: 100vh; background: var(--nuit); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 100px 40px 80px; position: relative; overflow: hidden; }
.hero-urgence::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 600px; height: 600px; border-radius: 50%; border: 1px solid var(--line); pointer-events: none; }
.hero-urgence::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 900px; height: 900px; border-radius: 50%; border: 1px solid var(--line); pointer-events: none; }
.hero-urgence-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--rouge); color: #fff; padding: 8px 20px; font-family: 'Oswald', sans-serif; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 32px; position: relative; z-index: 1; }
.hero-urgence-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse-dot 1.5s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero-urgence-name { font-family: 'Oswald', sans-serif; font-weight: 300; font-size: 1rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--text-dim); display: block; margin-bottom: 16px; position: relative; z-index: 1; }
.hero-urgence h1 { font-family: 'Oswald', sans-serif; font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 700; color: var(--blanc); text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 48px; line-height: 1.05; position: relative; z-index: 1; }
.hero-phone { font-family: 'Oswald', sans-serif; font-size: clamp(3rem, 10vw, 9rem); font-weight: 700; color: var(--blanc); line-height: 1; margin-bottom: 48px; display: block; text-decoration: none; letter-spacing: 0.02em; position: relative; z-index: 1; }
.hero-phone:hover { color: var(--jaune); opacity: 1; }
.btn-cta { display: inline-block; background: var(--rouge); color: #fff; padding: 16px 56px; font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background 0.2s; border: none; cursor: pointer; position: relative; z-index: 1; }
.btn-cta:hover { background: var(--jaune); color: var(--nuit); opacity: 1; }
.btn-cta-large { font-size: 1.1rem; padding: 18px 64px; margin-top: 24px; }
.hero-urgence-sub { font-family: 'Roboto', sans-serif; font-size: 0.9rem; color: var(--text-dim); margin-top: 20px; max-width: 480px; position: relative; z-index: 1; min-width: 0; }

/* === A propos — Grid plein bord === */
.apropos-urgence { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-width: 0; }
.apropos-urgence-img { overflow: hidden; min-width: 0; }
.apropos-urgence-img img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; display: block; }
.apropos-urgence-text { background: var(--bleu); padding: 72px 64px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.apropos-urgence-label { font-family: 'Roboto', sans-serif; font-weight: 400; font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--jaune); display: block; margin-bottom: 20px; }
.apropos-urgence-text h2 { font-family: 'Oswald', sans-serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; color: var(--blanc); text-transform: uppercase; margin-bottom: 20px; min-width: 0; }
.apropos-urgence-text p { font-family: 'Roboto', sans-serif; font-size: 0.95rem; color: rgba(255,255,255,0.78); line-height: 1.8; margin-bottom: 32px; min-width: 0; }
.apropos-urgence-text .btn-cta { align-self: flex-start; }

/* === Sections === */
.section { padding: 80px 0; }
.section-beige { background: #EAF0F7; }
.section-dark { background: var(--nuit); color: var(--blanc); }
.section-terracotta { background: var(--bleu); color: #fff; }
.section-title { text-align: center; font-family: 'Oswald', sans-serif; font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
.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; font-weight: 400; min-width: 0; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.6); }
.section-terracotta .section-subtitle { color: rgba(255,255,255,0.8); }

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

/* === Menu tabs (catalogue/carte) === */
.menu-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.menu-tab { padding: 10px 24px; background: transparent; color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.2); border-radius: 30px; font-family: 'Roboto', 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: var(--jaune); color: var(--jaune); }
.menu-tab.active { background: var(--rouge); border-color: var(--rouge); 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 rgba(255,255,255,0.15); }
.menu-item:last-child { border-bottom: none; }
.menu-item-info { min-width: 0; }
.menu-item-info h3 { font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 4px; color: var(--blanc); }
.menu-item-info p { font-size: 13px; color: rgba(255,255,255,0.5); font-style: italic; min-width: 0; }
.menu-item-prix { font-family: 'Oswald', sans-serif; font-size: 18px; color: var(--jaune); font-weight: 700; white-space: nowrap; margin-left: 16px; }

/* === Phone number (contact section) === */
.contact-phone { margin: 24px 0 8px; }
.phone-number { font-family: 'Oswald', sans-serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; color: var(--blanc); text-decoration: none; display: inline-block; }
.section-terracotta .phone-number { color: #fff; }
.section-terracotta .btn-cta { background: #fff; color: var(--bleu); }
.section-terracotta .btn-cta:hover { background: var(--jaune); color: var(--nuit); }

/* === 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; }
.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: 15px; }
.coord-item a { color: var(--bleu); }
.map-container iframe { width: 100%; height: 100%; min-height: 300px; border: none; border-radius: var(--radius); }

/* === Footer === */
.footer { background: var(--nuit); color: rgba(255,255,255,0.5); 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: 'Oswald', sans-serif; font-size: 22px; font-weight: 700; color: var(--blanc); display: block; margin-bottom: 12px; text-transform: uppercase; }
.footer h4 { color: rgba(255,255,255,0.7); margin-bottom: 12px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.footer a { color: rgba(255,255,255,0.5); }
.footer a:hover { color: var(--blanc); }
.footer p { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; font-size: 13px; }
.footer-credit { color: rgba(255,255,255,0.2); }
.footer-credit a { color: rgba(255,255,255,0.2); }

/* === Formulaires partages === */
.resa-back { background: none; border: none; color: var(--bleu); 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: 600; 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(--bleu); }
.form-error { color: var(--rouge); 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(--bleu); margin-bottom: 12px; }
.resa-success h3 { font-size: 1.4rem; margin-bottom: 8px; }
.resa-success p { color: #666; margin-bottom: 24px; }

/* === 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(--rouge); border-color: var(--rouge); 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(8,20,40,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; color: rgba(255,255,255,0.6); }
    .hero-urgence { min-height: 85vh; padding: 80px 20px 60px; }
    .hero-urgence h1 { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-phone { font-size: clamp(2.5rem, 12vw, 4.5rem); }
    .apropos-urgence { grid-template-columns: 1fr; }
    .apropos-urgence-img img { min-height: 280px; }
    .apropos-urgence-text { padding: 48px 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-urgence h1 { font-size: 2rem; }
    .hero-phone { font-size: 2.2rem; }
}
