﻿/* --------------------- */
/* 🎨 BASE + RESET       */
/* --------------------- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* --------------------- */
/* ✨ HERO SECTION        */
/* --------------------- */
.hero-section {
    padding-top: 0px;
    height: calc(100vh - 100px);
    background-color: #005792;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 87, 146, 0.9)), url('../images/Home.jpg') no-repeat center center;
    background-size: cover;
    background-position: center;
    position: relative;
    animation: fadeInBg 5.5s ease-in-out forwards;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    opacity: 0;
    transform: translateY(300px);
    animation: scrollUpCinematic 2.8s ease-out forwards;
    animation-delay: 1.2s;
}

.hero-section h1,
.hero-section p,
.hero-section a {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-section h1 {
    animation-delay: 1.5s;
}

.hero-section p {
    animation-delay: 1.8s;
}

.hero-section a {
    animation-delay: 2.1s;
}

/* --------------------- */
/* 🚀 SERVICES SECTION    */
/* --------------------- */
.card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    background: white;
}

    .card::before {
        content: "";
        position: absolute;
        top: -100%;
        left: -100%;
        width: 300%;
        height: 300%;
        background: linear-gradient(135deg, #005792 0%, #00aaff 100%);
        transform: rotate(25deg);
        opacity: 0;
        transition: opacity 0.4s;
        z-index: 0;
    }

    .card:hover::before {
        opacity: 0.1;
    }

    .card:hover {
        transform: translateY(-5px) scale(1.03);
        box-shadow: 0 12px 28px rgba(0, 87, 146, 0.25);
    }

.card-body {
    position: relative;
    z-index: 1;
}

/* Icon color tweak */
.card i {
    color: #005792;
    transition: transform 0.3s;
}

.card:hover i {
    transform: scale(1.2);
    color: #007dc3;
}

/* --------------------- */
/* 💡 ABOUT SECTION      */
/* --------------------- */
.about-section img {
    transition: transform 0.4s ease-in-out, box-shadow 0.3s;
    border-radius: 1rem;
}

    .about-section img:hover {
        transform: scale(1.04);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

/* --------------------- */
/* 📞 CONTACT CTA        */
/* --------------------- */
.contact-cta {
    background: linear-gradient(135deg, #005792, #007dc3);
    animation: pulseBg 15s ease-in-out infinite alternate;
    color: white;
    position: relative;
}

    .contact-cta::before {
        content: "";
        position: absolute;
        top: 0;
        left: -50%;
        width: 200%;
        height: 100%;
        background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05), transparent 70%);
        animation: shimmer 30s linear infinite;
        z-index: 0;
    }

    .contact-cta > .container {
        position: relative;
        z-index: 1;
    }

/* --------------------- */
/* 🧙 ANIMATIONS         */
/* --------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInBg {
    from {
        filter: brightness(0.5) saturate(0.5);
    }

    to {
        filter: brightness(1) saturate(1);
    }
}

@keyframes pulseBg {
    from {
        background-position: 0% 50%;
    }

    to {
        background-position: 100% 50%;
    }
}

@keyframes shimmer {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(50%);
    }
}

@keyframes scrollUpCinematic {
    0% {
        opacity: 0;
        transform: translateY(300px);
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-image-container {
    height: calc(100vh - 100px);
    width: calc(88vw - 100px);
    background-image: url('ton-image.jpg'); /* déjà là */
    background-position: center center; /* CENTRER l’image horizontalement ET verticalement */
    background-repeat: no-repeat; /* éviter la répétition */
    background-size: cover; /* pour que l’image couvre tout le container */
    margin: auto; /* centre horizontalement le container s’il est en bloc */
    display: flex; /* pour aligner le contenu interne si besoin */
    align-items: center; /* centre verticalement contenu */
    justify-content: center;
}

.hero-overlay {
    opacity: 0;
    transform: translateY(300px);
    animation: scrollUpCinematic 2.8s ease-out forwards;
    animation-delay: 1.2s;
}

.about-image {
    width: 100%;
    height: 100%;
    max-height: 550px;
    object-fit: cover;
    display: block;
}

/* Désactiver le hover zoom dans la page About uniquement */
body.about-page .about-section img {
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
}

    body.about-page .about-section img:hover {
        transform: none !important;
        box-shadow: none !important;
    }

.core-value-card {
    position: relative;
    background-color: transparent;
    border: none;
    min-height: 300px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

    .core-value-card:hover {
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    }

.card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1rem;
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 1;
}

.front-content {
    background-color: rgba(0, 87, 146, 0.95); /* même bleu avec un peu de transparence */
    z-index: 2;
    opacity: 1;
    transform: scale(1);
}

.back-content {
    background-color: white;
    z-index: 1;
    opacity: 0;
    transform: scale(0.95);
}

.core-value-card:hover .front-content {
    opacity: 0;
    z-index: 1;
    transform: scale(0.95);
}

.core-value-card:hover .back-content {
    opacity: 1;
    z-index: 2;
    transform: scale(1);
}


.hero-services {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 87, 146, 0.9)), url('../images/cargo_plane3.jpg') no-repeat center center;
    background-size: cover;
    height: 500px;
    padding-top: 80px;
    
}

.hero-about {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 87, 146, 0.9)), url('/images/about2.jpg') no-repeat center center !important;
    background-size: cover;
    height: 500px;
    padding-top: 150px!important;
}

.hero-contact {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 87, 146, 0.9)), url('/images/contactus5.jpg') no-repeat center center !important;
    background-size: cover!important;
    height: 500px!important;
    padding-top: 150px !important;
}


.service-card {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    }

.service-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

.cta-section {
    background-color: #005792;
}

.footer-logo {
    max-height: 80px!important;
}