/* ============================================
   Cabinet Weinstein - Modern Website V3
   ============================================ */

/* Variables */
:root {
    --primary: #0a192f;      /* Navy Blue très foncé - Premium */
    --primary-light: #172a45;
    --primary-dark: #020c1b;
    --accent: #b78628;       /* Or mat - Premium */
    --accent-light: #d4a855;
    --white: #ffffff;
    --light: #f8f9fa;
    --gray-100: #e6f1ff;
    --gray-200: #ccd6f6;
    --gray-500: #8892b0;
    --gray-700: #495670;
    --gray-900: #0a192f;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --shadow: 0 10px 30px -10px rgba(2,12,27,0.7);
    --transition: all 0.25s cubic-bezier(0.645,0.045,0.355,1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary);
}

h1 { font-size: clamp(2.5rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.1rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: rgba(183, 134, 40, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

.btn-full {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
}

.btn-full:hover {
    background: var(--primary-light);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 55px; /* Agrandissement */
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0,0,0,0.3)); /* Blanc pur + Ombre */
    transition: var(--transition);
    max-width: 250px; /* Limite la largeur pour éviter que ça dépasse sur mobile */
    object-fit: contain; /* Garde les proportions */
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-200);
}

.nav-link:hover {
    color: var(--accent);
}

.nav-cta {
    border: 1px solid var(--accent);
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    color: var(--accent);
}

.nav-cta:hover {
    background: rgba(183, 134, 40, 0.1);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 5px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    padding: 0 2rem;
}

.hero-content {
    text-align: center;
    max-width: 850px;
    z-index: 2;
}

.hero-subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--accent);
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-title {
    color: var(--gray-100);
    margin-bottom: 2rem;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero-title .highlight {
    color: var(--accent);
    font-style: italic;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray-500);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero-scroll i {
    color: var(--gray-500);
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* ============================================
   About Section
   ============================================ */
.section {
    padding: 6rem 0;
}

.section-about {
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: block;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-lead {
    font-size: 1.5rem;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--gray-200);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
}

/* President Card */
.president-card {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.president-image {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.president-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* FIX: Focus on face */
}

.president-info {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    background: var(--primary);
    padding: 2rem;
    color: var(--white);
    width: 80%;
    box-shadow: var(--shadow);
}

.president-info h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.president-role {
    display: block;
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.president-info p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* President Card - Bubble Layout (Restored) */
.president-card.bubble-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: transparent;
    box-shadow: none;
    margin-top: 0;
}

.president-card.bubble-layout .president-image.bubble-style {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--white);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    height: 250px !important;
}

.president-card.bubble-layout .president-image.bubble-style img {
    object-position: center 10%;
}

.president-card.bubble-layout .president-info {
    position: static;
    width: 100%;
    background: transparent;
    padding: 0;
    box-shadow: none;
    color: var(--primary);
}

.president-card.bubble-layout .president-info h3 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.president-card.bubble-layout .president-info .president-role {
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
}

.president-card.bubble-layout .president-info p {
    color: var(--gray-500);
}

/* ============================================
   Services Section
   ============================================ */
.section-services {
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 4px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--gray-200);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(183, 134, 40, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 2rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--accent);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.service-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.service-card.featured {
    background: var(--primary);
    color: var(--gray-500);
}

.service-card.featured h3 {
    color: var(--white);
}

.service-card.featured .service-list li {
    color: var(--gray-500);
}

.services-cta {
    text-align: center;
    margin-top: 4rem;
}

/* ============================================
   Team Section
   ============================================ */
.team-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 3rem;
}

.team-grid.hidden {
    display: none;
}

.team-card {
    text-align: center;
}

.team-photo {
    height: 350px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    background: var(--gray-200);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%; /* FIX: Focus on faces */
    filter: grayscale(100%);
    transition: var(--transition);
}

.team-card:hover .team-photo img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.team-card h4 {
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}

.team-role {
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   Contact Section
   ============================================ */
.section-contact {
    background: var(--primary);
    color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-info p {
    color: var(--gray-500);
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--accent);
}

.contact-item h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.contact-item p {
    margin-bottom: 0;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 3rem;
    border-radius: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: var(--light);
    border: 1px solid transparent;
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--primary-dark);
    padding: 5rem 0 2rem;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-stats {
        margin-left: auto;
        margin-right: auto;
    }
    
    .president-card {
        margin-top: 3rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        padding: 2rem;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .team-tabs {
        flex-wrap: wrap;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
