@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #0f172a;
    --primary-color: #10b981;
    --secondary-color: #059669;
    --accent-color: #34d399;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --input-bg: rgba(15, 23, 42, 0.6);
}

/* Réinitialisation de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Scrollbar Personnalisée */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f172a; 
}

::-webkit-scrollbar-thumb {
    background: #1e293b; 
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #10b981; 
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.33) 0px, transparent 50%),
        radial-gradient(at 98% 1%, rgba(59, 130, 246, 0.33) 0px, transparent 50%);
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Barre de défilement personnalisée */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* En-tête et Navigation */
.topHeadPage {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    z-index: 100;
    background: transparent;
    backdrop-filter: none;
    margin: 0;
    padding: 30px 5%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0; /* Prevent logo shrinking */
}

.logo img {
    width: 50px;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.5));
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: rotate(10deg) scale(1.1);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff; /* Force white */
}

.main-nav {
    display: flex;
    gap: 30px;
    flex-shrink: 0; /* Prevent nav shrinking */
}

.main-nav a {
    color: #ffffff !important; /* Force white and override any state */
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    position: relative;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    opacity: 1; /* Ensure visible by default */
}

.main-nav a:visited {
    color: #ffffff !important;
}

.main-nav a:hover {
    color: var(--primary-color) !important;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

.loginButton {
    padding: 10px 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap; /* Prevent wrapping */
}

.loginButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

/* Section Héro */
.presentation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 140px;
    margin-bottom: 100px;
    position: relative;
    z-index: 1;
    min-height: 80vh;
}

.presentation h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.turtleMailPresentation {
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
}

.turtleMailPresentation::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.turtleMailPresentation:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.presentationGauche {
    max-width: 800px;
    margin: 0 auto 40px;
}

.text {
    font-size: 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Cartes effet verre */
.presentationDroite, .loginBox, .register-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.presentationDroite {
    max-width: 600px;
    margin: 0 auto;
    transform: perspective(1000px) rotateX(0deg);
    transition: transform 0.5s ease;
}

.presentationDroite:hover {
    transform: perspective(1000px) rotateX(2deg);
}

/* Citation */
.citation {
    font-style: italic;
    font-size: 1.2em;
    color: var(--text-color);
}

.citation figcaption {
    margin-top: 20px;
    text-align: right;
    color: var(--primary-color);
    font-weight: 600;
}

/* Éléments flottants */
.floating-shapes div {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.floating-shapes div:nth-child(1) {
    top: 20%;
    left: 10%;
    animation: float 8s infinite linear;
}

.floating-shapes div:nth-child(2) {
    top: 70%;
    right: 10%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border-color: var(--primary-color);
    opacity: 0.2;
    animation: float 12s infinite linear reverse;
}

.floating-shapes div:nth-child(3) {
    top: 40%;
    left: 80%;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    border-color: rgba(59, 130, 246, 0.3);
    animation: float 15s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

/* Boutons */
.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.btn-cta {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--primary-color), 0 0 30px rgba(16, 185, 129, 0.4);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.btn-cta:hover {
    transform: scale(1.05);
    background: var(--accent-color);
    box-shadow: 0 0 25px var(--primary-color), 0 0 50px rgba(16, 185, 129, 0.6);
}

.btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    font-size: 1.1rem;
    border: 2px solid var(--glass-border);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Section Fonctionnalités */
.features-section {
    padding: 80px 0;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 50px;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.icon-box {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Section Statistiques */
.stats-section {
    display: flex;
    justify-content: space-around;
    padding: 60px 0;
    background: var(--glass-bg);
    border-radius: 20px;
    margin: 60px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Pied de page */
.site-footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-logo p {
    color: var(--text-muted);
}

.footer-links h4, .footer-social h4 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Login/Register Form adjustments */
.loginBox h2, .register-box h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 2rem;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 5px;
}

input {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: var(--input-bg);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.register, .login-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
}

.register a, .login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.register a:hover, .login-link a:hover {
    text-decoration: underline;
}

/* Design Responsif */
@media (max-width: 768px) {
    .presentation h1 {
        font-size: 2.5rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .loginButton {
        display: none;
    }
    
    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-cta, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .problem-icons {
        flex-direction: column;
        gap: 20px;
    }
    
    .arrow-icon {
        transform: rotate(90deg);
        animation: slideDown 2s infinite;
    }
    
    @keyframes slideDown {
        0%, 100% { transform: translateY(0) rotate(90deg); }
        50% { transform: translateY(10px) rotate(90deg); }
    }
}

/* Animation Curseur */
.cursor {
    display: inline-block;
    width: 2px;
    background-color: var(--primary-color);
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Arrière-plan particules */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: var(--bg-color);
}

/* Styles menu mobile */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-menu-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2.5rem;
    color: var(--text-color);
    cursor: pointer;
    transition: 0.3s;
}

.close-menu-btn:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-nav a {
    font-size: 2rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.mobile-nav a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.mobile-login-btn {
    margin-top: 20px;
    background: var(--primary-color);
    padding: 15px 40px;
    border-radius: 50px;
    color: #0f172a !important;
    font-size: 1.5rem !important;
}

/* Section Problème */
.problem-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--bg-color), #0b1120);
    text-align: center;
}

.problem-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.problem-text {
    max-width: 700px;
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.problem-text strong {
    color: var(--text-color);
    font-size: 1.3rem;
}

.problem-icons {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.icon-circle.red {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.icon-circle.green {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.arrow-icon {
    font-size: 2rem;
    color: var(--text-muted);
    animation: slideRight 2s infinite;
}

@keyframes slideRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

