
/* Importation des styles de base depuis le CSS principal */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary-green: #4ABDAC;
    --secondary-green: #3A9B8E;
    --accent-yellow: #FFD369;
    --text-dark: #1A2E3B;
    --text-light: #5A6C7D;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-light: #e9ecef;
    --shadow-subtle: 0 2px 8px rgba(26, 46, 59, 0.06);
    --shadow-medium: 0 4px 16px rgba(26, 46, 59, 0.1);
    --shadow-strong: 0 8px 25px rgba(26, 46, 59, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Base styles */
/* 1️⃣ Supprime les marges par défaut du navigateur */
html, body {
    margin: 0;
    padding: 0;
}

/* 2️⃣ Supprime padding/margin de #primary */
#primary {
    margin: 0;
    padding: 0;
}

#primary,
#primary .container {
    padding-left: 0;
    padding-right: 0;
}



.page-header .container {
    padding: 0; /* supprime padding interne du container */
}

.page-header .page-title {
    margin: 0;  /* supprime les marges verticales par défaut */
    padding: 0; /* supprime padding éventuel */
}


/* Header magnifique avec dégradé */
.page-header {
    position: relative;
    background: linear-gradient(135deg, 
        var(--primary-green) 0%,
        var(--secondary-green) 25%,
        #2E8B7A 50%,
        var(--primary-green) 75%,
        var(--accent-yellow) 100%);
    padding: 40px 0;
    margin-top:40px;
    overflow: hidden;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 20%;
    left: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

.page-title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem)
    font-weight: 700;
    margin: 0 0 24px 0;
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-dark);
     text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(74, 189, 172, 0.4),
        0 0 40px rgba(74, 189, 172, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    
}



.page-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0 0;
    position: relative;
    z-index: 2;
    opacity: 0.9;
    margin-bottom:20px;
}

.page-description {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: var(--shadow-medium);
}

.page-description p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-dark);
    text-align: left;
}

.page-description strong {
    color: var(--primary-green);
    font-weight: 700;
}

.features-list {
    margin: 20px 0;
    padding-left: 20px;
    list-style: none;
    text-align: left;
}

.features-list li {
    margin-bottom: 12px;
    color: var(--text-dark);
    position: relative;
    padding-left: 20px;
}

.features-list li::before {
    position: absolute;
    left: 0;
    top: 0;
}

.page-cta {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 0;
    color: var(--text-dark);
    font-weight: 600;
}

/* Contrôles des résultats */
.results-controls {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.results-controls .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.results-info {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    color: var(--primary-green);
    font-size: 1.1rem;
}

/* Section des résultats */
.results-section {
    background: var(--bg-light);
   
    min-height: 60vh;
}

.histoires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Cartes des continents simplifiées */
.histoire-card {
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-subtle);
    height: 220px;
}

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

.continent-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.histoire-image {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.histoire-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.histoire-card:hover .histoire-image img {
    transform: scale(1.08);
}

.histoire-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 40%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: flex-start;
    padding: 15px;
}

.continent-info {
    display: flex;
    gap: 10px;
}

.continent-title,
.spots-count {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    border: 1px solid rgba(255,255,255,0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .histoires-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 25px;
    }
    
    .histoire-card {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .page-header {
        padding: 60px 0;
    }
    
    .page-description {
        padding: 25px;
        margin: 0 15px;
    }
    
    .histoires-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .histoire-card {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 50px 0;
    }
    
    .page-description {
        padding: 20px;
        margin: 0 10px;
    }
    
    .page-description p {
        font-size: 0.95rem;
    }
    
    .histoires-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 0 10px;
    }
    
    .histoire-card {
        height: 160px;
    }
}

/* Animations d'entrée */
@media (prefers-reduced-motion: no-preference) {
    .histoire-card {
        animation: fadeInUp 0.6s ease-out;
        animation-fill-mode: both;
    }
    
    .histoire-card:nth-child(1) { animation-delay: 0.1s; }
    .histoire-card:nth-child(2) { animation-delay: 0.2s; }
    .histoire-card:nth-child(3) { animation-delay: 0.3s; }
    .histoire-card:nth-child(4) { animation-delay: 0.4s; }
    .histoire-card:nth-child(5) { animation-delay: 0.5s; }
}

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