/* =========================================
   PG ELEC - STYLE GENERAL
   ========================================= */

body.site {
    background: #f3f6f7;
}

/* EN-TETE ET LOGO */

.container-header {
    background: #ffffff !important;
    box-shadow: none !important;
}

.container-header .navbar-brand {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.container-header .navbar-brand img {
    display: block;
    width: 500px;
    max-width: 100%;
    height: auto;
}

.container-header .site-description {
    text-align: center;
    color: #333333;
}


/* =========================================
   FORMULAIRE CONVERT FORMS ID 1
   ========================================= */

#cf_1 {
    --max-width: 700px !important;
    --control-gap: 12px !important;
    --input-padding: 12px 14px !important;
    --input-border-color: #bbbbbb !important;
    --input-border-radius: 5px !important;

    width: 100% !important;
    max-width: 700px !important;
    margin: 20px auto !important;
    padding: 25px !important;
    background: #ffffff !important;
    border: 1px solid #dddddd !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
}

#cf_1 form,
#cf_1 .cf-fields,
#cf_1 .cf-control-group,
#cf_1 .cf-control-input,
#cf_1 fieldset {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#cf_1 .cf-control-group {
    display: block !important;
    margin-bottom: 18px !important;
}

#cf_1 .cf-control-group > label,
#cf_1 .cf-control-group > .cf-label {
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 7px 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

#cf_1 .cf-control-input {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
}

#cf_1 .cf-radio-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 3px 0 !important;
}

#cf_1 .cf-radio-group input[type="radio"] {
    display: inline-block !important;
    flex: 0 0 18px !important;
    width: 18px !important;
    height: 18px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: #008000;
}

#cf_1 .cf-radio-group label,
#cf_1 .cf-radio-group .cf-label {
    display: inline-block !important;
    flex: 1 1 auto !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

#cf_1 input[type="text"],
#cf_1 input[type="email"],
#cf_1 input[type="tel"],
#cf_1 textarea {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 12px !important;
    background: #ffffff !important;
    border: 1px solid #bbbbbb !important;
    border-radius: 5px !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
}

#cf_1 textarea {
    min-height: 110px !important;
}

#cf_1 input:focus,
#cf_1 textarea:focus {
    border-color: #008000 !important;
    outline: 2px solid rgba(0,128,0,0.15) !important;
}

#cf_1 button[type="submit"] {
    width: auto !important;
    height: auto !important;
    padding: 12px 24px !important;
    background: #008000 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer;
}

#cf_1 button[type="submit"]:hover {
    background: #006600 !important;
}


/* =========================================
   PAGE D'ACCUEIL
   ========================================= */

.pgelec-accueil {
    max-width: 1150px;
    margin: 0 auto;
    font-family: inherit;
}


/* =========================================
   BANDEAU PRINCIPAL
   ========================================= */

.pgelec-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 480px;
    padding: 65px 55px;
    border-radius: 12px;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            rgba(0, 15, 22, 0.88) 0%,
            rgba(0, 15, 22, 0.58) 45%,
            rgba(0, 15, 22, 0.05) 100%
        ),
        url('/images/Bandeaux/bandeau-accueil.webp')
        center center / cover no-repeat;
}

.pgelec-hero-contenu {
    position: relative;
    z-index: 1;
    max-width: 660px;
}

.pgelec-hero-ligne,
.pgelec-section-ligne {
    display: block;
    width: 52px;
    height: 4px;
    background: #16803b;
    margin-bottom: 24px;
}

.pgelec-hero h1 {
    margin: 0 0 22px;
    color: #ffffff;
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 800;
    line-height: 1.13;
    text-transform: uppercase;
}

.pgelec-hero h1 span {
    color: #2fc268;
}

.pgelec-hero p {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 19px;
    line-height: 1.5;
}

.pgelec-hero-boutons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 32px;
}


/* =========================================
   BOUTONS
   ========================================= */

.pgelec-bouton {
    display: inline-block;
    padding: 14px 25px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

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

.pgelec-bouton-rouge {
    background: #d71920;
    color: #ffffff !important;
}

.pgelec-bouton-rouge:hover {
    background: #b5141b;
}

.pgelec-bouton-contour {
    background: rgba(0, 0, 0, 0.15);
    border: 2px solid #ffffff;
    color: #ffffff !important;
}

.pgelec-bouton-contour:hover {
    background: rgba(255, 255, 255, 0.15);
}


/* =========================================
   PRESTATIONS
   ========================================= */

.pgelec-services {
    padding: 28px 10px 70px;
}

.pgelec-section-entete {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 32px;
}

.pgelec-section-entete h2 {
    margin: 0;
    font-size: 34px;
    font-weight: 800;
    text-transform: uppercase;
    color: #14252b;
}

.pgelec-section-entete h2 span {
    color: #16803b;
}

.pgelec-section-entete > p {
    max-width: 440px;
    margin: 0;
    color: #555555;
    line-height: 1.6;
}

.pgelec-services-grille {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.pgelec-service {
    background: #ffffff;
    border: 1px solid #e5e9e5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pgelec-service:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.pgelec-service img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    object-position: center;
}

.pgelec-service h3 {
    margin: 22px 22px 12px;
    font-size: 20px;
    font-weight: 750;
    color: #14252b;
}

.pgelec-service p {
    margin: 0 22px 25px;
    color: #555555;
    line-height: 1.65;
}


/* =========================================
   PARTENAIRE COMPTOIR DE L'ECLAIRAGE
   ========================================= */

.pgelec-partenaire {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 360px;
    background: #071c1d;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 55px;
}

.pgelec-partenaire-contenu {
    padding: 50px 40px;
    color: #ffffff;
}

.pgelec-partenaire h2 {
    color: #30c56b;
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.pgelec-partenaire p {
    color: #e1e8e4;
    line-height: 1.7;
    margin-bottom: 25px;
}

.pgelec-bouton-partenaire {
    color: #ffffff !important;
    border: 1px solid #30c56b;
    background: transparent;
}

.pgelec-bouton-partenaire:hover {
    background: #16803b;
}

.pgelec-partenaire-visuel {
    min-height: 360px;
    background:
        url('/images/Bandeaux/bandeau-partenaire.webp')
        center center / cover no-repeat;
}


/* =========================================
   ENGAGEMENTS
   ========================================= */

.pgelec-engagements {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 55px;
}

.pgelec-engagement {
    padding: 25px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e5e9e5;
}

.pgelec-engagement h3 {
    font-size: 17px;
    font-weight: 750;
    color: #16803b;
    margin-bottom: 10px;
}

.pgelec-engagement p {
    margin: 0;
    color: #555555;
}


/* =========================================
   BLOC CONTACT
   ========================================= */

.pgelec-contact {
    background: #e9f0ec;
    border-left: 5px solid #c62828;
    border-radius: 12px;
    padding: 45px 30px;
    text-align: center;
    margin-bottom: 35px;
}

.pgelec-contact h2 {
    font-size: 30px;
    font-weight: 800;
    color: #14252b;
    margin-bottom: 18px;
}

.pgelec-contact p {
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.7;
}

.pgelec-contact .pgelec-bouton {
    background: #16803b;
    color: #ffffff !important;
}

.pgelec-contact .pgelec-bouton:hover {
    background: #11632e;
}


/* =========================================
   RESPONSIVE TABLETTE
   ========================================= */

@media (max-width: 950px) {

    .pgelec-services-grille {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pgelec-partenaire {
        grid-template-columns: 1fr;
    }

    .pgelec-partenaire-visuel {
        min-height: 280px;
    }

}


/* =========================================
   RESPONSIVE MOBILE
   ========================================= */

@media (max-width: 768px) {

    .container-header .navbar-brand img {
        width: 90%;
    }

    #cf_1 {
        width: 100% !important;
        padding: 15px !important;
        margin: 15px auto !important;
    }

    .pgelec-hero {
        min-height: 420px;
        padding: 45px 25px;
        background-position: 62% center;
    }

    .pgelec-hero h1 {
        font-size: 34px;
    }

    .pgelec-hero p {
        font-size: 16px;
    }

    .pgelec-section-entete {
        display: block;
    }

    .pgelec-section-entete > p {
        margin-top: 20px;
    }

    .pgelec-engagements {
        grid-template-columns: 1fr;
        gap: 15px;
    }

}

@media (max-width: 600px) {

    .pgelec-services {
        padding: 45px 0;
    }

    .pgelec-services-grille {
        grid-template-columns: 1fr;
    }

    .pgelec-service img {
        height: 220px;
    }

    .pgelec-partenaire-contenu {
        padding: 35px 25px;
    }

    .pgelec-contact {
        padding: 35px 20px;
    }

    .pgelec-contact h2 {
        font-size: 25px;
    }

}
/* Affichage complet du bandeau partenaire */

.pgelec-partenaire-visuel {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #071c1d;
}

/* =========================================
   LOGOS PARTENAIRES : COMPTOIR + TWO
   ========================================= */

.pgelec-partenaire-contenu .pgelec-partenaires-logos {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    margin-bottom: 25px;
}

.pgelec-partenaires-logos img.pgelec-partenaire-logo {
    display: block;
    flex: 0 1 55%;
    width: 55%;
    max-width: 55%;
    height: auto;
    margin: 0;
    object-fit: contain;
}

.pgelec-partenaires-logos img.pgelec-partenaire-logo-two {
    display: block;
    flex: 0 1 38%;
    width: 38%;
    max-width: 38%;
    height: auto;
    margin: 0;
    object-fit: contain;
}

/* =========================================
   PRESENTATION ENTRE BANDEAU ET PRESTATIONS
   ========================================= */

.pgelec-accueil .pgelec-presentation {
    width: 100%;
    margin: 0 0 38px;
    padding: 0;
    background: transparent;
    border: 0;
}

.pgelec-accueil .pgelec-presentation::before,
.pgelec-accueil .pgelec-presentation::after {
    content: "";
    display: block;
    width: 180px;
    max-width: 70%;
    height: 4px;
    background: #16803b;
}

.pgelec-accueil .pgelec-presentation::before {
    margin: 0 auto 30px;
}

.pgelec-accueil .pgelec-presentation::after {
    margin: 30px auto 0;
}

.pgelec-accueil .pgelec-presentation h2 {
    margin: 0 0 16px;
    color: #14252b;
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 800;
}

.pgelec-accueil .pgelec-presentation p {
    margin: 0 0 14px;
    line-height: 1.7;
}

.pgelec-accueil .pgelec-presentation p:last-of-type {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .pgelec-accueil .pgelec-services {
        padding-top: 24px;
    }
    .pgelec-accueil .pgelec-presentation {
        margin-bottom: 30px;
    }
}
