/* =========================================
   1. RESET ET BASE DU SITE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: #0B0E14; 
    color: #FFFFFF;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

/* =========================================
   2. EFFETS VISUELS (Lumières de fond)
   ========================================= */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: #FF2E93;
    animation: float 10s infinite alternate ease-in-out;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: #00F0FF;
    animation: float 15s infinite alternate-reverse ease-in-out;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 30px) scale(1.1); }
}

/* =========================================
   3. STRUCTURE PRINCIPALE
   ========================================= */
.app-container {
    width: 100%;
    max-width: 1200px; /* Plus grand pour l'écran de résultats */
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
    align-items: center; /* Centre les éléments enfants */
}

header {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: #00F0FF;
}

/* =========================================
   4. DESIGN DES CARTES (Glassmorphism)
   ========================================= */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    margin: 20px auto;
    width: 100%;
}

.form-card {
    max-width: 480px; /* Taille étroite pour les questions */
    text-align: center;
}

.results-card {
    max-width: 1100px; /* Taille large pour les résultats */
}

/* =========================================
   5. TEXTES ET TYPOGRAPHIE
   ========================================= */
h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    background: -webkit-linear-gradient(45deg, #FF2E93, #00F0FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 600;
}

p {
    font-size: 16px;
    color: #A0A5B1;
    line-height: 1.5;
    margin-bottom: 30px;
}

.step-indicator {
    display: block;
    font-size: 12px;
    color: #00F0FF;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* =========================================
   6. BOUTONS ET INTERACTIONS
   ========================================= */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.trust-badges span {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    color: #C4C8D4;
}

.cta-button {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #FF2E93, #00F0FF);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.3);
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00F0FF;
    transform: translateX(5px);
}

textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 16px;
    resize: none;
    outline: none;
    transition: border-color 0.3s;
}

textarea:focus {
    border-color: #00F0FF;
}

/* =========================================
   7. ANIMATIONS (Chargement et Écrans)
   ========================================= */
.loader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid #FF2E93;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(255, 46, 147, 0.5);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.screen {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    width: 100%;
}

.screen.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   8. DESIGN DES RÉSULTATS (Les 3 cadeaux)
   ========================================= */
.results-grid {
    display: grid;
    grid-template-columns: 1fr; /* Sur mobile, 1 colonne */
    gap: 20px;
    width: 100%;
}

.gift-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-align: left;
    position: relative;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Pour que l'image épouse les bords arrondis */
}

.gift-card:hover {
    border-color: #00F0FF;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
}

.gift-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.gift-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(90deg, #FF2E93, #00F0FF);
    color: white;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.gift-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gift-card h3 {
    font-size: 20px;
    margin-bottom: 5px;
    line-height: 1.3;
}

.gift-price {
    font-size: 18px;
    color: #00F0FF;
    font-weight: 600;
    margin-bottom: 15px;
}

.gift-desc {
    font-size: 15px;
    color: #A0A5B1;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1; /* Pousse le bouton vers le bas */
}

.buy-button {
    display: block;
    text-align: center;
    background: white;
    color: #0B0E14;
    text-decoration: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 15px;
    transition: background 0.2s, transform 0.2s;
    width: 100%;
}

.buy-button:hover {
    background: #e0e0e0;
    transform: scale(1.02);
}

/* =========================================
   9. RESPONSIVE (Ordi / Tablettes)
   ========================================= */
@media (min-width: 800px) {
    .results-grid {
        grid-template-columns: repeat(3, 1fr); /* Sur ordi, 3 colonnes ! */
    }
    
    .blob-1 {
        width: 500px;
        height: 500px;
    }
    
    .blob-2 {
        width: 600px;
        height: 600px;
    }
}

/* =========================================
   10. BOUTON RETOUR
   ========================================= */
.back-link {
    display: inline-block;
    color: #A0A5B1;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 20px;
    transition: color 0.2s, transform 0.2s;
    text-align: left;
    width: 100%;
    font-weight: 600;
}

.back-link:hover {
    color: #00F0FF;
    transform: translateX(-5px);
}

/* Animation de brillance qui passe sur le bouton */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    transition: none;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -60%; }
    20% { left: 120%; }
    100% { left: 120%; }
}

/* Style des particules de confettis */
.confetti {
    position: fixed;
    top: -10px;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    z-index: 9999;
    pointer-events: none;
    animation: fall linear 4s forwards;
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(720deg);
    }
}

/* Effet de zoom fluide sur les cartes au survol */
.gift-card:hover {
    transform: scale(1.03) translateY(-5px) !important;
    box-shadow: 0 15px 30px rgba(0, 240, 255, 0.2);
    transition: all 0.3s ease !important;
}

/* Animation de pulsation sur le bouton boutique */
.buy-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}