/* ==========================================================================
   SFH'MÉCA — feuille de style principale
   Palette : #266383 (bleu de marque) / #4f4f4f (gris de marque)
   ========================================================================== */

:root {
    --brand-blue: #266383;
    --brand-blue-dark: #1b4a61;
    --brand-blue-light: #e8f0f4;
    --brand-gray: #4f4f4f;
    --brand-gray-dark: #333333;
    --brand-gray-light: #f4f5f6;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--brand-gray);
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--brand-gray-dark);
}

a {
    color: var(--brand-blue);
    text-decoration: none;
}
a:hover {
    color: var(--brand-blue-dark);
}

::selection {
    background: var(--brand-blue);
    color: #fff;
}

/* ---- Boutons de marque ---- */
.btn-brand {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
    font-weight: 600;
}
.btn-brand:hover,
.btn-brand:focus {
    background-color: var(--brand-blue-dark);
    border-color: var(--brand-blue-dark);
    color: #fff;
}
.btn-outline-brand {
    border: 2px solid var(--brand-blue);
    color: var(--brand-blue);
    font-weight: 600;
}
.btn-outline-brand:hover {
    background-color: var(--brand-blue);
    color: #fff;
}
.btn-outline-light-brand {
    border: 2px solid #fff;
    color: #fff;
    font-weight: 600;
}
.btn-outline-light-brand:hover {
    background-color: #fff;
    color: var(--brand-blue);
}

/* ---- Menu principal ---- */
.main-navbar {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}
.main-navbar .nav-link {
    color: var(--brand-gray-dark);
    font-weight: 500;
    padding: 0.5rem 0.9rem;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--brand-blue);
}
.main-navbar .dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-radius: 0.6rem;
}
.main-navbar .dropdown-item:hover {
    background-color: var(--brand-blue-light);
    color: var(--brand-blue);
}

/* ---- Héros (page d'accueil) ---- */
.hero-section {
    position: relative;
    color: #fff;
    padding: 8rem 0 7rem;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(27, 43, 54, 0.92), rgba(38, 99, 131, 0.88));
}
.hero-section .container {
    position: relative;
    z-index: 2;
}
.hero-section h1 {
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
}
.hero-slogan {
    display: inline-block;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #bcd7e4;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ---- Bannière de page intérieure ---- */
.page-header {
    background: linear-gradient(120deg, var(--brand-blue), var(--brand-gray-dark));
    color: #fff;
    padding: 3.75rem 0;
}
.page-header h1 {
    color: #fff;
    font-weight: 800;
    margin-bottom: 0.4rem;
}
.page-header .breadcrumb {
    margin-bottom: 0;
}
.page-header .breadcrumb a {
    color: #d7e6ed;
}
.page-header .breadcrumb-item.active {
    color: #ffffff;
}
.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: #d7e6ed;
}

/* ---- Titres de section ---- */
.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-blue);
    font-weight: 700;
    font-size: 0.85rem;
}
.section-title {
    color: var(--brand-gray-dark);
    font-weight: 800;
}
.section-title-underline {
    width: 60px;
    height: 4px;
    background: var(--brand-blue);
    margin: 0.75rem 0 1.5rem;
    border-radius: 2px;
}
.section-title-underline.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ---- Cartes de service ---- */
.service-card {
    border: none;
    border-radius: 0.9rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(38, 99, 131, 0.16);
}
.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--brand-blue-light);
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

/* ---- Blocs génériques ---- */
.bg-brand { background-color: var(--brand-blue) !important; }
.bg-brand-gray { background-color: var(--brand-gray-dark) !important; }
.bg-brand-light { background-color: var(--brand-blue-light) !important; }
.bg-soft { background-color: var(--brand-gray-light) !important; }
.text-brand { color: var(--brand-blue) !important; }
.text-brand-gray { color: var(--brand-gray) !important; }

/* ---- Chiffres clés ---- */
.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--brand-blue);
    line-height: 1;
}
.stat-label {
    color: var(--brand-gray);
    font-size: 0.95rem;
}

/* ---- Bandeau CTA ---- */
.cta-section {
    position: relative;
    color: #fff;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    padding: 5rem 0;
}
.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(27, 43, 54, 0.92), rgba(38, 99, 131, 0.88));
}
.cta-section .container {
    position: relative;
    z-index: 2;
}
.cta-section h2 {
    color: #fff;
}
@media (min-width: 992px) {
    .cta-section {
        padding: 7rem 0;
    }
}

/* ---- Portails coulissants : bloc devis uniquement ---- */
.quote-only-box {
    border: 2px dashed var(--brand-blue);
    background: var(--brand-blue-light);
    border-radius: 0.9rem;
    padding: 1.5rem 1.75rem;
}

/* ---- Étapes numérotées ---- */
.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* ---- Images ---- */
.img-rounded {
    border-radius: 0.9rem;
}
.img-shadow {
    box-shadow: 0 20px 45px rgba(38, 99, 131, 0.18);
}

/* ---- Footer ---- */
.site-footer {
    background-color: #24272b;
    color: #c7cbce;
}
.site-footer h6 {
    color: #ffffff;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    margin-bottom: 1.1rem;
}
.text-footer-muted {
    color: #7d8184;
    font-size: 0.82rem;
}
.footer-links li {
    margin-bottom: 0.55rem;
    font-size: 0.92rem;
}
.footer-links a {
    color: #c7cbce;
}
.footer-links a:hover {
    color: #ffffff;
}
.footer-bottom {
    background-color: #1b1d20;
    color: #9aa0a3;
    font-size: 0.82rem;
}
.footer-bottom a {
    color: #c7cbce;
}
.footer-bottom a:hover {
    color: #ffffff;
}

/* ---- Bouton retour en haut ---- */
#backToTop {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1030;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
#backToTop.show {
    display: flex;
}

/* ---- Animation d'apparition ---- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-visible {
    opacity: 1;
    transform: none;
}

/* ---- Blocs d'informations légales (clé / valeur) ---- */
.legal-info-list {
    border-radius: 0.75rem;
    padding: 0.25rem 1.5rem;
    margin: 0;
}
.legal-info-row {
    display: flex;
    flex-wrap: wrap;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.legal-info-row:last-child {
    border-bottom: none;
}
.legal-info-row dt {
    flex: 0 0 220px;
    font-weight: 600;
    color: var(--brand-gray-dark);
}
.legal-info-row dd {
    flex: 1 1 240px;
    margin: 0;
    color: var(--brand-gray);
}
@media (max-width: 575.98px) {
    .legal-info-row {
        flex-direction: column;
    }
    .legal-info-row dt {
        flex: none;
        margin-bottom: 0.2rem;
    }
}

/* ---- Formulaire de contact ---- */
.contact-info-card {
    border-radius: 0.9rem;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.map-embed {
    border-radius: 0.9rem;
    overflow: hidden;
    min-height: 260px;
}
.map-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
}

/* Honeypot anti-spam : champ masqué visuellement, toujours accessible dans le DOM */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
}
