/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    --primary: #F26A21; /* Vibrant Orange */
    --primary-light: #FF8847;
    --primary-dark: #D45412;
    --secondary: #0A3D6B; /* Deep Ocean Blue */
    --secondary-light: #185E9E;
    
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #FFFFFF;
    
    --bg-main: #FAFAFA;
    --bg-light: #F0F4F8; /* Very light blue/gray */
    --bg-white: #FFFFFF;
    
    --font-main: 'Outfit', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/logo.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50%; 
    opacity: 0.05; 
    z-index: -1;
    pointer-events: none;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

@media (max-width: 1200px) {
    .container {
        padding: 0 18px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 14px;
    }

    .section-padding {
        padding: 72px 0;
    }
}


/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4 {
    color: var(--secondary);
    line-height: 1.2;
    font-weight: 700;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.7rem);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.hero .title {
    font-size: clamp(2.2rem, 5vw, 5rem);
}

.hero .description {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.bg-light {
    background-color: var(--bg-light);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
    box-shadow: 0 10px 20px rgba(242, 106, 33, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(242, 106, 33, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-color: var(--text-light);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--secondary);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background-color: var(--secondary);
    color: var(--text-light);
    transform: translateY(-3px);
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
    background: transparent;
}
.header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.82);
    pointer-events: none;
    z-index: -1;
}
.nav-link {
    font-size: 1.02rem;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

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

.logo img {
    height: 75px;
    transition: var(--transition);
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.7));
}

.logo {
    display: flex;
    align-items: center;
}

    .site-title {
        margin-left: 8px;
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--text-light);
        text-shadow: 0 1px 4px rgba(0,0,0,0.9);
        display: inline-block;
        position: relative;
        z-index: 2;
    }

.header.scrolled .site-title {
    color: var(--text-light);
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}


.header.scrolled .logo img {
    height: 60px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
}

.header.scrolled .nav-link {
    color: var(--text-light);
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-inscription {
    background-color: var(--primary);
    color: var(--text-light) !important;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-inscription::after {
    display: none;
}

.btn-inscription:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 106, 33, 0.3);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
}

.header.scrolled .mobile-toggle {
    color: var(--secondary);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 10s ease-out;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

/* --- Positions par défaut (Ordinateur ≥ 993px) --- */
/* hero-1 : avion centré légèrement vers le haut pour ne pas couper les ailes */
.slide-1 { background-position: center 40%; }

/* hero-2 : bus à gauche — position légèrement décalée à gauche pour garder le bus visible */
.slide-2 { background-position: 30% center; }


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.7) 0%,
        rgba(0,0,0,0.5) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding-top: 80px; /* Offset for header */
}

.hero .subtitle {
    display: inline-block;
    font-size: 2rem; /* larger subtitle */
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--primary-light);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .title {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 5px;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero .highlight {
    color: var(--primary);
}

.hero .description {
    font-size: 1.2rem;
    margin-bottom: 15px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 1s ease 0.8s both;
}

/* =========================================
   DESTINATIONS SECTION
   ========================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 40px;
}

.portfolio-grid,
.testimonials-grid,
.news-grid,
.footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}


.destination-card {
    background-color: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

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

.card-image {
    height: 250px;
    position: relative;
    background-color: var(--secondary-light);
    background-size: cover;
    background-position: center;
}

.ci-bg {
    background-image: url('https://images.unsplash.com/photo-1598463934336-7c385ecb2d28?auto=format&fit=crop&w=800&q=80');
}

.ma-bg {
    background-image: url('MA/P06.avif');
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #e9eef3;
}

.tags-container {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.tag {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.tag-link {
    background: linear-gradient(135deg, #F26A21 0%, #e8380d 60%, #c0392b 100%);
    background-size: 200% auto;
    color: #fff;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 18px rgba(242, 106, 33, 0.55);
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
    animation: tagPulse 2.5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

/* Effet brillance */
.tag-link::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 50%;
    height: 200%;
    background: rgba(255,255,255,0.18);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
    pointer-events: none;
}

.tag-link:hover::after {
    left: 130%;
}

.tag-link:hover {
    background-position: right center;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 28px rgba(242, 106, 33, 0.70);
}

@keyframes tagPulse {
    0%,100% { box-shadow: 0 4px 18px rgba(242,106,33,0.55); }
    50%      { box-shadow: 0 6px 26px rgba(242,106,33,0.85); }
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-content h3 i {
    color: var(--primary);
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.features-list {
    margin-bottom: 30px;
}

.features-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary);
    font-weight: 500;
}

.features-list i {
    color: #4CAF50;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about {
    background-color: var(--bg-light);
    position: relative;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.about-more-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: auto;
    margin-bottom: 24px;
    background: var(--primary);
    color: var(--text-light);
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.about-more-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.about-more-button i {
    transition: transform 0.25s ease;
}

.about-more-button[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.about-more-content {
    margin-bottom: 30px;
    animation: aboutReveal 0.3s ease;
}

.about-reason {
    margin-bottom: 18px;
}

.about-reason h3 {
    margin: 0 0 6px;
    color: var(--secondary);
    font-size: 1.08rem;
}

.about-reason p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.about-slogan {
    color: var(--secondary) !important;
    margin: 24px 0 0 !important;
}

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

.stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    color: var(--secondary);
    font-weight: 500;
    margin-top: 5px;
}

.about-image-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

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

.mt-2 {
    margin-left: 40px;
}

.icon-large {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.glass-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* =========================================
   TESTIMONIALS & NEWS
   ========================================= */
.testimonials-grid,
.news-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#temoignages {
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(135deg, rgba(3, 13, 28, 0.94), rgba(8, 32, 57, 0.76)),
        url('../PUB/IFRANE FLYERS.jpeg') center 38% / cover no-repeat;
    background-attachment: scroll;
}

#temoignages .section-header h2,
#temoignages .section-header p {
    color: #f5f5f5;
}

.testimonial-card,
.news-card {
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.testimonial-card:hover,
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.testimonial-photo {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 18px;
    border: 3px solid var(--primary);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.testimonial-quote {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.testimonial-quote i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 4px;
}

.testimonial-quote p {
    color: #e9e9e9;
    font-size: 1rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-author strong {
    color: #ffffff;
}

.testimonial-author span {
    color: #cfcfcf;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.news-photo {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 16px;
}

.news-badge {
    display: inline-block;
    background: rgba(242, 106, 33, 0.12);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 15px;
}

.news-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.news-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.portfolio-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.partnership-grid {
    display: flex;
    justify-content: center;
}

.gallery-disclosure {
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-disclosure summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px 14px;
    background: #28a745;
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: var(--text-light);
    cursor: pointer;
    list-style: none;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.gallery-disclosure summary {
    max-width: 520px;
    margin: 0 auto;
}

.gallery-disclosure summary::-webkit-details-marker {
    display: none;
}

.gallery-summary-title {
    display: inline-flex;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 700;
}

.gallery-summary-title i {
    color: var(--primary);
    margin-right: 10px;
}

.gallery-disclosure-content {
    padding-top: 30px;
}

.gallery-disclosure-content > p {
    color: var(--text-muted);
    margin-bottom: 30px;
    text-align: center;
}

.photo-gallery .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.photo-gallery {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #f3f7fb;
}

.photo-gallery .gallery-disclosure {
    position: relative;
    z-index: 1;
}

.photo-gallery::before {
    content: "TOUR D'HORIZIONS";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    color: rgba(10, 61, 107, 0.16);
    font-size: clamp(3.5rem, 10vw, 9rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.45);
    transform: translate(-50%, -50%) rotate(-8deg);
    pointer-events: none;
}

.photo-gallery .portfolio-photo {
    height: 380px;
    object-fit: contain;
    background-color: var(--bg-light);
}

.portfolio-card {
    background: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.portfolio-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.portfolio-card h3 {
    padding: 20px 20px 8px;
    font-size: 1.25rem;
}

.portfolio-card p {
    padding: 0 20px 24px;
    color: var(--text-muted);
}

.parallax-section {
    position: relative;
    background:
        linear-gradient(rgba(7, 25, 46, 0.56), rgba(8, 38, 62, 0.7)),
        url('../assets/hero-1.png') left center / 50% 100% no-repeat,
        url('../assets/hero-2.png') right center / 50% 100% no-repeat,
        #08263e;
    background-attachment: scroll;
    color: var(--text-light);
    text-align: center;
}

.parallax-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.parallax-content h2 {
    color: var(--text-light);
    font-size: 2.3rem;
    margin-bottom: 16px;
}

.parallax-content p {
    font-size: 1.08rem;
    margin-bottom: 24px;
    color: rgba(255,255,255,0.9);
}

.video-section {
    background-color: var(--bg-light);
}

.video-container {
    max-width: 960px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(9, 43, 79, 0.18), 0 0 0 1px rgba(255,255,255,0.08), 0 0 30px rgba(28, 146, 214, 0.2);
    background: linear-gradient(135deg, #0b2f4a, #1d6a8f);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: videoReveal 0.9s ease-out;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.video-wrapper:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 24px 48px rgba(9, 43, 79, 0.22), 0 0 0 1px rgba(255,255,255,0.12), 0 0 40px rgba(28, 146, 214, 0.35);
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #0b2f4a, #1d6a8f);
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 96px;
    height: 96px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #fff;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 12px rgba(229, 57, 53, 0.18), 0 18px 40px rgba(7, 44, 80, 0.28);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, opacity 0.25s ease;
    z-index: 2;
}

.video-play-button:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background: linear-gradient(135deg, #ef5350, #d32f2f);
    box-shadow: 0 0 0 16px rgba(229, 57, 53, 0.2), 0 24px 48px rgba(7, 44, 80, 0.35);
}

.video-play-button.hidden {
    opacity: 0;
    pointer-events: none;
}


.video-wrapper video:not([poster]) + .video-play-button,
.video-wrapper video[poster] + .video-play-button {
    display: flex;
}

.video-wrapper video:focus + .video-play-button,
.video-wrapper video:focus-within + .video-play-button {
    opacity: 0.8;
}

@keyframes videoReveal {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--secondary);
    color: var(--text-light);
    padding: 80px 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 100px;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 10px;
}

.footer-brand p {
    opacity: 0.8;
    max-width: 300px;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    justify-content: flex-start;
    align-items: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: var(--text-light);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: #ffffff;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
    bottom: 0;
    left: 0;
}

.footer-links ul li {
    margin-bottom: 6px;
}

.footer-links ul li a {
    opacity: 0.8;
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.footer-contact ul li i {
    color: var(--primary);
}

.contact-buttons-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
}

.contact-buttons-row .btn {
    white-space: nowrap;
}

.footer-contact-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
}

.footer-contact-buttons .btn {
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

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

/* =========================================
   RESPONSIVE — Laptop (max 992px)
   ========================================= */
@media (max-width: 992px) {
    .section-padding { padding: 70px 0; }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .mt-2 { margin-left: 0; }

    .hero .title { font-size: 2rem; }

    .footer-grid { grid-template-columns: 1fr 1fr; }

    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 28px;
    }

    .stats { gap: 25px; }

    .testimonials-grid,
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* ---- Images hero — Laptop ---- */
    /* hero-1 : avion reste centré, très peu de rognage */
    .slide-1 { background-position: center 38%; }
    /* hero-2 : on rapproche un peu le bus du centre */
    .slide-2 { background-position: 35% center; }
}

/* =========================================
   RESPONSIVE — Tablette (max 768px)
   ========================================= */
@media (max-width: 768px) {

    .parallax-section {
        background-size: 100% 50%, 100% 50%, 100% 50%, auto;
        background-position: center, center top, center bottom, center;
    }

    /* ---- Navigation mobile ---- */
    .logo {
        display: flex;
        align-items: center;
        color: #fff;
        text-decoration: none;
    }
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1100;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(255,255,255,0.15);
        backdrop-filter: blur(6px);
        transition: var(--transition);
    }

    .header.scrolled .mobile-toggle {
        background: rgba(10, 61, 107, 0.1);
    }

    /* Overlay de fond quand le menu est ouvert */
    .navbar::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease;
        z-index: -1;
    }
    .navbar.active::before {
        opacity: 1;
        pointer-events: all;
    }

    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 78%;
        max-width: 380px;
        height: 100vh;
        background-color: #ffffff;
        border-left: 4px solid var(--primary);
        box-shadow: var(--shadow-lg);
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 1050;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 24px;
        overflow-y: auto;
    }

    .navbar.active { right: 0; }

    .nav-list {
        flex-direction: column;
        gap: 8px;
        text-align: left;
        width: 100%;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 10px 12px;
        border-bottom: 1px solid rgba(10, 61, 107, 0.12);
        color: var(--secondary);
        font-size: 1.15rem;
        font-weight: 600;
        text-shadow: none;
    }

    .header.scrolled .navbar .nav-link {
        color: var(--secondary);
        text-shadow: none;
    }

    .nav-link:hover,
    .nav-link.active {
        background-color: rgba(242, 106, 33, 0.1);
        color: var(--primary-dark);
        border-radius: 6px;
    }

    .btn-inscription {
        display: inline-flex;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        border-bottom: 0;
    }

    /* ---- Hero ---- */
    /* Hauteur réduite sur tablette : ratio plus proche du format paysage des images */
    .hero {
        height: 75vh;
        min-height: 450px;
    }

    /* background-size 100% auto : l'image s'étire à la pleine largeur sans zoom */
    .slide {
        background-size: 100% auto;
        background-color: #0A3D6B; /* Couleur de fond si l'image ne couvre pas toute la hauteur */
    }

    .hero .subtitle {
        font-size: 0.9rem;
        letter-spacing: 1.5px;
    }

    .hero .title { font-size: 1.8rem; }

    .hero .description {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .hero-buttons .btn { width: 100%; max-width: 280px; }

    /* ---- Sections ---- */
    .section-padding { padding: 60px 0; }

    .section-header { margin-bottom: 40px; }
    .section-header h2 { font-size: 2rem; }

    /* ---- Cards ---- */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tags-container {
        flex-wrap: wrap;
        gap: 8px;
        top: 12px;
        right: 12px;
    }

    .tag { font-size: 0.75rem; padding: 4px 12px; }

    /* ---- À propos ---- */
    .about-text h2 { font-size: 2rem; }

    .stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .stat-number { font-size: 2rem; }

    /* ---- Footer ---- */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer { padding: 50px 0 0; }
    .footer-grid { margin-bottom: 40px; }

    .social-links { flex-wrap: wrap; }

    .testimonials-grid,
    .news-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .photo-gallery .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .photo-gallery .portfolio-photo {
        height: 300px;
    }

    .gallery-disclosure {
        max-width: 100%;
    }

    .footer-contact-buttons {
        width: 100%;
    }

    .contact-buttons-row {
        flex-wrap: wrap;
    }

    /* ---- Modal inscription ---- */
    .modal-content {
        padding: 28px 22px;
        margin: 0 10px;
    }

    /* ---- Galerie ---- */
    .gallery-modal-inner { padding: 20px 12px 50px; }

    .gallery-header h2 { font-size: 1.5rem; }

    .gallery-tabs {
        gap: 8px;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 6px;
        /* Cacher la scrollbar tout en gardant le scroll */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .gallery-tabs::-webkit-scrollbar { display: none; }

    .gtab { white-space: nowrap; font-size: 0.82rem; padding: 7px 16px; }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    /* ---- Lightbox ---- */
    .lightbox-prev { left: 6px; }
    .lightbox-next { right: 6px; }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    /* ---- Images hero — Tablette ---- */
    /*
     * Avec background-size 100% auto, l'image occupe toute la largeur.
     * On ajuste uniquement la position VERTICALE pour centrer le sujet.
     * hero-1 (avion) : l'avion est dans la moitié haute — on affiche le haut
     * hero-2 (bus)   : le bus est au centre vertical — on centre
     */
    .slide-1 { background-position: center top; }
    .slide-2 { background-position: center center; }

    /* Renforcement de l'overlay pour lisibilité du texte */
    .hero-overlay {
        background: linear-gradient(
            to bottom,
            rgba(10, 61, 107, 0.4) 0%,
            rgba(10, 61, 107, 0.25) 60%,
            rgba(10, 61, 107, 0.1) 100%
        );
    }
}

/* =========================================
   RESPONSIVE — Mobile (max 480px)
   ========================================= */
@media (max-width: 480px) {

    .container { padding: 0 14px; }

    /* ---- Hero ---- */
    /* Hauteur très réduite sur mobile portrait : les images paysage sont bien visibles */
    .hero {
        height: 58vh;
        min-height: 360px;
    }

    /* L'image s'étire à 100% de la largeur, sa hauteur suit naturellement */
    .slide {
        background-size: 100% auto;
        background-color: #0A3D6B;
    }

    .hero .title { font-size: 1.5rem; line-height: 1.15; }
    .hero .subtitle { font-size: 0.8rem; }
    .hero-content { padding-top: 70px; }

    .header {
        padding: 12px 0;
    }

    .header.scrolled {
        padding: 8px 0;
    }

    .header-container {
        padding: 0 14px;
    }

    /* ---- Watermark logo — réduit sur petit écran ---- */
    body::before { background-size: 85%; }

    /* ---- Navigation ---- */
    .navbar { width: 92%; max-width: 340px; padding: 32px 18px; }
    .nav-list { gap: 8px; }
    .nav-link { font-size: 1.05rem; }

    .site-title {
        font-size: 0.8rem;
        margin-left: 6px;
        white-space: nowrap;
    }

    .logo img,
    .header.scrolled .logo img {
        height: 48px;
    }

    .photo-gallery .portfolio-photo {
        height: 240px;
    }

    .gallery-disclosure summary {
        padding: 8px 10px;
    }

    .gallery-summary-title {
        font-size: 0.95rem;
    }

    .gallery-summary-title i {
        margin-right: 6px;
    }

    /* ---- Typographie ---- */
    .section-header h2 { font-size: 1.7rem; }
    .about-text h2 { font-size: 1.7rem; }

    /* ---- Cards ---- */
    .card-image { height: 200px; }
    .card-content { padding: 20px; }
    .card-content h3 { font-size: 1.45rem; }

    /* ---- Stats — colonne unique ---- */
    .stats {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* ---- Glass cards ---- */
    .glass-card { padding: 22px 18px; }

    /* ---- Footer ---- */
    .footer-logo { height: 80px; }
    .social-links a { width: 36px; height: 36px; }

    /* ---- Boutons ---- */
    .btn { padding: 12px 24px; font-size: 0.92rem; }

    .testimonial-photo {
        width: 72px;
        height: 72px;
    }

    .news-photo {
        height: 160px;
    }

    /* ---- Modal ---- */
    .modal-content { padding: 22px 16px; border-radius: 16px; }
    .modal-content h2 { font-size: 1.4rem; }

    /* ---- Galerie ---- */
    .gallery-header h2 { font-size: 1.25rem; }
    .gallery-header p { font-size: 0.9rem; }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .gallery-close,
    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* ---- Tags sur les cartes ---- */
    .tags-container {
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
    }

    /* ---- Images hero — Mobile portrait ---- */
    /*
     * Avec background-size 100% auto, l'image occupe toute la largeur — pas de zoom.
     * hero-1 (avion) : l'avion est en haut — on affiche depuis le haut
     * hero-2 (bus)   : le bus est au centre de l'image — on centre verticalement
     */
    .slide-1 { background-position: center top; }
    .slide-2 { background-position: center 40%; }

    /* Overlay encore plus opaque sur petit écran */
    .hero-overlay {
        background: linear-gradient(
            to bottom,
            rgba(10, 61, 107, 0.5) 0%,
            rgba(10, 61, 107, 0.3) 60%,
            rgba(10, 61, 107, 0.15) 100%
        );
    }
}

/* =========================================
   RESPONSIVE — Très petit mobile (max 360px)
   ========================================= */
@media (max-width: 360px) {
    .hero .title { font-size: 1.3rem; }
    .section-header h2 { font-size: 1.5rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .btn-inscription { font-size: 0.8rem; padding: 8px 14px; }

    /* ---- Images hero — Très petit mobile ---- */
    /* On centre l'image — les appareils très étroits rognent de toute façon */
    .slide-1 { background-position: center 20%; }
    .slide-2 { background-position: 12% center; }
}


/* =========================================
   MODAL INSCRIPTION
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.4s ease-out;
}

.modal-content h2 {
    margin-bottom: 10px;
    color: var(--secondary);
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-main);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(242, 106, 33, 0.1);
}

#inscription {
    scroll-margin-top: 100px;
}

.inscription-panel {
    position: relative;
    overflow: hidden;
}

.inscription-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(242, 106, 33, 0.05), rgba(13, 93, 166, 0.05));
    pointer-events: none;
}

.inscription-form {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.inscription-form .form-group:last-of-type,
.inscription-form .form-group:nth-child(4) {
    grid-column: 1 / -1;
}

.inscription-form .form-group {
    margin-bottom: 0;
}

.companion-options {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.companion-options legend {
    float: left;
    width: 100%;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary);
}

.companion-options label {
    display: flex !important;
    align-items: center;
    gap: 7px;
    margin: 0;
    cursor: pointer;
}

.companion-options input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    accent-color: var(--primary);
}

[data-companion-names][hidden] {
    display: none !important;
}

.reservation-fee {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(13, 93, 166, 0.18);
    border-radius: 8px;
    color: var(--secondary);
    background: rgba(13, 93, 166, 0.05);
    cursor: pointer;
}

.reservation-fee input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    accent-color: var(--primary);
}

.reservation-fee strong {
    white-space: nowrap;
}

.inscription-form .btn {
    grid-column: 1 / -1;
}

.receipt-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.receipt-actions .btn {
    min-height: 44px;
}

/* =========================================
   AFFICHAGE DIRECT DU REÇU D'INSCRIPTION
   ========================================= */
.modal-content.has-receipt {
    max-width: 760px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 24px;
}

.receipt-view-wrapper {
    margin: 10px auto;
    max-width: 680px;
    text-align: left;
    animation: fadeInUp 0.35s ease-out;
}

.receipt-success-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #edfcf2;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 18px;
    color: #166534;
}

.receipt-success-banner i {
    font-size: 1.8rem;
    color: #16a34a;
    flex-shrink: 0;
}

.receipt-success-banner h3 {
    margin: 0 0 2px 0;
    font-size: 1.05rem;
    color: #14532d;
    font-weight: 700;
}

.receipt-success-banner p {
    margin: 0;
    font-size: 0.88rem;
    color: #15803d;
}

.receipt-actions-toolbar {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.receipt-actions-toolbar.bottom {
    margin-top: 22px;
    margin-bottom: 10px;
}

.receipt-actions-toolbar .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    padding: 10px 18px;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.receipt-paper {
    background: #ffffff;
    border: 1px solid #dce4eb;
    border-radius: 16px;
    padding: 30px 26px;
    box-shadow: 0 10px 30px rgba(13, 93, 166, 0.08);
    position: relative;
}

.receipt-paper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #0A3D6B 0%, #0d5da6 50%, #185E9E 100%);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 22px;
    box-shadow: 0 6px 20px rgba(10, 61, 107, 0.2);
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.receipt-paper-header::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -30px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.receipt-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.receipt-brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 10px;
    padding: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.receipt-brand h2 {
    margin: 0;
    font-size: 1.35rem;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.receipt-brand span {
    font-size: 0.82rem;
    color: #dbeafe;
    display: block;
    margin-top: 2px;
    font-weight: 400;
}

.receipt-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    position: relative;
    z-index: 1;
}

.receipt-meta-badge {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(4px);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.receipt-meta-id {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.receipt-meta-date {
    font-size: 0.82rem;
    color: #dbeafe;
    font-weight: 500;
}

.receipt-intro {
    margin-bottom: 16px;
}

.receipt-intro h4 {
    margin: 0 0 4px 0;
    font-size: 1.15rem;
    color: #0f172a;
    font-weight: 700;
}

.receipt-intro p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.receipt-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 0.93rem;
}

.receipt-data-table th,
.receipt-data-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
    vertical-align: top;
}

.receipt-data-table th {
    width: 40%;
    color: #475569;
    font-weight: 600;
    background: #f8fafc;
}

.receipt-data-table td {
    color: #0f172a;
    font-weight: 500;
}

.receipt-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dcfce7;
    color: #15803d;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 3px 10px;
    border-radius: 20px;
}

.receipt-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px dashed #cbd5e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.receipt-qr-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
}

.receipt-qr-img {
    display: block;
    width: 95px;
    height: 95px;
    border-radius: 6px;
    background: #fff;
    padding: 3px;
    border: 1px solid #cbd5e1;
}

.receipt-qr-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.receipt-qr-badge {
    align-self: flex-start;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    background: #e0f2fe;
    color: #0369a1;
    padding: 2px 7px;
    border-radius: 10px;
}

.receipt-qr-details strong {
    font-size: 13px;
    color: #0f172a;
}

.receipt-qr-details p {
    margin: 0;
    font-size: 11px;
    color: #64748b;
    max-width: 200px;
    line-height: 1.3;
}

.receipt-agency-info {
    font-size: 11.5px;
    color: #64748b;
    text-align: right;
    line-height: 1.5;
}

.receipt-agency-info p {
    margin: 2px 0;
}

.receipt-agency-info strong {
    color: #0d5da6;
    font-size: 12.5px;
}

@media (max-width: 600px) {
    .receipt-paper {
        padding: 18px 14px;
    }
    .receipt-paper-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .receipt-meta {
        align-items: flex-start;
        margin-top: 8px;
    }
    .receipt-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .receipt-agency-info {
        text-align: left;
    }
    .receipt-data-table th {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .inscription-form {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   GALERIE DESTINATIONS CÔTE D'IVOIRE
   ========================================= */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    inset: 0;
    background: rgba(5, 20, 45, 0.92);
    backdrop-filter: blur(8px);
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.gallery-modal.open {
    display: block;
}

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

.gallery-modal-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 30px 60px;
    position: relative;
    min-height: 100vh;
}

/* Bouton fermer */
.gallery-close {
    position: fixed;
    top: 20px;
    right: 25px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 3100;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(242,106,33,0.4);
}

.gallery-close:hover {
    background: var(--primary-dark);
    transform: scale(1.1) rotate(90deg);
}

/* En-tête galerie */
.gallery-header {
    text-align: center;
    margin-bottom: 35px;
    padding-top: 10px;
}

.gallery-header h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 10px;
}

.gallery-header h2 i {
    color: var(--primary);
    margin-right: 10px;
}

.gallery-header p {
    color: rgba(255,255,255,0.65);
    font-size: 1.05rem;
}

/* Onglets catégories */
.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 35px;
}

.gtab {
    padding: 8px 22px;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.2);
    background: transparent;
    color: rgba(255,255,255,0.75);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.gtab:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(242,106,33,0.08);
}

.gtab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(242,106,33,0.35);
}

/* Grille images */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: rgba(255,255,255,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,61,107,0.8) 0%, transparent 60%);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    font-size: 1.8rem;
    color: #fff;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item.hidden {
    display: none;
}

/* =========================================
   LIGHTBOX
   ========================================= */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease;
}

.lightbox.open {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.88); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.lightbox-content p {
    color: rgba(255,255,255,0.7);
    margin-top: 14px;
    font-size: 0.95rem;
    letter-spacing: 1px;
    font-weight: 500;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 25px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 4100;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(242,106,33,0.4);
}

.lightbox-close:hover {
    background: var(--primary-dark);
    transform: scale(1.1) rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.25);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 4100;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

/* Bouton Admin Animé */
.btn-admin {
    background: linear-gradient(45deg, #11998e, #38ef7d) !important;
    color: white !important;
    padding: 8px 15px !important;
    border-radius: 20px !important;
    font-weight: bold !important;
    animation: pulse-admin 2s infinite;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-admin:hover {
    transform: scale(1.05);
    animation: none;
    background: linear-gradient(45deg, #38ef7d, #11998e) !important;
}

@keyframes pulse-admin {
    0% {
        box-shadow: 0 0 0 0 rgba(17, 153, 142, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(17, 153, 142, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(17, 153, 142, 0);
    }
}

/* Animation Voyage Admin */
.travel-loader {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.globe-icon {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.2);
    animation: pulse-globe 2s ease-in-out infinite;
}

.plane-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: fly-around 3s linear infinite;
}

.plane-icon {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
    font-size: 1.5rem;
    color: #38ef7d;
    filter: drop-shadow(0 0 5px #11998e);
}

@keyframes fly-around {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-globe {
    0%, 100% { transform: scale(1); color: rgba(255, 255, 255, 0.2); }
    50% { transform: scale(1.1); color: rgba(255, 255, 255, 0.4); }
}

/* Animation Login Admin (Passeport) */
.passport-loader {
    position: relative;
    width: 100px;
    height: 120px;
}

.passport-icon {
    font-size: 5rem;
    color: var(--primary);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.stamp-icon {
    font-size: 4rem;
    color: #dc3545; /* Tampon rouge */
    position: absolute;
    top: -30px;
    right: -30px;
    opacity: 0;
    animation: stamp-action 3.5s ease-in-out forwards;
}

@keyframes stamp-action {
    0% { transform: scale(3) translateY(-50px) rotate(30deg); opacity: 0; }
    15% { transform: scale(3) translateY(-50px) rotate(30deg); opacity: 1; }
    25% { transform: scale(0.9) translateY(10px) rotate(-15deg); opacity: 1; }
    35% { transform: scale(1.1) translateY(0px) rotate(-15deg); opacity: 1; }
    45% { transform: scale(1) translateY(10px) rotate(-15deg); opacity: 1; }
    100% { transform: scale(1) translateY(10px) rotate(-15deg); opacity: 1; }
}

/* Animation Retour Accueil (Bus) */
.bus-loader {
    position: relative;
    width: 250px;
    height: 100px;
    overflow: hidden;
}

.bus-icon {
    font-size: 3.5rem;
    color: #38ef7d;
    position: absolute;
    bottom: 10px;
    right: -60px;
    transform: scaleX(-1);
    animation: drive-bus-return 3s ease-in-out forwards;
}

.road-line-return {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(-90deg, rgba(255,255,255,0.3) 0, rgba(255,255,255,0.3) 20px, transparent 20px, transparent 40px);
    animation: move-road-return 0.8s linear infinite;
}

@keyframes drive-bus-return {
    0% { right: -60px; transform: scaleX(-1) translateY(0); }
    10% { transform: scaleX(-1) translateY(-5px); }
    20% { transform: scaleX(-1) translateY(0); }
    30% { transform: scaleX(-1) translateY(-3px); }
    50% { right: 100px; transform: scaleX(-1) translateY(0); }
    100% { right: 350px; transform: scaleX(-1) translateY(0); }
}

@keyframes move-road-return {
    0% { background-position: 0 0; }
    100% { background-position: 40px 0; }
}

/* Animation Car Inscription */
.car-loader {
    position: relative;
    width: 250px;
    height: 100px;
    overflow: hidden;
}

.car-icon {
    font-size: 4rem;
    color: var(--primary);
    position: absolute;
    bottom: 15px;
    left: -80px;
    animation: drive-car 5s ease-in-out forwards;
}

.car-road {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(90deg, #ccc 0, #ccc 20px, transparent 20px, transparent 40px);
    animation: move-road 0.8s linear infinite;
}

@keyframes drive-car {
    0% { left: -80px; transform: translateY(0); }
    10% { transform: translateY(-2px); }
    20% { transform: translateY(0); }
    30% { transform: translateY(-1px); }
    50% { left: 85px; transform: translateY(0); }
    70% { transform: translateY(-2px); left: 85px; }
    80% { transform: translateY(0); left: 85px; }
    100% { left: 300px; transform: translateY(0); }
}

/* =========================================
   RESPONSIVE DESIGN FIXES
   ========================================= */
@media (max-width: 992px) {
    .hero-buttons { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; gap: 15px; }
    .hero-buttons .btn { width: 100%; }
    .btn-admin { justify-content: center; margin: 10px 0; }
}

@media (max-width: 768px) {
    .about-container { flex-direction: column; text-align: center; }
    .stats { justify-content: center; flex-wrap: wrap; }
    .about-image-wrapper { margin-top: 30px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-contact ul { justify-content: center; align-items: center; display: flex; flex-direction: column; }
    .modal-content, .gallery-modal-inner { width: 95%; max-width: none; padding: 20px; }
    .form-group, #inscription-form .form-group input, #inscription-form .form-group select { width: 100%; }
    .gallery-tabs { flex-wrap: wrap; justify-content: center; }
    .photo-grid, .grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .section-header h2, .hero h1 { font-size: 2rem; }
    .hero-title-row { flex-direction: column; text-align: center; }
    .btn { padding: 12px 20px; font-size: 0.95rem; }
    .modal-content { padding: 15px; margin: 10px; }
    .cards-grid { grid-template-columns: 1fr; }
}


/* Animations pour le background Maroc */
@keyframes animFade { 0% { opacity: 0.6; } 100% { opacity: 1; } }
@keyframes animBlur { 0% { filter: blur(5px); } 100% { filter: blur(0); } }
@keyframes animBright { 0% { filter: brightness(1.4); } 100% { filter: brightness(1); } }
@keyframes animGray { 0% { filter: grayscale(0.8); } 100% { filter: grayscale(0); } }
@keyframes animZoom { 0% { transform: scale(1.03); } 100% { transform: scale(1); } }

.anim-fade { animation: animFade 0.6s ease-out forwards; }
.anim-blur { animation: animBlur 0.6s ease-out forwards; }
.anim-bright { animation: animBright 0.6s ease-out forwards; }
.anim-gray { animation: animGray 0.6s ease-out forwards; }
.anim-zoom { animation: animZoom 0.6s ease-out forwards; }
.btn-sm {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
}
