/* =============================================
   CABINET VERLAINE AVOCATS - STYLES
   Charte graphique : Bleu marine, Or, Blanc
   ============================================= */

/* Variables CSS */
:root {
    /* Couleurs principales */
    --navy: #1a2a4a;
    --navy-dark: #0f1a2e;
    --navy-light: #2d4066;
    --gold: #c9a227;
    --gold-light: #e8d48b;
    --gold-dark: #9a7b1c;
    --white: #ffffff;
    --off-white: #f8f7f4;
    --cream: #faf9f6;
    
    /* Neutres */
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    
    /* Typographie */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Espacements */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Autres */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition: 0.3s ease;
    --transition-fast: 0.15s ease;
    
    /* Header height */
    --header-height: 80px;
}

/* 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-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessibilité - Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    color: var(--white);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    z-index: 10000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-md);
}

/* Focus visible pour accessibilité */
:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

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

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    margin-bottom: var(--space-md);
}

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

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* =============================================
   HEADER
   ============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--white);
    z-index: 1000;
    transition: box-shadow var(--transition), background var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 50px;
    height: 50px;
    color: var(--navy);
}

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

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navigation */
.nav-list {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: var(--space-sm) 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--navy);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Header Phone */
.header-phone {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    color: var(--navy);
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--navy);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.header-phone:hover {
    background: var(--navy);
    color: var(--white);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-bar {
    width: 100%;
    height: 2px;
    background: var(--navy);
    transition: all var(--transition);
}

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 42, 74, 0.9) 0%, rgba(26, 42, 74, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: var(--space-4xl) 0;
}

.hero-badge {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: rgba(201, 162, 39, 0.2);
    border: 1px solid var(--gold);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-xl);
}

.hero-title {
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.hero-title span {
    color: var(--gold);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-3xl);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--gold);
    color: var(--navy-dark);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: var(--space-3xl);
}

.hero-stat {
    text-align: left;
}

.hero-stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* =============================================
   SECTIONS
   ============================================= */
.section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(201, 162, 39, 0.15);
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
}

/* =============================================
   CABINET SECTION
   ============================================= */
.cabinet {
    background: var(--off-white);
}

.cabinet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.cabinet-image-wrapper {
    position: relative;
}

.cabinet-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.cabinet-image-accent {
    position: absolute;
    top: var(--space-xl);
    left: var(--space-xl);
    right: calc(-1 * var(--space-xl));
    bottom: calc(-1 * var(--space-xl));
    border: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.cabinet-content .section-badge {
    margin-bottom: var(--space-sm);
}

.cabinet-content .section-title {
    margin-bottom: var(--space-xl);
}

.cabinet-text {
    margin-bottom: var(--space-xl);
}

.cabinet-text p {
    color: var(--gray-600);
}

.cabinet-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.cabinet-feature {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-weight: 500;
    color: var(--navy);
}

.cabinet-feature svg {
    color: var(--gold);
    flex-shrink: 0;
}

/* =============================================
   EXPERTISES SECTION
   ============================================= */
.expertises-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.expertise-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gold);
}

.expertise-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.expertise-icon svg {
    width: 30px;
    height: 30px;
    color: var(--gold);
}

.expertise-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.expertise-desc {
    color: var(--gray-500);
    margin-bottom: var(--space-lg);
}

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

.expertise-list li {
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    position: relative;
    font-size: 0.9rem;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
}

.expertise-list li:last-child {
    border-bottom: none;
}

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

/* =============================================
   HONORAIRES SECTION
   ============================================= */
.honoraires {
    background: var(--off-white);
}

.honoraires-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.honoraire-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    border: 2px solid var(--gray-200);
    position: relative;
    transition: all var(--transition);
}

.honoraire-card:hover {
    border-color: var(--gold);
}

.honoraire-card.featured {
    border-color: var(--gold);
    box-shadow: var(--shadow-lg);
}

.honoraire-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gold);
    color: var(--navy-dark);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.honoraire-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
}

.honoraire-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.honoraire-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-xs);
}

.price-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
}

.price-unit {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.honoraire-desc {
    color: var(--gray-500);
    margin-bottom: var(--space-lg);
    font-size: 0.95rem;
}

.honoraire-features {
    list-style: none;
}

.honoraire-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.honoraire-features svg {
    color: var(--gold);
    flex-shrink: 0;
}

.honoraires-note {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
    padding: var(--space-lg);
    background: rgba(201, 162, 39, 0.1);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--gold);
}

.honoraires-note svg {
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.honoraires-note p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--gray-700);
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials {
    background: var(--navy);
}

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

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

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: var(--space-lg);
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    color: var(--gold);
}

.testimonial-text {
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-lg);
    font-size: 1rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--white);
}

.author-case {
    font-size: 0.85rem;
    color: var(--gold);
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
}

.contact-info .section-badge {
    margin-bottom: var(--space-sm);
}

.contact-info .section-title {
    margin-bottom: var(--space-lg);
}

.contact-intro {
    color: var(--gray-500);
    margin-bottom: var(--space-2xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.contact-item {
    display: flex;
    gap: var(--space-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--navy);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--gold);
}

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

.contact-text strong {
    font-size: 0.9rem;
    color: var(--navy);
    margin-bottom: var(--space-xs);
}

.contact-text span,
.contact-text a {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.contact-text a:hover {
    color: var(--gold);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--off-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-xl);
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
}

.form-input {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gray-800);
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

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

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.form-checkbox input {
    margin-top: 4px;
    flex-shrink: 0;
}

.form-checkbox label {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.form-checkbox a {
    color: var(--gold-dark);
    text-decoration: underline;
}

.form-note {
    margin-top: var(--space-md);
    font-size: 0.8rem;
    color: var(--gray-400);
    text-align: center;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-lg);
}

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

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin-bottom: var(--space-xs);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        padding: var(--space-xl);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }
    
    .nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .nav-link {
        display: block;
        padding: var(--space-md);
    }
    
    .header-phone {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-stats {
        gap: var(--space-xl);
    }
    
    .cabinet-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .cabinet-image-accent {
        display: none;
    }
    
    .expertises-grid,
    .honoraires-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
}

@media (max-width: 640px) {
    :root {
        --space-4xl: 4rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .header,
    .scroll-indicator,
    .btn,
    .contact-form-wrapper {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: var(--space-xl) 0;
    }
    
    .hero-background {
        display: none;
    }
    
    .hero-content {
        color: var(--navy);
    }
    
    .hero-title,
    .hero-subtitle {
        color: var(--navy);
    }
    
    .section {
        padding: var(--space-xl) 0;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
