/* ========================================
   VARIABLES - Définition des couleurs et espacements
   ======================================== */
:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1e40af;
    --color-secondary: #f59e0b;
    --c-accent: var(--color-secondary);
    --color-light: #f8fafc;
    --color-dark: #1e293b;
    --color-text: #334155;
    --color-border: #e2e8f0;
    --color-shadow: rgba(0, 0, 0, 0.1);
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    
    --transition: all 0.3s ease;
}

/* ========================================
   RESET - Styles de base
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--color-text);
    background-color: #ffffff;
    line-height: 1.6;
}

/* ========================================
   CONTAINER - Largeur et centrage
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========================================
   HEADER - En-tête
   ======================================== */
.header {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(59, 130, 246, 0.95)),
        linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: calc(var(--spacing-xl) + 0.5rem) var(--spacing-md);
    text-align: center;
    box-shadow:
        0 6px 18px rgba(37, 99, 235, 0.22),
        inset 0 -2px 12px rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid rgba(245, 158, 11, 0.8);
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 200px at 20% -10%, rgba(255, 255, 255, 0.18), transparent 60%),
        radial-gradient(500px 240px at 90% 0%, rgba(255, 255, 255, 0.12), transparent 60%);
    pointer-events: none;
}

.header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 60%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.header .container {
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 2.7rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -1.2px;
    text-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
}

.tagline {
    font-size: 1.15rem;
    opacity: 0.9;
    font-weight: 400;
    text-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
}

/* ========================================
   MAIN CONTENT - Contenu principal
   ======================================== */
.main-content {
    padding: var(--spacing-xl) var(--spacing-md);
}

.intro {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.intro h2 {
    font-size: 2rem;
    color: var(--color-dark);
    margin-bottom: var(--spacing-md);
}

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

/* ========================================
   SECTION TITLE - Titres de sections
   ======================================== */
.section-title {
    font-size: 1.8rem;
    color: var(--color-dark);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    position: relative;
    padding-bottom: var(--spacing-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

/* ========================================
   MAPS GRID - Grille de cartes
   ======================================== */
.maps-grid {
    margin-bottom: var(--spacing-xl);
}

.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    grid-column: 1 / -1;
}

.maps-grid h2 {
    grid-column: 1 / -1;
}

/* ========================================
   MAP CARD - Carte individuelle
   ======================================== */
.map-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 15px var(--color-shadow);
    transition: var(--transition);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.map-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.map-card__image {
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.45), transparent 45%),
        linear-gradient(135deg, #4f8ef7 0%, #2563eb 60%, #1e40af 100%);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.map-card__image::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: none;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.map-icon {
    font-size: 4rem;
    position: relative;
    z-index: 1;
}

.map-icon img {
    width: 110px;
    height: auto;
    display: block;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

.map-card__content {
    padding: var(--spacing-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.map-card h3 {
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: var(--spacing-sm);
}

.map-card p {
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

/* ========================================
   FEATURES LIST - Liste de caractéristiques
   ======================================== */
.features-list {
    list-style: none;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.features-list li {
    padding: var(--spacing-xs) 0;
    color: var(--color-text);
    font-size: 0.9rem;
}

.features-list li::marker {
    color: var(--color-primary);
}

/* ========================================
   BUTTONS - Boutons
   ======================================== */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    width: 100%;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
}

.btn--primary:active {
    transform: translateY(0);
}

/* ========================================
   FEATURES SECTION - Section caractéristiques
   ======================================== */
.features {
    background: var(--color-light);
    padding: var(--spacing-xl) var(--spacing-md);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
}

/* ========================================
   FEATURE ITEM - Élément de caractéristique
   ======================================== */
.feature-item {
    text-align: center;
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-primary);
    transition: var(--transition);
}

.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.feature-item h4 {
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-bottom: var(--spacing-xs);
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--color-text);
}

/* ========================================
   FOOTER - Le Cagibi (comme sur les cartes)
   ======================================== */
footer {
    font-weight: 600;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(59, 130, 246, 0.95)),
        linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    box-shadow:
        0 4px 16px rgba(37, 99, 235, 0.25),
        inset 0 -2px 12px rgba(255, 255, 255, 0.08);
    border-top: 3px solid rgba(245, 158, 11, 0.8);
    padding: 1rem 1rem 0.5rem 1rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
    margin-top: var(--spacing-xl);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 3s infinite;
}

.footer-top {
    display: flex;
    justify-content: center;
    gap: 5rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

.footer-link {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--c-accent), #fbbf24);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--c-accent);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    width: 100%;
    position: relative;
    z-index: 1;
}

.footer-swiss-link,
.footer-europe-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.footer-swiss-link:hover,
.footer-europe-link:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--c-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.3);
}

.swiss-flag-icon,
.europe {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.footer-swiss-link:hover .swiss-flag-icon,
.footer-europe-link:hover .europe {
    transform: scale(1.08) rotate(5deg);
}

/* ========================================
   RESPONSIVE - Media Queries
   ======================================== */
@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }
    
    .intro h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .map-card {
        margin: 0;
    }
    
    .maps-grid {
        gap: var(--spacing-md);
    }
    
    .features-container {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: var(--spacing-sm) var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .header {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .intro h2 {
        font-size: 1.3rem;
    }
    
    .intro p {
        font-size: 1rem;
    }
    
    .map-card__image {
        height: 150px;
    }
    
    .map-icon {
        font-size: 3rem;
    }
    
    .map-card__content {
        padding: var(--spacing-md);
    }
}
