/* ==========================================================================
   GROUPE ESPACE DU BÂTIMENT (GEB) — Feuille de style principale & Facturation
   ========================================================================== */

:root {
    --geb-navy: #071f40;
    --geb-blue: #004a99;
    --geb-blue-light: #007bff;
    --geb-blue-soft: #eef5ff;
    --geb-gold: #ffc107;
    --geb-gold-dark: #e0a800;
    --geb-orange: #f97316;
    --geb-green: #16a34a;
    --geb-whatsapp: #25d366;
    --geb-dark: #1e293b;
    --geb-muted: #64748b;
    --geb-border: #e2e8f0;
    --font-heading: 'Raleway', system-ui, -apple-system, sans-serif;
    --font-body: 'Roboto', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--geb-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    transition: all 0.25s ease;
}

/* --------------------------------------------------------------------------
   1. BARRE SUPÉRIEURE & ACCÈS RAPIDE SÉCURISÉ (AU-DESSUS DU SITE)
   -------------------------------------------------------------------------- */
.geb-topbar {
    background: linear-gradient(90deg, var(--geb-navy) 0%, #0b356e 100%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.84rem;
    padding: 8px 0;
    border-bottom: 2px solid rgba(255, 193, 7, 0.35);
    position: relative;
    z-index: 1040;
}

.geb-topbar a {
    color: rgba(255, 255, 255, 0.92);
}

.geb-topbar a:hover {
    color: var(--geb-gold);
}

.btn-top-billing {
    background: linear-gradient(135deg, var(--geb-gold) 0%, #ff9800 100%);
    color: #071f40 !important;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 5px 14px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.2px;
}

.btn-top-billing:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(255, 193, 7, 0.55);
    background: #ffd54f;
}

/* Bandeau déroulant de connexion par code en haut de page */
.top-code-drawer {
    background: linear-gradient(135deg, #071f40 0%, #003b7a 100%);
    color: #fff;
    border-bottom: 3px solid var(--geb-gold);
    box-shadow: 0 12px 30px rgba(7, 31, 64, 0.35);
    display: none;
}

.top-code-drawer.open {
    display: block;
}

/* --------------------------------------------------------------------------
   2. HEADER & NAVIGATION PRINCIPALE
   -------------------------------------------------------------------------- */
.geb-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    padding: 10px 0;
    transition: all 0.3s ease;
}

.geb-logo-img {
    max-height: 58px;
    width: auto;
    border-radius: 8px;
}

.geb-brand-title {
    font-weight: 800;
    font-size: 1.08rem;
    color: var(--geb-navy);
    line-height: 1.15;
    letter-spacing: -0.2px;
}

.geb-brand-sub {
    font-size: 0.72rem;
    color: var(--geb-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.navbar-nav .nav-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.93rem;
    color: var(--geb-navy) !important;
    padding: 8px 14px !important;
    border-radius: 8px;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--geb-blue-light) !important;
    background: var(--geb-blue-soft);
}

.btn-nav-quote {
    background: var(--geb-blue);
    color: #fff !important;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    box-shadow: 0 4px 12px rgba(0, 74, 153, 0.25);
}

.btn-nav-quote:hover {
    background: var(--geb-navy);
    transform: translateY(-2px);
}

.btn-nav-lock {
    background: #0f172a;
    color: var(--geb-gold) !important;
    border: 1px solid rgba(255, 193, 7, 0.5);
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.86rem;
}

.btn-nav-lock:hover {
    background: var(--geb-gold);
    color: #0f172a !important;
}

/* --------------------------------------------------------------------------
   3. HERO CAROUSEL
   -------------------------------------------------------------------------- */
.geb-hero {
    position: relative;
    height: 82vh;
    min-height: 540px;
    max-height: 760px;
    background: var(--geb-navy);
    overflow: hidden;
}

.geb-hero .carousel,
.geb-hero .carousel-inner,
.geb-hero .carousel-item {
    height: 100%;
}

.geb-hero .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.42) contrast(1.08);
    transform: scale(1.03);
    transition: transform 6s ease;
}

.geb-hero .carousel-item.active img {
    transform: scale(1);
}

.geb-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 31, 64, 0.78) 0%, rgba(0, 74, 153, 0.45) 60%, rgba(7, 31, 64, 0.82) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
}

.geb-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 193, 7, 0.18);
    border: 1px solid rgba(255, 193, 7, 0.6);
    color: var(--geb-gold);
    padding: 7px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
}

.geb-hero h1,
.geb-hero h2 {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
    margin-bottom: 1rem;
}

.geb-hero p {
    font-size: clamp(1rem, 1.8vw, 1.22rem);
    color: rgba(255, 255, 255, 0.92);
    max-width: 760px;
    margin: 0 auto 2rem;
}

.btn-hero-primary {
    background: var(--geb-gold);
    color: #071f40;
    font-weight: 800;
    padding: 13px 30px;
    border-radius: 50px;
    font-size: 0.98rem;
    box-shadow: 0 8px 22px rgba(255, 193, 7, 0.35);
}

.btn-hero-primary:hover {
    background: #fff;
    color: var(--geb-blue);
    transform: translateY(-2px);
}

.btn-hero-outline {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.75);
    font-weight: 700;
    padding: 11px 28px;
    border-radius: 50px;
    font-size: 0.98rem;
    backdrop-filter: blur(4px);
}

.btn-hero-outline:hover {
    background: #fff;
    color: var(--geb-navy);
    border-color: #fff;
}

/* --------------------------------------------------------------------------
   4. SECTIONS COMMUNES & TITRES
   -------------------------------------------------------------------------- */
.geb-section {
    padding: 80px 0;
}

.geb-section-alt {
    background-color: #f8fafc;
}

.section-kicker {
    display: inline-block;
    background: var(--geb-blue-soft);
    color: var(--geb-blue);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.section-heading {
    font-weight: 800;
    color: var(--geb-navy);
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    margin-bottom: 12px;
}

.section-divider {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--geb-blue) 0%, var(--geb-gold) 100%);
    border-radius: 2px;
    margin: 0 auto 18px;
}

/* --------------------------------------------------------------------------
   5. CARTES SERVICES, PRODUITS, GALERIE & TÉMOIGNAGES
   -------------------------------------------------------------------------- */
.service-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--geb-border);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 38px rgba(0, 74, 153, 0.13);
    border-color: rgba(0, 123, 255, 0.35);
}

.service-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--geb-blue) 0%, var(--geb-blue-light) 100%);
    color: #fff;
    font-size: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0, 74, 153, 0.25);
}

.product-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--geb-border);
    padding: 1.35rem;
    height: 100%;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    border-color: var(--geb-blue-light);
    box-shadow: 0 10px 25px rgba(0, 74, 153, 0.1);
    transform: translateY(-4px);
}

.product-price-tag {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--geb-blue);
}

/* Statistiques */
.geb-stats-banner {
    background: linear-gradient(135deg, rgba(7, 31, 64, 0.92) 0%, rgba(0, 74, 153, 0.88) 100%),
                url('../img/stats-bg.jpg') center/cover no-repeat fixed;
    color: #fff;
    padding: 70px 0;
}

.stat-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    backdrop-filter: blur(6px);
    height: 100%;
}

.stat-number {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--geb-gold);
    font-family: var(--font-heading);
    line-height: 1.1;
}

/* Galerie / Réalisations */
.gallery-filter-btn {
    border: 1px solid var(--geb-border);
    background: #fff;
    color: var(--geb-navy);
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.88rem;
    margin: 4px;
    transition: all 0.25s ease;
}

.gallery-filter-btn.active,
.gallery-filter-btn:hover {
    background: var(--geb-blue);
    color: #fff;
    border-color: var(--geb-blue);
    box-shadow: 0 5px 15px rgba(0, 74, 153, 0.25);
}

.project-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    height: 290px;
    background: #0f172a;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 31, 64, 0.92) 0%, rgba(7, 31, 64, 0.2) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #fff;
    opacity: 0.95;
    transition: all 0.3s ease;
}

/* Témoignages */
.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--geb-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
}

/* --------------------------------------------------------------------------
   6. PORTAIL DE CONNEXION EN CODE (EN BAS DU SITE & PAGE LOGIN)
   -------------------------------------------------------------------------- */
.bottom-security-portal {
    background: radial-gradient(circle at top right, #0e3a75 0%, #071f40 65%, #041226 100%);
    color: #fff;
    padding: 75px 0;
    border-top: 4px solid var(--geb-gold);
    position: relative;
}

.pin-pad-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 193, 7, 0.35);
    border-radius: 22px;
    padding: 32px 28px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    max-width: 440px;
    margin: 0 auto;
}

.pin-display-input {
    background: rgba(4, 18, 38, 0.85) !important;
    border: 2px solid rgba(255, 193, 7, 0.55) !important;
    color: var(--geb-gold) !important;
    font-size: 1.65rem !important;
    font-weight: 800 !important;
    letter-spacing: 10px;
    text-align: center;
    height: 58px;
    border-radius: 14px;
}

.pin-display-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 4px;
    font-size: 1rem;
}

.pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.pin-key {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 13px 0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.pin-key:hover {
    background: var(--geb-gold);
    color: #071f40;
    border-color: var(--geb-gold);
    transform: translateY(-2px);
}

.pin-key:active {
    transform: scale(0.96);
}

.pin-key.key-clear {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fca5a5;
    font-size: 0.95rem;
}

.pin-key.key-clear:hover {
    background: #ef4444;
    color: #fff;
}

.pin-key.key-enter {
    background: linear-gradient(135deg, var(--geb-gold) 0%, #f59e0b 100%);
    color: #071f40;
    border-color: var(--geb-gold);
    font-size: 0.95rem;
    font-weight: 800;
}

/* --------------------------------------------------------------------------
   7. FOOTER & BOUTON WHATSAPP FLOTTANT
   -------------------------------------------------------------------------- */
.geb-footer {
    background: #041226;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
    font-size: 0.92rem;
}

.geb-footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.geb-footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--geb-gold);
}

.geb-footer ul li {
    margin-bottom: 10px;
}

.geb-footer a {
    color: rgba(255, 255, 255, 0.78);
}

.geb-footer a:hover {
    color: var(--geb-gold);
    padding-left: 4px;
}

.whatsapp-float {
    position: fixed;
    width: 58px;
    height: 58px;
    bottom: 24px;
    left: 24px;
    background-color: var(--geb-whatsapp);
    color: #fff !important;
    border-radius: 50%;
    font-size: 28px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    background-color: #1ebc57;
    transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   8. ESPACE DE FACTURATION & FEUILLE A4 D'APERÇU
   -------------------------------------------------------------------------- */
.billing-shell {
    background: #f1f5f9;
    min-height: 100vh;
}

.billing-topbar {
    background: linear-gradient(90deg, #071f40 0%, #004a99 100%);
    color: #fff;
    padding: 12px 0;
    border-bottom: 3px solid var(--geb-gold);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.kpi-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid var(--geb-border);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    height: 100%;
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.a4-preview-paper {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 28px 30px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
    font-size: 0.86rem;
    color: #0f172a;
}

.a4-header-band {
    border-bottom: 3px solid var(--geb-blue);
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.a4-table th {
    background: var(--geb-navy) !important;
    color: #fff !important;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 10px;
}

.a4-table td {
    padding: 8px 10px;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
}

.a4-words-box {
    background: #f8fafc;
    border-left: 4px solid var(--geb-gold);
    padding: 10px 14px;
    border-radius: 4px;
    font-style: italic;
}
