/* ==========================================================================
   AUDEX Avocats — main.css
   Base styles, layout, typography
   ========================================================================== */

/* --- Custom Properties (duplicated from inline for non-critical path) --- */
:root {
    --color-gold:       #e6a510;
    --color-navy:       #1A2B3C;
    --color-light:      #F9F7F4;
    --color-text:       #2C2C2C;
    --color-white:      #FFFFFF;
    --color-gold-hover: #c98e0d;
    --color-navy-light: #243A4D;
    --color-border:     #E2DFD8;

    --font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --max-width:    1280px;
    --section-pad:  5rem 1.5rem;
    --radius:       10px;
    --radius-lg:    20px;
    --transition:   0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-navy);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
}

h2 {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* --- Layout --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-pad);
}

.section-light {
    background: var(--color-light);
}

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

.section-navy h2,
.section-navy h3 {
    color: var(--color-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    margin-top: 0.75rem;
}

.section-navy .section-header p {
    color: rgba(255,255,255,0.8);
}

/* --- Header / Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background: var(--color-navy);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 40px;
    width: auto;
}

/* Main nav */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--color-white);
    background: rgba(255,255,255,0.1);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 100;
}

.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--color-text);
    font-size: 0.9rem;
    transition: background var(--transition), color var(--transition);
}

.dropdown a:hover {
    background: var(--color-light);
    color: var(--color-gold);
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.header-phone:hover {
    color: var(--color-gold);
}

.header-phone svg {
    flex-shrink: 0;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), transform 0.15s ease, box-shadow var(--transition);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-gold {
    background: var(--color-gold);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(230, 165, 16, 0.35);
}

.btn-gold:hover {
    background: var(--color-gold-hover);
    color: var(--color-white);
    box-shadow: 0 6px 25px rgba(230, 165, 16, 0.45);
}

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

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

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* --- Hero section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 1.5rem 4rem;
    overflow: hidden;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 43, 60, 0.65);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-phone {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
}

.hero-phone a {
    color: var(--color-white);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

/* --- Hero interne (pages autres que accueil) --- */
.hero-internal {
    position: relative;
    padding: 10rem 1.5rem 4rem;
    text-align: center;
    background: var(--color-navy);
    overflow: hidden;
}

.hero-internal .hero-bg {
    opacity: 0.3;
}

.hero-internal .hero-bg img {
    object-position: center 30%;
}

.hero-internal .hero-content {
    position: relative;
    z-index: 2;
}

.hero-internal h1 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.hero-internal .hero-subtitle {
    color: rgba(255,255,255,0.85);
    max-width: 650px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255,255,255,0.7);
}

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

.breadcrumb .separator {
    color: rgba(255,255,255,0.4);
}

.breadcrumb .current {
    color: var(--color-gold);
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* --- Footer --- */
.site-footer {
    padding: 4rem 1.5rem 2rem;
}

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

.footer-brand .logo {
    margin-bottom: 0.75rem;
}

.footer-slogan {
    color: rgba(255,255,255,0.7);
    font-style: italic;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.footer-phone {
    color: var(--color-gold);
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-contact a {
    color: rgba(255,255,255,0.8);
}

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

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}

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

.footer-col h4 {
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-address {
    margin-bottom: 1.25rem;
}

.footer-address strong {
    color: var(--color-gold);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
}

.footer-address p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

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

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

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

.footer-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

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

.footer-bottom a {
    color: rgba(255,255,255,0.6);
}

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

.footer-credit {
    font-size: 0.8rem;
}

/* Footer responsive */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .site-footer {
        padding: 5rem 2rem 2rem;
    }
}
