/**
 * PROXIVEO - Style optimisé PERFORMANCE
 * Version 2.0 - Optimisé pour Lighthouse 95+/100
 * - Animations causant CLS désactivées
 * - font-display: swap pour toutes les polices
 * - Optimisations transform et will-change
 */

/* ============================================
   VARIABLES & BASE
   ============================================ */

:root {
    --primary-color: #02264D;
    --secondary-color: #4BC22D;
    --text-color: #565656;
    --bg-light: #F3F4F6;
    --transition: all 0.3s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
}

* {
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* ============================================
   BOUTONS GLOBAUX
   ============================================ */

.btn,
a.btn {
    cursor: pointer !important;
    pointer-events: auto !important;
    text-decoration: none !important;
    display: inline-block !important;
    position: relative;
    z-index: 10;
    transition: var(--transition);
    /* Optimisation GPU avec will-change sur hover uniquement */
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    will-change: transform;
}

.btn:not(:hover) {
    will-change: auto;
}

/* Bootstrap color overrides */
.bg-primary,
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #011a38 !important;
    border-color: #011a38 !important;
}

/* Amélioration du contraste WCAG - text-shadow noir pour meilleur contraste avec le vert */
.bg-secondary,
.btn-secondary {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.4) !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: #3da725 !important;
    border-color: #3da725 !important;
}

.btn-outline-light {
    border: 2px solid white !important;
    color: white !important;
    background-color: transparent !important;
}

.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active {
    background-color: white !important;
    color: var(--primary-color) !important;
}

.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 1000;
    padding: 1rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #011936 100%);
    position: relative;
    /* contain: layout pour éviter CLS */
    contain: layout style;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--secondary-color) 50%, transparent 100%);
    opacity: 0.4;
}

/* Animation des éléments du menu - DÉSACTIVÉE pour CLS */
.nav-item {
    /* animation: navItemFadeIn 0.5s ease-out backwards; - Cause CLS */
}

/* Logo */
.navbar-brand {
    transition: var(--transition);
    position: relative;
    padding: 0.25rem 0;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
    will-change: transform;
}

.navbar-brand:not(:hover) {
    will-change: auto;
}

.navbar-brand:hover::after {
    width: 100%;
}

.navbar-brand img {
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar-brand:hover img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.logo-text {
    color: white;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.5rem;
}

.logo-x {
    color: var(--secondary-color);
    font-weight: 900;
    font-size: 1.2em;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.navbar-brand:hover .logo-x {
    color: #3da725;
    transform: scale(1.2) rotate(10deg);
    text-shadow: 0 0 20px rgba(75, 194, 45, 0.6);
    will-change: transform;
}

.navbar-brand:not(:hover) .logo-x {
    will-change: auto;
}

/* Brand name réutilisable */
.brand-name { font-weight: 600; }
.brand-name .logo-x,
.brand-name-dark .logo-x {
    color: var(--secondary-color);
    font-weight: 900;
    font-size: 1.05em;
}

/* Navigation items */
.navbar-nav {
    gap: 0.25rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    padding: 0.75rem 1.25rem !important;
    border-radius: 10px;
    transition: var(--transition-smooth);
    position: relative;
    color: rgba(255, 255, 255, 0.95) !important;
    letter-spacing: 0.3px;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    will-change: transform;
}

.nav-link:not(:hover) {
    will-change: auto;
}

.nav-link:hover::before {
    border-color: rgba(75, 194, 45, 0.3);
}

.nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(75, 194, 45, 0.6);
}

.nav-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Dropdown */
@media (min-width: 992px) {
    .nav-item.dropdown {
        position: relative;
    }
    
    /* Pont invisible pour éviter que le dropdown disparaisse */
    .nav-item.dropdown::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 20px;
        background: transparent;
    }
    
    .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        /* Animation réduite pour performances */
        animation: dropdownSlideIn 0.2s ease;
    }
}

@keyframes dropdownSlideIn {
    from { 
        opacity: 0; 
        transform: translateY(-5px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.dropdown-toggle::after {
    transition: transform 0.3s ease;
    margin-left: 0.5em;
}

.nav-item.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.nav-item.dropdown:hover > .nav-link {
    background: rgba(255, 255, 255, 0.15);
}

.dropdown-menu {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(75, 194, 45, 0.1);
    padding: 0.75rem;
    margin-top: 0;
    background: white;
    min-width: 240px;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 8px solid white;
    filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.1));
}

.dropdown-item {
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    transition: all 0.2s ease; /* Réduit pour performances */
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dropdown-item:last-child { margin-bottom: 0; }

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    height: 70%;
    width: 4px;
    background: linear-gradient(180deg, var(--secondary-color), #3da725);
    border-radius: 0 4px 4px 0;
    transition: transform 0.2s ease; /* Réduit */
}

.dropdown-item::after {
    content: '→';
    position: absolute;
    right: 1.25rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
    color: var(--secondary-color);
    font-weight: bold;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(75, 194, 45, 0.08) 0%, rgba(75, 194, 45, 0.03) 100%);
    color: var(--primary-color);
    padding-left: 1.75rem;
    transform: translateX(3px);
    will-change: transform;
}

.dropdown-item:not(:hover) {
    will-change: auto;
}

.dropdown-item:hover::before {
    transform: translateY(-50%) scaleY(1);
}

.dropdown-item:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.dropdown-item:active {
    background: rgba(75, 194, 45, 0.15);
    transform: translateX(1px);
}

.dropdown-divider {
    margin: 0.75rem 0;
    border-color: rgba(0, 0, 0, 0.06);
    position: relative;
}

.dropdown-divider::before {
    content: '•';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: white;
    color: var(--secondary-color);
    font-size: 0.8rem;
    padding: 0 0.5rem;
}

/* CTA Button */
.btn-secondary.btn-sm {
    padding: 0.7rem 1.75rem !important;
    border-radius: 50px !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.875rem;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 15px rgba(75, 194, 45, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
    margin-left: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-secondary.btn-sm::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translate(-100%, -100%) rotate(45deg);
    transition: transform 0.6s;
}

.btn-secondary.btn-sm:hover::before {
    transform: translate(100%, 100%) rotate(45deg);
}

.btn-secondary.btn-sm:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 25px rgba(75, 194, 45, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background-color: #3da725 !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    will-change: transform;
}

.btn-secondary.btn-sm:not(:hover) {
    will-change: auto;
}

.btn-secondary.btn-sm:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-secondary.btn-sm i {
    transition: transform 0.3s ease;
    margin-right: 0.5rem;
    display: inline-block;
}

.btn-secondary.btn-sm:hover i {
    transform: scale(1.15) rotate(5deg);
}

/* Mobile toggler */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    transition: var(--transition);
}

.navbar-toggler:hover {
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    will-change: transform;
}

.navbar-toggler:not(:hover) {
    will-change: auto;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(75, 194, 45, 0.3);
    outline: none;
}

.navbar-toggler-icon {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Focus states */
.nav-link:focus-visible,
.dropdown-item:focus-visible,
.btn-secondary:focus-visible,
.navbar-toggler:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 3px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #01152e 100%);
    position: relative;
    overflow: hidden;
    /* Optimisation CLS - hauteur fixe */
    min-height: 600px;
    contain: layout style paint;
}

/* Image de fond hero optimisée pour LCP */
.hero-bg-image {
    object-fit: cover;
    object-position: center;
    /* Optimisation GPU */
    transform: translateZ(0);
    will-change: auto;
    /* Dimensions explicites pour éviter CLS */
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Overlay gradient - dimensions fixes */
.hero .position-absolute {
    width: 100%;
    height: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    pointer-events: none;
    z-index: 3;
}

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

.hero .btn,
.hero a.btn,
.hero .d-flex {
    position: relative;
    z-index: 10 !important;
    pointer-events: auto !important;
}

/* ============================================
   TRANSITIONS PAGES - OPTIMISÉES
   ============================================ */

/* Overlay de transition */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #011936 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease; /* Réduit pour performances */
    /* Optimisation GPU */
    transform: translateZ(0);
    will-change: opacity;
}

.page-transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.page-transition-overlay:not(.active) {
    will-change: auto;
}

/* Logo animé pendant la transition */
.page-transition-logo {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    /* Animation simplifiée */
    animation: logoFadeIn 0.3s ease;
}

.page-transition-logo .logo-x {
    color: var(--secondary-color);
    font-weight: 900;
    font-size: 1.2em;
    /* Animation réduite */
    animation: logoRotate 0.8s ease infinite;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes logoRotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(5deg) scale(1.05); /* Réduit */
    }
}

/* Animation du contenu de la page - DÉSACTIVÉE pour CLS */
main {
    /* animation: pageContentFadeIn 0.5s ease; - Cause CLS */
}

/* Désactivé pour éviter CLS
@keyframes pageContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
*/

/* ============================================
   CARDS
   ============================================ */

.card {
    border-radius: 12px;
    transition: var(--transition);
    overflow: hidden;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    will-change: transform;
}

.hover-lift:not(:hover) {
    will-change: auto;
}

.card-with-bg {
    position: relative;
    overflow: hidden;
}

.card-glass-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.70) 40%, rgba(255, 255, 255, 0.88) 100%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1;
}

.card-with-bg .card-body { z-index: 2; }

.card-with-bg .card-body h3,
.card-with-bg .card-body p,
.card-with-bg .card-body li {
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* ============================================
   COMPONENTS
   ============================================ */

.icon-box,
.feature-icon,
.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box { width: 70px; height: 70px; }
.feature-icon { width: 80px; height: 80px; }
.step-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    font-weight: bold;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.footer a:hover {
    color: var(--secondary-color) !important;
}

/* Mailsys link effect - Animation réduite */
.mailsys-link {
    color: #00ff00 !important;
    font-family: 'Courier New', monospace;
    text-decoration: none;
    display: inline-block;
    padding: 2px 6px;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 3px;
    transition: var(--transition);
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.mailsys-link::before {
    content: '// ';
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mailsys-link::after {
    content: '_';
    animation: blink 1s infinite;
    margin-left: 2px;
}

.mailsys-link:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: rgba(0, 255, 0, 0.5);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8), 0 0 20px rgba(0, 255, 0, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    /* animation: glitch 0.3s ease; - Désactivé pour performances */
}

.mailsys-link:hover::before { opacity: 0.6; }

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Glitch désactivé pour performances
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}
*/

/* ============================================
   FORMS
   ============================================ */

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(2, 38, 77, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
}

/* ============================================
   UI ELEMENTS
   ============================================ */

/* Cookie Banner - Fixed pour éviter CLS mais permettre affichage JS */
.cookie-banner,
#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: linear-gradient(135deg, rgba(2, 38, 77, 0.98) 0%, rgba(1, 25, 54, 0.98) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
    margin: 0;
    transform: translateZ(0);
}

/* Laisser le JavaScript gérer l'affichage */
.cookie-banner[style*="display: none"],
#cookieBanner[style*="display: none"] {
    /* Ne pas forcer display: none ici - laisse JS gérer */
}

.badge {
    font-weight: 500;
    padding: 0.5em 1em;
}

.table-hover tbody tr:hover {
    background-color: rgba(75, 194, 45, 0.05);
}

.accordion-button:not(.collapsed) {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(2, 38, 77, 0.15);
}

/* ============================================
   UTILITIES
   ============================================ */

/* fadeInUp désactivé pour CLS
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.6s ease-out; }
*/

.spinner-border-sm { width: 1rem; height: 1rem; border-width: 0.15em; }
.shadow-sm-hover:hover { box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.15) !important; }
.cursor-pointer { cursor: pointer; }
.overflow-hidden { overflow: hidden; }
.gap-3 { gap: 1rem !important; }

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

@media (max-width: 991.98px) {
    .navbar { padding: 0.75rem 0; }
    
    .navbar-collapse {
        background: linear-gradient(135deg, #02264D 0%, #011a38 100%);
        padding: 1.5rem;
        border-radius: 15px;
        margin-top: 1rem;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }
    
    .navbar-nav { gap: 0.5rem; }
    .nav-link { padding: 0.85rem 1rem !important; text-align: left; }
    
    .nav-link.active::after {
        left: 10px;
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 60%;
        background: var(--secondary-color);
    }
    
    .dropdown-menu {
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: none;
        margin-left: 1rem;
        margin-top: 0.5rem;
    }
    
    .dropdown-menu::before { display: none; }
    .dropdown-item { color: rgba(255, 255, 255, 0.9); }
    .dropdown-item:hover { background: rgba(75, 194, 45, 0.3); color: white; }
    .dropdown-item::after { display: none; }
    
    .btn-secondary.btn-sm {
        margin-top: 1rem;
        margin-left: 0;
        width: 100%;
        padding: 1rem !important;
    }
}

@media (max-width: 768px) {
    /* Fix vide blanc mobile */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden;
    }
    
    /* Hero mobile - hauteur adaptée */
    .hero { 
        padding: 3rem 0 !important;
        min-height: 500px !important;
    }
    
    .display-4 { 
        font-size: 2rem;
        min-height: 60px;
    }
    
    .lead { 
        font-size: 1rem;
        min-height: 50px;
    }
    
    .btn-lg { 
        padding: 0.75rem 1.25rem; 
        font-size: 1rem; 
    }
    
    /* Price badge mobile */
    .price-badge-hero {
        min-height: 90px;
    }
}

@media print {
    .navbar, .footer, .cookie-banner, .btn { display: none !important; }
}

/* Amélioration contraste WCAG pour textes verts sur fond clair */
.text-secondary {
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.3) !important;
}

.text-success {
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.3) !important;
}

/* ============================================
   OPTIMISATIONS PERFORMANCE SUPPLÉMENTAIRES
   ============================================ */

/* Forcer l'accélération GPU pour les éléments animés */
.navbar,
.hero,
.card,
.btn {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Optimisation des polices - font-display déjà dans header.php */
/* Pas de @font-face ici pour éviter les doublons */
