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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #031122; /* Fond bleu foncé comme le logo */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #0284c7; /* sky-600 */
}

a:hover {
    text-decoration: underline;
}

/* Sélecteur de langue */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 25px;
    font-size: 12px;
    background-color: rgba(15, 23, 42, 0.8);
    padding: 4px 8px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    z-index: 1100; /* Au-dessus du header */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.language-switcher a {
    color: #cbd5e1; /* slate-300 - texte plus clair sur fond sombre */
    margin: 0 3px;
    transition: all 0.2s;
    padding: 2px 4px;
}

.language-switcher a.active {
    color: #38bdf8; /* sky-400 - même couleur que le logo */
    font-weight: 600;
    background-color: rgba(56, 189, 248, 0.1);
    border-radius: 4px;
}

/* Header */
header {
    background-color: #031122; /* Fond bleu foncé comme le logo */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    border-bottom: 1px solid #0284c7; /* Bordure bleu clair */
}

header .container {
    display: flex;
    justify-content: space-between; /* Logo à gauche, menu à droite */
    align-items: center;
    flex-direction: row; /* Organisation horizontale */
}

.logo {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo img {
    height: 400px; /* Augmenté de 100px à 400px (x4) */
    margin-bottom: 15px;
}

/* Ajout d'un bouton d'accès à l'application bien visible */
.app-access-btn {
    background: linear-gradient(135deg, #38bdf8, #0284c7); /* Dégradé entre sky-400 et sky-600 */
    color: #fff !important; /* Texte blanc pour meilleur contraste */
    padding: 13px 26px;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 700;
    font-size: 16px;
    border: none;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4); /* Ombre bleue pour un effet plus lumineux */
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
}

.app-access-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0284c7, #0369a1); /* Dégradé plus foncé au survol */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.app-access-btn:hover {
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.6);
}

.app-access-btn:hover::before {
    opacity: 1;
}

.app-access-btn svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #e0f2fe; /* slate-100 - texte clair sur fond foncé */
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 4px;
}

nav ul li a:hover {
    color: #38bdf8; /* sky-400 */
    text-decoration: none;
    background-color: rgba(56, 189, 248, 0.1); /* Légère surbrillance au survol */
}

.login-btn {
    background-color: #38bdf8; /* sky-400 - même couleur que le logo */
    color: #031122 !important; /* texte foncé sur fond clair */
    padding: 8px 20px;
    border-radius: 4px;
    transition: all 0.3s;
    font-weight: 600;
    border: 2px solid #38bdf8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.login-btn:hover {
    background-color: #0284c7; /* sky-600 */
    border-color: #0284c7;
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Styles pour le header-right */
.header-right {
    display: flex;
    align-items: center;
}

/* Hero section */
.hero {
    background-color: #031122; /* Fond bleu foncé custom */
    color: #fff;
    padding: 280px 0 80px; /* Encore plus augmenté pour éviter que le contenu soit caché derrière le header */
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    max-width: 90%;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    margin: 0 auto;
    display: block;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #7dd3fc, #38bdf8); /* sky-300 to sky-400 */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #cbd5e1; /* slate-300 */
}

.signup-form {
    display: flex;
    margin-bottom: 10px;
}

.signup-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.signup-form button {
    background-color: #f97316; /* orange-500 */
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 0 4px 4px 0;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.signup-form button:hover {
    background-color: #ea580c; /* orange-600 */
}

.form-note {
    font-size: 14px;
    color: #94a3b8; /* slate-400 */
}

/* Features section */
.features {
    padding: 80px 0;
    background-color: #0f172a; /* slate-900 - fond sombre mais légèrement plus clair que le header */
    border-top: 1px solid #1e293b; /* slate-800 */
    border-bottom: 1px solid #1e293b; /* slate-800 */
}

.features h2, .why-us h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #e0f2fe; /* sky-100 - texte clair */
    background: linear-gradient(90deg, #7dd3fc, #38bdf8); /* sky-300 to sky-400 */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.05); /* blanc transparent */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(56, 189, 248, 0.2); /* bordure bleue transparente */
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    border-color: rgba(56, 189, 248, 0.5); /* bordure plus visible au survol */
    background-color: rgba(255, 255, 255, 0.08); /* légèrement plus clair au survol */
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 15px;
    color: #38bdf8; /* sky-400 - même couleur que le logo */
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #7dd3fc; /* sky-300 */
    font-weight: 600;
}

.feature-card p {
    color: #cbd5e1; /* slate-300 - texte clair mais pas trop */
}

/* Why Us section */
.why-us {
    padding: 80px 0;
    background-color: #020817; /* slate-950 - encore plus sombre pour varier */
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit {
    padding: 0 15px;
    background-color: rgba(15, 23, 42, 0.3); /* slate-900 avec transparence */
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-left: 3px solid #38bdf8; /* bordure bleue à gauche */
}

.benefit h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #7dd3fc; /* sky-300 */
    position: relative;
    padding-left: 30px;
    font-weight: 600;
}

.benefit h3::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e; /* green-500 */
    font-weight: bold;
}

.benefit p {
    color: #cbd5e1; /* slate-300 - texte clair mais pas trop */
    line-height: 1.7;
}

/* CTA section */
.cta {
    padding: 80px 0;
    background-color: #0284c7; /* sky-600 */
    color: #fff;
    text-align: center;
}

.cta h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #e0f2fe; /* sky-100 */
}

.cta .signup-form {
    max-width: 500px;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: #031122; /* Fond bleu foncé custom */
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 140px; /* Augmenté de 35px à 140px (x4) */
    margin-bottom: 15px;
}

.footer-logo p {
    color: #94a3b8; /* slate-400 */
    font-size: 14px;
}

.footer-links h4, .footer-contact h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #e0f2fe; /* sky-100 */
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #94a3b8; /* slate-400 */
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #e0f2fe; /* sky-100 */
}

.footer-contact p {
    color: #94a3b8; /* slate-400 */
    margin-bottom: 10px;
}

.footer-contact a {
    color: #7dd3fc; /* sky-300 */
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1e293b; /* slate-800 */
    font-size: 14px;
    color: #64748b; /* slate-500 */
}

/* Responsive design */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .signup-form {
        max-width: 500px;
        margin: 0 auto 10px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none; /* Pour simplicité, on cache le menu sur mobile */
    }
    
    .hero {
        padding: 230px 0 60px; /* Ajusté pour mobile également */
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .features h2, .why-us h2, .cta h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .signup-form {
        flex-direction: column;
    }
    
    .signup-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .signup-form button {
        border-radius: 4px;
    }
}