/* ✅ RESET GÉNÉRAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #1e1f23;
    color: white;
    margin-top: 100px; /* Compense la barre de navigation fixe */
}

/* ✅ HEADER - Barre de navigation */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: #1e1f23;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
}

.logo {
    width: 120px;
    transition: transform 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.1);
}

/* ✅ Navigation */
nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s;
    padding: 10px 15px;
    display: block;
}

nav ul li a::after {
    content: "";
    display: block;
    height: 3px;
    width: 0;
    background-color: #a8442c;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: #a8442c;
}

/* ✅ SECTION ACCUEIL */
#accueil {
    background: url('PC.jpeg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

#accueil h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* ✅ Bouton principal */
.btn {
    display: inline-block;
    padding: 12px 20px;
    background: #a8442c;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
    margin: 5px;
}

.btn:hover {
    background: #8c3724;
    transform: translateY(-3px);
}

/* ✅ SECTION TARIFS */
#tarifs {
    text-align: center;
    padding: 80px 20px;
}

#tarifs h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: white;
}

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

.tarif-box {
    background-color: #26272b;
    border: 2px solid #a8442c;
    border-radius: 15px;
    width: 300px;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 30px 20px; /* Plus de padding pour mieux respirer */
    text-align: center;
    flex-direction: column;
    gap: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Permet d'écarter le contenu et le bouton */
    align-items: center; /* Centre tout horizontalement */
    height: 100%;
}

.tarif-box:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 15px rgba(168, 68, 44, 0.5);
}

.tarif-box img {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
    border-radius: 10px;
}

.tarif-box p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
}

.tarif-box h3 {
    margin-bottom: 10px;
    font-size: 1.5em;
    color: #a8442c;
}

.tarif-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* ✅ SECTION SERVICES */
#services {
    background-color: #25262b;
    padding: 80px 20px;
}

#services h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #a8442c;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    gap: 12px; /* espace automatique entre chaque élément à l'intérieur */
    background-color: #1e1f23;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #a8442c;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 8px;
    color: #ccc;
}

/* ✅ FORMULAIRE CONTACT */
.contact-form {
    background: #25262b;
    border-radius: 10px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    margin: auto;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    border: 2px solid #a8442c;
    border-radius: 8px;
    background-color: #333;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form .input-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.contact-form .input-group input {
    flex: 1;
    min-width: 48%;
}

.contact-form select {
    width: 100%;
    padding: 14px;
    border: 2px solid #a8442c;
    border-radius: 8px;
    background-color: #333;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease, background 0.3s ease;
    appearance: none;
    cursor: pointer;
    text-align: center;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 14px;
}

.contact-form select:hover {
    border-color: #c94e2c;
}

.contact-form select:focus {
    outline: none;
    border-color: #c94e2c;
    background-color: #444;
}

.contact-form button {
    background: #a8442c;
    padding: 14px;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    width: 100%;
}

.contact-form button:hover {
    background: #8c3724;
    transform: translateY(-3px);
}

/* ✅ RESPONSIVE FORMULAIRE */
@media (max-width: 600px) {
    .contact-form .input-group {
        flex-direction: column;
    }

    .contact-form .input-group input {
        min-width: 100%;
    }
}

#contact {
    text-align: center;
}

#contact h2, 
#contact p {
    text-align: center;
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: 600px;
}

/* ✅ FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background-color: #1e1f23;
    color: white;
}

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

.footer-links a {
    color: #a8442c;
    text-decoration: none;
    font-weight: bold;
    margin: 0 8px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.footer-social p {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
}

.footer-social img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease-in-out;
}

.footer-social img:hover {
    transform: scale(1.1);
}

/* ✅ MENU BURGER */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1500;
}

.burger-menu div {
    width: 30px;
    height: 4px;
    background-color: white;
    margin: 5px;
    transition: transform 0.3s ease-in-out;
}

/* ✅ RESPONSIVE BURGER MENU */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        background-color: #1e1f23;
        text-align: center;
        padding: 10px 0;
        z-index: 1000;
    }

    nav ul.active {
        display: flex;
    }

    .tarifs-container {
        flex-direction: column;
        align-items: center;
    }

    .tarif-box {
        width: 90%;
    }
}

.payement-link {
    display: inline-block;
    padding: 12px 20px;
    background: #a8442c;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
    margin: 5px;
    margin-top: auto; /* Force le bouton à rester en bas de la carte */
    width: 100%; /* Optionnel : pour que tous les boutons aient la même largeur */
    text-align: center;
}