/* STYLE GÉNÉRAL */
body {
    font-family: 'IBM Plex Mono', monospace;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* HEADER - Correction alignement */
header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between; /* Sépare le logo et le menu */
    align-items: center;
    padding: 15px 0%; /* Corrige le décalage */
    background-color: rgba(24, 24, 24, 0.9);
    border-bottom: 2px solid #3f3f3f;
    z-index: 100;
    box-sizing: border-box;
}

/* LOGO */
.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #e0e0e0;
    white-space: nowrap; /* Empêche la coupure */
    margin-left: 5%; /* Assure un bon espacement */
}

/* NAVIGATION - Correction */
nav {
    display: flex;
    gap: 20px; /* Espacement entre les liens */
    margin-right: 5%; /* Ajoute de l'espace pour éviter que le menu soit trop à droite */
}

/* LIENS */
nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease-in-out;
}

nav a:hover {
    color: #b0b0b0;
}

/* RESPONSIVE - Centrage du menu sur petits écrans */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding-top: 10px;
    }
}

/* SECTIONS */
section {
    padding: 80px 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* HERO */
.hero {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 100px;
    color: #fff;
    background: url('images/fond.png') center/cover no-repeat;
}

/* Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Texte et bouton */
.hero h1, .hero p, .hero a {
    position: relative;
    z-index: 2;
}

/* BOUTON */
.btn {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1em;
    font-weight: bold;
    background: #ffcc00;
    color: #121212;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background: #e6b800;
    transform: scale(1.05);
}

/* FADE-IN */
.fade-in {
    opacity: 1 !important;  /* Force l'affichage dès le chargement */
    transform: translateY(0) !important;  /* Évite un décalage qui pourrait cacher l'élément */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* IMAGE */
.main-image {
    padding: 20px 0; /* Réduit l'espace au-dessus et en dessous de l'image */
    text-align: center;
}

.main-image img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto; /* Diminue l'espace autour de l'image */
    border-radius: 10px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-image img:hover {
    transform: scale(1.03);
    box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.3);
}

/* SECTION AVANTAGES */
.features {
    background: #181818;
}

h2 {
    transition: color 0.3s;
}

h2:hover {
    color: #b0b0b0;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.feature-item {
    background: #222;
    padding: 15px;
    margin: 10px;
    border-radius: 8px;
    width: 250px;
    text-align: center;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0px 3px 8px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease-in-out;
}

.feature-item:hover {
    transform: scale(1.05);
}

/* SECTION TARIFS */
.pricing {
    opacity: 1 !important;
    transform: translateY(0) !important;
    display: block !important; /* S'assurer qu'il ne disparaît pas */
}

/* GRILLE DES TARIFS */
.price-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* CARTE DE PRIX */
.price-card {
    background: #222;
    padding: 25px;
    border-radius: 10px;
    width: 280px;
    box-shadow: 0px 3px 10px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease-in-out;
    text-align: center;
}

/* EFFET SURVOL */
.price-card:hover {
    transform: scale(1.05);
}

/* TITRES DES FORFAITS */
.price-card h3 {
    font-size: 1.4em;
    color: #ffcc00;
    margin-bottom: 10px;
}

/* PRIX - Correction */
.price {
    font-size: 1.8em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
    opacity: 1;
    transition: opacity 0.3s ease-in-out !important;
}

/* Correction pour garder le prix visible en hover */
.price-card:hover .price {
    opacity: 1 !important;
}

/* LISTE DES AVANTAGES */
.price-card ul {
    list-style: none;
    padding: 0;
}

.price-card ul li {
    font-size: 1em;
    padding: 5px 0;
}

/* BADGE "POPULAIRE" */
.popular {
    position: relative;
    border: 2px solid #ffcc00;
}

.badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffcc00;
    color: #121212;
    font-size: 0.9em;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
}

/* FORMULAIRE */
.form-container {
    max-width: 500px;
    margin: 100px auto;
    background: #1e1e1e;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

/* STYLE BOUTON FORMULAIRE */
.btn, button[type="submit"] {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1em;
    font-weight: bold;
    background: #ffcc00;
    color: #121212;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover, button[type="submit"]:hover {
    background: #e6b800;
    transform: scale(1.05);
}

/* FORMULAIRE - Correction de la mise en page */
.form-container {
    max-width: 500px;
    margin: 120px auto; /* Ajuste l’espace sous le header */
    background: #1e1e1e;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
    text-align: left; /* Aligne les labels à gauche */
}

/* TITRE DU FORMULAIRE */
.form-container h1 {
    font-size: 1.8em;
    margin-bottom: 10px;
    text-align: center;
}

/* DESCRIPTION */
.form-container p {
    color: #b0b0b0;
    margin-bottom: 20px;
    text-align: center;
}

/* CHAMPS DU FORMULAIRE */
form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Ajoute un espacement */
}

/* LABELS */
label {
    font-weight: bold;
}

/* INPUTS ET TEXTAREA */
input, select, textarea {
    background: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #444;
    padding: 10px;
    border-radius: 5px;
    font-size: 1em;
    width: 100%;
}

/* BOUTON DU FORMULAIRE */
button[type="submit"] {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1em;
    font-weight: bold;
    background: #ffcc00;
    color: #121212;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

button[type="submit"]:hover {
    background: #e6b800;
    transform: scale(1.05);
}

/* FOOTER */
footer {
    background: #181818;
    padding: 20px;
    margin-top: 30px;
}