:root {
    --primary: #1a1a1a;
    --secondary: #333;
    --accent: #666;
    --light: #f9f9f9;
    --border: #e0e0e0;
    --success: #2e7d32;
    --error: #c62828;
    --border-radius: 6px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--primary);
    background-color: transparent; /* Changé pour permettre à l'image du Hero de passer */
    font-weight: 400;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

/* Header */
header {
    padding: 1.5rem 0;
    /* Retrait de la bordure et du fond blanc */
    background: transparent; /* Rend le header transparent */
    position: absolute; /* Positionne le header au-dessus du hero */
    width: 100%;
    top: 0;
    z-index: 100;
}

/* Styles pour le header sur l'image de fond sombre */
.header-content .logo-text,
.header-content .btn-secondary {
    color: white !important; /* Force le texte en blanc pour la lisibilité sur fond sombre */
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.header-content .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Nouveaux styles pour l'icône et le menu des plateformes */
.platform-container {
    position: relative;
    /* Assure que l'icône est toujours visible */
    display: block; 
    z-index: 150; /* Au-dessus du reste du header */
}

.platform-icon {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.platform-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

.platform-icon i {
    font-size: 24px;
}

.platform-menu {
    display: none; /* Masqué par défaut, affiché par JS */
    position: absolute;
    top: 100%; /* Positionné juste sous le bouton */
    right: 0;
    margin-top: 10px;
    width: 280px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform-origin: top right;
    animation: fadeInScale 0.2s ease-out forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.platform-menu.active {
    display: block;
}

.menu-header {
    padding: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    border-bottom: 1px solid var(--border);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--primary);
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.menu-item i {
    margin-right: 10px;
    font-size: 20px;
    color: var(--accent);
}

.menu-item:hover {
    background-color: var(--light);
}

/* Style spécifique pour les actions (Démo, S'inscrire) */
.menu-action {
    border-top: 1px solid var(--border);
}

.menu-item:last-child {
    border-bottom: none;
}

/* Fin des nouveaux styles */

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius:0px;
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 100vh; /* Augmenté pour englober l'espace du header transparent */
    /* === NOUVELLE IMAGE DE FOND === */
    background: url('assets/images/hero_background.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    z-index: 1;
    border-radius:0px;
    padding-bottom: 5px;
    /* =============================== */
}

/* Ajout d'un overlay pour améliorer la lisibilité du texte */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Overlay sombre */
    z-index: -1;
    border-radius:0px;
    padding-bottom: 5px;
}


.hero-content {
    text-align: center;
    width: 100%;
    color: white;
    border-radius:0px;
    padding-bottom: 5px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: white;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
     color:white;
}

.btn {
    display: inline-flex; /* Changement ici pour aligner l'icône et le texte */
    align-items: center; /* Aligne verticalement l'icône au centre du texte */
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    color:white;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: black;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white; /*var(--primary)*/
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--light);
    color: black;
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
    /* Ajout d'un fond blanc pour les sections sous le hero */
    background-color: white; 
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.section-title p {
    font-size: 1.125rem;
    color: var(--accent);
    max-width: 600px;
    margin: 0 auto;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    font-size: 1.75rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature-card p {
    color: var(--accent);
    font-size: 0.95rem;
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-size: 1.05rem;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    height: 400px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Demo */
.demo-content {
    text-align: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.demo-video {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    height: 500px;
}

.demo-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Contact */
.contact-form {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

/* Lightbox */
.lightbox {
    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: 2000;
}

.lightbox-content {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100%; 
    background: white;
    /*border-radius: var(--border-radius);*/
    overflow: hidden;
    max-width: 100%; 
}

.lightbox-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
    z-index: 10;
    background: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

/* Result */
#result {
    margin-top: 1.5rem;
    text-align: center;
}

.result-success {
    background-color: rgba(46, 125, 50, 0.05);
    color: var(--success);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--success);
    font-size: 0.95rem;
    /* Nouveau style: Rendre le div flexible pour aligner le texte et l'icône si nécessaire */
    display: flex;
    flex-direction: column;
    align-items: center; 
}

/* NOUVELLE RÈGLE : Style du lien dans le message de succès */
.result-success a {
    text-decoration: none !important; /* Supprime le soulignement */
    color: var(--primary) !important; /* Force la couleur en noir */
    font-weight: 500;
    display: flex;
    align-items: center; /* Aligne l'icône et le texte */
    gap: 8px; /* Espace entre l'icône et le lien */
    margin-top: 5px; /* Petit espace au-dessus du lien */
}


.result-error {
    background-color: rgba(198, 40, 40, 0.05);
    color: var(--error);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--error);
    font-size: 0.95rem;
}

/* Footer */
footer {
    background-color: var(--light);
    color: var(--primary);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    height: 30px;
}

.copyright {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    /* Maintient le logo et les actions sur la même ligne, masquant les actions */
    .header-content {
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    /* Le header doit rester transparent et absolu sur mobile pour garder la continuité visuelle */
    header {
        position: absolute; 
        background: transparent; /* Maintient la transparence */
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    /* Retire la règle qui masquait header-actions car elle a été remplacée */
    /* .header-actions { display: none; } */ 

    /* Assure que le hero prend toujours au moins la taille de l'écran pour la continuité */
    .hero {
        min-height: 100vh; 
    }

    /* Maintient le texte blanc du logo pour la lisibilité sur fond sombre mobile */
    .header-content .logo-text {
        color: white !important; 
    }
    
    /* Le menu doit prendre moins de place sur mobile */
    .platform-menu {
        width: 250px;
    }

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

    .hero p {
        font-size: 1.125rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    .section {
        min-height: auto;
        padding: 3rem 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .demo-video {
        height: 300px;
    }

    .about-image {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }

    .hero {
        min-height: 70vh;
    }
}

.form-body {
    background-color: var(--light); /* Fond très clair */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto; /* Permet le défilement si le formulaire est grand */
    margin-top:30px;
    height: 100%;    
}

.form-container {

    
    width: 100%;
    max-width: 100%;
    margin: auto;
    min-height: 100%;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.form-title .text-accent {
    color: #081838ff; /* Couleur DARK BLUE pour SKYERP */
}

.form-subtitle {
    color: var(--accent);
    font-size: 1rem;
}

/* Messages de résultat (Succès/Erreur) */
.form-message {
    text-align: center;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.message-error {
    background-color: rgba(198, 40, 40, 0.08);
    color: var(--error);
    border-color: var(--error);
}

.message-success {
    background-color: rgba(46, 125, 50, 0.08);
    color: var(--success);
    border-color: var(--success);
}

/* Fieldset (Section du formulaire) */
.form-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-fieldset {
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.form-legend {
    font-weight: 600;
    color: var(--primary);
    padding: 0 8px;
    font-size: 1.1rem;
}

/* Labels et Inputs */
.form-label {
    display: block;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 5px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

/* Grille et alignement */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group-inline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 500px) {
    .form-group-inline {
        grid-template-columns: 1fr 1fr;
    }
}


/* CGU Section */
.cgu-note {
    font-size: 0.8rem;
    color: var(--accent);
    font-style: italic;
    padding: 10px;
    background-color: var(--light);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.cgu-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.cgu-checkbox {
    margin-top: 5px;
    min-width: 18px; /* Taille du checkbox */
    min-height: 18px;
    border-color: var(--accent);
    /* Style pour le checkbox (simple) */
    accent-color: var(--primary); 
}

.cgu-label {
    color: var(--primary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.cgu-link {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
}

/* Captcha Section */
.captcha-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.captcha-input-wrapper {
    flex-grow: 1;
    width: 100%;
}

.captcha-image-wrapper {
    flex-shrink: 0;
}

.captcha-image {
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
}

@media (min-width: 500px) {
    .captcha-group {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Bouton de soumission */
.form-submit-btn {
    /* Utilise les styles de .btn et .btn-primary */
    width: 100%;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Note de bas de formulaire */
.form-footer-note {
    text-align: center;
    font-size: 0.75rem; /* text-xs */
    color: var(--accent);
    margin-top: 20px;
}