@charset "UTF-8";

/* Styles communs : variables, header, footer, boutons, structure */

:root {
    --bleu: #163a5f;
    --bleu-fonce: #0f2a47;
    --rouge: #d12f2f;
    --rouge-fonce: #b02525;
    --anthracite: #2b2f36;
    --gris: #5b6470;
    --gris-clair: #f4f6f9;
    --gris-bordure: #dde3ea;
    --blanc: #ffffff;
    --ombre: 0 2px 10px rgba(22, 58, 95, 0.08);
    --rayon: 8px;
    --largeur-max: 1200px;
}

body {
    font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--anthracite);
    background: var(--blanc);
}

.conteneur {
    width: 100%;
    max-width: var(--largeur-max);
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ---------- Titres ---------- */
h1,
h2,
h3 {
    font-family: "Poppins", "Inter", sans-serif;
    color: var(--bleu);
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(1.5rem, 4.5vw, 2.1rem);
    font-weight: 700;
    margin-bottom: 0.5em;
}

h3 {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    font-weight: 600;
}

p {
    margin-bottom: 1em;
}

/* Label "eyebrow" au-dessus des titres */
.eyebrow {
    display: inline-block;
    font-family: "Inter", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rouge);
    margin-bottom: 10px;
}

/* En-tête de section centré */
.section-titre {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 14px;
}

/* Espacement vertical de section (mutualisé) */
.section {
    padding-top: 55px;
    padding-bottom: 55px;
}

.section-grise {
    background: var(--gris-clair);
}

/* En-tête de page interne (mutualisé) */
.page-entete {
    background: var(--gris-clair);
    border-bottom: 1px solid var(--gris-bordure);
    padding: 50px 0;
}

.page-entete h1 {
    font-size: clamp(1.7rem, 5vw, 2.5rem);
    margin-bottom: 14px;
}

.page-entete p {
    max-width: 760px;
    color: var(--gris);
    margin-bottom: 0;
}

/* Petit séparateur centré entre deux sections */
.separateur {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 0;
}

.separateur::before,
.separateur::after {
    content: "";
    height: 1px;
    width: 70px;
    background: var(--gris-bordure);
}

.separateur span {
    width: 9px;
    height: 9px;
    background: var(--rouge);
    border-radius: 50%;
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-rouge {
    background: var(--rouge);
    color: var(--blanc);
    box-shadow: 0 6px 18px rgba(209, 47, 47, 0.28);
}

.btn-rouge:hover {
    background: var(--rouge-fonce);
    box-shadow: 0 10px 24px rgba(209, 47, 47, 0.34);
}

.btn-bleu {
    background: var(--bleu);
    color: var(--blanc);
}

.btn-bleu:hover {
    background: var(--bleu-fonce);
}

.btn-contour {
    border: 2px solid var(--bleu);
    color: var(--bleu);
}

.btn-contour:hover {
    background: var(--bleu);
    color: var(--blanc);
}

/* ---------- En-tête ---------- */
.entete {
    background: var(--blanc);
    border-bottom: 1px solid var(--gris-bordure);
    box-shadow: var(--ombre);
    position: sticky;
    top: 0;
    z-index: 100;
}

.entete .conteneur {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 70px;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-principale ul {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-principale a {
    font-weight: 600;
    color: var(--anthracite);
    padding: 6px 0;
    transition: color 0.2s ease;
}

.nav-principale a:hover,
.nav-principale a.actif {
    color: var(--rouge);
}

.entete-contact {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tel-entete {
    font-weight: 700;
    color: var(--bleu);
    white-space: nowrap;
}

/* Bouton menu mobile (caché en desktop) */
.menu-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.menu-burger span {
    width: 26px;
    height: 3px;
    background: var(--bleu);
    border-radius: 2px;
}

/* ---------- Fil d'Ariane ---------- */
.fil-ariane {
    background: var(--gris-clair);
    border-bottom: 1px solid var(--gris-bordure);
    padding: 12px 0;
    font-size: 0.9rem;
}

.fil-ariane ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.fil-ariane li:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    color: var(--gris);
}

.fil-ariane a {
    color: var(--bleu);
}

.fil-ariane li:last-child {
    color: var(--gris);
}

/* ---------- Pied de page ---------- */
.pied {
    background: var(--bleu-fonce);
    color: #cbd6e2;
    margin-top: 60px;
    padding: 45px 0 20px;
}

.pied a {
    color: #cbd6e2;
    transition: color 0.2s ease;
}

.pied a:hover {
    color: var(--blanc);
}

.pied-grille {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.pied-col {
    flex: 1 1 220px;
}

.pied-col h3 {
    color: var(--blanc);
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.pied-col ul li {
    margin-bottom: 8px;
}

.pied-reseaux {
    display: flex;
    gap: 14px;
    margin-top: 10px;
}

.pied-bas {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 30px;
    padding-top: 18px;
    text-align: center;
    font-size: 0.85rem;
    color: #9aa9bb;
}

/* ---------- Composants mutualisés : cartes ---------- */
.grille-produits {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 30px;
}

.carte-produit {
    flex: 1 1 280px;
    max-width: 360px;
    background: var(--blanc);
    border: 1px solid var(--gris-bordure);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--ombre);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carte-produit:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(22, 58, 95, 0.16);
}

.carte-produit img,
.image-placeholder {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.carte-produit:hover img {
    transform: scale(1.05);
}

.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gris-clair);
    color: var(--gris);
    font-size: 0.95rem;
}

.carte-corps {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.carte-dim {
    color: var(--gris);
    margin-bottom: 4px;
}

.carte-prix {
    color: var(--rouge);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.carte-corps .btn {
    margin-top: auto;
}

.section-lien {
    text-align: center;
    margin-top: 36px;
    margin-bottom: 0;
}

/* Cartes actualités */
.grille-actus {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 26px;
}

.carte-actu {
    flex: 1 1 280px;
    max-width: 360px;
    background: var(--blanc);
    border: 1px solid var(--gris-bordure);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--ombre);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carte-actu:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(22, 58, 95, 0.16);
}

.carte-actu img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.carte-actu .carte-corps {
    padding: 18px 20px;
}

.actu-date {
    color: var(--gris);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.carte-actu .lien-actu {
    margin-top: auto;
    color: var(--rouge);
    font-weight: 600;
}

.titre-actu {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

/* ---------- Bandeau CTA (mutualisé) ---------- */
.bande-cta {
    background: linear-gradient(120deg, rgba(15, 42, 71, 0.95) 0%, rgba(22, 58, 95, 0.85) 100%), url("/images/sections/temoignage-cta.jpg") center / cover no-repeat;
    color: var(--blanc);
    padding: 60px 0;
}

.bande-cta-contenu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.bande-cta h2 {
    color: var(--blanc);
    margin-bottom: 10px;
}

.bande-cta p {
    color: #dbe5f0;
    margin-bottom: 0;
    max-width: 560px;
}

.eyebrow-clair {
    color: #ff9d9d;
}

.bande-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-blanc {
    background: var(--blanc);
    color: var(--bleu);
}

.btn-blanc:hover {
    background: #eaf1f8;
}

/* ---------- Visionneuse (lightbox, mutualisée) ---------- */
.js-zoom {
    cursor: pointer;
}

body.pas-de-defilement {
    overflow: hidden;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.ouvert {
    display: flex;
}

.lightbox-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#lightbox-img {
    max-width: min(92vw, 1100px);
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#lightbox-legende {
    color: #e7edf3;
    margin-top: 16px;
    text-align: center;
    font-size: 0.95rem;
    max-width: 700px;
    padding: 0 10px;
}

.lightbox-nav,
.lightbox-fermer {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.lightbox-nav:hover,
.lightbox-fermer:hover {
    background: rgba(255, 255, 255, 0.28);
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
}

.lightbox-nav svg {
    width: 28px;
    height: 28px;
}

.lightbox-prec {
    left: 18px;
}

.lightbox-suiv {
    right: 18px;
}

.lightbox-fermer {
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
}

.lightbox-fermer svg {
    width: 24px;
    height: 24px;
}

.lightbox-cache {
    display: none;
}

@media (max-width: 600px) {
    .lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .lightbox-nav svg {
        width: 22px;
        height: 22px;
    }

    .lightbox-prec {
        left: 8px;
    }

    .lightbox-suiv {
        right: 8px;
    }

    #lightbox-img {
        max-height: 74vh;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .menu-burger {
        display: flex;
    }

    .nav-principale {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--blanc);
        border-bottom: 1px solid var(--gris-bordure);
        box-shadow: var(--ombre);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-principale.ouvert {
        max-height: 420px;
    }

    .nav-principale ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 20px;
    }

    .nav-principale li {
        border-bottom: 1px solid var(--gris-bordure);
    }

    .nav-principale a {
        display: block;
        padding: 14px 0;
    }

    /* Sur mobile : header epure, le CTA devis passe dans le menu */
    .tel-entete,
    .entete-contact .btn {
        display: none;
    }

    /* CTA devis ajoute en bas du menu deroulant */
    .nav-principale ul::after {
        content: "";
    }

    .nav-cta {
        display: block;
        margin: 12px 20px 16px;
    }
}

@media (min-width: 861px) {
    .nav-cta {
        display: none;
    }
}

@media (max-width: 600px) {
    .section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .conteneur {
        padding-left: 18px;
        padding-right: 18px;
    }

    .bande-cta-actions {
        width: 100%;
    }

    .bande-cta-actions .btn {
        flex: 1 1 100%;
    }

    .page-entete {
        padding: 36px 0;
    }
}
