/* ==========================================================================
   SAFIR - AGENCE DE VOYAGES ET DE TOURISME - CSS AMÉLIORÉ
   Adapté d'après le design du flyer officiel
   ========================================================================== */

:root {
    /* Couleurs principales du flyer SAFIR */
    --safir-red: #C41E3A;           /* Rouge principal du logo SAFIR */
    --safir-orange: #E67E22;        /* Orange principal des vagues */
    --safir-yellow: #F39C12;        /* Jaune/orange clair des vagues */
    --safir-dark-orange: #D35400;   /* Orange plus foncé */
    --safir-footer-red: #A93226;    /* Rouge du pied de page du flyer */
    --safir-navy: #2C3E50;          /* Bleu marine pour contraste */
    --safir-white: #FFFFFF;
    --safir-light-gray: #F8F9FA;
    --safir-text-dark: #2C3E50;
    --safir-text-light: #5D6D7E;
    
    /* Gradients inspirés du flyer */
    --safir-gradient-main: linear-gradient(135deg, var(--safir-orange) 0%, var(--safir-yellow) 50%, var(--safir-dark-orange) 100%);
    --safir-gradient-hero: linear-gradient(120deg, var(--safir-red) 0%, var(--safir-orange) 40%, var(--safir-yellow) 100%);
    --safir-wave-gradient: linear-gradient(45deg, var(--safir-orange), var(--safir-yellow), var(--safir-dark-orange));
}

/* ==========================================================================
   STYLES GÉNÉRAUX
   ========================================================================== */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--safir-text-light);
    background-color: var(--safir-white);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Smooth scrolling for all anchor links */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--safir-light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--safir-orange);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--safir-red);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
    color: var(--safir-text-dark);
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--safir-red);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--safir-orange);
    transform: translateY(-1px);
}

/* ==========================================================================
   NAVBAR - LOGO SAFIR ADAPTÉ
   ========================================================================== */
.navbar {
    background-color: var(--safir-white) !important;
    border-bottom: 3px solid var(--safir-yellow);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: relative;
    z-index: 1000;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--safir-wave-gradient);
}

.navbar-brand {
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--safir-red) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--safir-orange) !important;
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--safir-text-dark) !important;
    font-weight: 600;
    margin: 0 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--safir-gradient-main);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.navbar-nav .nav-link:hover {
    color: var(--safir-red) !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   SECTION HÉRO - INSPIRÉE DU FLYER SAFIR
   ========================================================================== */
#hero {
    background: var(--safir-gradient-hero);
    min-height: 80vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/hadj-oumra-hero.jpg') center/cover;
    opacity: 0.3;
    z-index: 1;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    right: -50px;
    height: 100px;
    background: var(--safir-wave-gradient);
    border-radius: 50% 50% 0 0;
    transform: rotate(-2deg);
    z-index: 2;
}

#hero .container {
    position: relative;
    z-index: 3;
    text-align: center;
}

#hero h1 {
    color: var(--safir-white);
    font-size: 3.5rem;
    font-weight: 900;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

#hero p {
    color: var(--safir-white);
    font-size: 1.3rem;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

#hero .btn {
    background: var(--safir-white);
    color: var(--safir-red);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s both;
}

#hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
    background: var(--safir-light-gray);
}

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

/* ==========================================================================
   SECTIONS DE CONTENU
   ========================================================================== */
.section-title {
    font-size: 2.5rem;
    color: var(--safir-text-dark);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 60px;
    height: 4px;
    background: var(--safir-gradient-main);
    transform: translateX(-50%);
}

/* ==========================================================================
   CARTES DE SERVICES - STYLE SAFIR
   ========================================================================== */
.service-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: var(--safir-white);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-card .card-body {
    padding: 2.5rem;
    text-align: center;
}

.service-card .card-icon {
    width: 80px;
    height: 80px;
    background: var(--safir-gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .card-icon {
    transform: scale(1.1);
}

.service-card .card-icon i {
    font-size: 2rem;
    color: var(--safir-white);
}

.service-card .card-title {
    color: var(--safir-text-dark);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card .card-text {
    color: var(--safir-text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-card .btn {
    background: var(--safir-gradient-main);
    color: var(--safir-white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-card .btn:hover {
    background: var(--safir-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ==========================================================================
   FOOTER - STYLE SAFIR
   ========================================================================== */
footer {
    background: var(--safir-footer-red);
    color: var(--safir-white);
    padding: 3rem 0 1rem;
    margin-top: 5rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    height: 100px;
    background: var(--safir-wave-gradient);
    border-radius: 0 0 50% 50%;
    transform: rotate(2deg);
}

footer h5 {
    color: var(--safir-white);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

footer p, footer li {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

footer a {
    color: var(--safir-yellow);
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--safir-white);
    text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero p {
        font-size: 1.1rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .service-card .card-body {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    #hero h1 {
        font-size: 2rem;
    }
    
    #hero .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .service-card .card-body {
        padding: 1.5rem;
    }
}