/*
Theme Name: ADIGO Complete
Theme URI: https://adigolimited.com
Description: Thème WordPress complet ADIGO Limited - 23 pages, Bilingue FR/EN, Animations, Sans Elementor
Version: 4.0.0
Author: Sohdelta
Author URI: https://sohdelta.com
License: GPL v2+
Text Domain: adigo
Domain Path: /languages
*/

/* ============================================
   VARIABLES CSS - ADIGO BRAND
   ============================================ */
:root {
    /* Colors */
    --primary: #C3110D;
    --secondary: #666666;
    --dark: #0a0a0a;
    --dark-light: #1a1a1a;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray: #cccccc;
    --success: #28a745;
    --warning: #ffc107;
    
    /* Product Colors */
    --booking-color: #C3110D;
    --stock-color: #667eea;
    --taxi-color: #4facfe;
    --delivery-color: #43e97b;
    --marketplace-color: #fa709a;
    --train-color: #667eea;
    --tickets-color: #f093fb;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-heading: 'Segoe UI', sans-serif;
    
    /* Spacing - RÉDUIT POUR PLUS D'ÉLÉGANCE */
    --spacing-xs: 10px;
    --spacing-sm: 20px;
    --spacing-md: 40px;
    --spacing-lg: 60px;
    --spacing-xl: 80px;
    
    /* Layout */
    --container-width: 1400px;
    --header-height: 80px;
    --border-radius: 12px;
    --border-radius-sm: 6px;
    
    /* Effects */
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s 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;
}

body {
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.7;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--dark);
    letter-spacing: -0.02em;
}

h1 { font-size: 48px; font-weight: 700; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p {
    margin-bottom: 16px;
    line-height: 1.8;
}

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

a:hover {
    opacity: 0.8;
}

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

/* ============================================
   UTILITIES
   ============================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-primary { color: var(--primary); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(195, 17, 13, 0.25);
}

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

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 13px 31px;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.site-logo {
    height: auto !important;
    max-height: 50px !important;
    width: auto !important;
    max-width: 250px !important;
    display: flex !important;
    align-items: center !important;
}

.site-logo img {
    width: auto !important;
    height: auto !important;
    max-height: 50px !important;
    max-width: 250px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Logo custom WordPress */
.custom-logo-link {
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    max-height: 50px !important;
}

.custom-logo {
    width: auto !important;
    height: auto !important;
    max-height: 50px !important;
    max-width: 250px !important;
    object-fit: contain !important;
}

/* Responsive logo */
@media (max-width: 768px) {
    .site-logo,
    .site-logo img,
    .custom-logo-link,
    .custom-logo {
        max-height: 40px !important;
        max-width: 200px !important;
    }
}

@media (max-width: 480px) {
    .site-logo,
    .site-logo img,
    .custom-logo-link,
    .custom-logo {
        max-height: 35px !important;
        max-width: 180px !important;
    }
}

.site-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
    margin: 0;
}

.main-navigation a {
    color: var(--secondary);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    background: var(--primary);
    color: var(--white);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.language-switcher a {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    border: 2px solid transparent;
}

.language-switcher a.active,
.language-switcher a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-bars {
    width: 30px;
    height: 3px;
    background: var(--dark);
    position: relative;
    transition: var(--transition);
}

.menu-bars::before,
.menu-bars::after {
    content: '';
    width: 30px;
    height: 3px;
    background: var(--dark);
    position: absolute;
    transition: var(--transition);
}

.menu-bars::before { top: -10px; }
.menu-bars::after { top: 10px; }

.mobile-menu-toggle.active .menu-bars {
    background: transparent;
}

.mobile-menu-toggle.active .menu-bars::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .menu-bars::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 550px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: var(--white);
    margin-top: var(--header-height);
    padding: var(--spacing-lg) 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/images/hero/pattern.svg') center/cover;
    opacity: 0.05;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    color: var(--white);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
    font-weight: 400;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    padding: var(--spacing-lg) 0;
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-sm);
}

.stat-number {
    font-size: 64px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 15px;
}

.stat-label {
    font-size: 18px;
    color: var(--secondary);
    font-weight: 600;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-description {
    font-size: 17px;
    color: var(--secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: inline-block;
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.card-description {
    color: var(--secondary);
    line-height: 1.8;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--gray-light) 0%, var(--white) 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

/* Products Grid Full - 3 colonnes desktop, 2 lignes */
.products-grid-full {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin-top: 40px !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 32px !important;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Card icon wrapper */
.card-icon-wrapper {
    width: 90px !important;
    height: 90px !important;
    margin: 0 auto 24px !important;
}

.card-icon-wrapper i {
    font-size: 44px !important;
}

/* Card title */
.product-card .card-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    color: #222 !important;
}

/* Card description */
.product-card .card-description {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #666 !important;
    margin-bottom: 24px !important;
    min-height: 70px !important;
}

/* Card button */
.product-card .btn-sm {
    font-size: 14px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 24px;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--dark);
    color: var(--gray);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
}

.footer-widgets {
    margin-bottom: var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.footer-widget h4 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 25px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget a {
    color: var(--gray);
    display: block;
    padding: 10px 0;
    transition: var(--transition);
}

.footer-widget a:hover {
    color: var(--white);
    padding-left: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--spacing-sm);
    text-align: center;
    font-size: 14px;
}

.sohdelta-signature {
    opacity: 0.7;
    margin-left: 10px;
}

.sohdelta-signature a {
    color: var(--gray);
}

.sohdelta-signature a:hover {
    color: var(--primary);
}

/* ============================================
   ANIMATIONS AOS
   ============================================ */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(-50px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(50px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* ============================================
   RESPONSIVE
   ============================================ */
/* =================================================================
   RESPONSIVE DESIGN - Mobile First
================================================================= */

/* Tablet - 992px and down */
@media (max-width: 992px) {
    :root {
        --spacing-xl: 80px;
        --spacing-lg: 60px;
    }
    
    /* Typography */
    h1, .hero-title { font-size: 56px; line-height: 1.1; }
    h2, .section-title { font-size: 42px; }
    h3 { font-size: 24px; }
    
    /* Container */
    .container {
        padding: 0 30px;
    }
    
    /* Grids */
    .stats-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 500px;
        padding: 80px 0;
    }
    
    .hero-content {
        max-width: 100%;
    }
}

/* Mobile - 768px and down */
@media (max-width: 768px) {
    :root {
        --spacing-sm: 20px;
        --spacing-md: 40px;
        --spacing-lg: 50px;
        --spacing-xl: 60px;
    }
    
    /* Container */
    .container {
        padding: 0 20px;
    }
    
    /* Typography */
    .hero-title { 
        font-size: 36px !important; 
        line-height: 1.2;
        margin-bottom: 20px;
    }
    
    .hero-subtitle { 
        font-size: 16px !important;
        line-height: 1.6;
        margin-bottom: 30px;
    }
    
    .section-title { 
        font-size: 28px !important;
        margin-bottom: 15px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    /* Header */
    .site-header {
        padding: 15px 0;
    }
    
    .header-container {
        padding: 0 20px;
    }
    
    .site-logo img {
        max-height: 35px;
    }
    
    /* Navigation Mobile */
    .main-navigation {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        padding: 30px 20px;
        box-shadow: var(--shadow-lg);
        z-index: 999;
        overflow-y: auto;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    
    .main-navigation a {
        display: block;
        padding: 15px 0;
        font-size: 18px;
    }
    
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--text-dark);
        margin: 5px 0;
        transition: 0.3s;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 400px;
        padding: 60px 0 !important;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0 20px;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 30px;
        font-size: 14px;
        width: 100%;
        text-align: center;
        display: block;
    }
    
    .btn-primary,
    .btn-outline {
        margin: 10px 0;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0;
    }
    
    .stat-card {
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 48px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-card {
        padding: 30px 20px;
    }
    
    .card-icon {
        font-size: 40px;
        margin-bottom: 20px;
    }
    
    .card-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .card-description {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Footer */
    .site-footer {
        padding: 40px 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-column h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .footer-column ul li {
        margin-bottom: 10px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px 0;
    }
    
    .footer-bottom p {
        font-size: 13px;
    }
    
    /* Contact Cards */
    .contact-cards {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .contact-card {
        padding: 20px !important;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-control {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    textarea.form-control {
        min-height: 120px;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 50px 20px;
        text-align: center;
    }
    
    .cta-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .cta-button {
        width: 100%;
    }
    
    /* Section Spacing */
    section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
        text-align: center;
    }
}

/* Small Mobile - 480px and down */
@media (max-width: 480px) {
    :root {
        --spacing-sm: 15px;
        --spacing-md: 30px;
        --spacing-lg: 40px;
        --spacing-xl: 50px;
    }
    
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    .hero-title { 
        font-size: 28px !important;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 15px !important;
    }
    
    .section-title {
        font-size: 24px !important;
    }
    
    h3 {
        font-size: 18px;
    }
    
    /* Header */
    .site-logo img {
        max-height: 30px;
    }
    
    /* Hero */
    .hero-section {
        min-height: 350px;
        padding: 40px 0 !important;
    }
    
    /* Stats */
    .stat-number {
        font-size: 40px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    /* Cards */
    .card {
        padding: 25px 15px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .card-description {
        font-size: 13px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 25px;
        font-size: 13px;
    }
    
    /* Footer */
    .footer-column h4 {
        font-size: 15px;
    }
    
    .footer-column ul li a {
        font-size: 13px;
    }
    
    .footer-bottom p {
        font-size: 12px;
    }
    
    /* Sections */
    section {
        padding: 40px 0;
    }
    
    /* CTA */
    .cta-title {
        font-size: 20px;
    }
    
    /* Contact */
    .contact-card {
        padding: 15px !important;
    }
    
    /* Forms */
    .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* Extra Small - 360px and down */
@media (max-width: 360px) {
    .hero-title {
        font-size: 24px !important;
    }
    
    .section-title {
        font-size: 20px !important;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 12px;
    }
}

/* =================================================================
   BACK TO TOP BUTTON
================================================================= */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s var(--transition-smooth);
    z-index: 998;
}

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

.back-to-top:hover {
    background: #a00d0a;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(195, 17, 13, 0.3);
}

.back-to-top:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* =================================================================
   MOBILE MENU ENHANCEMENTS
================================================================= */

.mobile-menu-toggle {
    position: relative;
    z-index: 1000;
}

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

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

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

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* =================================================================
   STICKY HEADER ENHANCEMENT
================================================================= */

.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
}

/* =================================================================
   TOUCH DEVICE OPTIMIZATIONS
================================================================= */

.touch-device .card:hover {
    transform: none; /* Disable hover effects on touch devices */
}

.touch-device .btn:hover {
    transform: none;
}

/* Larger touch targets for mobile */
@media (max-width: 768px) {
    .btn,
    .main-navigation a,
    .language-switcher a {
        min-height: 44px; /* iOS recommended minimum */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* =================================================================
   FORM ERROR STATES
================================================================= */

.form-control.error {
    border-color: var(--primary-color);
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* =================================================================
   IMPROVED MOBILE SPACING
================================================================= */

@media (max-width: 768px) {
    /* Better card spacing on mobile */
    .card {
        margin-bottom: 20px;
    }
    
    /* Improve readability */
    p {
        line-height: 1.7;
    }
    
    /* Better button spacing */
    .btn + .btn {
        margin-top: 10px;
    }
    
    /* Improve hero spacing */
    .hero-section {
        padding-top: 80px;
        padding-bottom: 60px;
    }
    
    /* Better section spacing */
    section + section {
        margin-top: 0;
    }
}

/* =================================================================
   ACCESSIBILITY IMPROVEMENTS
================================================================= */

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 1001;
}

.skip-to-content:focus {
    top: 0;
}

/* =================================================================
   PRINT STYLES
================================================================= */

@media print {
    .site-header,
    .site-footer,
    .back-to-top,
    .mobile-menu-toggle,
    .cta-section {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* =================================================================
   PARALLAX EFFECT
================================================================= */

.hero-parallax {
    position: relative;
    background-attachment: fixed !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    will-change: transform;
}

/* Désactiver parallax sur mobile (performance) */
@media (max-width: 768px) {
    .hero-parallax {
        background-attachment: scroll !important;
    }
}

/* Smooth parallax avec JavaScript alternative */
.hero-parallax.js-parallax {
    background-attachment: scroll;
}


/* =================================================================
   PARALLAX EFFECT ENHANCED - True Fixed Background
================================================================= */

.hero-parallax {
    position: relative;
    min-height: 600px;
    background-attachment: fixed !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

/* Force parallax même avec inline styles */
.hero-section.hero-parallax {
    background-attachment: fixed !important;
}

/* Désactiver parallax sur mobile/tablette pour performance */
@media (max-width: 1024px) {
    .hero-parallax {
        background-attachment: scroll !important;
    }
}

/* =================================================================
   SERVICES LAYOUT FIX - Desktop Grid
================================================================= */

.service-detail {
    margin-bottom: 100px;
}

/* Force grid layout sur desktop */
@media (min-width: 993px) {
    .service-detail > div {
        display: grid !important;
        gap: 80px !important;
        align-items: center !important;
    }
    
    /* Content à gauche, image à droite */
    .service-detail > div[style*="60% 40%"] {
        grid-template-columns: 60% 40% !important;
    }
    
    /* Image à gauche, content à droite */
    .service-detail > div[style*="40% 60%"] {
        grid-template-columns: 40% 60% !important;
    }
}

/* Mobile : stack vertical */
@media (max-width: 992px) {
    .service-detail > div {
        display: block !important;
        grid-template-columns: 1fr !important;
    }
    
    .service-detail > div > div {
        margin-bottom: 40px;
    }
}

/* =================================================================
   IMAGES SERVICES - Aspect Ratio Fixed
================================================================= */

.service-detail img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
}


/* =================================================================
   LANGUAGE SELECT MODERNE - FR/EN UNIQUEMENT
================================================================= */

.language-switcher-select {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.language-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 35px 8px 35px;
    font-size: 14px;
    font-weight: 600;
    color: #0a0a0a;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.language-select:hover {
    border-color: #C3110D;
    background: #fff5f5;
}

.language-select:focus {
    border-color: #C3110D;
    box-shadow: 0 0 0 3px rgba(195, 17, 13, 0.1);
}

/* Flèche custom */
.language-switcher-select::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 10px;
    pointer-events: none;
}

/* Options du select */
.language-select option {
    padding: 10px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .language-select {
        padding: 6px 30px 6px 30px;
        font-size: 13px;
    }
    
    .language-icon {
        font-size: 12px;
        left: 10px;
    }
}

/* Dark background (si header devient dark) */
.site-header.scrolled .language-select {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
}

.site-header.scrolled .language-select:hover {
    background: #ffffff;
    border-color: #C3110D;
}


/* =================================================================
   STATS MOBILE 2x2 GRID
================================================================= */

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .stat-number {
        font-size: 36px !important;
    }
    
    .stat-label {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        gap: 20px !important;
    }
    
    .stat-number {
        font-size: 32px !important;
    }
}


/* =================================================================
   CONTACT PAGE RESPONSIVE
================================================================= */

/* Grid responsive contact */
@media (max-width: 992px) {
    .template-contact section > .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 50px !important;
    }
}

@media (max-width: 768px) {
    /* Contact blocks */
    .contact-block {
        text-align: left !important;
    }
    
    .contact-block h3 {
        font-size: 16px !important;
    }
    
    .contact-block p {
        font-size: 14px !important;
    }
    
    /* Formulaire mobile */
    .template-contact [style*="padding: 50px"] {
        padding: 30px 20px !important;
    }
    
    /* Hero contact */
    .template-contact .hero-section {
        min-height: 300px !important;
    }
    
    .template-contact .hero-title {
        font-size: 32px !important;
    }
    
    .template-contact .hero-subtitle {
        font-size: 16px !important;
    }
}


/* =================================================================
   TAILLES POLICES RÉDUITES (PLUS LISIBLES)
================================================================= */

/* Desktop */
h1, .hero-title,
.services-hero-title {
    font-size: 48px !important;
}

h2, .section-title,
.service-title {
    font-size: 40px !important;
}

h3 {
    font-size: 28px !important;
}

.hero-subtitle,
.section-description {
    font-size: 18px !important;
}

body, p,
.service-description {
    font-size: 16px !important;
    line-height: 1.7 !important;
}

/* Tablette */
@media (max-width: 992px) {
    h1, .hero-title,
    .services-hero-title {
        font-size: 40px !important;
    }
    
    h2, .section-title {
        font-size: 34px !important;
    }
    
    h3 {
        font-size: 24px !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    h1, .hero-title,
    .services-hero-title {
        font-size: 28px !important;
    }
    
    h2, .section-title {
        font-size: 24px !important;
    }
    
    h3 {
        font-size: 20px !important;
    }
    
    .hero-subtitle,
    .section-description {
        font-size: 16px !important;
    }
    
    body, p {
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    h1, .hero-title {
        font-size: 24px !important;
    }
    
    h2, .section-title {
        font-size: 22px !important;
    }
}


/* =================================================================
   HAMBURGER MENU ÉLÉGANT (Animation X)
================================================================= */

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1001;
}

.hamburger-box {
    width: 28px;
    height: 22px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 28px;
    height: 3px;
    background-color: #0a0a0a;
    border-radius: 3px;
    position: absolute;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.hamburger-inner::before {
    content: '';
    top: -9px;
}

.hamburger-inner::after {
    content: '';
    top: 9px;
}

/* Animation X au clic */
.mobile-menu-toggle.active .hamburger-inner {
    transform: rotate(45deg);
    transition-delay: 0.12s;
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

.mobile-menu-toggle.active .hamburger-inner::before {
    top: 0;
    opacity: 0;
    transition: top 0.075s ease, opacity 0.075s 0.12s ease;
}

.mobile-menu-toggle.active .hamburger-inner::after {
    top: 0;
    transform: rotate(-90deg);
    transition: top 0.075s ease, transform 0.075s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Mobile overlay avec blur */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transition: left 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
        z-index: 1000;
        padding-top: 100px;
    }
    
    .main-navigation.active {
        left: 0;
    }
    
    .main-navigation ul {
        display: flex;
        flex-direction: column;
        padding: 0 40px;
    }
    
    .main-navigation li {
        margin: 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .main-navigation a {
        display: block;
        padding: 20px 0 !important;
        font-size: 18px !important;
        font-weight: 600;
    }
}


/* =================================================================
   MOBILE OPTIMIZATIONS GLOBALES
================================================================= */

/* Touch targets minimum (44x44px) */
@media (max-width: 768px) {
    
    /* Buttons */
    button,
    a.btn,
    input[type="submit"],
    input[type="button"] {
        min-height: 44px !important;
        min-width: 44px !important;
        padding: 12px 24px !important;
        touch-action: manipulation;
    }
    
    /* Links navigation */
    .main-navigation a {
        min-height: 44px;
        padding: 15px 20px !important;
        display: flex;
        align-items: center;
    }
    
    /* Sections padding adapté */
    section {
        padding: 60px 0 !important;
    }
    
    .hero-section {
        min-height: 400px !important;
        padding: 80px 0 !important;
    }
    
    /* Container padding */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    /* Images responsive */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Forms mobile */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px !important; /* Évite zoom iOS */
        padding: 14px !important;
        width: 100% !important;
    }
    
    /* Cards padding */
    .card,
    .service-card,
    .product-card {
        padding: 20px !important;
    }
    
    /* Grid mobile 1 colonne */
    .stats-grid,
    .services-grid,
    .products-grid,
    .values-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Spacing */
    .section-header {
        margin-bottom: 40px !important;
    }
    
    /* Footer mobile */
    footer .footer-columns {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    /* Hide decorative elements */
    .decoration-circle,
    .decoration-line {
        display: none !important;
    }
    
    /* Reduce animations mobile */
    * {
        animation-duration: 0.3s !important;
    }
}

/* Petit mobile */
@media (max-width: 480px) {
    
    /* Even smaller padding */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    section {
        padding: 40px 0 !important;
    }
    
    /* Buttons full width */
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Cards */
    .card,
    .service-card,
    .product-card {
        padding: 15px !important;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 300px !important;
    }
}

/* Prevent text selection on touch */
@media (hover: none) {
    button,
    a.btn {
        -webkit-tap-highlight-color: rgba(195, 17, 13, 0.1);
    }
}

/* Safe area pour iPhone X+ */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
}

/* Performance mobile */
@media (max-width: 768px) {
    
    /* Disable parallax on mobile */
    .hero-parallax {
        background-attachment: scroll !important;
    }
    
    /* Simplify shadows */
    .card,
    .service-card,
    .product-card {
        box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
    }
    
    /* Reduce blur */
    [style*="backdrop-filter"] {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.95) !important;
    }
}


/* =================================================================
   v4.0.0 ADDITIONS — Header CTAs, Footer 4-col, Newsletter
   ================================================================= */

/* --- Header CTA Buttons --- */
.header-ctas {
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-header-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #C3110D;
    color: #fff !important;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}
.btn-header-primary:hover {
    background: #a00d0a;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(195,17,13,0.3);
}
.btn-header-secondary {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border: 1.5px solid rgba(10,10,10,0.2);
    color: #333 !important;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}
.btn-header-secondary:hover {
    border-color: #C3110D;
    color: #C3110D !important;
}

@media (max-width: 1100px) {
    .header-ctas { display: none; }
}

/* --- Footer 4-Column Layout --- */
.footer-brand-row {
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-row .footer-brand {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}
.footer-brand-row .footer-tagline {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    max-width: 400px;
}

.footer-grid-4col {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
}
.footer-column .footer-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    margin-bottom: 20px;
}
.footer-column .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column .footer-links li {
    margin-bottom: 10px;
}
.footer-column .footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.footer-column .footer-links a:hover {
    color: #C3110D;
}
.footer-link-disabled {
    color: rgba(255,255,255,0.3);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.badge-coming-soon {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
}

/* Newsletter form in footer */
.footer-newsletter {
    margin-top: 20px;
}
.footer-newsletter .newsletter-label {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
}
.newsletter-form {
    display: flex;
    gap: 0;
}
.newsletter-form input[type="email"] {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    border-right: none;
    border-radius: 50px 0 0 50px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 13px;
    outline: none;
}
.newsletter-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.3);
}
.newsletter-form button {
    padding: 10px 16px;
    background: #C3110D;
    color: #fff;
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: background 0.3s;
}
.newsletter-form button:hover {
    background: #a00d0a;
}

.footer-social {
    margin-top: 20px;
}
.footer-social .social-icons {
    display: flex;
    gap: 10px;
}
.footer-social .social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}
.footer-social .social-icon:hover {
    border-color: #C3110D;
    color: #C3110D;
    background: rgba(195,17,13,0.1);
}

.footer-bottom-enhanced .footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-copyright {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}
.footer-dev-sig {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}
.footer-dev-sig a {
    color: #C3110D;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 968px) {
    .footer-grid-4col {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}
@media (max-width: 576px) {
    .footer-grid-4col {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-bottom-enhanced .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}
