/**
 * ═══════════════════════════════════════════════════════════
 * ROUND TRIP INSTITUT - HERO SECTIONS ULTRA MODERNES
 * 7 Styles différents pour varier les pages
 * Attractifs, dynamiques et professionnels
 * ═══════════════════════════════════════════════════════════
 */

/* ═══════════════════════════════════════════════════════════
   STYLE 1 : HERO AVEC IMAGE DE FOND + OVERLAY
   ═══════════════════════════════════════════════════════════ */
.rti-hero-image {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Effet parallax */
    color: var(--rti-white);
    overflow: hidden;
}

/* Overlay sombre pour lisibilité */
.rti-hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(30, 74, 127, 0.85) 0%,
        rgba(22, 58, 102, 0.90) 100%
    );
    z-index: 1;
}

/* Pattern overlay subtil */
.rti-hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 2;
}

.rti-hero-image .rti-hero-content {
    position: relative;
    z-index: 3;
}

/* ═══════════════════════════════════════════════════════════
   STYLE 2 : HERO AVEC FORMES GÉOMÉTRIQUES MODERNES
   ═══════════════════════════════════════════════════════════ */
.rti-hero-geometric {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rti-white);
    color: var(--rti-blue);
    overflow: hidden;
}

/* Forme géométrique 1 - Cercle bleu */
.rti-hero-geometric::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--rti-blue), var(--rti-blue-dark));
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

/* Forme géométrique 2 - Rectangle rouge */
.rti-hero-geometric::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--rti-red);
    opacity: 0.08;
    transform: rotate(45deg);
    z-index: 1;
}

.rti-hero-geometric .rti-hero-content {
    position: relative;
    z-index: 2;
}

/* ═══════════════════════════════════════════════════════════
   STYLE 3 : HERO SPLIT (Texte + Image côte à côte)
   ═══════════════════════════════════════════════════════════ */
.rti-hero-split {
    display: flex;
    min-height: 600px;
    overflow: hidden;
}

.rti-hero-split-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-20) var(--space-12);
    background: var(--rti-white);
}

.rti-hero-split-right {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
}

.rti-hero-split-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100px;
    width: 100px;
    height: 100%;
    background: var(--rti-white);
    transform: skewX(-5deg);
    box-shadow: 20px 0 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1024px) {
    .rti-hero-split {
        flex-direction: column;
    }

    .rti-hero-split-right {
        min-height: 400px;
    }

    .rti-hero-split-right::before {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════
   STYLE 4 : HERO AVEC PATTERN/TEXTURE MODERNE
   ═══════════════════════════════════════════════════════════ */
.rti-hero-pattern {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rti-blue);
    color: var(--rti-white);
    overflow: hidden;
}

.rti-hero-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(30deg, var(--rti-blue-dark) 12%, transparent 12.5%, transparent 87%, var(--rti-blue-dark) 87.5%, var(--rti-blue-dark)),
        linear-gradient(150deg, var(--rti-blue-dark) 12%, transparent 12.5%, transparent 87%, var(--rti-blue-dark) 87.5%, var(--rti-blue-dark)),
        linear-gradient(30deg, var(--rti-blue-dark) 12%, transparent 12.5%, transparent 87%, var(--rti-blue-dark) 87.5%, var(--rti-blue-dark)),
        linear-gradient(150deg, var(--rti-blue-dark) 12%, transparent 12.5%, transparent 87%, var(--rti-blue-dark) 87.5%, var(--rti-blue-dark)),
        linear-gradient(60deg, rgba(30, 74, 127, 0.5) 25%, transparent 25.5%, transparent 75%, rgba(30, 74, 127, 0.5) 75%, rgba(30, 74, 127, 0.5)),
        linear-gradient(60deg, rgba(30, 74, 127, 0.5) 25%, transparent 25.5%, transparent 75%, rgba(30, 74, 127, 0.5) 75%, rgba(30, 74, 127, 0.5));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    opacity: 0.3;
    z-index: 1;
}

.rti-hero-pattern .rti-hero-content {
    position: relative;
    z-index: 2;
}

/* ═══════════════════════════════════════════════════════════
   STYLE 5 : HERO AVEC VAGUE EN BAS
   ═══════════════════════════════════════════════════════════ */
.rti-hero-wave {
    position: relative;
    min-height: 600px;
    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-bottom: 100px;
}

.rti-hero-wave::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 150px;
    background: var(--rti-white);
    clip-path: polygon(
        0 50%,
        10% 45%,
        20% 50%,
        30% 45%,
        40% 50%,
        50% 45%,
        60% 50%,
        70% 45%,
        80% 50%,
        90% 45%,
        100% 50%,
        100% 100%,
        0 100%
    );
}

.rti-hero-wave .rti-hero-content {
    position: relative;
    z-index: 2;
}

/* ═══════════════════════════════════════════════════════════
   STYLE 6 : HERO AVEC ANIMATION DE BULLES/CERCLES FLOTTANTS
   ═══════════════════════════════════════════════════════════ */
.rti-hero-animated {
    position: relative;
    min-height: 600px;
    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;
}

.rti-hero-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.rti-hero-bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: floatBubble 15s infinite ease-in-out;
}

.rti-hero-bubble:nth-child(1) {
    width: 100px;
    height: 100px;
    left: 10%;
    bottom: -100px;
    animation-delay: 0s;
    animation-duration: 12s;
}

.rti-hero-bubble:nth-child(2) {
    width: 60px;
    height: 60px;
    left: 30%;
    bottom: -60px;
    animation-delay: 2s;
    animation-duration: 15s;
}

.rti-hero-bubble:nth-child(3) {
    width: 80px;
    height: 80px;
    left: 50%;
    bottom: -80px;
    animation-delay: 4s;
    animation-duration: 13s;
}

.rti-hero-bubble:nth-child(4) {
    width: 120px;
    height: 120px;
    left: 70%;
    bottom: -120px;
    animation-delay: 1s;
    animation-duration: 14s;
}

.rti-hero-bubble:nth-child(5) {
    width: 90px;
    height: 90px;
    left: 85%;
    bottom: -90px;
    animation-delay: 3s;
    animation-duration: 16s;
}

@keyframes floatBubble {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        transform: translateY(-400px) scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: translateY(-800px) scale(0.8);
        opacity: 0;
    }
}

.rti-hero-animated .rti-hero-content {
    position: relative;
    z-index: 2;
}

/* ═══════════════════════════════════════════════════════════
   STYLE 7 : HERO MINIMALISTE AVEC ACCENT COLORÉ
   ═══════════════════════════════════════════════════════════ */
.rti-hero-minimal {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rti-white);
    color: var(--rti-blue);
    padding: var(--space-20) 0;
}

.rti-hero-minimal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--rti-blue), var(--rti-red));
    z-index: 1;
}

.rti-hero-minimal .rti-hero-content {
    position: relative;
    z-index: 2;
}

.rti-hero-minimal .rti-accent-box {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    background: var(--rti-red);
    opacity: 0.1;
    border-radius: 20px;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
   STYLE 8 : HERO AVEC ILLUSTRATION SVG
   ═══════════════════════════════════════════════════════════ */
.rti-hero-illustration {
    display: flex;
    min-height: 600px;
    background: var(--rti-blue-ultra-light);
    overflow: hidden;
}

.rti-hero-illustration-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-20) var(--space-12);
}

.rti-hero-illustration-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-20) var(--space-8);
}

.rti-hero-illustration-right svg,
.rti-hero-illustration-right img {
    max-width: 100%;
    height: auto;
    animation: floatIllustration 3s ease-in-out infinite;
}

@keyframes floatIllustration {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 1024px) {
    .rti-hero-illustration {
        flex-direction: column;
    }
}

/* ═══════════════════════════════════════════════════════════
   STYLE 9 : HERO AVEC CARDS/STATS EN OVERLAY
   ═══════════════════════════════════════════════════════════ */
.rti-hero-cards {
    position: relative;
    min-height: 600px;
    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: visible;
}

.rti-hero-stats-cards {
    display: flex;
    gap: var(--space-6);
    margin-top: var(--space-12);
    flex-wrap: wrap;
    justify-content: center;
}

.rti-hero-stat-card {
    background: var(--rti-white);
    color: var(--rti-blue);
    padding: var(--space-6);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    min-width: 180px;
    transform: translateY(50px);
    transition: transform 0.3s ease;
}

.rti-hero-stat-card:hover {
    transform: translateY(40px);
}

.rti-hero-stat-card .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--rti-blue);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.rti-hero-stat-card .label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--rti-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════
   STYLE 10 : HERO VIDEO BACKGROUND (optionnel)
   ═══════════════════════════════════════════════════════════ */
.rti-hero-video {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rti-white);
    overflow: hidden;
}

.rti-hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.rti-hero-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 74, 127, 0.7);
    z-index: 2;
}

.rti-hero-video .rti-hero-content {
    position: relative;
    z-index: 3;
}

/* ═══════════════════════════════════════════════════════════
   ÉLÉMENTS COMMUNS À TOUS LES HERO
   ═══════════════════════════════════════════════════════════ */

/* Breadcrumb dans le hero */
.rti-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.9);
}

.rti-hero-breadcrumb a,
.rti-hero-breadcrumb a:link,
.rti-hero-breadcrumb a:visited {
    color: #fff !important;
    text-decoration: none;
    transition: opacity 0.3s;
}

.rti-hero-breadcrumb a:hover {
    opacity: 0.7;
}

.rti-hero-breadcrumb span {
    color: rgba(255, 255, 255, 0.7);
}

/* Badge dans le hero */
.rti-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(164, 36, 59, 0.2);
    color: var(--rti-white);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
}

/* Scroll indicator */
.rti-hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1 !important;
    cursor: pointer;
    animation: bounceScroll 2s infinite;
    pointer-events: none !important;
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.rti-hero-scroll svg {
    width: 30px !important;
    height: 30px !important;
    color: var(--rti-white);
    display: block;
    pointer-events: auto !important;
}

@keyframes bounceScroll {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* Responsive pour tous les HERO */
@media (max-width: 768px) {
    .rti-hero-image,
    .rti-hero-geometric,
    .rti-hero-pattern,
    .rti-hero-wave,
    .rti-hero-animated,
    .rti-hero-cards,
    .rti-hero-video {
        min-height: 500px;
        padding: var(--space-16) 0;
    }

    .rti-hero-minimal {
        min-height: 400px;
        padding: var(--space-12) 0;
    }

    .rti-hero-stat-card {
        min-width: 140px;
    }
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS SUPPLÉMENTAIRES
   ═══════════════════════════════════════════════════════════ */

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

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

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

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