@charset "UTF-8";        

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables CSS pour faciliter la maintenance */
:root {
    --primary-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: white;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.6);
    --shadow-sm: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
    --transition-smooth: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 1rem;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Effet de fond animé */
.background-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    top: 0;
    left: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 25s infinite ease-in-out;
    will-change: transform;
}

.shape:nth-child(1) {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 300px;
    height: 300px;
    bottom: -80px;
    right: -80px;
    animation-delay: 8s;
}

.shape:nth-child(3) {
    width: 250px;
    height: 250px;
    top: 50%;
    right: 10%;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* Container principal */
.container {
    text-align: center;
    z-index: 10;
    max-width: 1400px;
    width: 100%;
    animation: fadeIn 0.8s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
}

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

/* Logo et titre */
.logo {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -2px;
    line-height: 1.2;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Grille de boutons - Responsive */
.buttons-container {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
}

/* Boutons */
.big-button {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    min-height: 180px;
}

.big-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.big-button:hover::before {
    opacity: 1;
}

.big-button:active {
    transform: scale(0.98);
}

.button-icon {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 0.3rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.button-title {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 0.3rem;
    text-align: center;
}

.button-description {
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    text-align: center;
}

/* Footer */
.footer {
    color: var(--text-muted);
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    z-index: 10;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* ============================================
   MEDIA QUERIES - MOBILE FIRST APPROACH
   ============================================ */

/* Petits mobiles (< 480px) */
@media (max-width: 479px) {
    body {
        padding: 1rem 0.75rem;
    }

    .buttons-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .big-button {
        padding: 1.75rem 1.25rem;
        min-height: 160px;
    }

    .logo {
        margin-bottom: 0.25rem;
    }

    .subtitle {
        margin-bottom: 1.5rem;
    }
}

/* Mobiles standards (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .buttons-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .big-button {
        min-height: 170px;
    }
}

/* Tablettes portrait (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        max-width: 900px;
    }

    .buttons-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .big-button {
        min-height: 200px;
    }

    body {
        padding: 2rem 1.5rem;
    }
}

/* Tablettes paysage et petits ordinateurs (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
    .container {
        max-width: 1100px;
    }

    .buttons-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .big-button {
        min-height: 220px;
    }
}

/* Grands écrans (≥ 1280px) */
@media (min-width: 1280px) {
    .buttons-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .big-button {
        min-height: 240px;
        padding: 2.5rem 2rem;
    }

    .big-button:hover {
        transform: translateY(-12px) scale(1.03);
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: var(--shadow-lg);
        background: rgba(255, 255, 255, 0.15);
    }
}

/* Très grands écrans (≥ 1920px) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }

    .buttons-container {
        gap: 2.5rem;
    }

    .big-button {
        min-height: 260px;
    }
}

/* ============================================
   OPTIMISATIONS POUR APPAREILS TACTILES
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Désactiver les effets de survol sur tactile */
    .big-button:hover {
        transform: none;
        border-color: var(--glass-border);
        box-shadow: var(--shadow-sm);
        background: var(--glass-bg);
    }

    /* Augmenter légèrement les zones tactiles */
    .big-button {
        padding: 2.25rem 1.75rem;
        min-height: 190px;
    }

    /* Feedback tactile via active state */
    .big-button:active {
        transform: scale(0.96);
        background: rgba(255, 255, 255, 0.15);
    }
}

/* ============================================
   OPTIMISATIONS POUR L'ACCESSIBILITÉ
   ============================================ */

/* Réduire les animations si l'utilisateur préfère */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .shape {
        animation: none;
    }
}

/* Mode sombre (si supporté par le système) */
@media (prefers-color-scheme: dark) {
    /* Le design est déjà sombre, mais on peut ajuster si nécessaire */
}

/* Support du mode paysage sur mobile */
@media (max-width: 767px) and (orientation: landscape) {
    body {
        padding: 1rem;
    }

    .logo {
        font-size: 2rem;
        margin-bottom: 0.25rem;
    }

    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .buttons-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .big-button {
        padding: 1.5rem 1rem;
        min-height: 140px;
    }

    .button-icon {
        font-size: 2rem;
    }

    .button-title {
        font-size: 1rem;
    }

    .button-description {
        font-size: 0.8rem;
    }

    .footer {
        margin-top: 1rem;
        font-size: 0.75rem;
    }
}

/* Support pour les écrans très larges (21:9, etc.) */
@media (min-width: 2560px) {
    .container {
        max-width: 2000px;
    }

    .buttons-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}
