/**
 * ═══════════════════════════════════════════════════════════
 * ROUND TRIP INSTITUT - MODERN PREMIUM DESIGN V2.0
 * Style inspiré de Kaplan International + Design Ultra Moderne
 * Couleurs: Blanc, Bleu (#0066FF), Rouge (#FF0040)
 * ═══════════════════════════════════════════════════════════
 */

/* ═══════════════════════════════════════════════════════════
   1. CSS VARIABLES - Palette Moderne
   ═══════════════════════════════════════════════════════════ */
:root {
    /* Couleurs Principales - Basées sur le Logo RTI */
    --rti-white: #FFFFFF;
    --rti-blue: #1E4A7F;              /* Bleu marine (comme logo) */
    --rti-blue-dark: #163A66;         /* Bleu marine foncé pour hover */
    --rti-blue-light: #E8EEF5;        /* Bleu très clair pour backgrounds */
    --rti-blue-ultra-light: #F5F7FA;  /* Bleu ultra clair */

    --rti-red: #A4243B;               /* Rouge bordeaux (comme logo) */
    --rti-red-dark: #8B1E3F;          /* Rouge bordeaux foncé pour hover */
    --rti-red-light: #F5E8EB;         /* Rouge clair pour backgrounds */

    /* Gris Neutres (pour le texte) */
    --rti-black: #0A0A0A;             /* Presque noir */
    --rti-gray-900: #1A1A1A;
    --rti-gray-800: #2D2D2D;
    --rti-gray-700: #4A4A4A;
    --rti-gray-600: #666666;
    --rti-gray-500: #808080;
    --rti-gray-400: #999999;
    --rti-gray-300: #CCCCCC;
    --rti-gray-200: #E5E5E5;
    --rti-gray-100: #F5F5F5;
    --rti-gray-50: #FAFAFA;

    /* Typographie - Moderne et Élégante */
    --rti-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --rti-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Poids de police */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Espacements - Système 8pt Grid */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    --space-32: 8rem;     /* 128px */

    /* Ombres - Système en layers */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

    /* Ombres colorées */
    --shadow-blue: 0 10px 40px -5px rgba(30, 74, 127, 0.25);
    --shadow-red: 0 10px 40px -5px rgba(164, 36, 59, 0.25);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ═══════════════════════════════════════════════════════════
   2. RESET & BASE STYLES
   ═══════════════════════════════════════════════════════════ */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--rti-font-primary);
    color: var(--rti-gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════
   3. TYPOGRAPHIE MODERNE
   ═══════════════════════════════════════════════════════════ */
.rti-heading-mega {
    font-family: var(--rti-font-heading);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--rti-gray-900);
    margin-bottom: var(--space-6);
}

.rti-heading-xl {
    font-family: var(--rti-font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--rti-gray-900);
    margin-bottom: var(--space-5);
}

.rti-heading-lg {
    font-family: var(--rti-font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--rti-gray-900);
    margin-bottom: var(--space-4);
}

.rti-heading-md {
    font-family: var(--rti-font-heading);
    font-size: clamp(1.25rem, 3vw, 1.875rem);
    font-weight: 600;
    line-height: 1.4;
    color: var(--rti-gray-900);
    margin-bottom: var(--space-4);
}

.rti-heading-sm {
    font-family: var(--rti-font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--rti-gray-900);
}

.rti-text-lg {
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--rti-gray-700);
}

.rti-text-base {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--rti-gray-700);
}

.rti-text-sm {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--rti-gray-600);
}

/* Couleurs de texte */
.rti-text-blue { color: var(--rti-blue); }
.rti-text-red { color: var(--rti-red); }
.rti-text-white { color: var(--rti-white); }

/* Highlight animé */
.rti-highlight {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.rti-highlight::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(90deg, var(--rti-blue), var(--rti-red));
    opacity: 0.2;
    z-index: -1;
    animation: highlightGrow 0.6s ease-out forwards;
}

@keyframes highlightGrow {
    from { width: 0; }
    to { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════
   4. BOUTONS ULTRA MODERNES
   ═══════════════════════════════════════════════════════════ */
.rti-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--rti-font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

/* Bouton Bleu Principal */
.rti-btn-primary {
    background: var(--rti-blue);
    color: var(--rti-white) !important;
    box-shadow: var(--shadow-md);
}

.rti-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.rti-btn-primary:hover::before {
    left: 100%;
}

.rti-btn-primary:hover {
    background: var(--rti-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
    color: var(--rti-white) !important;
}

.rti-btn-primary:active {
    transform: translateY(0);
}

/* Bouton Rouge */
.rti-btn-secondary {
    background: var(--rti-red);
    color: var(--rti-white) !important;
    box-shadow: var(--shadow-md);
}

.rti-btn-secondary:hover {
    background: var(--rti-red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
    color: var(--rti-white) !important;
}

/* Bouton Outline Bleu */
.rti-btn-outline-blue {
    background: transparent;
    color: var(--rti-blue);
    border: 2px solid var(--rti-blue);
    box-shadow: none;
}

.et-db #et-boc .et-l a.rti-btn-outline-blue {
    color: var(--rti-blue);
}

.rti-btn-outline-blue:hover {
    background: var(--rti-blue);
    color: var(--rti-white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

.rti-btn-outline-blue[style*="color: white"],
.rti-btn-outline-blue[style*="color:white"] {
    color: white !important;
    border-color: white;
}

.et-db #et-boc .et-l a.rti-btn-outline-blue[style*="color: white"],
.et-db #et-boc .et-l a.rti-btn-outline-blue[style*="color:white"] {
    color: white !important;
}

/* Bouton Outline Rouge */
.rti-btn-outline-red {
    background: transparent;
    color: var(--rti-red);
    border: 2px solid var(--rti-red);
    box-shadow: none;
}

/* Surcharger Divi sans casser les styles inline */
.et-db #et-boc .et-l a.rti-btn-outline-red {
    color: var(--rti-red);
}

.rti-btn-outline-red:hover {
    background: var(--rti-red);
    color: var(--rti-white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

/* Quand le bouton a un style inline blanc (dans les heros) */
.rti-btn-outline-red[style*="color: white"],
.rti-btn-outline-red[style*="color:white"] {
    color: white !important;
    border-color: white;
}

.et-db #et-boc .et-l a.rti-btn-outline-red[style*="color: white"],
.et-db #et-boc .et-l a.rti-btn-outline-red[style*="color:white"] {
    color: white !important;
}

/* Bouton Ghost (transparent avec hover) */
.rti-btn-ghost {
    background: transparent;
    color: var(--rti-gray-800);
    border: 2px solid var(--rti-gray-300);
}

.rti-btn-ghost:hover {
    background: var(--rti-gray-900);
    color: var(--rti-white);
    border-color: var(--rti-gray-900);
}

/* Tailles de boutons */
.rti-btn-sm {
    padding: var(--space-2) var(--space-5);
    font-size: 0.875rem;
}

.rti-btn-lg {
    padding: var(--space-5) var(--space-10);
    font-size: 1.125rem;
}

.rti-btn-xl {
    padding: var(--space-6) var(--space-12);
    font-size: 1.25rem;
    font-weight: 700;
}

/* Bouton avec icône */
.rti-btn-icon {
    gap: var(--space-3);
}

.rti-btn-icon svg,
.rti-btn-icon i {
    transition: transform var(--transition-base);
}

.rti-btn-icon:hover svg,
.rti-btn-icon:hover i {
    transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════
   5. HERO SECTION - ULTRA MODERNE
   ═══════════════════════════════════════════════════════════ */
.rti-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--rti-blue) 0%, var(--rti-blue-dark) 100%);
    color: var(--rti-white);
    overflow: hidden;
    padding: var(--space-20) 0;
}

/* Effet de particules animées */
.rti-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(164, 36, 59, 0.1) 0%, transparent 50%);
    animation: particlesFloat 20s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes particlesFloat {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.rti-hero-content {
    position: relative;
    z-index: 100 !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    text-align: center;
}

.rti-hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: var(--rti-white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.rti-hero p {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    line-height: 1.6;
    margin-bottom: var(--space-8);
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.rti-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    position: relative;
    z-index: 200 !important;
    pointer-events: auto !important;
    margin-bottom: 80px;
}

/* FORCER LES BOUTONS À ÊTRE CLIQUABLES - FIX DIVI */
.rti-hero-cta,
.rti-hero-cta *,
.rti-hero-cta a,
.rti-hero-cta .rti-btn,
.rti-hero-cta button,
.rti-hero-cta > * {
    position: relative !important;
    z-index: 999999 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Désactiver TOUS les overlays Divi dans le hero */
.et_pb_section.rti-hero-image::before,
.et_pb_section.rti-hero-image::after,
.et_pb_section.rti-hero-image .et_pb_row::before,
.et_pb_section.rti-hero-image .et_pb_row::after,
.et_pb_section.rti-hero-image .et_pb_column::before,
.et_pb_section.rti-hero-image .et_pb_column::after,
.et_pb_section.rti-hero-image .et_pb_module::before,
.et_pb_section.rti-hero-image .et_pb_module::after {
    pointer-events: none !important;
    z-index: 1 !important;
}

/* Forcer le module code Divi à laisser passer les clics */
.et_pb_section.rti-hero-image .et_pb_code {
    pointer-events: none !important;
}

.et_pb_section.rti-hero-image .et_pb_code_inner {
    pointer-events: none !important;
}

/* Mais permettre les clics sur le contenu */
.et_pb_section.rti-hero-image .rti-hero-content {
    pointer-events: auto !important;
    z-index: 999998 !important;
}

/* Flèche de scroll - DOIT être petite et en dessous */
.et_pb_section.rti-hero-image .rti-hero-scroll {
    z-index: 1 !important;
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    overflow: hidden !important;
}

/* Vague décorative en bas du hero */
.rti-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--rti-white);
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
    z-index: 1;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   6. CARTES MODERNES - RECTANGULAIRES (sans bordures arrondies)
   ═══════════════════════════════════════════════════════════ */
.rti-programmes-grid,
.rti-destinations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    margin-top: var(--space-10);
}

/* Tablette : 2 colonnes */
@media (min-width: 640px) {
    .rti-programmes-grid,
    .rti-destinations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 1 carte seule sur dernière ligne → pleine largeur */
    .rti-programmes-grid > .rti-programme-card:last-child:nth-child(2n+1),
    .rti-destinations-grid > .rti-destination-card:last-child:nth-child(2n+1) {
        grid-column: 1 / -1;
    }
}

/* Desktop : grille 6 colonnes (chaque carte = span 2 = 1/3) */
@media (min-width: 1024px) {
    .rti-programmes-grid,
    .rti-destinations-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .rti-programme-card,
    .rti-destination-card {
        grid-column: span 2;
    }

    /* 1 carte seule sur dernière ligne → pleine largeur */
    .rti-programmes-grid > .rti-programme-card:last-child:nth-child(3n+1),
    .rti-destinations-grid > .rti-destination-card:last-child:nth-child(3n+1) {
        grid-column: 1 / -1;
    }

    /* 2 cartes sur dernière ligne → chacune prend la moitié */
    .rti-programmes-grid > .rti-programme-card:nth-last-child(2):nth-child(3n+1),
    .rti-destinations-grid > .rti-destination-card:nth-last-child(2):nth-child(3n+1) {
        grid-column: span 3;
    }
    .rti-programmes-grid > .rti-programme-card:last-child:nth-child(3n+2),
    .rti-destinations-grid > .rti-destination-card:last-child:nth-child(3n+2) {
        grid-column: span 3;
    }
}

/* Carte Programme/Destination - Design Rectangulaire Moderne */
.rti-programme-card,
.rti-destination-card {
    background: var(--rti-white);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
    border-top: 4px solid var(--rti-blue);
    border-bottom: none;
}

.rti-programme-card:hover,
.rti-destination-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-top-color: var(--rti-red);
}

/* Image avec overlay au hover */
.rti-programme-image,
.rti-destination-image {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: var(--rti-gray-100);
}

.rti-programme-image::before,
.rti-destination-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 74, 127, 0.88) 0%, rgba(22, 58, 102, 0.92) 50%, rgba(164, 36, 59, 0.90) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
}

.rti-programme-card:hover .rti-programme-image::before,
.rti-destination-card:hover .rti-destination-image::before {
    opacity: 1;
}

.rti-programme-image img,
.rti-destination-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.rti-programme-card:hover .rti-programme-image img,
.rti-destination-card:hover .rti-destination-image img {
    transform: scale(1.1);
}

/* Badge "Populaire" ou autre */
.rti-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    padding: var(--space-2) var(--space-4);
    background: var(--rti-red);
    color: var(--rti-white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

/* Contenu de la carte */
.rti-programme-content,
.rti-destination-content {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rti-programme-content h3,
.rti-destination-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rti-gray-900);
    margin-bottom: var(--space-3);
    line-height: 1.3;
    transition: color var(--transition-base);
}

.rti-programme-card:hover h3,
.rti-destination-card:hover h3 {
    color: var(--rti-blue);
}

/* Tags/Labels */
.rti-programme-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.rti-tag {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    background: var(--rti-blue-ultra-light);
    color: var(--rti-blue);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rti-tag.red {
    background: var(--rti-red-light);
    color: var(--rti-red);
}

/* Pays pour destinations */
.rti-destination-pays {
    color: var(--rti-red);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.rti-destination-pays::before {
    content: '📍';
}

.rti-programme-content p,
.rti-destination-content p {
    color: var(--rti-gray-600);
    margin-bottom: var(--space-5);
    line-height: 1.7;
    flex: 1;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rti-programme-content .rti-btn,
.rti-destination-content .rti-btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Lien "En savoir plus" stylé */
.rti-programme-content a:not(.rti-btn),
.rti-destination-content a:not(.rti-btn) {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--rti-blue);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid var(--rti-gray-100, #F3F4F6);
    width: 100%;
    transition: color 0.3s, gap 0.3s;
}

.rti-programme-content a:not(.rti-btn)::after,
.rti-destination-content a:not(.rti-btn)::after {
    content: '→';
    transition: transform 0.3s;
}

.rti-programme-content a:not(.rti-btn):hover,
.rti-destination-content a:not(.rti-btn):hover {
    color: var(--rti-red);
}

.rti-programme-content a:not(.rti-btn):hover::after,
.rti-destination-content a:not(.rti-btn):hover::after {
    transform: translateX(4px);
}

/* Effet de bordure animée au hover */
.rti-card-border-effect {
    position: relative;
}

.rti-card-border-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--rti-blue);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.rti-card-border-effect:hover::after {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   7. FEATURES / AVANTAGES - Style Moderne
   ═══════════════════════════════════════════════════════════ */
.rti-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-top: var(--space-12);
}

@media (min-width: 640px) {
    .rti-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .rti-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.rti-feature-box {
    text-align: center;
    padding: var(--space-8);
    background: var(--rti-white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.rti-feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--rti-blue), var(--rti-red));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.rti-feature-box:hover::before {
    transform: scaleX(1);
}

.rti-feature-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.rti-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-5);
    background: linear-gradient(135deg, var(--rti-blue-light), var(--rti-blue-ultra-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--rti-blue);
    transition: all var(--transition-bounce);
}

.rti-feature-box:hover .rti-feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--rti-blue), var(--rti-blue-dark));
    color: var(--rti-white);
}

.rti-feature-box h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--rti-gray-900);
}

.rti-feature-box p {
    font-size: 1.1rem;
    color: var(--rti-gray-600);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   8. ACCORDÉON FAQ - DESIGN ULTRA MODERNE
   ═══════════════════════════════════════════════════════════ */
.rti-faq-list {
    max-width: 900px;
    margin: var(--space-12) auto 0;
}

.rti-faq-item {
    background: var(--rti-white);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-base);
    border-left: 4px solid transparent;
}

.rti-faq-item:hover {
    box-shadow: var(--shadow-md);
}

.rti-faq-item.active {
    border-left-color: var(--rti-blue);
    box-shadow: var(--shadow-lg);
}

.rti-faq-question {
    padding: var(--space-5) var(--space-6);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--rti-gray-900);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    transition: all var(--transition-base);
    position: relative;
}

.rti-faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rti-blue);
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.rti-faq-item.active .rti-faq-question::after {
    content: '−';
    transform: rotate(180deg);
    color: var(--rti-red);
}

.rti-faq-question:hover {
    color: var(--rti-blue);
    padding-left: var(--space-8);
}

.rti-faq-answer {
    padding: 0 var(--space-6) var(--space-6);
    color: var(--rti-gray-700);
    line-height: 1.8;
    font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   9. STATISTIQUES / CHIFFRES - Style Institut de Langues
   ═══════════════════════════════════════════════════════════ */
.rti-stats-section {
    background: var(--rti-gray-50, #F8F9FA);
    padding: var(--space-16) 0;
    position: relative;
}

.rti-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

@media (min-width: 768px) {
    .rti-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-8);
    }
}

.rti-stat-box {
    text-align: center;
    padding: var(--space-8) var(--space-4);
    background: var(--rti-white, #fff);
    border-radius: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-base);
    border-bottom: 3px solid var(--rti-blue);
}

.rti-stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.rti-stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: var(--space-3);
    color: var(--rti-blue);
}

.rti-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--rti-gray-600, #6B7280);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════════════════════
   10. CTA (CALL-TO-ACTION) - Style Institut de Langues
   ═══════════════════════════════════════════════════════════ */
.rti-cta {
    background: linear-gradient(135deg, var(--rti-blue) 0%, var(--rti-blue-dark, #1a4fd4) 100%);
    color: var(--rti-white);
    padding: var(--space-16) var(--space-6);
    text-align: center;
    margin: 0;
    border-radius: 0;
}

.rti-cta h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--rti-white);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.rti-cta p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--space-8);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.rti-cta .rti-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--rti-white);
    color: var(--rti-blue);
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 2.5rem;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.rti-cta .rti-btn:hover {
    background: var(--rti-red);
    color: var(--rti-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ═══════════════════════════════════════════════════════════
   11. SECTIONS & CONTAINERS
   ═══════════════════════════════════════════════════════════ */
.rti-section {
    padding: var(--space-16) 0;
}

.rti-section-lg {
    padding: var(--space-24) 0;
}

.rti-section-xl {
    padding: var(--space-32) 0;
}

.rti-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.rti-container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.rti-container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Backgrounds */
.rti-bg-white { background: var(--rti-white); }
.rti-bg-gray { background: var(--rti-gray-50); }
.rti-bg-blue-light { background: var(--rti-blue-ultra-light); }

/* ═══════════════════════════════════════════════════════════
   12. ANIMATIONS MODERNES
   ═══════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Classes d'animation à ajouter via JS ou Divi */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

/* Délais d'animation pour effet séquentiel */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }

/* ═══════════════════════════════════════════════════════════
   13. CONTENU ÉDITEUR WORDPRESS (pages programmes, articles)
   Style automatique pour le contenu écrit dans l'éditeur classique
   ═══════════════════════════════════════════════════════════ */

/* Conteneur du contenu éditeur — pages single uniquement */
.single .entry-content,
.single .et_pb_post_content.et_pb_post_content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--rti-gray-700);
}

/* Paragraphes dans le contenu éditeur */
.single .et_pb_post_content p,
.single .entry-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Titres dans le contenu éditeur */
.single .et_pb_post_content h2,
.single .entry-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--rti-gray-900);
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--rti-blue);
}

.single .et_pb_post_content h3,
.single .entry-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--rti-blue);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.single .et_pb_post_content h4,
.single .entry-content h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--rti-gray-800);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

/* Listes dans le contenu éditeur */
.single .et_pb_post_content ul,
.single .et_pb_post_content ol,
.single .entry-content ul,
.single .entry-content ol {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.single .et_pb_post_content ul li,
.single .entry-content ul li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.single .et_pb_post_content ul li::marker {
    color: var(--rti-blue);
}

/* Texte en gras = mise en valeur */
.single .et_pb_post_content strong,
.single .entry-content strong {
    font-weight: 600;
    color: var(--rti-gray-900);
}

/* Blockquotes / citations */
.single .et_pb_post_content blockquote,
.single .entry-content blockquote {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    font-style: italic;
    color: var(--rti-blue);
    border-left: 4px solid var(--rti-blue);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--rti-blue-ultra-light, #EFF6FF);
}

/* ═══════════════════════════════════════════════════════════
   13. UTILITIES & HELPERS
   ═══════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: var(--space-4); }
.gap-8 { gap: var(--space-8); }

/* Responsive */
@media (max-width: 767px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
    .hide-desktop { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   14. BACK TO TOP BUTTON
   ═══════════════════════════════════════════════════════════ */
.rti-back-to-top {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 56px;
    height: 56px;
    background: var(--rti-blue);
    color: var(--rti-white);
    border: none;
    cursor: pointer;
    font-size: 24px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rti-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.rti-back-to-top:hover {
    background: var(--rti-red);
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

/* ═══════════════════════════════════════════════════════════
   15. RESPONSIVE OPTIMIZATIONS
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    :root {
        --space-16: 3rem;
        --space-20: 4rem;
        --space-24: 4.5rem;
    }

    .rti-hero {
        min-height: 70vh;
        padding: var(--space-12) 0;
    }

    .rti-hero-cta {
        flex-direction: column;
    }

    .rti-btn {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════
   FIN DU FICHIER CSS
   ═══════════════════════════════════════════════════════════ */
