@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");

/* ================================
   TIM BARBER - Noir & Blanc Theme
   ================================ */
:root {
    --color-bg-dark: #0d0d0d;
    --color-bg-card: #171717;
    --color-text-main: #f5f5f5;
    --color-text-muted: #a3a3a3;
    --color-accent: #ffffff;
    --color-accent-hover: #dedede;
    --color-border: #303030;

    --font-primary: 'Manrope', sans-serif;
    --font-heading: 'Fraunces', serif;

    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.text-accent {
    color: var(--color-accent);
}

a {
    color: var(--color-text-main);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-accent);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

header .container {
    max-width: none;
    padding: 0 40px;
}

section {
    padding: 90px 0;
}

/* =====================
   Navigation
   ===================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-text-main);
    text-transform: uppercase;
}

.logo img {
    display: block;
    height: 70px;
    width: 132px;
    object-fit: cover;
    object-position: center 51%;
    filter: grayscale(100%) brightness(200%) contrast(120%);
}

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

.nav-links li a {
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    position: relative;
    padding-bottom: 4px;
    color: var(--color-text-muted);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--color-accent);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

/* =====================
   Buttons
   ===================== */
.btn {
    display: inline-block;
    padding: 11px 28px;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #0d0d0d;
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-main);
    border-color: var(--color-border);
}

.btn-outline:hover {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* =====================
   Hero Section
   ===================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.82)),
        url('salon.jpg') center/cover no-repeat;
    padding-top: 80px;
}

.hero-content {
    max-width: 820px;
    z-index: 1;
    animation: fadeUp 1s ease-out;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.05;
    color: #fff;
}

.hero p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.1rem;
    margin-bottom: 36px;
}

/* =====================
   Section Titles
   ===================== */
.section-title {
    text-align: center;
    margin-bottom: 56px;
}

.section-title .overline {
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-accent);
    display: block;
    margin-bottom: 12px;
}

.section-title h2 {
    font-size: 2.4rem;
}

/* =====================
   Footer
   ===================== */
footer {
    background-color: #080808;
    padding: 70px 0 24px;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col h3 {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col p,
.footer-col ul li {
    color: var(--color-text-muted);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: #ffffff;
    color: #0d0d0d;
    border-color: #ffffff;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.82rem;
}

/* =====================
   Animations
   ===================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================
   Divider (white bar)
   ===================== */
.divider {
    width: 40px;
    height: 2px;
    background: var(--color-accent);
    margin: 16px 0;
}

.divider.center {
    margin: 16px auto;
}

/* =====================
   Mobile Nav
   ===================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 12px;
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.mobile-booking {
    display: none;
}

.menu-toggle .bar {
    display: block;
    width: 26px;
    height: 2px;
    background: #ffffff;
    transition: var(--transition-smooth);
}

@media (max-width: 900px) {
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }

    .mobile-booking {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1001;
        padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
        background: var(--color-accent);
        color: #0d0d0d;
        text-align: center;
        font-weight: 800;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(13, 13, 13, 0.99);
        flex-direction: column;
        justify-content: center;
        gap: 36px;
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li a {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

/* Contraste du bouton de reservation dans la navigation */
.nav-links li a.btn-primary { color: #0d0d0d; }
.nav-links li a.btn-primary:hover { color: #ffffff; }

/* Titre accueil : style Impact */
.hero h1 { font-family: "Bebas Neue", sans-serif; font-weight: 400; letter-spacing: 2px; }

/* Accueil : photo lumineuse et boutons arrondis */
body:has(.hero) header { background: #0d0d0d; }
body:has(.hero) header .container { padding-left: 24px; padding-right: 24px; }
body:has(.hero) nav { height: 72px; }
body:has(.hero) .logo img { width: 120px; height: 64px; }
.hero {
    height: 100svh;
    min-height: 680px;
    align-items: flex-end;
    padding: 112px 24px 92px;
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.12) 38%, rgba(0,0,0,0.6) 65%, #0d0d0d 100%), url('salon.jpg');
}
.hero-content { width: 100%; }
.hero h1 { font-size: clamp(3.5rem, 7vw, 5.5rem); margin-bottom: 8px; }
.hero-content > span { color: rgba(255,255,255,0.85) !important; margin-bottom: 12px !important; }
.hero p { color: rgba(255,255,255,0.85); margin-bottom: 0; }
.hero .btn { border-radius: 999px; padding: 16px 28px; text-transform: none; letter-spacing: 0.2px; font-size: 1rem; }
.hero .btn-outline { border-color: rgba(255,255,255,0.55); }
.hero-content > div:last-child { margin-top: 28px !important; }
body:has(.hero) .mobile-booking { border-radius: 999px; left: 16px; right: 16px; bottom: max(14px, env(safe-area-inset-bottom)); padding: 14px 20px; box-shadow: 0 4px 24px rgba(0,0,0,0.25); }
@media (max-width: 900px) {
    body:has(.hero) .nav-links { top: 72px; height: calc(100dvh - 72px); }
    .hero { min-height: 640px; padding: 96px 20px 112px; }
    .hero h1 { font-size: clamp(3.5rem, 12vw, 4.5rem); }
    .hero-content > div:last-child { flex-direction: column; align-items: center; gap: 12px !important; }
    .hero .btn-primary { width: min(300px, 100%); }
    .hero .btn-outline { padding: 12px 28px; }
}
