/* INTRO ANIMATION */
.intro-animation {
    position: fixed;
    inset: 0;                /* remplace top/left/width/height */
    width: 100vw;
    height: 100vh;           /* Pour les vieux navigateurs */
    height: 100dvh;          /* 🔥 LA MAGIE POUR IPHONE ICI ! */

    display: flex;
    align-items: center;
    justify-content: center;

    background: #0a1628;     /* important sinon tu verras le footer */
    z-index: 99999;
}

.intro-animation.hidden {
    animation: fadeOut 1s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        pointer-events: none;
    }
}

.animation-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FLOATING ICONS */
.floating-icons {
    position: absolute;
    inset: 0;
}

.icon-item {
    position: absolute;
    font-size: 80px;
    opacity: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: floatIcon 2s ease var(--delay) forwards;
    filter: drop-shadow(0 0 30px rgba(0, 217, 255, 0.6));
}

@keyframes floatIcon {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }
    30% {
        opacity: 1;
        transform: translate(calc(-50% + var(--x) * 1.5), calc(-50% + var(--y) * 1.5)) scale(1.3);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--x) * 4), calc(-50% + var(--y) * 4)) scale(0.5);
    }
}

/* TAGLINE TEXT ANIMATION */
.tagline {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 40px;
    width: 100%;
}

.tagline-text {
    font-size: 96px;
    font-weight: 900;
    line-height: 1.2;
    color: #FFFFFF;
    margin: 0;
}

.word {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
    animation: wordAppear 0.8s ease var(--word-delay) forwards;
}

.word.highlight {
    color: #00D9FF;
    text-shadow: 0 0 60px rgba(0, 217, 255, 0.8);
}

@keyframes wordAppear {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SKIP BUTTON */
.skip-btn {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: transparent;
    color: #A0AEC0;
    border: 2px solid rgba(160, 174, 192, 0.3);
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    opacity: 0;
    animation: fadeIn 0.5s ease 2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.skip-btn:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: #00D9FF;
    color: #00D9FF;
}

/* QUESTIONNAIRE SECTION */
.questionnaire-section {
    min-height: calc(100vh - 160px);
    padding: 120px 40px 80px;
    animation: slideUp 0.8s ease;
}

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

.questionnaire-container {
    max-width: 900px;
    margin: 0 auto;
}

/* PROGRESS BAR */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #1A2332;
    border-radius: 3px;
    margin-bottom: 60px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00D9FF, #00B8D9);
    border-radius: 3px;
    width: 0%;
    transition: width 0.5s ease;
}

/* QUESTION */
.question-wrapper {
    background: #1A2332;
    padding: 48px;
    border-radius: 24px;
    border: 2px solid rgba(0, 217, 255, 0.2);
    margin-bottom: 40px;
}

.question-number {
    font-size: 14px;
    font-weight: 600;
    color: #00D9FF;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.question-title {
    font-size: 32px;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 40px;
    line-height: 1.3;
}

/* ANSWERS GRID */
.answers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.answer-card {
    background: #0A1628;
    padding: 24px;
    border-radius: 12px;
    border: 2px solid rgba(0, 217, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.answer-card:hover {
    border-color: #00D9FF;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 217, 255, 0.2);
}

.answer-card.selected {
    background: rgba(0, 217, 255, 0.1);
    border-color: #00D9FF;
}

.answer-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.answer-text {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
}

/* CHAMPS TEXTE QUESTION  */
.text-input {
    width: 100%;
    max-width: 100%;
    min-height: 120px;
    min-width: 100%;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(0, 217, 255, 0.2);
    background: #0A1628;
    color: white;
    font-size: 16px;
    font-family: inherit;

    resize: vertical;     /* 🔥 on laisse seulement la hauteur libre */
    box-sizing: border-box;
    overflow: auto;
    transition: all 0.3s;
}

.text-input:focus {
    outline: none;
    border-color: #00D9FF;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}


/* NAVIGATION BUTTONS */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.btn-back,
.btn-next {
    padding: 14px 32px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    border: none;
}

.btn-back {
    background: transparent;
    color: #A0AEC0;
    border: 2px solid rgba(160, 174, 192, 0.3);
}

.btn-back:hover {
    border-color: #00D9FF;
    color: #00D9FF;
}

.btn-next {
    background: #00D9FF;
    color: #0A1628;
    margin-left: auto;
}

.btn-next:hover {
    background: #00B8D9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.3);
}

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}


/* CALENDLY WRAPPER */
.calendly-wrapper {
    background: #1A2332;
    padding: 48px;
    border-radius: 24px;
    border: 2px solid rgba(0, 217, 255, 0.2);
    text-align: center;
}

.calendly-wrapper h2 {
    font-size: 36px;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.calendly-wrapper p {
    font-size: 18px;
    color: #A0AEC0;
    margin-bottom: 40px;
}

/* =========================================
   RESPONSIVE : TÉLÉPHONE
========================================= */
@media (max-width: 768px) {
    /* --- ANIMATION D'INTRO --- */
    .tagline {
        padding: 0 20px;
    }
    
    .tagline-text {
        font-size: 42px; /* Plus sécurisant pour éviter que les mots longs ne soient coupés */
    }
    
    .icon-item {
        font-size: 48px; /* Icônes un peu plus discrètes */
    }
    
    .skip-btn {
        bottom: 40px; /* On passe de 20px à 40px pour esquiver la barre Safari */
        right: 20px;
        font-size: 12px;
        padding: 10px 16px;
    }

    /* --- QUESTIONNAIRE (Conteneur global) --- */
    .questionnaire-section {
        padding: 100px 20px 60px; /* On libère les bords (20px au lieu de 40px) ! */
    }
    
    .progress-bar {
        margin-bottom: 30px; /* Gagne de l'espace vertical précieux */
    }

    /* --- LA QUESTION --- */
    .question-wrapper {
        padding: 32px 20px; /* On aère l'intérieur de la carte */
        margin-bottom: 24px;
    }
    
    .question-number {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .question-title {
        font-size: 24px;
        margin-bottom: 30px;
        line-height: 1.3;
    }

    /* --- LES RÉPONSES --- */
    .answers-grid {
        grid-template-columns: 1fr; /* 1 colonne parfaite pour mobile */
        gap: 12px; /* Moins d'espace mort entre les cartes */
    }
    
    .answer-card {
        padding: 16px; /* Plus compact pour voir plus de réponses sans scroller */
        display: flex;
        align-items: center;
        text-align: left;
        gap: 16px;
    }
    
    .answer-icon {
        font-size: 28px;
        margin-bottom: 0; /* Aligné avec le texte grâce au flex ci-dessus */
    }
    
    .answer-text {
        font-size: 15px;
    }

    /* --- BOUTONS DE NAVIGATION --- */
    .navigation-buttons {
        gap: 12px;
        flex-wrap: wrap-reverse; /* Astuce pro : s'il n'y a pas la place, le bouton Retour passe en dessous */
        margin-top: 32px;
    }
    
    .btn-back,
    .btn-next {
        padding: 14px 20px;
        font-size: 15px;
        flex-grow: 1; /* Les boutons prennent 100% de la largeur disponible de manière équitable */
        text-align: center;
    }

    /* --- CALENDLY (Dernière étape) --- */
    .calendly-wrapper {
        padding: 32px 20px;
    }
    
    .calendly-wrapper h2 {
        font-size: 26px;
        line-height: 1.2;
    }
    
    .calendly-wrapper p {
        font-size: 16px;
        margin-bottom: 24px;
    }
}