/* ===========================================
   Template infirmier-bleu — "Confiance"
   Poppins + Merriweather — Bleu medical / Grid 40/60
   Propre, rassurant, medical
   =========================================== */

:root {
    --primary: #1565C0;
    --secondary: #F5F8FF;
    --accent: #0D2B5E;
    --text: #1A1A1A;
    --text-light: #F5F8FF;
    --text-muted: #5A6A7E;
    --bg-dark: #0D2B5E;
    --bg-light: #F5F8FF;
    --bg-beige: #F5F8FF;
    --border: #D0DAE8;
    --border-light: #E8EDF5;
    --radius: 8px;
    --shadow: 0 4px 20px rgba(21,101,192,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: 'Poppins', sans-serif; font-size: 16px; line-height: 1.7; color: var(--text); background: var(--bg-beige); -webkit-font-smoothing: antialiased; font-weight: 300; }
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; font-weight: 600; line-height: 1.2; }
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; }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); background: rgba(245,248,255,0.95); backdrop-filter: blur(10px); z-index: 100; border-bottom: 1px solid var(--border); }
.nav.scrolled { box-shadow: 0 2px 16px rgba(21,101,192,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: 'Poppins', sans-serif; font-size: 22px; font-weight: 700; color: var(--accent); 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(--primary); color: #fff; font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 700; text-decoration: none; }
.nav-links { list-style: none; display: flex; gap: 28px; }
.nav-links a { color: var(--text-muted); font-size: 12px; font-weight: 400; letter-spacing: 1.5px; 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(--accent); transition: all var(--transition); }

/* Hero — Confiance: grid 40/60, texte gauche + badge, photo droite */
.hero { position: relative; min-height: 100vh; display: grid; grid-template-columns: 40fr 60fr; overflow: hidden; background: #FFFFFF; }
.hero-bg { position: relative; width: 100%; height: 100%; object-fit: cover; grid-column: 2; grid-row: 1; }
.hero-overlay { display: none; }
.hero-content { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 60px 40px 60px 8%; background: #FFFFFF; }
.hero-badge { display: inline-block; background: var(--primary); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; padding: 6px 16px; border-radius: 4px; margin-bottom: 24px; }
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); color: var(--accent); margin-bottom: 16px; font-weight: 700; }
.hero-sub { font-size: clamp(0.95rem, 1.5vw, 1.05rem); color: var(--text-muted); font-weight: 300; margin-bottom: 32px; max-width: 400px; font-family: 'Merriweather', serif; }

.btn-cta { display: inline-block; background: var(--primary); color: #FFFFFF; padding: 14px 36px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; border: none; border-radius: var(--radius); cursor: pointer; transition: all var(--transition); text-decoration: none; font-family: 'Poppins', sans-serif; }
.btn-cta:hover { background: #0D47A1; 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-beige); }
.contact-phone { margin: 24px 0 8px; }
.phone-number { font-family: 'Poppins', sans-serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; color: var(--primary); text-decoration: none; display: inline-block; }
.section-terracotta .phone-number { color: #fff; }

/* Sections */
.section { padding: 80px 0; }
.section-beige { background: var(--bg-beige); }
.section-dark { background: var(--bg-dark); color: var(--text-light); }
.section-terracotta { background: var(--primary); color: #fff; }
.section-title { text-align: center; font-size: clamp(1.75rem, 4vw, 2.75rem); 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: 15px; font-family: 'Merriweather', serif; font-weight: 300; }
.section-dark .section-subtitle { color: rgba(245,248,255,0.55); }
.section-terracotta .section-subtitle { color: rgba(255,255,255,0.75); }

/* A propos — fond bleu pale, grid 1:1 */
#a-propos { background: #EBF3FF; }
.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(--accent); font-weight: 600; }
.split-text p { font-size: 15px; line-height: 1.85; color: var(--text-muted); font-family: 'Merriweather', serif; font-weight: 300; min-width: 0; }
.split-image { 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(245,248,255,0.08); }

/* 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(245,248,255,0.5); border: 1px solid rgba(245,248,255,0.2); border-radius: 30px; font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 600; 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(--primary); }
.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(245,248,255,0.12); }
.menu-item:last-child { border-bottom: none; }
.menu-item-info { min-width: 0; }
.menu-item-info h3 { font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 600; margin-bottom: 4px; color: var(--text-light); }
.menu-item-info p { font-size: 13px; color: rgba(245,248,255,0.45); font-family: 'Merriweather', serif; min-width: 0; }
.menu-item-prix { font-family: 'Poppins', sans-serif; font-size: 18px; color: #fff; font-weight: 600; 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(--border); }
.horaires-table td { padding: 10px 0; font-size: 15px; }
.jour { font-weight: 600; 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(--primary); }
.map-container iframe { width: 100%; height: 100%; min-height: 300px; border: none; border-radius: var(--radius); }

/* Footer */
.footer { background: #071A3A; color: rgba(245,248,255,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: 'Poppins', sans-serif; font-size: 22px; color: var(--text-light); display: block; margin-bottom: 12px; font-weight: 700; }
.footer h4 { color: rgba(245,248,255,0.6); margin-bottom: 12px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }
.footer a { color: rgba(245,248,255,0.45); }
.footer a:hover { color: var(--text-light); }
.footer p { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(245,248,255,0.08); padding-top: 20px; display: flex; justify-content: space-between; font-size: 13px; }
.footer-credit { color: rgba(245,248,255,0.15); }
.footer-credit a { color: rgba(245,248,255,0.15); }

/* === Partage : 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(21,101,192,0.3); 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(21,101,192,0.1); }
.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: 768px) {
    .nav-toggle { display: flex; }
    .nav-links { position: fixed; top: var(--nav-height); left: 0; right: 0; background: rgba(245,248,255,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(--border); }
    .nav-links a { display: block; padding: 14px 20px; }
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-bg { height: 50vh; grid-column: 1; }
    .hero-content { grid-column: 1; padding: 40px 20px 50px; align-items: center; text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .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 h1 { font-size: 2rem; } }
