/* POLICE CORMORANT GARAMOND - IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

/* APPLIQUER CORMORANT GARAMOND */
html,html *,body,body *,div,span,p,h1, h2, h3, h4, h5, h6,a,strong,em,ul, ol, li,blockquote,article,section,header,footer,nav,main,aside,figure,figcaption {
    font-family: 'Cormorant Garamond', serif;
}

/* SÉLECTEURS WORDPRESS */
.wp-block-paragraph,.wp-block-paragraph p,.wp-block-heading,.wp-block-heading h1,.wp-block-heading h2,.wp-block-heading h3,.wp-block-heading h4,.wp-block-heading h5,.wp-block-heading h6,.wp-block-text,.entry-content,.entry-content *,.entry-content p,.entry-content h1,.entry-content h2,.entry-content h3,.entry-content h4,.entry-content h5,.entry-content h6,.post-content,.post-content *,.page-content,.page-content *,.content,.content *,.main,.main *,.site-content,.site-content *,.elementor-widget-text-editor,.elementor-widget-text-editor *,.elementor-widget-heading,.elementor-widget-heading *,.elementor-text-editor,.elementor-text-editor *,.elementor-heading-title,.wpb_text_column,.wpb_text_column *,.vc_column-inner,.vc_column-inner * {
    font-family: 'Cormorant Garamond', serif;
}

/* CLASSES PERSONNALISÉES */
.playfair,.text-box,.custom-heading {
    font-family: 'Cormorant Garamond', serif;
}

/* ========================================
   CARROUSEL VEHICLES
   ======================================== */

.ernest-vehicles-section {
    padding: 0;
    background: #000;
    color: #fff;
}

.ernest-vehicles-header {
    position: relative;
    height: 400px;
    background: url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?w=1920&h=800&fit=crop') center/cover;
    display: flex;
    align-items: center;
    padding: 0 32px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ernest-vehicles-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.ernest-vehicles-header-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.ernest-vehicles-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    color: #fff;
    margin: 0;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.ernest-vehicles-header p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
    margin: 0;
    font-weight: 400;
}

.ernest-vehicles-content {
    padding: 80px 64px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.ernest-vehicles-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 60px;
}

.ernest-vehicles-item {
    text-align: center;
}

.ernest-vehicles-item-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    overflow: hidden;
    background: #111;
    border-radius: 8px;
}

.ernest-vehicles-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ernest-vehicles-item:hover img {
    transform: scale(1.05);
}

.ernest-vehicles-item h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.ernest-vehicles-item p {
    font-family: 'Cormorant Garamond', serif;
    color: #ccc;
    white-space: pre-line;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    font-weight: 400;
}

.ernest-vehicles-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.ernest-vehicles-btn {
    padding: 0;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
}

.ernest-vehicles-btn:hover:not(:disabled) {
    color: #ccc;
}

.ernest-vehicles-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ernest-vehicles-progress {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.3);
    position: relative;
    border-radius: 1px;
    overflow: hidden;
}

.ernest-vehicles-progress-fill {
    height: 100%;
    background: #fff;
    transition: width 0.3s ease;
    border-radius: 1px;
    width: 0%;
}

/* ========================================
   CARROUSEL LOCATIONS
   ======================================== */

.ernest-locations-section {
    padding: 0;
    background: #000;
    color: #fff;
}

.ernest-locations-header {
    position: relative;
    height: 400px;
    background: url('https://images.unsplash.com/photo-1446776653964-20c1d3a81b06?w=1920&h=800&fit=crop') center/cover;
    display: flex;
    align-items: center;
    padding: 0 32px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ernest-locations-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.ernest-locations-header-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.ernest-locations-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    color: #fff;
    margin: 0;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.ernest-locations-header p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
    margin: 0;
    font-weight: 400;
}

.ernest-locations-content {
    padding: 80px 64px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.ernest-locations-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 60px;
}

.ernest-locations-item {
    text-align: center;
}

.ernest-locations-item-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
}

.ernest-locations-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ernest-locations-item:hover img {
    transform: scale(1.05);
}

.ernest-locations-item h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.ernest-locations-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.ernest-locations-btn {
    padding: 0;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
}

.ernest-locations-btn:hover:not(:disabled) {
    color: #ccc;
}

.ernest-locations-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ernest-locations-progress {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.3);
    position: relative;
    border-radius: 1px;
    overflow: hidden;
}

.ernest-locations-progress-fill {
    height: 100%;
    background: #fff;
    transition: width 0.3s ease;
    border-radius: 1px;
    width: 0%;
}

/* ========================================
   CARROUSEL EVENTS
   ======================================== */

.ernest-events-section {
    padding: 0;
    background: #000;
    color: #fff;
}

.ernest-events-header {
    position: relative;
    height: 400px;
    background: url('https://images.unsplash.com/photo-1469334031218-e382a71b716b?w=1920&h=800&fit=crop') center/cover;
    display: flex;
    align-items: center;
    padding: 0 32px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ernest-events-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.ernest-events-header-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.ernest-events-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    color: #fff;
    margin: 0;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.ernest-events-header p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
    margin: 0;
    font-weight: 400;
}

.ernest-events-content {
    padding: 80px 64px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.ernest-events-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 60px;
}

.ernest-events-item {
    text-align: center;
}

.ernest-events-item-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
}

.ernest-events-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ernest-events-item:hover img {
    transform: scale(1.05);
}

.ernest-events-item h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.ernest-events-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.ernest-events-btn {
    padding: 0;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
}

.ernest-events-btn:hover:not(:disabled) {
    color: #ccc;
}

.ernest-events-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ernest-events-progress {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.3);
    position: relative;
    border-radius: 1px;
    overflow: hidden;
}

.ernest-events-progress-fill {
    height: 100%;
    background: #fff;
    transition: width 0.3s ease;
    border-radius: 1px;
    width: 0%;
}

/* ========================================
   GALERIE - STYLES DESKTOP ET MOBILE
   ======================================== */

.ernest-gallery-section {
    padding: 0;
    background: #000;
    color: #fff;
}

.ernest-gallery-header {
    position: relative;
    height: 400px;
    background: url('https://images.unsplash.com/photo-1502602898536-47ad22581b52?w=1920&h=800&fit=crop') center/cover;
    display: flex;
    align-items: center;
    padding: 0 32px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ernest-gallery-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.ernest-gallery-header-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.ernest-gallery-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    color: #fff;
    margin: 0;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.ernest-gallery-header p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
    margin: 0;
    font-weight: 400;
}

/* GALERIE GRID DESKTOP */
.ernest-gallery-content {
    padding: 80px 64px;
    max-width: 1400px;
    margin: 0 auto;
}

.ernest-gallery-grid,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.ernest-gallery-item,
.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    border-radius: 4px;
    margin: 0;
    padding: 0;
}

.ernest-gallery-item img,
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    cursor: pointer;
    margin: 0;
    padding: 0;
    display: block;
}

.ernest-gallery-item:hover img,
.gallery-item:hover img {
    transform: scale(1.08);
}

.ernest-gallery-item::after,
.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ernest-gallery-item:hover::after,
.gallery-item:hover::after {
    opacity: 1;
}

/* ========================================
   RESPONSIVE MOBILE - ESPACEMENT OPTIMAL IPHONE
   ======================================== */

/* Empêcher débordement */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

@media (max-width: 768px) {
    
    /* RESET GÉNÉRAL MOBILE */
    * {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
        -webkit-box-sizing: border-box !important;
        box-sizing: border-box !important;
    }
    
    body {
        -webkit-text-size-adjust: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* ========== TYPOGRAPHIE HARMONISÉE ========== */
    
    /* Base */
    body {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
    
    /* H1 - Hero et titres principaux */
    h1, .hero h1, .hero-content h1, [class*="hero"] h1 {
        font-size: 18px !important;
        line-height: 1.2 !important;
        font-weight: 600 !important;
        letter-spacing: 0.3px !important;
        padding: 0 15px !important;
        text-align: center !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        margin: 10px 0 !important;
    }
    
    /* H2 - Titres de section */
    h2,
    .ernest-vehicles-header h2,
    .ernest-locations-header h2,
    .ernest-events-header h2,
    .ernest-gallery-header h2,
    .ernest-charter h2 {
        font-size: 20px !important;
        line-height: 1.3 !important;
        font-weight: 600 !important;
        letter-spacing: 0.3px !important;
        margin-bottom: 10px !important;
        text-align: center !important;
        padding: 0 10px !important;
    }
    
    /* H3 - Sous-titres */
    h3,
    .ernest-vehicles-item h3,
    .ernest-locations-item h3,
    .ernest-events-item h3,
    .ernest-charter h3 {
        font-size: 16px !important;
        line-height: 1.3 !important;
        font-weight: 500 !important;
        margin-bottom: 8px !important;
    }
    
    /* Paragraphes */
    p,
    .ernest-vehicles-header p,
    .ernest-locations-header p,
    .ernest-events-header p,
    .ernest-gallery-header p,
    .ernest-vehicles-item p,
    .ernest-locations-item p,
    .ernest-events-item p {
        font-size: 13px !important;
        line-height: 1.4 !important;
        font-weight: 300 !important;
        letter-spacing: 0.2px !important;
        text-align: center !important;
        margin: 5px 0 !important;
    }
    
    /* ========== MENU MOBILE OPTIMAL POUR IPHONE ========== */
    
    /* Container principal */
    div[style*="display: flex"][style*="justify-content: space-between"][style*="padding: 0 50px"] {
        display: block !important;
        text-align: center !important;
        padding: 10px !important;
        width: 100% !important;
    }
    
    /* Logo - LUXURY LOGISTICS EN DESSOUS */
    div[style*="display: flex"][style*="justify-content: space-between"] a[style*="flex-direction: column"] {
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        margin: 0 auto 12px auto !important;
        align-items: center !important;
    }
    
    /* Ernest&Sons */
    div[style*="display: flex"][style*="justify-content: space-between"] a[style*="flex-direction: column"] span:first-child {
        font-size: 20px !important;
        margin-bottom: 2px !important;
        color: #000 !important;
        display: block !important;
    }
    
    /* LUXURY LOGISTICS - EN DESSOUS */
    div[style*="display: flex"][style*="justify-content: space-between"] a[style*="flex-direction: column"] span:last-child {
        font-size: 7px !important;
        color: #000 !important;
        display: block !important;
        margin-top: 0 !important;
        letter-spacing: 1px !important;
    }
    
    /* Navigation ESPACEMENT OPTIMAL IPHONE - 4px */
    nav[style*="display: flex"][style*="gap: 32px"] {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 4px !important; /* OPTIMAL POUR IPHONE */
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Boutons CONFORTABLES POUR IPHONE */
    nav[style*="display: flex"] a {
        display: block !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 8px 16px !important; /* CONFORTABLE POUR TOUCH */
        border: 1px solid #333 !important;
        border-radius: 18px !important;
        background: #f8f8f8 !important;
        color: #333 !important;
        font-size: 13px !important;
        width: 85% !important;
        max-width: 200px !important;
        transition: all 0.2s ease !important;
        text-decoration: none !important;
        line-height: 1.3 !important;
        min-height: 36px !important; /* HAUTEUR MINIMALE POUR TOUCH */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    nav[style*="display: flex"] a:hover {
        background: #333 !important;
        color: #fff !important;
        border-color: #333 !important;
    }
    
    /* TÉLÉPHONE - MÊME ESPACEMENT */
    nav[style*="display: flex"] a[href^="tel"] {
        background: #000 !important;
        color: #fff !important;
        border-color: #000 !important;
        font-weight: 600 !important;
        margin-top: 0 !important;
    }
    
    nav[style*="display: flex"] a[href^="tel"]:hover {
        background: #333 !important;
        border-color: #333 !important;
    }
    
    /* ========== BANNERS ÉTIRÉES JUSQU'AU BOUT ========== */
    
    /* Banners - PADDING SUPPRIMÉ pour étirer jusqu'au bout */
    .ernest-vehicles-header,
    .ernest-locations-header,
    .ernest-events-header,
    .ernest-gallery-header {
        height: 200px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }
    
    /* Contenu des banners - PADDING INTERNE SEULEMENT */
    .ernest-vehicles-header-content,
    .ernest-locations-header-content,
    .ernest-events-header-content,
    .ernest-gallery-header-content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        text-align: center !important;
        padding: 20px 15px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    
    /* ========== GALERIE MOBILE CORRIGÉE ========== */
    
    .ernest-gallery-content {
        padding: 30px 15px !important;
    }
    
    /* GALERIE GRID MOBILE - ESPACES RÉDUITS */
    .ernest-gallery-grid,
    .gallery-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .ernest-gallery-item,
    .gallery-item {
        aspect-ratio: 1 !important;
        overflow: hidden !important;
        border-radius: 6px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .ernest-gallery-item img,
    .gallery-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }
    
    /* Désactiver hover sur mobile */
    .ernest-gallery-item:hover img,
    .gallery-item:hover img {
        transform: none !important;
    }
    
    /* ========== CARROUSELS AVEC SWIPE ========== */
    
    /* Conteneurs principaux COMPACTS */
    .ernest-vehicles-content,
    .ernest-locations-content,
    .ernest-events-content {
        padding: 25px 0 !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    /* Items en swipe horizontal */
    .ernest-vehicles-items,
    .ernest-locations-items,
    .ernest-events-items {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 15px !important;
        padding: 0 15px 15px 15px !important;
        margin-bottom: 25px !important;
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }
    
    /* Masquer scrollbar */
    .ernest-vehicles-items::-webkit-scrollbar,
    .ernest-locations-items::-webkit-scrollbar,
    .ernest-events-items::-webkit-scrollbar {
        display: none !important;
    }
    
    /* Items individuels */
    .ernest-vehicles-item,
    .ernest-locations-item,
    .ernest-events-item {
        flex: 0 0 80% !important;
        scroll-snap-align: center !important;
        text-align: center !important;
    }
    
    /* Images des items - REMPLISSAGE COMPLET */
    .ernest-vehicles-item-image,
    .ernest-locations-item-image,
    .ernest-events-item-image {
        height: 180px !important;
        margin-bottom: 20px !important;
        border-radius: 8px !important;
        background: #111 !important;
        overflow: hidden !important;
    }
    
    /* TOUTES les images remplissent leur container */
    .ernest-vehicles-item img,
    .ernest-locations-item img,
    .ernest-events-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        transition: none !important;
        transform: none !important;
        -webkit-tap-highlight-color: transparent !important;
        pointer-events: none !important;
        user-select: none !important;
        -webkit-user-select: none !important;
    }
    
    /* Désactiver hover sur mobile */
    .ernest-vehicles-item:hover img,
    .ernest-locations-item:hover img,
    .ernest-events-item:hover img {
        transform: none !important;
    }
    
    /* Contrôles centrés */
    .ernest-vehicles-controls,
    .ernest-locations-controls,
    .ernest-events-controls {
        position: relative !important;
        justify-content: center !important;
        margin: 30px auto 0 !important;
        width: 100% !important;
        left: auto !important;
        bottom: auto !important;
        display: flex !important;
    }
    
    .ernest-vehicles-progress,
    .ernest-locations-progress,
    .ernest-events-progress {
        width: 150px !important;
    }
    
    /* ========== SECTIONS GÉNÉRALES ========== */
    
    /* Sections compactes */
    section {
        padding: 20px 15px !important;
        margin-bottom: 0 !important;
    }
    
    /* Réduire l'espace vertical global */
    .page-content > *:not(:last-child),
    .content > *:not(:last-child),
    main > *:not(:last-child) {
        margin-bottom: 15px !important;
    }
    
    /* Espacement entre les éléments */
    * + * {
        margin-top: 0 !important;
    }
    
    /* ========== CHARTE D'EXCELLENCE ========== */
    
    .ernest-charter {
        padding: 40px 20px !important;
    }
    
    .ernest-charter-intro,
    .charter-intro {
        width: 100% !important;
        padding: 0 !important;
        margin-bottom: 30px !important;
        text-align: justify !important;
        text-justify: inter-word !important;
    }
    
    .ernest-charter-item,
    .charter-item {
        margin-bottom: 25px !important;
        padding: 20px !important;
        border: 1px solid transparent !important;
        border-radius: 8px !important;
        background: rgba(0,0,0,0.02) !important;
    }
    
    .ernest-charter-item h3,
    .charter-item h3 {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .ernest-charter-item p,
    .charter-item p {
        text-align: justify !important;
        text-justify: inter-word !important;
        hyphens: auto !important;
        -webkit-hyphens: auto !important;
    }
    
    /* ========== SIGNATURES ========== */
    
    .signatures-section,
    [class*="signature"] {
        padding: 25px 20px !important;
        text-align: left !important;
    }
    
    .signature-item {
        margin-bottom: 12px !important;
        position: relative !important;
    }
    
    .signature-item .name {
        font-size: 16px !important;
        font-weight: 500 !important;
        font-style: italic !important;
        margin-bottom: 5px !important;
    }
    
    .signature-item::after {
        content: "~" !important;
        font-size: 24px !important;
        opacity: 0.5 !important;
        margin-left: 10px !important;
        display: inline-block !important;
    }
}

/* ========================================
   SUPPORT IPHONE SPÉCIFIQUE - ESPACEMENT OPTIMAL
   ======================================== */

@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        
        /* Flexbox fixes pour Safari */
        div[style*="display: flex"][style*="justify-content: space-between"][style*="padding: 0 50px"] {
            display: -webkit-flex !important;
            display: flex !important;
            -webkit-flex-direction: column !important;
            flex-direction: column !important;
            -webkit-align-items: center !important;
            align-items: center !important;
            -webkit-justify-content: center !important;
            justify-content: center !important;
        }
        
        /* Navigation IPHONE - ESPACEMENT OPTIMAL 5px */
        nav[style*="display: flex"][style*="gap: 32px"] {
            display: -webkit-flex !important;
            display: flex !important;
            -webkit-flex-direction: column !important;
            flex-direction: column !important;
            -webkit-align-items: center !important;
            align-items: center !important;
            gap: 5px !important; /* OPTIMAL POUR IPHONE TOUCH */
        }
        
        /* Boutons IPHONE - ZONE DE TOUCH CONFORTABLE */
        nav[style*="display: flex"] a {
            min-height: 40px !important; /* ZONE TOUCH CONFORTABLE */
            padding: 10px 18px !important;
            font-size: 14px !important;
            border-radius: 20px !important;
            width: 88% !important;
            max-width: 220px !important;
            -webkit-tap-highlight-color: rgba(0,0,0,0.1) !important;
        }
        
        /* Fix hauteurs sur iOS Safari */
        .ernest-vehicles-header,
        .ernest-locations-header,
        .ernest-events-header,
        .ernest-gallery-header {
            min-height: 280px !important;
            height: auto !important;
        }
        
        /* Transitions WebKit */
        nav[style*="display: flex"] a {
            -webkit-transition: all 0.3s ease !important;
            transition: all 0.3s ease !important;
        }
        
        /* Transform WebKit - FEEDBACK TACTILE */
        nav[style*="display: flex"] a:active {
            -webkit-transform: scale(0.98) !important;
            transform: scale(0.98) !important;
            background: #ddd !important;
        }
        
        nav[style*="display: flex"] a[href^="tel"]:active {
            background: #333 !important;
        }
    }
}

/* ========================================
   MODE SOMBRE AUTOMATIQUE
   ======================================== */

@media (prefers-color-scheme: dark) {
    @media (max-width: 768px) {
        nav[style*="display: flex"] a {
            background: #222 !important;
            color: #fff !important;
            border-color: #444 !important;
        }
        
        nav[style*="display: flex"] a[href^="tel"] {
            background: #fff !important;
            color: #000 !important;
        }
        
        .specialize-section,
        [class*="specialize"] {
            background: #1a1a1a !important;
            border-color: #333 !important;
            color: #fff !important;
        }
        
        .ernest-charter-item,
        .charter-item {
            background: rgba(255,255,255,0.02) !important;
        }
    }
}

/* ========================================
   CONTRASTE ÉLEVÉ
   ======================================== */

@media (prefers-contrast: high) {
    @media (max-width: 768px) {
        nav[style*="display: flex"] a {
            border-width: 2px !important;
        }
        
        .ernest-charter-item,
        .charter-item {
            border-color: #ccc !important;
        }
    }
}

/* ========================================
   ANIMATION RÉDUITE
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .autoplay .ernest-vehicles-items,
    .autoplay .ernest-locations-items,
    .autoplay .ernest-events-items {
        animation: none !important;
    }
}