/**
 * Main CSS - Fichier principal combiné
 * Pas de la Case Refonte 2026
 *
 * Ordre d'import :
 * 1. Variables (tokens de design)
 * 2. Base (reset, typographie)
 * 3. Layout (grilles, conteneurs)
 * 4. Components (boutons, cartes, formulaires)
 * 5. Header & Footer
 * 6. Hero
 * 7. Pages spécifiques
 */

@import url('variables.css');
@import url('base.css');
@import url('layout.css');
@import url('components.css');
@import url('header.css');
@import url('footer.css');
@import url('hero.css');
@import url('pages.css');

/* ============================================
   UTILITAIRES SUPPLÉMENTAIRES
   ============================================ */

/* Texte */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-muted { color: var(--color-gray-500); }
.text-white { color: var(--color-white); }

.font-bold { font-weight: var(--font-bold); }
.font-semibold { font-weight: var(--font-semibold); }
.font-medium { font-weight: var(--font-medium); }

.uppercase { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }

/* Backgrounds */
.bg-white { background-color: var(--color-white); }
.bg-light { background-color: var(--color-gray-50); }
.bg-dark { background-color: var(--color-gray-900); }
.bg-primary { background-color: var(--color-primary); }

/* Bordures */
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Ombres */
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Dimensions */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeIn { animation: fadeIn 0.5s ease-out; }
.animate-fadeInUp { animation: fadeInUp 0.5s ease-out; }
.animate-slideInLeft { animation: slideInLeft 0.5s ease-out; }
.animate-slideInRight { animation: slideInRight 0.5s ease-out; }

/* Animation au scroll (intersection observer) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   SECTIONS HOMEPAGE SPÉCIFIQUES
   ============================================ */

/* Section avantages */
.advantages {
    padding: var(--space-16) 0;
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
}

.advantage-card {
    text-align: center;
    padding: var(--space-8);
    background-color: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.advantage-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    border-radius: var(--radius-xl);
    font-size: 2.5rem;
}

.advantage-card__title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-3);
    color: var(--color-gray-900);
}

.advantage-card__text {
    font-size: var(--text-base);
    color: var(--color-gray-600);
    line-height: var(--leading-relaxed);
}

/* Section hôtels */
.hotels-section {
    background-color: var(--color-gray-50);
}

.hotels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
}

/* Section actualités */
.news-section__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 64em) {
    .news-section__grid {
        grid-template-columns: 2fr 1fr;
    }
}

.news-featured {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 400px;
}

.news-featured__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-featured__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-8);
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--color-white);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.news-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4);
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.news-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    text-decoration: none;
}

.news-item__image {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.news-item__content {
    flex: 1;
}

.news-item__title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-1);
    line-height: var(--leading-snug);
}

.news-item__date {
    font-size: var(--text-xs);
    color: var(--color-gray-500);
}

/* ============================================
   CORRECTION ESPACEMENT HEADER FIXE
   ============================================ */

body {
    padding-top: 70px; /* Hauteur du header */
}

/* Pages avec hero full-height */
body.has-hero {
    padding-top: 0;
}

body.has-hero .header {
    background-color: transparent;
    box-shadow: none;
}

body.has-hero .header--scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .header,
    .footer,
    .mobile-menu,
    .footer__back-to-top,
    .btn {
        display: none !important;
    }

    body {
        padding-top: 0;
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }
}
