/* ==========================================================================
   GLOBAL INDUSTRIE - INSTALLATION ARMOIRES ÉLECTRIQUES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&family=Oswald:wght@400;500;600;700&display=swap');

:root {
    --gi-brand-red: #ff0000;
    --gi-text-dark: #22262a;
    --gi-text-grey: #62676d;
    --gi-border-light: #e4e7eb;
    --gi-bg-light: #f5f6f7;
    --gi-footer-bg: #5c5e62;
    --gi-font-primary: 'Open Sans', sans-serif;
    --gi-font-display: 'Oswald', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.gi-page {
    font-family: var(--gi-font-primary);
    color: var(--gi-text-dark);
    background: #fff;
    line-height: 1.6;
}

.gi-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ============================================================
   1. HERO – split layout: text left / image right
   ============================================================ */


.gi-hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 55px 50px 55px 60px;
}

.gi-hero-left h1 {
    font-family: var(--gi-font-display);
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--gi-text-dark);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.gi-hero-left p {
    font-size: 0.83rem;
    color: var(--gi-text-grey);
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 320px;
}

.gi-btn-red {
    display: inline-block;
    background-color: var(--gi-brand-red);
    color: #fff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.82rem;
    width: fit-content;
    transition: background 0.2s;
}
.gi-btn-red:hover { background: #c50016; }

.gi-hero-right {
    position: relative;
    overflow: hidden;
}

.gi-hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ============================================================
   2. EXPERTISE INTRO SECTION
   ============================================================ */
.gi-expertise-section {
    padding: 55px 0 50px;
    background: #fff;
}

.gi-expertise-section h2 {
    font-family: var(--gi-font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--gi-text-dark);
    margin-bottom: 32px;
    letter-spacing: 0.2px;
}

.gi-expertise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.gi-expertise-left p {
    font-size: 0.86rem;
    color: var(--gi-text-grey);
    line-height: 1.7;
    margin-bottom: 28px;
}

.gi-thumb-row {
    display: flex;
    gap: 12px;
}

.gi-thumb {
    flex: 1;
    height: 115px;
    border-radius: 8px;
    overflow: hidden;
}

.gi-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gi-expertise-right {
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
}

.gi-expertise-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   3. PRESTATIONS DE CÂBLAGE – numbered step flow
   ============================================================ */
.gi-prestations-section {
    padding: 50px 0 60px;
    background: #fff;
}

.gi-prestations-section h2 {
    font-family: var(--gi-font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--gi-text-dark);
    margin-bottom: 42px;
    letter-spacing: 0.2px;
}

.gi-steps-flow {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    gap: 0;
}

/* connecting dashed arrow line between steps */
.gi-steps-flow::before {
    content: '';
    position: absolute;
    top: 34px;
    left: calc(10% + 20px);
    right: calc(10% + 20px);
    height: 2px;
    border-top: 2px solid  #e1001a;
    z-index: 0;
}




.gi-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 1;
    padding: 0 8px;
}

.gi-step-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 2px solid #e8ebee;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    position: relative;
    flex-shrink: 0;
}

.gi-step-circle svg {
    width: 28px;
    height: 28px;
    stroke: var(--gi-brand-red);
    fill: none;
    stroke-width: 1.6;
}

.gi-step-num {
    position: absolute;
    top: -2px;
    left: -5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gi-brand-red);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gi-step p {
    font-size: 0.7rem;
    color: var(--gi-text-grey);
    line-height: 1.45;
    max-width: 110px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* ============================================================
   4. OBJECTIFS DE L'INSTALLATION – full-width image with overlay
   ============================================================ */
.gi-objectifs-section {
    position: relative;
    overflow: hidden;
}

.gi-objectifs-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.6);
}


.gi-objectifs-cards {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.25),
        15px -10px 30px -15px rgba(0, 0, 0, 1.25);
}
.gi-objectifs-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 260px;
    display: flex;
    align-items: center;
    padding: 0 60px;
}

.gi-objectifs-text-overlay h2 {
    font-family: var(--gi-font-display);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    text-transform: uppercase;
}

.gi-objectifs-cards {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}

/* overlay comme sur l’image */
.gi-objectifs-cards::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.65),
        rgba(0, 0, 0, 0.25)
    );

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    z-index: 0;
}

/* contenu au-dessus de l’overlay */
.gi-objectifs-cards > * {
    position: relative;
    z-index: 1;
}

.gi-obj-card {
    padding: 20px 22px 22px;
    position: relative;
}

.gi-obj-card:last-child { border-right: none; }

.gi-obj-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--gi-brand-red);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    display: block;
}

.gi-obj-card h4 {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.45;
}

/* ============================================================
   5. POURQUOI CHOISIR GLOBAL INDUSTRIE – 3 cards
   ============================================================ */
.gi-pourquoi-section {
    padding: 55px 0 65px;
    background: #fff;
}

.gi-pourquoi-section h2 {
    font-family: var(--gi-font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--gi-text-dark);
    margin-bottom: 36px;
}

.gi-pourquoi-section h2 span {
    color: var(--gi-brand-red);
}

.gi-cards-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gi-why-card {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px 26px 28px;
    text-align: center;
    border: 1px solid #edf0f2;
}

.gi-why-card h3 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gi-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 12px;
}

.gi-why-divider {
    width: 64px;
    height: 5px;
    background: var(--gi-brand-red);
    margin: 0 auto 14px;
    border-radius: 2px;
}

.gi-why-card p {
    font-size: 0.78rem;
    color: var(--gi-text-grey);
    line-height: 1.55;
}

/* ============================================================
   6. RED CTA BANNER
   ============================================================ */
.gi-cta-banner {
    background: var(--gi-brand-red);
    padding: 32px 20px 75px;
    text-align: center;
}

.gi-cta-banner h2 {
    font-family: var(--gi-font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .gi-hero { grid-template-columns: 1fr; }
    .gi-hero-right { height: 260px; }
    .gi-expertise-grid { grid-template-columns: 1fr; }
    .gi-steps-flow { flex-wrap: wrap; gap: 24px; justify-content: center; }
    .gi-steps-flow::before { display: none; }
    .gi-objectifs-cards { grid-template-columns: repeat(2, 1fr); }
    .gi-cards-three { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .gi-hero-left { padding: 40px 25px; }
    .gi-hero-left h1 { font-size: 1.7rem; }
    .gi-objectifs-cards { grid-template-columns: 1fr; }
}