/* ============================================================
   CABINET MAÎTRE ZINEB TIJANI — Premium Landing Page CSS
   ============================================================ */

/* ── Variables ──────────────────────────────────────────── */
:root {
    --primary:      #D4AF37;
    --primary-light:#F1D592;
    --dark:         #0A1425;
    --darker:       #050A14;
    --light:        #F8F9FA;
    --white:        #ffffff;
    --text-color:   #000000;
    --text-light:   #666666;
    --transition:   all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-sm:    0 2px 10px rgba(0,0,0,.10);
    --shadow-md:    0 10px 30px rgba(0,0,0,.15);
    --shadow-lg:    0 20px 40px rgba(0,0,0,.22);
    --glass-bg:     rgba(255,255,255,.05);
    --glass-border: rgba(255,255,255,.10);
    --radius:       10px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--light);
}
img { display: block; max-width: 100%; }
a { text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--dark);
    font-weight: 700;
    line-height: 1.2;
}

/* ── Utility ────────────────────────────────────────────── */
.section-padding { padding: 110px 0; }

.container {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 70px;
}
.section-header > span {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}
.section-header h2 {
    font-size: 42px;
    position: relative;
    display: inline-block;
    padding-bottom: 18px;
}
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 55px; height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* ====================================================
   HEADER & NAVBAR
   ==================================================== */
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
    /* transparent at top */
    background: transparent;
}
.header.scrolled {
    background: rgba(10, 20, 37, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 24px rgba(0,0,0,.25);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo img { height: 75px; width: auto; }
.logo-separator {
    width: 1px;
    height: 55px;
    background: var(--primary);
    flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
}
.logo-title {
    font-size: 11px;
    color: rgba(255,255,255,.80);
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* Nav links (desktop) */
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    color: rgba(255,255,255,.85);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    padding-bottom: 4px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* CTA Button */
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--dark);
    padding: 11px 26px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
}
.header-cta:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212,175,55,.3);
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 37, 0.97);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.4s ease;
}
.mobile-nav.active { transform: translateX(0); }
.mobile-nav ul { text-align: center; }
.mobile-nav li { margin: 20px 0; }
.mobile-nav a {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}
.mobile-nav a:hover { color: var(--primary); }
.mobile-close {
    position: absolute;
    top: 28px;
    right: 28px;
    color: var(--white);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    background: none;
    border: none;
}

/* ====================================================
   HERO SECTION
   ==================================================== */
.hero {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 120px 20px 60px;
}
.hero-content { max-width: 950px; }

/* Hero logo branding */
.hero-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    pointer-events: none;
}
.hero-branding img        { height: 120px; width: auto; }
.hero-branding .logo-separator { height: 95px; margin: 0 22px; }
.hero-branding .logo-name      { font-size: 46px; color: #fff; }
.hero-branding .logo-title     { font-size: 20px; color: #fff; opacity: 1; }

.hero h1 {
    font-size: 58px;
    color: var(--white);
    margin-bottom: 18px;
    letter-spacing: -1px;
}
.hero-tagline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 20px;
    margin-bottom: 40px;
    color: rgba(255,255,255,.9);
}
.hero-seo-copy {
    max-width: 820px;
    margin: 0 auto 32px;
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255,255,255,.88);
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, #B8860B 100%);
    color: var(--dark);
    padding: 17px 44px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(212,175,55,.35);
}
.btn-whatsapp i { font-size: 22px; }
.btn-whatsapp:hover {
    transform: scale(1.05);
    background: var(--white);
    color: var(--dark);
}

/* ====================================================
   ABOUT SECTION
   ==================================================== */
.about { background: var(--white); }
.about-flex {
    display: flex;
    align-items: center;
    gap: 80px;
}
.about-img { flex: 1; }
.about-img img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    max-height: 520px;
}
.about-content { flex: 1.2; }
.about-content h3 {
    font-size: 30px;
    color: var(--primary);
    margin-bottom: 20px;
}
.about-content p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 18px;
}
.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}
.value-card {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--dark);
}
.value-card i { color: var(--primary); font-size: 18px; }

/* ====================================================
   EXPERTISE SECTION
   ==================================================== */
/* Expertise Card Update */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.expertise-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.04);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.expertise-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

.expertise-card:hover .expertise-img img {
    transform: scale(1.1);
}

.expertise-content {
    padding: 30px;
    flex-grow: 1;
}

.expertise-content i {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.expertise-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.expertise-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ====================================================
   ACTIVITIES SECTION
   ==================================================== */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}
.activity-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}
.activity-img { height: 240px; overflow: hidden; }
.activity-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.activity-card:hover .activity-img img { transform: scale(1.07); }
.activity-info { padding: 24px; }
.activity-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(212,175,55,.12);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 12px;
}
.activity-info h4 { font-size: 18px; margin-bottom: 10px; line-height: 1.4; }
.activity-info p  { font-size: 14px; color: var(--text-light); }

/* ====================================================
   REVIEWS SECTION
   ==================================================== */
.reviews {
    background: var(--dark);
}
.reviews .section-header h2 { color: var(--white); }
.reviews-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.review-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 36px;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.review-item .stars { color: #FFD700; margin-bottom: 16px; }
.review-item p {
    font-style: italic;
    font-size: 15px;
    color: rgba(255,255,255,.88);
    margin-bottom: 24px;
    line-height: 1.8;
    flex-grow: 1;
}

.arabic-text {
    direction: rtl;
    text-align: right;
    font-size: 17px !important;
    font-style: normal !important;
}
.reviewer-profile { display: flex; align-items: center; gap: 12px; }
.reviewer-initial {
    width: 46px; height: 46px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--dark);
    font-size: 16px;
    flex-shrink: 0;
}
.reviewer-info h5 { color: var(--white); font-size: 16px; margin-bottom: 2px; }
.reviewer-info span { font-size: 12px; color: rgba(255,255,255,.5); }

/* ====================================================
   CABINET GALLERY
   ==================================================== */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.photo-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 320px;
    box-shadow: var(--shadow-md);
}
.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.photo-card:hover img { transform: scale(1.07); }
.photo-label {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 40px 24px 20px;
    background: linear-gradient(transparent, rgba(10,20,37,.85));
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ====================================================
   FAQ SECTION
   ==================================================== */
.faq { background: var(--white); }
.faq-wrap { max-width: 880px; margin: 0 auto; }
.faq-box {
    margin-bottom: 16px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--radius);
    background: var(--white);
    overflow: hidden;
}
.faq-box.active { border-color: var(--primary); }
.faq-head {
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 15px;
}
.faq-head h4 { font-size: 17px; margin: 0; }
.faq-head i { color: var(--primary); transition: var(--transition); flex-shrink: 0; }
.faq-box.active .faq-head i { transform: rotate(180deg); }
.faq-body { max-height: 0; overflow: hidden; transition: all .4s ease; }
.faq-box.active .faq-body { max-height: 400px; padding: 0 28px 26px; }
.faq-body p { color: var(--text-light); font-size: 15px; }

/* ====================================================
   FOOTER
   ==================================================== */
.footer-main {
    background: var(--darker);
    color: var(--white);
    padding: 90px 0 35px;
}
.f-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}
.f-about p { color: rgba(255,255,255,.5); margin-top: 20px; line-height: 1.8; }
.f-links h4 { color: var(--white); font-size: 18px; margin-bottom: 24px; }
.f-links li { margin-bottom: 12px; }
.f-links a {
    color: rgba(255,255,255,.5);
    transition: var(--transition);
    font-size: 15px;
}
.f-links a:hover { color: var(--primary); padding-left: 6px; }
.f-contact h4 { color: var(--white); font-size: 18px; margin-bottom: 24px; }
.c-info { display: flex; gap: 14px; margin-bottom: 18px; }
.c-info i { color: var(--primary); font-size: 17px; margin-top: 3px; }
.c-info p { color: rgba(255,255,255,.6); font-size: 14px; }
.copyright {
    border-top: 1px solid rgba(255,255,255,.06);
    padding-top: 28px;
    text-align: center;
    color: rgba(255,255,255,.3);
    font-size: 13px;
}

/* ====================================================
   RESPONSIVE — TABLETTE (≤ 1024px)
   ==================================================== */
@media (max-width: 1024px) {
    .hero h1            { font-size: 46px; }
    .hero-branding .logo-name { font-size: 36px; }
    .hero-branding .logo-title{ font-size: 16px; }
    .hero-branding img  { height: 90px; }
    .hero-branding .logo-separator { height: 70px; }

    .about-flex  { gap: 50px; }
    .section-header h2  { font-size: 36px; }

    .f-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    /* Nav: masquer liens et CTA sur tablette aussi */
    .nav-links  { gap: 22px; }
    .nav-links a{ font-size: 13px; }
    .header-cta { padding: 10px 18px; font-size: 12px; }
}

/* ====================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ==================================================== */
@media (max-width: 768px) {
    /* Section padding réduite */
    .section-padding { padding: 75px 0; }
    .section-header  { margin-bottom: 45px; }
    .section-header h2 { font-size: 30px; }

    /* Masquer nav desktop, afficher hamburger */
    .nav-links  { display: none; }
    .header-cta { display: none; }
    .menu-toggle{ display: flex; }

    /* Logo réduit */
    .logo img         { height: 42px; }
    .logo-separator   { height: 33px; }
    .logo-name        { font-size: 17px; }
    .logo-title       { font-size: 10px; }

    /* Hero */
    .hero { background-attachment: scroll; padding: 100px 20px 50px; }
    .hero h1 { font-size: 34px; }
    .hero-tagline { font-size: 16px; }
    .hero-seo-copy { font-size: 15px; line-height: 1.7; margin-bottom: 28px; }
    .hero-btns { flex-direction: column; align-items: center; }

    .hero-branding { flex-direction: column; gap: 12px; margin-bottom: 25px; }
    .hero-branding .logo-separator { display: none; }
    .hero-branding .logo-text { text-align: center !important; }
    .hero-branding img { height: 80px; }
    .hero-branding .logo-name  { font-size: 28px !important; }
    .hero-branding .logo-title { font-size: 14px !important; }

    /* About — empiler en colonne */
    .about-flex { flex-direction: column; gap: 35px; }
    .about-flex[style*="row-reverse"] { flex-direction: column !important; }

    /* Grilles simples 1 colonne */
    .expertise-grid  { grid-template-columns: 1fr; }
    .activities-grid { grid-template-columns: 1fr; }
    .reviews-slider  { grid-template-columns: 1fr; }
    .photo-gallery   { grid-template-columns: 1fr; }
    .about-values    { grid-template-columns: 1fr; }

    /* Footer 1 colonne */
    .f-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ====================================================
   RESPONSIVE — TRÈS PETIT MOBILE (≤ 480px)
   ==================================================== */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero h1   { font-size: 28px; }
    .btn-whatsapp { padding: 15px 28px; font-size: 15px; }
    .logo-title  { display: none; }
    .logo-separator { display: none; }
    .logo-name  { font-size: 16px; }
    .logo img   { height: 38px; }
    .photo-card { height: 250px; }
    .expertise-card { padding: 28px 20px; }
}

/* ====================================================
   FLOATING WHATSAPP
   ==================================================== */
.whatsapp-float {
    position: fixed !important;
    bottom: 40px !important;
    right: 40px !important;
    width: 65px !important;
    height: 65px !important;
    background-color: #D4AF37 !important; /* Gold */
    color: #0A1425 !important; /* Dark blue/black */
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 35px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3) !important;
    z-index: 9999999 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    animation: whatsapp-pulse 2s infinite !important;
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px) !important;
    background-color: #ffffff !important;
    color: #D4AF37 !important;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.6) !important;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 25px !important;
        right: 25px !important;
        width: 55px !important;
        height: 55px !important;
        font-size: 28px !important;
    }
}
