﻿/* =====================================================
   SOFI Informatique â€” Custom CSS
   ThÃ¨me : Bleu marine premium + accents bleu Ã©lectrique
   ===================================================== */

:root {
    --sofi-dark: #0a0f1e;
    --sofi-navy: #0d1b3e;
    --sofi-blue: #1a3a6b;
    --sofi-accent: #2563eb;
    --sofi-electric: #3b82f6;
    --sofi-light: #eff6ff;
    --sofi-white: #ffffff;
    --sofi-gray: #94a3b8;
    --sofi-border: rgba(59, 130, 246, 0.15);
    --gradient-hero: linear-gradient(135deg, #0a0f1e 0%, #0d1b3e 50%, #1a3a6b 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(59, 130, 246, 0.04));
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 12px 40px rgba(37, 99, 235, 0.25);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--sofi-dark);
    color: #e2e8f0;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--sofi-white);
    line-height: 1.25;
}

.text-gradient {
    background: linear-gradient(135deg, #93c5fd, #3b82f6, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lead {
    color: #cbd5e1;
}

/* ---- Links ---- */
a {
    color: var(--sofi-electric);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #93c5fd;
}

/* ========================
   NAVBAR
======================== */
#mainNav {
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--sofi-border);
    padding: 0.85rem 0;
    transition: var(--transition);
}

#mainNav.scrolled {
    background: rgba(10, 15, 30, 0.99);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Brand */
.brand-logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.brand-logo-icon.small {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
    border-radius: 7px;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--sofi-white);
    letter-spacing: -0.5px;
}

.brand-suffix {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--sofi-gray);
    display: block;
    margin-top: -4px;
}

/* Nav links */
.navbar-nav .nav-link {
    color: #cbd5e1 !important;
    font-weight: 500;
    font-size: 0.925rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--sofi-white) !important;
    background: rgba(59, 130, 246, 0.12);
}

.navbar-nav .nav-link.active {
    color: #93c5fd !important;
}

/* Dropdown */
.dropdown-menu.dropdown-menu-dark {
    background: rgba(13, 27, 62, 0.98) !important;
    backdrop-filter: blur(20px);
    border: 1px solid var(--sofi-border);
    border-radius: var(--radius);
    padding: 0.5rem;
    min-width: 280px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.dropdown-menu.dropdown-menu-dark .dropdown-item {
    color: #cbd5e1;
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-menu.dropdown-menu-dark .dropdown-item:hover {
    background: rgba(59, 130, 246, 0.15);
    color: var(--sofi-white);
}

.badge-product {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    border-radius: 5px;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 0;
}

/* CTA Devis btn */
.btn-devis {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: var(--sofi-white) !important;
    border: none;
    border-radius: 10px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-devis:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.5);
    transform: translateY(-1px);
    color: white !important;
}

/* ========================
   HERO SECTION
======================== */
.hero-section {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    color: #93c5fd;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--sofi-white);
    display: block;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--sofi-gray);
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-visual {
    position: relative;
}

.hero-card-float {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--sofi-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ========================
   PAGE INNER HERO
======================== */
.page-hero {
    background: var(--gradient-hero);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233b82f6' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-hero-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.4);
}

.breadcrumb {
    background: transparent;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: #93c5fd;
}

.breadcrumb-item.active {
    color: var(--sofi-gray);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--sofi-gray);
}

/* ========================
   SECTION LAYOUTS
======================== */
section {
    padding: 5rem 0;
}

.section-dark {
    background: var(--sofi-dark);
}

.section-navy {
    background: var(--sofi-navy);
}

.section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--sofi-electric);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #94a3b8;
    max-width: 580px;
}

/* ========================
   CARDS
======================== */
.sofi-card {
    background: var(--gradient-card);
    border: 1px solid var(--sofi-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    height: auto;
    position: relative;
    overflow: hidden;
}

.sofi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    opacity: 0;
    transition: var(--transition);
}

.sofi-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.sofi-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.icon-blue {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
}

.icon-green {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

.icon-yellow {
    background: rgba(234, 179, 8, 0.12);
    color: #facc15;
}

.icon-purple {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
}

.icon-cyan {
    background: rgba(6, 182, 212, 0.12);
    color: #22d3ee;
}

.icon-orange {
    background: rgba(249, 115, 22, 0.12);
    color: #fb923c;
}

.icon-red {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.icon-teal {
    background: rgba(20, 184, 166, 0.12);
    color: #2dd4bf;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--sofi-white);
}

.card-text {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.65;
}

.card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sofi-electric);
    transition: var(--transition);
}

.card-link:hover {
    color: #93c5fd;
    gap: 0.5rem;
}

.card-link i {
    transition: transform 0.2s;
}

.card-link:hover i {
    transform: translateX(4px);
}

/* ========================
   FEATURE LIST
======================== */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    font-size: 0.95rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list .fi-icon {
    width: 24px;
    height: 24px;
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ========================
   STATS SECTION
======================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.stat-box {
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid var(--sofi-border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.stat-box:hover {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--sofi-white);
    line-height: 1;
}

.stat-unit {
    font-size: 1.5rem;
    color: var(--sofi-electric);
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--sofi-gray);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================
   PARTNER LOGOS
======================== */
.partner-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--sofi-border);
    border-radius: var(--radius);
    padding: 1rem 2rem;
    text-align: center;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.partner-badge:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(59, 130, 246, 0.25);
    color: var(--sofi-white);
}

/* ========================
   CTA BAND
======================== */
.cta-band {
    background: linear-gradient(135deg, #1a3a6b 0%, #0d1b3e 60%, #0a0f1e 100%);
    border: 1px solid var(--sofi-border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* ========================
   FORMS
======================== */
.form-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--sofi-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 0.4rem;
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--sofi-white);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--sofi-electric);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    color: var(--sofi-white);
    outline: none;
}

.form-control::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

.form-select option {
    background: var(--sofi-navy);
    color: var(--sofi-white);
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.form-check-input:checked {
    background-color: var(--sofi-accent);
    border-color: var(--sofi-accent);
}

.form-check-label {
    font-size: 0.9rem;
    color: #94a3b8;
}

.alert-success-custom {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: var(--radius);
    color: #4ade80;
    padding: 1rem 1.25rem;
}

.alert-danger-custom {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius);
    color: #f87171;
    padding: 1rem 1.25rem;
}

/* Form section header */
.form-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--sofi-border);
}

.form-section-header .step-num {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
}

.form-section-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--sofi-white);
}

/* Checkboxes grid */
.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
}

.check-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.check-card:has(input:checked),
.check-card.selected {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.4);
}

.check-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.check-card label {
    cursor: pointer;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
}

.check-card input {
    accent-color: var(--sofi-electric);
}

/* ========================
   CONTACT INFO BOX
======================== */
.contact-info-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--sofi-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.contact-person {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-person:last-child {
    border-bottom: none;
}

.contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-person-name {
    font-weight: 600;
    color: var(--sofi-white);
    font-size: 0.95rem;
}

.contact-person-role {
    font-size: 0.8rem;
    color: var(--sofi-gray);
}

/* ========================
   BACK TO TOP
======================== */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    z-index: 999;
    transition: var(--transition);
    font-size: 1rem;
}

#backToTop:hover {
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.6);
    transform: translateY(-2px);
}

/* ========================
   FOOTER
======================== */
.footer {
    background: #060a14;
    border-top: 1px solid var(--sofi-border);
}

.footer-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sofi-gray);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: #64748b;
    font-size: 0.875rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-links a:hover {
    color: #93c5fd;
}

.footer-links .bi-chevron-right {
    font-size: 0.7rem;
}

.footer-links span {
    font-size: 0.875rem;
    color: #64748b;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.06);
    margin: 2rem 0 1rem;
}

/* ========================
   UTILITIES
======================== */
.btn-primary-sofi {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    color: white;
    border-radius: 10px;
    padding: 0.7rem 1.75rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary-sofi:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
    color: white;
}

.btn-outline-sofi {
    background: transparent;
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
    border-radius: 10px;
    padding: 0.7rem 1.75rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-sofi:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.6);
    color: var(--sofi-white);
    transform: translateY(-2px);
}

.btn-lg.btn-primary-sofi,
.btn-lg.btn-outline-sofi {
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
}

/* ========================
   PAGE-SPECIFIC
======================== */
/* CGV */
.cgv-body h4 {
    color: #93c5fd;
    margin-top: 2rem;
    font-size: 1.05rem;
}

.cgv-body p,
.cgv-body li {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* RÃ©fÃ©rences grid */
.ref-category-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sofi-electric);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 992px) {
    .hero-section {
        min-height: auto;
        padding: 5rem 0;
    }

    .hero-visual {
        display: none;
    }

    .hero-stats {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    .form-wrapper {
        padding: 1.5rem;
    }

    .sofi-card {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .check-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .check-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ========================
   LANGUAGE SWITCHER
======================== */
.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px;
    padding: 0.4rem 0.75rem;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    line-height: 1.4;
}

.lang-btn:hover,
.lang-btn:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.4) !important;
    color: #fff;
    box-shadow: none;
}

.lang-btn::after {
    border-top-color: #94a3b8;
    opacity: 0.7;
}

.flag-emoji {
    font-size: 1.2rem;
    line-height: 1;
    display: inline-block;
}

.lang-label {
    font-size: 0.85rem;
    font-weight: 500;
}

.lang-menu {
    min-width: 160px;
    padding: 0.35rem !important;
}

.lang-option {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
    border-radius: 8px !important;
    padding: 0.55rem 0.75rem !important;
    font-size: 0.88rem;
    transition: var(--transition);
}

.lang-option .flag-emoji {
    font-size: 1.1rem;
}

.lang-option.lang-active,
.lang-option.active {
    background: rgba(37, 99, 235, 0.18) !important;
    color: #93c5fd !important;
}

/* Footer lang flags */
.footer-lang-switcher {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
}

.footer-flag {
    font-size: 1.5rem;
    line-height: 1;
    display: inline-block;
    cursor: pointer;
    opacity: 0.45;
    transition: var(--transition);
    text-decoration: none;
}

.footer-flag:hover {
    opacity: 0.9;
    transform: scale(1.15);
}

.footer-flag--active {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.6));
    transform: scale(1.05);
}

/* ========================
   COOKIE BANNER
======================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(6, 10, 20, 0.97);
    border-top: 1px solid rgba(59, 130, 246, 0.25);
    backdrop-filter: blur(20px);
    padding: 1.1rem 1.5rem;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
}

.cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-content {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    flex: 1 1 400px;
}

.cookie-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.cookie-text {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.55;
}

.cookie-link {
    color: #60a5fa;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-link:hover {
    color: #93c5fd;
}

.cookie-actions {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
    align-items: center;
}

.btn-cookie-refuse {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    border-radius: 8px;
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-cookie-refuse:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.btn-cookie-accept {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    color: #fff;
    border-radius: 8px;
    padding: 0.5rem 1.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.4);
}

.btn-cookie-accept:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.55);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .cookie-banner {
        padding: 1rem;
    }

    .cookie-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .btn-cookie-refuse,
    .btn-cookie-accept {
        flex: 1;
        text-align: center;
    }
}

/* FOOTER (updated) */

.footer-top {
    background: #060a14;
    border-top: 1px solid var(--sofi-border);
    padding: 4rem 0 3rem;
}

.footer-bottom {
    background: #030508;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.7;
    max-width: 300px;
}

.footer-contact-inline {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
    transition: var(--transition);
}

.footer-contact-link:hover {
    color: #93c5fd;
}

.footer-siret {
    font-size: 0.8rem;
    color: #334155;
}

.brand-logo-icon--sm {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    border-radius: 7px;
}

/* ========================
   SITE FOOTER wrapper
   (footer.php utilise .site-footer)
======================== */
.site-footer {
    background: #060a14;
    border-top: 1px solid var(--sofi-border);
}

/* Bouton sm variant */
.btn-primary-sofi.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-outline-sofi.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* ========================
   CONTACT PAGE helpers
======================== */

/* Sidebar sticky en desktop */
@media (min-width: 992px) {
    .contact-sidebar-sticky {
        position: sticky;
        top: 90px;
    }
}

/* Assure que la sidebar ne dÃ©borde pas */
.col-lg-5 .sofi-card,
.col-lg-4 .sofi-card {
    height: auto;
}

/* Espacement entre cards sidebar */
.contact-info-box+.sofi-card,
.sofi-card+.sofi-card {
    margin-top: 0;
    /* gÃ©rÃ© par les classes mt-4, mb-4 Bootstrap */
}

/* ========================
   DEVIS PAGE helpers
======================== */

/* Form section header responsive */
@media (max-width: 576px) {
    .form-section-header {
        flex-wrap: wrap;
    }

    .check-grid {
        grid-template-columns: 1fr;
    }

    .form-wrapper {
        padding: 1.25rem;
    }
}

/* Check card display fix */
.check-card {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.check-card input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 3px;
}

.check-card-text {
    flex: 1;
    min-width: 0;
}