/*
Theme Name: BAF WordPress Theme
Theme URI: http://example.com/baf-theme
Author: BAF Team
Author URI: http://example.com
Description: Thème sur-mesure pour BAF Avocats.
Version: 1.0
*/

/* --- VARIABLES --- */
:root {
    --primary-color: #0f172a;
    --accent-color: #c5a059;
    --text-color: #ffffff;
    --text-dark: #334155;
    --glass-bg: rgba(15, 23, 42, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.15);
}

/* --- RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fff;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* --- WORDPRESS CORE --- */
.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

img.alignright {
    float: right;
    margin: 0 0 1em 1em;
}

img.alignleft {
    float: left;
    margin: 0 1em 1em 0;
}

img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

/* I18N Classes */
body.lang-en .ln-fr {
    display: none !important;
}

body:not(.lang-en) .ln-en {
    display: none !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- HEADER --- */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
    padding: 10px 0;
    transition: top 0.3s ease;
}

/* --- CORRECTION ADMIN BAR --- */
body.admin-bar .glass-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .glass-header {
        top: 46px;
    }
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo img {
    height: 55px;
    width: auto;
    transition: 0.3s;
}

.logo img:hover {
    opacity: 0.8;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav>ul>li>a {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    color: #e2e8f0;
    padding: 10px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.main-nav>ul>li>a:hover,
.main-nav>ul>li>a.active-link {
    color: var(--accent-color);
}

.arrow {
    font-size: 10px;
    margin-left: 6px;
    transition: transform 0.3s;
}

.active-link .arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 50px;
    left: -20px;
    width: 260px;
    background: #0f172a;
    border: var(--glass-border);
    padding: 0;
    display: none !important;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border-radius: 2px;
}

.dropdown.show {
    display: flex !important;
    animation: slideDown 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown a {
    text-transform: none;
    font-size: 14px;
    color: #cbd5e1;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: block;
}

.dropdown a:hover {
    background: rgba(197, 160, 89, 0.1);
    color: var(--accent-color);
    padding-left: 25px;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-rdv {
    padding: 10px 20px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-rdv:hover {
    background: var(--accent-color);
    color: #0f172a;
}

/* MOBILE MENU */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1002;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: 0.4s;
}

/* Responsive Styles */
@media (max-width: 900px) {
    .header-container {
        padding: 0 20px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #0f172a;
        flex-direction: column;
        justify-content: center;
        transition: 0.5s ease;
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav ul li {
        margin: 20px 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Dropdowns on Mobile */
    .dropdown {
        position: static !important;
        background: transparent;
        box-shadow: none;
        border: none;
        text-align: center;
        padding-top: 10px;
        display: none;
    }

    .dropdown.show {
        display: block !important;
    }

    .dropdown a {
        padding: 10px;
        font-size: 13px;
        border: none;
    }
}

.lang-switch {
    font-size: 12px;
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.lang-switch span {
    padding: 0 5px;
    transition: 0.3s;
}

.lang-switch span:hover,
.lang-switch span.active {
    color: var(--accent-color);
    font-weight: bold;
}

/* --- HERO SLIDER --- */
#hero-willkie {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.hero-slides-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
    z-index: 2;
}

.slide-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    padding-bottom: 140px;
    padding-left: 80px;
}

.slide-caption {
    max-width: 700px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
    transition-delay: 0.5s;
}

.hero-slide.active .slide-caption {
    opacity: 1;
    transform: translateY(0);
}

.slide-caption h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.1;
}

.slide-caption p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: #e2e8f0;
    font-weight: 300;
    margin-bottom: 30px;
}

.btn-hero {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
    transition: 0.3s;
}

.btn-hero:hover {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: #0f172a;
}

/* CONTROLS */
.hero-controls {
    position: absolute;
    bottom: 60px;
    left: 80px;
    z-index: 10;
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
}

.hero-progress-bars {
    display: flex;
    gap: 15px;
}

.progress-bar {
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-bar .progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--accent-color);
    transition: width 0s;
}

.progress-bar.active .progress-fill {
    width: 100%;
    transition: width 5s linear;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    right: 60px;
    z-index: 10;
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: rotate(90deg);
    transform-origin: right bottom;
}

/* --- CONTENU --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
}

.intro-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    line-height: 1.2;
}

/* CONTENTIEUX/EXPERTISE LAYOUT */
.expertise-row {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.expertise-left {
    width: 35%;
    flex-shrink: 0;
}

.expertise-number {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: rgba(197, 160, 89, 0.3);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
    display: block;
}

.expertise-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.expertise-right {
    width: 65%;
}

.expertise-intro {
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #1e293b;
    line-height: 1.6;
}

.expertise-list li {
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 2px solid var(--accent-color);
}

.expertise-list strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
}

.expertise-list p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* IMAGE SEPARATEUR (Parallax) */
.separator-image {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.separator-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

/* --- FOOTER --- */
.glass-footer {
    background: #02040a;
    color: #fff;
    padding: 80px 20px 20px;
    border-top: 1px solid #1e293b;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo img {
    height: 90px;
    width: auto;
    margin-bottom: 20px;
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Ajustements */
@media (max-width: 900px) {
    .expertise-row {
        flex-direction: column;
        gap: 20px;
    }

    .expertise-left,
    .expertise-right {
        width: 100%;
    }

    .separator-image {
        height: 250px;
        background-attachment: scroll;
    }
}

/* --- PAGES INTERNES --- */
.page-hero {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
}

.page-content {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
}

.page-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #475569;
    font-size: 1.1rem;
}

.page-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin: 40px 0 20px;
    font-size: 2rem;
}

/* --- INTERNATIONAL PAGE --- */
.international-header {
    padding-top: 180px;
    padding-bottom: 60px;
    background: #fff;
    text-align: center;
}

.international-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.regions-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 100px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.region-col h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 10px;
}

.region-list li {
    margin-bottom: 15px;
    position: relative;
    color: #334155;
}

.region-list li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.networks-section {
    background: #f8fafc;
    padding: 80px 40px;
    text-align: center;
}

@media (max-width: 900px) {
    .regions-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .international-header {
        padding-top: 140px;
    }
}

/* --- FORMULAIRE CONTACT --- */
.form-section {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #334155;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
}

.form-control:focus {
    border-color: var(--accent-color);
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background: var(--primary-color);
    color: #fff;
    padding: 15px 40px;
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-submit:hover {
    background: var(--accent-color);
}

;