/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables globales */
:root {
    --primary-color: #1014fc;
    --primary-color-rgb: 59, 62, 255;
    --primary-dark: #3B3EFF;
    --background-dark: #1a1a1a;
    --background-secondary: #2d2d2d;
    --background-hover: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --error-color: #ff4444;
    --text-color: white;
    --overlay-light: rgba(255, 255, 255, 0.1);
    --overlay-dark: rgba(0, 0, 0, 0.9);
    --overlay-light-dark: rgba(0, 0, 0, 0.3);
}

/* Styles de base */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: var(--page-background, url('/images/background.jpg'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    width: 100%;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--page-background, url('/images/background.jpg'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

@media screen and (max-width: 768px) {
    body {
        background: none;
    }
}

/* S'assurer que le contenu reste au-dessus de l'overlay */
main, nav, .container {
    position: relative;
    z-index: 1;
}

/* Styles spécifiques à la page index */
.index-page {
    position: relative;
}

@media screen and (max-width: 768px) {
    .index-page {
        background: none;
    }
}

/* Utilitaires */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header/Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
}

.nav-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

/* Style spécifique pour le lien de partage */
.nav-link.share-button {
    text-decoration: none;
}

.logout-button {
    background: transparent;
    border: none;
    color: white;
    padding: 0.7rem;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.7;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.logout-button:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* Contenu principal */
.home-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Section héro */
.hero-section {
    text-align: center;
    padding: 6rem 0 4rem;
    margin-bottom: 4rem;
}

.hero-section h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(135deg, #fff, #b3b3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero-text {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.primary-button, .secondary-button {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.primary-button {
    background: var(--primary-color);
    color: white;
    border: none;
}

.secondary-button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.primary-button:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    box-shadow: 0 10px 20px rgba(59, 62, 255, 0.3);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Section Mode Solo */
.mode-section {
    margin: 0rem 0;
}

.mode-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.mode-card h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, #b3b3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mode-card > p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    text-align: left;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-item .icon {
    font-size: 2rem;
    background: rgba(59, 62, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
}

.feature-item h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.5;
}

/* Section Comment ça marche */
.how-it-works {
    padding: 6rem 0;
    text-align: center;
}

.how-it-works h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #fff, #b3b3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    color: white;
}

.step h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: white;
}

.step p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Section CTA */
.cta-section {
    padding: 4rem 0 6rem;
}

.cta-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-card h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #b3b3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-card p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 62, 255, 0.3);
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0 2rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-text {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .mode-card {
        padding: 2rem;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .feature-item {
        padding: 1.5rem;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 2rem;
    }

    .cta-card h2 {
        font-size: 2rem;
    }
}

/* Styles pour la page questions */
.questions-page {
    background-color: var(--background-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.questions-content {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 1rem;
    margin-top: 60px; /* Pour éviter le chevauchement avec le header */
}

.question-counter {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.question-card {
    background: #000;
    border-radius: 20px;
    padding: 3rem;
    width: 90%;
    max-width: 800px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    box-shadow: 0 10px 30px var(--overlay-light-dark);
}

.question-text {
    text-align: center;
}

.question-text h1 {
    font-size: 2.5rem;
    line-height: 1.5;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.highlight {
    background: white;
    color: black;
    padding: 0.2rem 0.5rem;
    margin: 0 0.2rem;
}

/* Style pour le conteneur des boutons d'action */
.answer-buttons {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
    margin-bottom: 2rem;
    justify-content: center;
}

/* Style commun pour les boutons principaux */
.view-answers-button, .record-button {
    flex: 1;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border: none;
}

/* Style spécifique pour le bouton voir les réponses */
.view-answers-button {
    background-color: #1e1f2862;
    color: #fff;
}

/* Style spécifique pour le bouton d'enregistrement */
.record-button {
    background: transparent;
    background-color: #1e1f2862;
    border: 1px solid #3B3EFF;
    color: white;
}

.record-button:hover,
.view-answers-button:hover {
    background-color: #3B3EFF;
}

/* Style pour les boutons de navigation */
.navigation-buttons {
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: center;
}

.prev-button {
    background-color: #1E1F28;
}

.nav-button:hover {
    opacity: 0.9;
}

/* Style pour les icônes */
.icon {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Disposition des boutons */
.question-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.answer-buttons {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
    margin-bottom: 2rem;
    justify-content: center;
}

/* Style pour le popin footer et sa question */
.popin-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.question-reminder {
    background: #000;
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.question-reminder h2 {
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: 600;
    color: white;
}

.popin-footer button {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.popin-footer .cancel-button {
    background-color: #1e1f2862;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.popin-footer .cancel-button:hover {
    background-color: #1e1f28;
}

.popin-footer .save-button {
    background-color: var(--primary-color);
    color: white;
}

.popin-footer .save-button:hover {
    background-color: var(--primary-dark);
    transform: scale(1.02);
}

/* Animation des icônes */
.action-button .icon {
    font-size: 1.1rem;
}

/* Style pour les boutons désactivés */
.plan-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Style pour le pop-in */
.answer-popin {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.popin-content {
    background: var(--background-dark);
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 850px;
/*     box-shadow: 0 10px 30px var(--overlay-light-dark);*/
/*    border: 1px solid rgba(255, 255, 255, 0.1);*/
}

.popin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.popin-header h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
}

.close-button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-button:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.answer-input {
    width: 100%;
    min-height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    color: white;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.answer-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Style pour le pop-in d'historique */
.answer-history-popin {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.answers-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    margin-top: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.1);
}

.answers-list::-webkit-scrollbar {
    width: 6px;
}

.answers-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.answers-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.answer-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.answer-item:hover {
    transform: translateX(5px);
    border-color: rgba(26, 115, 232, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.answer-content {
    flex: 1;
}

.answer-text {
    color: white;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 1.1rem;
    white-space: pre-wrap;
}

.answer-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.answer-date::before {
    content: '🕒';
    margin-right: 6px;
    font-size: 0.9rem;
}

/* Animation d'entrée pour les réponses */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.answer-item {
    animation: slideInFromRight 0.3s ease forwards;
    animation-delay: calc(var(--item-index) * 0.1s);
}

/* Style pour l'item de réponse avec bouton de suppression */
.delete-answer-button {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.answer-item:hover .delete-answer-button {
    opacity: 0.6;
}

.delete-answer-button:hover {
    opacity: 1 !important;
    background: rgba(255, 59, 48, 0.1);
    transform: scale(1.1);
}

.delete-icon {
    font-size: 1.2rem;
}

/* Animation de suppression */
@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Style pour la question dans l'historique */
.answer-item .question-text {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-style: italic;
}

/* Styles pour les notifications toast */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1600;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.success {
    background: #4CAF50;
}

.toast.error {
    background: #f44336;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Style pour les boutons d'action principaux */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Style pour les boutons de navigation */
.navigation-buttons {
    display: flex;
    gap: 1rem;
}

.prev-button {
    background-color: #1E1F28;
}

.nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background-color: #3B3EFF;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    min-width: 140px;
    transition: all 0.2s ease;
}

/* Styles pour la page de connexion */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.error-container {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.error-container h1 {
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

.message {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.5rem;
}

.email-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-help {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.checkbox-container label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.cgv-link {
    color: var(--primary-color);
    text-decoration: none;
}

.cgv-link:hover {
    text-decoration: underline;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 62, 255, 0.3);
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: rgba(255, 255, 255, 0.6);
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.separator span {
    padding: 0 1rem;
    font-size: 0.9rem;
}

.google-sign-in {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.google-sign-in:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.google-sign-in img {
    width: 20px;
    height: 20px;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.switch-button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 0.5rem;
}

.switch-button:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

/* Styles pour les erreurs de formulaire */
.error-message {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.error .error-message {
    display: block;
}

.error .email-input {
    border-color: var(--error-color);
}

/* Media Queries pour la page de connexion */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
    }

    .error-container {
        padding: 2rem;
    }

    .error-container h1 {
        font-size: 1.8rem;
    }

    .message {
        font-size: 1rem;
    }
}

/* Footer Styles */
footer {
    position: relative;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    gap: 2rem;
}

.footer-left a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-left a:hover {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.footer-link:hover {
    color: white;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.3);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
}

/* Style pour le bouton de changement d'image de fond */
.background-change-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 2;
}

.background-change-button:hover {
    opacity: 1;
}

/* Styles pour le pop-in premium */
.premium-popin {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1500;
    animation: fadeIn 0.3s ease-out;
}

.premium-popin-content {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}

.premium-popin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.premium-popin-header h2 {
    font-size: 1.8rem;
    margin: 0;
    color: white;
}

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.close-button:hover {
    opacity: 1;
}

.premium-features {
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateX(5px);
}

.feature-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    background: rgba(59, 62, 255, 0.1);
    padding: 0.5rem;
    border-radius: 50%;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    margin: 0 0 0.5rem 0;
    color: white;
    font-size: 1.2rem;
}

.feature-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.premium-price {
    text-align: center;
    margin-bottom: 2rem;
}

.price-tag {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
}

.price-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.purchase-button {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.purchase-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 62, 255, 0.3);
}

.purchase-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

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

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

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

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

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 62, 255, 0.4);
    }
    70% {
        transform: scale(1.02);
        box-shadow: 0 0 20px 10px rgba(59, 62, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 62, 255, 0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Styles pour la bannière premium */
.premium-banner {
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    color: white;
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.5s ease-out;
    z-index: 100;
    width: 90%;
    max-width: 800px;
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 0 1rem;
}

.banner-text {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.4;
}

.banner-button {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: black;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: max-content;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.banner-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    background: linear-gradient(45deg, #FFE44D, #FFB732);
}

.banner-button .button-icon {
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .premium-banner {
        margin: 1rem;
        padding: 1.2rem;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 0;
    }
    
    .banner-text {
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }

    .banner-button {
        width: 100%;
        justify-content: center;
    }
}

/* Styles pour le menu mobile */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.mobile-menu.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.mobile-menu-content {
    position: relative;
    z-index: 2001;
    text-align: center;
    width: 100%;
    padding: 2rem;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-menu-link {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.mobile-menu-link:hover {
    opacity: 1;
    transform: scale(1.05);
}

.mobile-menu-button {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2002;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.mobile-menu-button:hover {
    transform: scale(1.1);
}

.mobile-menu-button.active {
    position: fixed;
}

/* Styles pour le header */
.header {
    z-index: 1000;
}
