/* ---------- VARIABLES ---------- */
:root {
    --bleu-clair: #0DCBF4;
    --bleu-fonce: #1e2a38;
    --gris: #f7fbff;
    --gris-fonce: #2f3e4f;
    --accent: #4a90e2;
    --blanc: #ffffff;
}

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    background-color: var(--gris);
    color: var(--bleu-fonce);
}

/* ---------- HEADER & NAV ---------- */
header {
    background-color: var(--bleu-clair);
    color: var(--blanc);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    height: 50px;
    width: auto;
    cursor: pointer;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--blanc);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: var(--blanc);
    margin: 4px 0;
}

/* ---------- LAYOUT GLOBAL ---------- */
main {
    flex: 1;
    padding: 0 0 2rem 0;   /* pas d'espace au-dessus du hero */
}

.site-main {
    flex: 1;
}

.content {
    max-width: 800px;
    margin: 0 auto;
}

/* ---------- HERO ACCUEIL ---------- */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    margin: 0;
}

/* bande image collée au header, pleine largeur */
.hero.hero-overlay {
    width: 99vw;
    height: 300px;           /* épaisseur de la bande */
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* image de fond */
.hero-overlay .hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* logo par-dessus l'image */
.hero-overlay .hero-top {
    position: absolute;
    left: 50%;
    bottom: 75px;           /* ajuste pour monter/descendre le logo */
    transform: translateX(-50%);
    width: 250px;
    z-index: 2;
}

.hero-overlay .hero-top2 {
    position: absolute;
    left: 91%;
    bottom: 0px;           /* ajuste pour monter/descendre le logo */
    transform: translateX(-50%);
    width: 300px;
    z-index: 2;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* ---------- FAQ ACCUEIL ---------- */
.faq-title {
    padding: 1rem 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.faq-content {
    padding: 0.5rem 0 2rem 0;
    line-height: 1.5;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.faq-content ul {
    text-align: left;
    margin-left: 1rem;
    line-height: 1.8;
}

/* ---------- PAGE SERVICES ---------- */
.services-section {
    text-align: center;
}

.services-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.service-desc {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.tarif-section {
    margin-bottom: 3rem;
}

.tarif-section h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

/* TABLES TARIFS */
table {
    margin: 0 auto 2rem auto;
    border-collapse: collapse;
    width: 90%;
    max-width: 700px;
    background-color: var(--blanc);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 0.8rem;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

th {
    background-color: var(--accent);
    color: var(--blanc);
}

tr:last-child td {
    border-bottom: none;
}

h1 {
    text-align: center;
    margin-bottom: -1rem;
}

/* ---------- FORMULAIRES (contact / login) ---------- */
.login-form,
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.login-form label,
.contact-form label {
    font-weight: 600;
}

.login-form input,
.contact-form input,
.contact-form textarea {
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

/* ---------- FORMULAIRE INSCRIPTION 3 COLONNES ---------- */
.form-inscription {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 5rem;
    margin-top: 2rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.form-inscription h2 {
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 1.2rem;
}

.form-inscription label {
    font-weight: 600;
    margin-top: 0.5rem;
    display: block;
}

.form-inscription input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.form-inscription button {
    margin-top: 1rem;
    width: 100%;
}

/* ---------- BOUTONS ---------- */
button {
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 4px;
    background-color: var(--accent);
    color: var(--blanc);
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    align-self: flex-start;
}

button:hover {
    background-color: #3574b8;
}

/* conteneur bouton inscription */
.zone-bouton-inscription {
    display: flex;
    justify-content: center;
    margin: 0 1rem 0 1rem 0;
}

.btn-inscription {
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
}

/* ---------- MESSAGES ---------- */
.alert-error {
    background-color: #ffe0e0;
    color: #b00020;
    padding: 0.7rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.alert-success {
    background-color: #e0ffe5;
    color: #0a7f3f;
    padding: 0.7rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

/* ---------- FOOTER ---------- */
footer,
.site-footer {
    background-color: var(--bleu-clair);
    color: var(--blanc);
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    margin-top: auto;
}

/* ---------- MEDIA QUERIES ---------- */
@media (max-width: 1024px) {
    .hero h2 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
}

@media (max-width: 768px) {

    nav ul {
        display: none;
        flex-direction: column;
        background-color: var(--bleu-fonce);
        position: absolute;
        top: 70px;
        right: 0;
        width: 200px;
        border-radius: 0 0 0 10px;
    }

    nav ul.show {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    table {
        width: 100%;
    }

    .hero h2 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .faq-title { font-size: 1.3rem; }
    .faq-content { padding: 0.5rem 1rem 2rem 1rem; }
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }

    .logo {
        height: 40px;
    }

    nav ul {
        right: 10px;
        width: 180px;
    }

    .hero h2 { font-size: 1.5rem; }
    .hero p { font-size: 0.95rem; }
    .faq-title { font-size: 1.2rem; }
    .faq-content ul { margin-left: 0.5rem; }
}
/* Section services */
.services-section {
    text-align: center;
    padding: 2rem 1.5rem;
}

.services-section h1 {
    margin-bottom: 1.5rem;
}

/* Grille responsive : cartes en colonne sur mobile, plusieurs par ligne sur grand écran */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);   /* toujours 3 colonnes */
    gap: 1rem;
}


.service-card {
    background-color: var(--blanc);
    border-radius: 8px;
    padding: 1.2rem 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;       /* contenu en colonne */
    align-items: center;          /* centre horizontal */
    justify-content: center;      /* centre vertical */
    text-align: center;           /* texte centré */
}

.service-card h2 {
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--bleu-fonce);
}

