/* ===================================================
   HAIR INK PRECISION — Thème blanc / noir
   =================================================== */

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

:root {
    --font-title: 'Cormorant Garamond', Georgia, serif;
    --font-body:  'Poppins', system-ui, sans-serif;
    --radius: 12px;
    --max-w: 1200px;
    --py: 100px;
}

html { scroll-behavior: smooth; }

body {
    background: #ffffff;
    color: #111111;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-title);
    font-weight: 600;
    line-height: 1.15;
    color: #111111;
}
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2.2rem, 4vw, 3.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
em { font-style: italic; color: #111111; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.section { padding: var(--py) 0; }

.section-header { text-align: center; margin-bottom: 72px; }
.section-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #111111;
    padding: 6px 20px;
    border: 1px solid rgba(0,0,0,0.3);
    border-radius: 999px;
    margin-bottom: 20px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: #666666; max-width: 520px; margin: 0 auto; font-size: 0.95rem; }

/* ===== BOUTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 36px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 3px;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
}
.btn-dark { background: #111111; color: #ffffff; border: 1px solid #111111; }
.btn-dark:hover { background: #333333; transform: translateY(-2px); }
.btn-outline-light { border: 1px solid rgba(255,255,255,0.6); color: #ffffff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); border-color: #ffffff; }
.btn-outline-dark { border: 1px solid rgba(0,0,0,0.3); color: #111111; }
.btn-outline-dark:hover { border-color: #111111; background: rgba(0,0,0,0.05); }
.btn-whatsapp { background: #25D366; color: #fff; border-radius: 8px; padding: 14px 28px; }
.btn-whatsapp svg { width: 20px; height: 20px; }
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }

/* ===== ANIMATION ===== */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 24px 0;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    padding: 16px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.nav-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo img {
    height: 60px;
    mix-blend-mode: multiply;
}

.nav-links { display: flex; align-items: center; gap: 12px; list-style: none; }
.nav-links a {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #444444;
    transition: all 0.3s ease;
}
.nav-links a:not(.nav-cta):not(.nav-insta):hover { color: #ffffff; background: #111111; }
.nav-links a:not(.nav-cta):not(.nav-insta) {
    padding: 6px 14px;
    border: 1px solid #111111;
    color: #111111;
    border-radius: 3px;
}
.nav-cta {
    padding: 6px 14px !important;
    border: 1px solid #111111 !important;
    color: #111111 !important;
    border-radius: 3px;
}
.nav-cta:hover { background: #111111 !important; color: #ffffff !important; }

.nav-insta {
    display: flex;
    align-items: center;
    color: #dc2743;
    transition: all 0.3s ease;
}
.nav-insta svg { width: 22px; height: 22px; }
.nav-insta:hover { opacity: 0.5; }

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
}
.hamburger span {
    display: block;
    height: 1.5px;
    background: #111111;
    transition: all 0.3s ease;
    transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: url('../images/hero.jpg') center center / cover no-repeat;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.40);
}
.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
}
.hero-tag {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 48px;
}
.hero h1 {
    font-family: var(--font-title);
    font-size: clamp(3rem, 7vw, 6rem);
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 48px;
    line-height: 1.1;
}
.hero h1 em { color: #ffffff; font-style: italic; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-scroll-hint {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}
.hero-scroll-line {
    display: block;
    width: 1px;
    height: 56px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
    margin: 0 auto;
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0; transform: scaleY(0.4); transform-origin: top; }
    50%       { opacity: 1; transform: scaleY(1); }
}

/* ===== SERVICES ===== */
.services { background: #f7f7f5; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.service-card {
    position: relative;
    padding: 48px 36px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: #111111;
    opacity: 0;
    transition: all 0.3s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 48px rgba(0,0,0,0.10); border-color: #ccc; }
.service-card:hover::before { opacity: 1; }
.service-num {
    font-family: var(--font-title);
    font-size: 5rem;
    font-weight: 700;
    color: #111111;
    line-height: 1;
    margin-bottom: 16px;
}
.service-card h3 { color: #111111; margin-bottom: 16px; }
.service-card p { color: #666666; font-size: 0.88rem; line-height: 1.8; }

/* ===== STATS ===== */
.stats { background: #111111; padding: 72px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.stat-item { color: #ffffff; }
.stat-num {
    display: block;
    font-family: var(--font-title);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
    color: #ffffff;
}
.stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

/* ===== GALLERY ===== */
.resultats { background: #ffffff; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    background: #ffffff;
    box-shadow: 0 2px 18px rgba(0,0,0,0.13);
}
.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
    opacity: 0;
    transition: all 0.3s ease;
}
.gallery-item:hover .gallery-label { opacity: 1; }
.gallery-label span {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #ffffff;
}

/* Lightbox */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img { max-height: 90vh; max-width: 90vw; object-fit: contain; border-radius: 8px; }
.lightbox-close {
    position: absolute; top: 24px; right: 32px;
    color: #fff; font-size: 2rem; cursor: pointer;
    opacity: 0.7; transition: all 0.3s ease;
    background: none; border: none;
}
.lightbox-close:hover { opacity: 1; }

/* ===== CONTACT ===== */
.contact { background: #f7f7f5; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 36px; }
.contact-item { display: flex; gap: 20px; align-items: flex-start; }
.contact-icon {
    width: 52px; height: 52px; flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #111111;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-item h4 {
    font-family: var(--font-body);
    font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: #999999; margin-bottom: 6px;
}
.contact-item p, .contact-item a { color: #111111; font-size: 0.95rem; transition: all 0.3s ease; }
.contact-item a:hover { color: #555555; }
.contact-whatsapp { margin-top: 8px; }

/* ===== AVIS ===== */
.avis { background: #f7f7f5; }

.avis-rating-global {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}
.avis-rating-global .stars {
    color: #111;
    font-size: 1.2rem;
    letter-spacing: 3px;
}
.avis-rating-global span {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #666;
    text-transform: uppercase;
}

.avis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.avis-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: var(--radius);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.avis-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.09);
}

.avis-stars {
    color: #111;
    font-size: 1rem;
    letter-spacing: 3px;
}

.avis-card p {
    color: #444;
    font-size: 0.9rem;
    line-height: 1.8;
    flex: 1;
    font-style: italic;
}

.avis-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}
.avis-name {
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    color: #111;
}
.avis-date {
    font-size: 0.75rem;
    color: #999;
}

/* ===== FORMULAIRE ===== */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #111111;
    font-family: var(--font-body);
    font-size: 0.88rem;
    transition: all 0.3s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #bbbbbb; }
.form-group select { color: #bbbbbb; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 20px center; padding-right: 44px; }
.form-group select option { background: #ffffff; color: #111111; }
.form-group select.filled { color: #111111; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #111111;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed; bottom: 36px; right: 36px;
    width: 60px; height: 60px;
    background: #25D366; color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 24px rgba(37,211,102,0.45);
    z-index: 999;
    transition: all 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.12); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ===== FOOTER ===== */
.footer {
    background: #ffffff;
    border-top: 1px solid #e8e8e8;
    padding: 56px 0;
    text-align: center;
}
.footer-logo { height: 56px; margin: 0 auto 24px; opacity: 0.8; }
.footer p { color: #999999; font-size: 0.78rem; letter-spacing: 0.08em; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { gap: 48px; }
}

@media (max-width: 768px) {
    :root { --py: 64px; }
    .nav-links {
        display: none;
        position: fixed; inset: 0;
        background: #ffffff;
        flex-direction: column; align-items: center; justify-content: center;
        gap: 40px; z-index: 1000;
    }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 1.1rem; letter-spacing: 0.15em; color: #111111 !important; padding: 0 !important; border: none !important; background: none !important; }
    .nav-links a.nav-cta { font-size: 1rem !important; padding: 12px 28px !important; border: 1px solid #111111 !important; background: none !important; color: #111111 !important; }
    .nav-links a.nav-cta:hover { background: #111111 !important; color: #ffffff !important; }
    .hamburger { display: flex; }
    .hero { padding-top: 80px; }
    .hero-logo { width: 200px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .services-grid { grid-template-columns: 1fr; }
    .avis-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; gap: 40px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .form-row { grid-template-columns: 1fr; }
    .whatsapp-float { bottom: 24px; right: 24px; }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .nav-container { padding: 0 20px; }
}
