/* ============================================
   CABINET GABRIELA KARAIVANOVA
   Professional Law Firm Website
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #4198AB;
    --primary-light: #5AABBC;
    --primary-dark: #357A8A;
    --accent: #F5F0E8;
    --accent-light: #FFFFFF;
    --accent-dark: #E8DFD2;
    --logo-color: #4198AB;
    --bg-light: #F0F7F9;
    --bg-warm: #E6F1F4;
    --bg-white: #FFFFFF;
    --bg-dark: #2A5E6B;
    --text-primary: #1E3A42;
    --text-secondary: #4A6670;
    --text-light: #7A9BA5;
    --text-white: #FFFFFF;
    --border: #D0E0E5;
    --border-light: #E2EDF0;
    --shadow-sm: 0 2px 8px rgba(22, 53, 64, 0.06);
    --shadow-md: 0 4px 24px rgba(22, 53, 64, 0.08);
    --shadow-lg: 0 8px 40px rgba(22, 53, 64, 0.12);
    --shadow-xl: 0 16px 60px rgba(22, 53, 64, 0.16);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.7;
    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 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-accent {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(65, 152, 171, 0.35);
}

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

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

.btn-outline-dark {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-outline-dark:hover {
    border-color: var(--accent);
    color: var(--primary);
}

/* ---------- Loader ---------- */
#loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    text-align: center;
}

.loader-logo {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 0 auto 24px;
}

.loader-bar {
    width: 120px;
    height: 2px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-bar-fill {
    width: 0;
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    animation: loaderFill 1.2s ease-in-out forwards;
}

@keyframes loaderFill {
    0% { width: 0; }
    100% { width: 100%; }
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    padding: 12px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-img {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    transition: var(--transition);
}

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

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.03em;
    transition: var(--transition);
}

.logo-tagline {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    transition: var(--transition);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    position: relative;
    padding: 4px 0;
}

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

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

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

.navbar-cta {
    padding: 10px 24px;
    font-size: 0.85rem;
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 50%, rgba(65, 152, 171, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(65, 152, 171, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border: 1px solid rgba(65, 152, 171, 0.06);
    border-radius: 50%;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(65, 152, 171, 0.04);
    border-radius: 50%;
}

.hero-container {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
    align-items: center;
    padding-top: 180px;
    padding-bottom: 140px;
    max-width: 1320px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: 28px;
    line-height: 1.8;
}

.hero-title {
    font-family: var(--font-heading);
    color: var(--text-white);
    margin-bottom: 24px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Titre mobile caché par défaut (desktop) */
.hero-title-mobile {
    display: none;
}

.hero-separator {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin-bottom: 24px;
}

.hero-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.75);
    margin-bottom: 56px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-frame {
    position: relative;
    z-index: 2;
    width: 460px;
    height: 620px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Bloc blanc derrière la photo */
.hero-image-accent {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 460px;
    height: 620px;
    background: rgba(255,255,255,0.13);
    backdrop-filter: blur(2px);
    border-radius: var(--radius-lg);
    z-index: 1;
}

/* Tracé fin décalé en bas à gauche */
.hero-image::before {
    content: '';
    position: absolute;
    bottom: -28px;
    left: calc(50% - 260px);
    width: 460px;
    height: 620px;
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: var(--radius-lg);
    z-index: 0;
    pointer-events: none;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: scrollBounce 2s infinite;
}

.hero-scroll i {
    font-size: 0.9rem;
}

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

/* ---------- Sections ---------- */
.section {
    padding: 100px 0;
}

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

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

.section-dark {
    background: var(--primary);
    color: var(--text-white);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-tag-light {
    color: rgba(255, 255, 255, 0.7);
}

.section-title {
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-header-light .section-title {
    color: var(--text-white);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: start;
}

.about-lead {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-quote {
    margin-top: 32px;
    padding: 24px 28px;
    border-left: 3px solid var(--accent);
    background: var(--bg-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.about-quote p {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-primary) !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
}

.about-credentials {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.credentials-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
}

.credential-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.credential-item:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.credential-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(65, 152, 171, 0.12);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.credential-content h4 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.credential-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.credential-year {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 2px solid var(--border-light);
}

.stat {
    text-align: center;
    padding: 16px 8px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.stat-icon {
    display: block;
    font-size: 1.2rem;
    color: var(--logo-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ---------- Expertise ---------- */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.expertise-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: var(--transition);
}

.expertise-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(65, 152, 171, 0.3);
}

.expertise-card:hover::before {
    transform: scaleX(1);
}

.expertise-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(65, 152, 171, 0.1);
    color: var(--primary);
    border-radius: var(--radius-md);
    font-size: 1.3rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.expertise-card:hover .expertise-card-icon {
    background: var(--accent);
    color: var(--primary);
}

.expertise-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    transition: var(--transition);
}

.expertise-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.expertise-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.expertise-card:hover .expertise-card-link {
    gap: 10px;
}

/* ---------- Modal ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 25, 35, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: var(--transition-slow);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary);
    color: var(--text-white);
}

.modal-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(65, 152, 171, 0.12);
    color: var(--primary);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.modal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 16px;
}

.modal-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

.modal-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
}

.modal-col h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
}

.modal-col h4 i {
    color: var(--logo-color);
}

.modal-col p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.modal-col ul {
    margin-bottom: 16px;
}

.modal-col ul li {
    position: relative;
    padding-left: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.modal-col ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
}

.modal-col em {
    font-size: 0.88rem;
    color: var(--primary);
}

.modal-list-large {
    margin: 24px 0;
}

.modal-list-large li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

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

.modal-list-large li i {
    color: var(--logo-color);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.modal-highlight {
    margin-top: 24px;
    padding: 20px 24px;
    background: var(--bg-light);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-style: italic;
}

/* ---------- Arbitrage B2B ---------- */
.section-arbitrage {
    background: linear-gradient(135deg, var(--primary) 0%, #357a8a 100%);
    padding: 72px 0;
}

.arbitrage-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.arbitrage-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    font-size: 2rem;
    color: var(--accent);
}

.arbitrage-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.arbitrage-content h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
}

.arbitrage-content {
    flex: 1;
    min-width: 0;
}

.arbitrage-content p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
}

.arbitrage-cta {
    flex-shrink: 0;
}

.arbitrage-cta .btn {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .arbitrage-inner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .arbitrage-cta {
        margin-left: 0;
    }

    .arbitrage-content p {
        max-width: 100%;
    }
}

/* ---------- Values ---------- */
.values-intro {
    max-width: 700px;
    margin: 0 auto 56px;
    text-align: center;
}

.values-intro p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

.value-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(65, 152, 171, 0.2);
    transform: translateY(-4px);
}

.value-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(65, 152, 171, 0.12);
    color: var(--logo-color);
    border-radius: var(--radius-md);
    font-size: 1.3rem;
    margin: 0 auto 20px;
}

.value-card h3 {
    font-size: 1.2rem;
    color: var(--text-white);
    margin-bottom: 12px;
}

.value-card p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
}

.values-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    max-height: 400px;
    box-shadow: var(--shadow-xl);
}

.values-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
}

/* ---------- Fees ---------- */
.fees-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.fee-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.fee-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.fee-card-highlight {
    border-color: var(--accent);
    box-shadow: 0 4px 24px rgba(65, 152, 171, 0.15);
}

.fee-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 16px;
    border-radius: 20px;
}

.fee-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(65, 152, 171, 0.1);
    color: var(--primary);
    border-radius: var(--radius-md);
    font-size: 1.3rem;
    margin: 0 auto 20px;
}

.fee-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.fee-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.fees-cta {
    margin-top: 16px;
}

.fees-cta-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px 40px;
}

.fees-cta-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(65, 152, 171, 0.12);
    color: var(--primary);
    border-radius: var(--radius-md);
    font-size: 1.3rem;
}

.fees-cta-text {
    flex: 1;
}

.fees-cta-text h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.fees-cta-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: start;
}

.contact-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 48px;
    align-items: stretch;
}

.contact-bottom-grid .map-container {
    height: 100%;
    min-height: 280px;
}

.contact-form {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(65, 152, 171, 0.12);
}

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

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A6677' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.contact-info-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.contact-info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.contact-info-card > p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.contact-detail:last-child {
    margin-bottom: 0;
}

.contact-detail > i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(65, 152, 171, 0.1);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.contact-detail span {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-light);
    display: block;
    margin-bottom: 2px;
}

.contact-detail a,
.contact-detail p {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin: 0;
}

.contact-detail a:hover {
    color: var(--primary);
}

.calendly-inline-widget {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.form-success-message {
    text-align: center;
    padding: 60px 24px;
}

.form-success-message i {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 16px;
    display: block;
}

.form-success-message p {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 300px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

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

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

.footer-logo-mark .logo-icon {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.footer-logo-mark .logo-name {
    color: rgba(255, 255, 255, 0.85);
}

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

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.5);
}

.footer-links h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

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

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

.footer-legal {
    display: flex;
    gap: 12px;
}

.footer-legal a {
    color: rgba(255,255,255,0.35);
}

.footer-legal a:hover {
    color: var(--logo-color);
}

.footer-legal span {
    color: rgba(255,255,255,0.15);
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--text-white);
    border: 1px solid rgba(65, 152, 171, 0.3);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: var(--transition);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    color: var(--primary);
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(65, 152, 171, 0.2);
    color: var(--text-primary);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }

    .hero-image-frame {
        width: 320px;
        height: 420px;
    }

    .hero-image-accent {
        width: 320px;
        height: 420px;
    }

    .hero-image::before {
        width: 320px;
        height: 420px;
        left: calc(50% - 174px);
    }

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

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

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

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

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

    .contact-bottom-grid {
        grid-template-columns: 1fr;
    }

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

    .modal-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

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

    /* Navbar mobile */
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 40px;
        gap: 0;
        box-shadow: var(--shadow-xl);
        transition: var(--transition-slow);
    }

    .navbar-menu.open {
        right: 0;
    }

    .navbar-menu .nav-link {
        font-size: 1.1rem;
        color: var(--text-primary);
        padding: 14px 0;
        display: block;
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }

    .navbar-cta {
        display: none;
    }

    .navbar-toggle {
        display: flex;
    }

    /* Hero mobile */
    .hero {
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
        padding-top: 140px;
        padding-bottom: 60px;
    }

    /* Mobile : titre au-dessus de la photo, sous-titre en dessous */
    .hero-title-mobile {
        display: block;
        order: 0;
        margin-bottom: 8px;
    }

    .hero-title-desktop {
        display: none;
    }

    .hero-image {
        order: 1;
        padding-top: 0;
        margin-bottom: 16px;
    }

    .hero-content {
        order: 2;
    }

    .hero-actions {
        margin-bottom: 16px;
    }

    .hero-image-frame {
        width: 280px;
        height: 360px;
        margin: 0 auto;
    }

    .hero-image-accent {
        width: 280px;
        height: 360px;
        right: auto;
        top: -14px;
        left: 50%;
        transform: translateX(-44%);
    }

    .hero-image::before {
        width: 280px;
        height: 360px;
        left: calc(50% - 155px);
        bottom: -14px;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-scroll {
        display: none;
    }

    /* Grids */
    .expertise-grid {
        grid-template-columns: 1fr;
    }

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

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

    .fees-cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

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

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

    .contact-form {
        padding: 28px 20px;
    }

    /* Modal */
    .modal-content {
        padding: 32px 24px;
        max-height: 90vh;
        border-radius: var(--radius-lg);
    }

    .modal-content h3 {
        font-size: 1.5rem;
    }

    .values-image {
        max-height: 250px;
    }

    .values-image img {
        height: 250px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .hero-subtitle {
        font-size: 0.7rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        padding: 0 12px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-image-frame {
        width: 280px;
        height: 360px;
    }

    .hero-image-accent {
        width: 280px;
        height: 360px;
    }

    .hero-image::before {
        width: 280px;
        height: 360px;
    }

    .expertise-card {
        padding: 28px 20px;
    }

    .about-credentials {
        padding: 24px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}

/* ---------- Print ---------- */
@media print {
    .navbar, .hero-scroll, .back-to-top, #loader { display: none; }
    .section { padding: 40px 0; }
    .hero { min-height: auto; }
}