/* ===============================
   RESET & BASE
================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f6f8;
    color: #111827;
    line-height: 1.6;
    padding-top: 70px; /* hauteur du header FIXE */
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===============================
   HEADER (HARMONISÉ)
================================ */
header {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-bar {
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

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

.logo img {
    height: 48px;
}

/* MENU */
.menu a {
    color: #e5e7eb;
    margin-left: 20px;
    font-weight: 600;
    font-size: 15px;
}

.menu a:hover {
    color: #ffffff;
}

/* ACTIONS DROITE */
.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* TÉLÉPHONE */
.header-phone {
    color: #22c55e;
    font-weight: 700;
    font-size: 15px;
    background: rgba(34, 197, 94, 0.15);
    padding: 8px 14px;
    border-radius: 30px;
    transition: 0.2s;
}

.header-phone:hover {
    background: rgba(34, 197, 94, 0.25);
}

/* CONNEXION */
.header-login {
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 30px;
    border: 2px solid #2563eb;
    transition: 0.2s;
}

.header-login:hover {
    background: #2563eb;
    color: #ffffff;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .menu {
        display: none;
    }

    .header-phone {
        font-size: 14px;
        padding: 6px 12px;
    }

    .header-login {
        padding: 6px 12px;
    }
}


/* =======================
   HERO
======================= */
.hero {
    width: 100%;
    min-height: 260px; /* HERO plein écran sous header */
    padding: 60px 20px; /* SUPPRIME le padding vertical excessif */
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background-image: url("../images/hero.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-actions {
    margin-top: 25px;
}

.hero-note {
    display: block;
    margin-top: 10px;
    font-size: 0.95rem;
    color: #e5e7eb;
}
.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 25px;
    color: #f1f1f1;
}

/* ===============================
   BUTTONS
================================ */
.call-btn,
.btn-primary {
    display: inline-block;
    background: #22c55e;
    color: #fff;
    padding: 14px 26px;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.2s;
}

.call-btn:hover,
.btn-primary:hover {
    background: #16a34a;
}

.btn-outline {
    display: inline-block;
    border: 2px solid #2563eb;
    color: #2563eb;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: bold;
}

.btn-outline:hover {
    background: #2563eb;
    color: #fff;
}

.large {
    font-size: 18px;
}

/* ===============================
   SECTIONS
================================ */
.home-section {
    width: 100%;
    padding: 80px 20px;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.home-section.light {
    background: #f8fafc;
}

.home-section.contrast {
    background: #eef2ff;
}

.section-head {
    text-align: center;
    margin-bottom: 50px;
}

.section-head h2 {
    font-size: 32px;
}

/* ===============================
   CARDS
================================ */
.card {
    background: #fff;
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.card.alert {
    background: #fff7ed;
}

.card.success {
    background: #ecfdf5;
}

.card-cta {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    text-align: center;
}

/* ===============================
   GRID
================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap: 30px;
}

/* ===============================
   ICONS
================================ */
.icon {
    font-size: 34px;
    margin-bottom: 10px;
}

/* ===============================
   FAQ
================================ */
details {
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 14px;
}

details summary {
    cursor: pointer;
    font-weight: bold;
}

details[open] {
    background: #ffffff;
}

/* ===============================
   FOOTER
================================ */
footer {
    background: #0f172a;
    color: #e5e7eb;
    text-align: center;
    padding: 30px 20px;
}

footer a {
    color: #c7d2fe;
    margin: 0 10px;
    font-size: 14px;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .menu {
        display: none;
    }

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

    .card {
        padding: 25px;
    }
}
/* === HERO FULL WIDTH FIX === */
.hero {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
body {
    background: #0f172a; /* même couleur que le header */
}
/* === FOOTER FULL WIDTH FIX === */
footer {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
/* ===============================
   FOND GLOBAL DES PAGES
================================ */
body {
    background-color: #f4f6f8;
}
/* ===============================
   STRUCTURE GLOBALE DES PAGES
================================ */

.page-content {
    background-color: #f4f6f8; /* EXACTEMENT comme l'accueil */
    width: 100%;
}

/* Conteneur standard */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Variante plus compacte */
.container.small {
    max-width: 900px;
}

/* ===============================
   SECTIONS
================================ */

.section {
    padding: 60px 0;
}

.section-light {
    background: #f4f6f8;
}

.section-white {
    background: #ffffff;
}

.section-dark {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
}

/* titres cohérents */
.section h2 {
    font-size: 32px;
    margin-bottom: 25px;
}

.section p {
    color: #374151;
}

/* texte clair dans section dark */
.section-dark p,
.section-dark h2 {
    color: #f8fafc;
}
.card {
    background: #ffffff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

.card + .card {
    margin-top: 25px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}
.container {
    display: flex;
    gap: 25px;
    max-width: 1200px;
    margin: auto;
}

.left {
    width: 70%;
}

.right {
    width: 30%;
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }
    .left, .right {
        width: 100%;
    }
}
/* ===== FORMULAIRE OFFRE (HERO) ===== */

.offer-form {
    margin-top: 25px;
    max-width: 420px;
}

/* Champs */
.offer-form input[type="text"],
.offer-form input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: none;
    font-size: 15px;
}

/* Placeholder lisible */
.offer-form input::placeholder {
    color: #555;
}

/* CGV */
.cgv-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #ffffff; /* BLANC */
    margin: 10px 0 18px;
}

.cgv-label a {
    color: #ffffff;
    text-decoration: underline;
}

/* Checkbox */
.cgv-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ffffff; /* checkbox blanche */
}

/* Bouton */
.offer-form .call-btn {
    width: 100%;
    text-align: center;
}
/* ===============================
   BOUTON CONNEXION / DECONNEXION
================================ */

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 18px;
    border-radius: 999px;

    background: transparent;
    border: 2px solid #2563eb;

    color: #ffffff;
    font-weight: 600;
    font-size: 14px;

    transition: all 0.2s ease;
}

.btn-login:hover {
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
}
.contact-hero {
    background: url('/assets/img/contact-bg.jpg') center/cover no-repeat;
    padding: 100px 20px;
}

.contact-overlay {
    background: rgba(0,0,0,0.45);
    padding: 60px 0;
}

.contact-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-left h1 {
    color: #fff;
    font-size: 42px;
    margin-bottom: 20px;
}

.contact-left ul {
    list-style: none;
    padding: 0;
    color: #fff;
    font-size: 18px;
}

.contact-left li {
    margin-bottom: 10px;
}

.contact-card {
    background: #fff;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.contact-card h2 {
    text-align: center;
    margin-bottom: 25px;
}

.contact-card label {
    font-weight: 600;
    font-size: 14px;
}

.contact-card input,
.contact-card textarea {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-top: 6px;
    font-size: 15px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.checkbox {
    display: flex;
    gap: 8px;
    font-size: 13px;
    margin: 18px 0;
}

.checkbox a {
    color: #1ea672;
    text-decoration: underline;
}

.btn-green {
    width: 100%;
    background: #1fb47a;
    border: none;
    color: #fff;
    padding: 16px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
}

.btn-green:hover {
    background: #17a36a;
}

.trust {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #555;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}
.hero {
    position: relative;
}

.hero::before {
    pointer-events: none;
}

/* Carte formulaire */
.auth-card {
    position: relative;
    z-index: 10;
}
.hero {
    position: relative;
}

.hero::before {
    pointer-events: none;
}

.form-card {
    position: relative;
    z-index: 10;
}

input, button {
    pointer-events: auto;
}
.hero::before {
    pointer-events: none;
}
.form-card {
    position: relative;
    z-index: 10;
}
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f1f5f9;
    color: #334155;
}

.header {
    background: #2563eb;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

.logo span {
    color: #fde047;
}

.header a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
}

.container {
    padding: 30px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.footer {
    background: #0f172a;
    color: #cbd5f5;
    text-align: center;
    padding: 15px;
}
/* ========================= */
/* RESPONSIVE – MOBILE */
/* ========================= */

@media (max-width: 900px) {

    /* Conteneur principal */
    .container {
        flex-direction: column;
        padding: 15px;
        gap: 20px;
    }

    /* Colonnes */
    .left,
    .right {
        width: 100%;
    }

    /* Cards */
    .card {
        padding: 18px;
        margin-bottom: 18px;
    }

    /* Titres */
    .card h2,
    .card h3 {
        font-size: 18px;
    }

    /* Boutons */
    .btn-primary,
    .btn-outline,
    .call-btn {
        width: 100%;
        text-align: center;
        padding: 14px;
        font-size: 16px;
    }

    /* Listes */
    .card ul {
        padding-left: 18px;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 40px 15px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 22px;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 15px;
    }

}
@media (max-width: 900px) {

    .nav-bar {
        flex-wrap: wrap;
        padding: 10px 15px;
    }

    .menu {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .menu a {
        display: inline-block;
        margin: 8px;
    }

    .header-right {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }
}
button,
a.btn-primary,
a.btn-outline {
    min-height: 44px;
}


