/* ===========================================
   Template Coiffeur B — Frais pastel/blanc
   Poppins + Inter
   =========================================== */

:root {
    --primary: #4A4A4A;
    --secondary: #FFFFFF;
    --accent: #F2D7D9;

    --accent-dark: #D4A5A8;
    --text: #4A4A4A;
    --text-light: #FFFFFF;
    --text-muted: #9B9B9B;
    --bg-dark: #4A4A4A;
    --bg-light: #FFFFFF;
    --bg-soft: #FBF8F8;
    --border: #E8E8E8;
    --border-light: #F0F0F0;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 16px rgba(0,0,0,0.06);
    --transition: 250ms ease;
    --nav-height: 64px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Inter:wght@300;400;500&display=swap');

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
    font-family: 'Inter', 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: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

a { color: var(--primary); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.7; }

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(--accent);
    color: var(--primary);
    text-align: center;
    padding: 10px 40px 10px 20px;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    z-index: 200;
}

.bandeau-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--primary);
}

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: 0 1px 0 var(--border);
}

.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: 20px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    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: 22px;
    height: 2px;
    background: var(--primary);
    transition: all var(--transition);
    border-radius: 2px;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-soft);
    padding-top: var(--nav-height);
}

.hero-bg {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--bg-soft) 50%, transparent 75%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--primary);
    margin-bottom: 16px;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 32px;
    max-width: 450px;
}

/* ---- CTA Button ---- */
.btn-cta {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.btn-cta:hover { background: var(--accent-dark); opacity: 1; }

.btn-cta-large {
    font-size: 18px;
    padding: 18px 48px;
    margin-top: 24px;
}

.contact-phone {
    margin: 24px 0 8px;
}

.phone-number {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--accent-dark);
    text-decoration: none;
    display: inline-block;
}

.phone-number:hover { opacity: 0.7; }

.contact-email-alt {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

/* ---- Sections ---- */
.section { padding: 80px 0; }

.section-dark {
    background: var(--bg-soft);
    color: var(--text);
}

.section-light {
    background: var(--bg-light);
    color: var(--text);
}

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 12px;
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 15px;
}

/* ---- Split Layout ---- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.split-text h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 16px;
    color: var(--primary);
}

.split-text p { font-size: 15px; line-height: 1.8; color: var(--text-muted); }

.split-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.placeholder-img {
    background: var(--accent);
    border-radius: var(--radius);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ---- Prestations ---- */
.prestations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.prestation-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: var(--bg-white, #fff);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.section-dark .prestation-card { background: #fff; }

.prestation-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.prestation-info h3 {
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--primary);
}

.prestation-info p { font-size: 13px; color: var(--text-muted); }

.prestation-prix {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: var(--accent-dark);
    font-weight: 700;
    white-space: nowrap;
    margin-left: 16px;
}

/* ---- Galerie ---- */
.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.galerie-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: var(--shadow);
}

.galerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.galerie-item:hover img { transform: scale(1.05); }

/* ---- 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(--accent-dark); }

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: none;
    border-radius: var(--radius);
}

/* ---- Contact Form ---- */
.contact-form { margin-top: 24px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--primary);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: var(--text);
    transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-dark);
    box-shadow: 0 0 0 3px rgba(242, 215, 217, 0.4);
}

.contact-form .btn-cta {
    width: 100%;
    margin-top: 8px;
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 15px;
}

.alert-success { background: #ECFDF5; color: #059669; }
.alert-error { background: #FEF2F2; color: #DC2626; }

/* ---- Footer ---- */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.6);
    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: 18px;
    color: #fff;
    display: block;
    margin-bottom: 12px;
}

.footer h4 { color: #fff; margin-bottom: 12px; font-size: 14px; }
.footer a { color: rgba(255,255,255,0.6); }
.footer a:hover { color: var(--accent); }
.footer p { margin-bottom: 6px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.footer-credit { color: rgba(255,255,255,0.3); }
.footer-credit a { color: rgba(255,255,255,0.3); }

/* ---- WhatsApp Float ---- */
.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.2);
    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(255,255,255,0.98);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 300ms ease;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    }

    .nav-links.open { max-height: 400px; }

    .nav-links li { border-bottom: 1px solid var(--border); }
    .nav-links a { display: block; padding: 14px 20px; color: var(--text); }

    .hero { min-height: auto; padding: 120px 0 60px; }
    .hero-bg { display: none; }
    .hero-overlay { background: none; }
    .hero-content { max-width: 100%; }

    .split { grid-template-columns: 1fr; gap: 24px; }
    .split-image { order: -1; }

    .prestations-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .galerie-grid { grid-template-columns: repeat(2, 1fr); }

    .section { padding: 60px 0; }
}
