/* =====================================================
   CABINET MOREAU & ASSOCIÉS - Styles
   Cabinet d'avocats - Lyon
   ===================================================== */

/* Variables */
:root {
    --primary: #1E3A5F;
    --primary-dark: #152A45;
    --primary-light: #2D4A6F;
    --secondary: #C9A227;
    --secondary-light: #E5C04D;
    --text-dark: #1A1A1A;
    --text-medium: #4A4A4A;
    --text-light: #6B7280;
    --bg-light: #F8F9FA;
    --bg-cream: #FDFCF9;
    --white: #FFFFFF;
    --border: #E5E7EB;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
    padding: 20px 0;
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 12px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    transition: color 0.3s ease;
}

.navbar.scrolled .logo-name {
    color: var(--primary);
}

.logo-tagline {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.navbar.scrolled .logo-tagline {
    color: var(--text-light);
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-link {
    color: var(--text-dark);
}

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

.nav-cta {
    background: var(--secondary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.navbar.scrolled .hamburger span {
    background: var(--primary);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 24px;
}

.mobile-link {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--white);
}

.mobile-cta {
    background: var(--secondary);
    color: var(--white);
    padding: 16px 32px;
    border-radius: var(--radius);
    font-weight: 500;
    margin-top: 16px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--primary);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-placeholder {
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.95) 0%, rgba(21, 42, 69, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 120px 24px 80px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(201, 162, 39, 0.2);
    color: var(--secondary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(201, 162, 39, 0.3);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--white);
    margin-bottom: 24px;
    font-weight: 500;
}

.hero p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

/* Stats Section */
.stats-section {
    background: var(--primary-dark);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--secondary);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
    display: block;
}

/* Section Styles */
.section-badge {
    display: inline-block;
    background: rgba(30, 58, 95, 0.1);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 600px;
}

.section-header.center p {
    margin: 0 auto;
}

/* Cabinet Section */
.cabinet-section {
    padding: 100px 0;
    background: var(--white);
}

.cabinet-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.cabinet-intro {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.8;
}

.cabinet-text p {
    color: var(--text-medium);
    margin-bottom: 16px;
}

.cabinet-values {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.value-icon {
    width: 48px;
    height: 48px;
    background: rgba(30, 58, 95, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.value-text strong {
    display: block;
    color: var(--primary);
    margin-bottom: 4px;
}

.value-text span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.cabinet-image {
    position: relative;
}

.cabinet-img {
    width: 100%;
    max-width: 700px;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.image-placeholder {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 200px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.image-placeholder.large {
    min-height: 500px;
}

/* Expertises Section */
.expertises-section {
    padding: 100px 0;
    background: var(--bg-light);
}

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

.expertise-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.expertise-icon {
    width: 64px;
    height: 64px;
    background: rgba(30, 58, 95, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
}

.expertise-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.expertise-card p {
    color: var(--text-medium);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.expertise-list {
    list-style: none;
}

.expertise-list li {
    position: relative;
    padding-left: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.expertise-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
}

/* Equipe Section */
.equipe-section {
    padding: 100px 0;
    background: var(--white);
}

.equipe-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

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

.avocat-photo {
    margin-bottom: 24px;
}

.avocat-img {
    width: 180px;
    height: 220px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    object-fit: cover;
    display: block;
}

.avocat-photo .image-placeholder {
    width: 180px;
    height: 220px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
}

.avocat-info h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.avocat-title {
    display: block;
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.avocat-info p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.avocat-bar {
    color: var(--text-light) !important;
    font-size: 0.85rem !important;
    font-style: italic;
}

.equipe-cta {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.equipe-cta p {
    color: var(--text-medium);
    margin-bottom: 24px;
}

/* Publications Section */
.publications-section {
    padding: 100px 0;
    background: var(--bg-cream);
}

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

.publication-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.publication-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.publication-image {
    height: 200px;
    overflow: hidden;
}

.publication-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.publication-image .image-placeholder {
    height: 100%;
    border-radius: 0;
    background: var(--bg-light);
}

.publication-content {
    padding: 24px;
}

.publication-category {
    display: inline-block;
    background: rgba(30, 58, 95, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.publication-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.publication-card p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.publication-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* Clients Section */
.clients-section {
    padding: 80px 0;
    background: var(--white);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 32px;
    align-items: center;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.client-logo:hover {
    opacity: 1;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: var(--primary);
}

.testimonials-section .section-badge {
    background: rgba(201, 162, 39, 0.2);
    color: var(--secondary);
}

.testimonials-section h2 {
    color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.quote-icon {
    color: var(--secondary);
    opacity: 0.3;
    margin-bottom: 16px;
}

.testimonial-content p {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.author-avatar {
    width: 50px;
    height: 50px;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.author-info strong {
    display: block;
    color: var(--primary);
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--text-medium);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    box-shadow: var(--shadow);
}

.contact-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 32px;
    text-align: center;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-notice {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 24px;
    font-style: italic;
}

/* Map Section */
.map-section {
    height: 400px;
    background: var(--bg-light);
}

.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-light);
    background: var(--bg-light);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-name {
    color: var(--white);
}

.footer-logo .logo-tagline {
    color: rgba(255, 255, 255, 0.6);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-col h4 {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 24px;
}

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-col ul a:hover {
    color: var(--secondary);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

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

/* Sticky CTA Mobile */
.sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 12px 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
    gap: 12px;
}

.sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.9rem;
}

.sticky-btn.call {
    background: var(--bg-light);
    color: var(--primary);
}

.sticky-btn.rdv {
    background: var(--secondary);
    color: var(--white);
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-links,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

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

    .cabinet-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cabinet-image {
        order: -1;
    }

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

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

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

    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

@media (max-width: 768px) {
    .hero-content {
        padding: 100px 20px 60px;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .stats-grid {
        gap: 24px;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .expertises-grid,
    .equipe-grid,
    .publications-grid {
        grid-template-columns: 1fr;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .sticky-cta {
        display: flex;
    }

    body {
        padding-bottom: 80px;
    }
}

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

    .section-header h2 {
        font-size: 1.75rem;
    }

    .expertise-card,
    .publication-card,
    .testimonial-card {
        padding: 24px;
    }

    .avocat-photo .image-placeholder {
        width: 140px;
        height: 170px;
    }
}
