/* custom.css — alcaraselectricite.com — porté depuis le CSS réel de l'ancien site, mode CLAIR
   (référence demandée : le mode sombre n'est affiché que si le visiteur active "Mode éco", le site
   rebâti est statique et prend donc les teintes du mode clair, vues par défaut). */

:root {
    --ae-bg: #fff;
    --ae-text: #1a1a1a;
    --ae-color-1: #C73232;
    --ae-color-2: #EBEBEB;
    --ae-color-2-alt: #CDCDCD;
    --ae-color-3: #CDCDCD;
    --ae-color-4: #447749;
    --ae-color-4-alt: #74C47C;
    --ae-intro: url("https://medias1.ambition-com.fr/45/branding/decor-intro.svg");
    --ae-flash: url("https://medias1.ambition-com.fr/45/branding/decor-flash.svg");
    --ae-fond-reseau: url("https://medias1.ambition-com.fr/45/branding/decor-fond.svg");
    --eco : url("https://medias1.ambition-com.fr/45/branding/decor-pousse.svg");
}

.w-80 {
    width: 80%;
}

.w-70 {
    width: 70%;
}

.w-60 {
    width: 60%;
}

.w-50 {
    width: 50%;
}

.w-40 {
    width: 40%;
}

.w-30 {
    width: 30%;
}

.w-20 {
    width: 20%;
}

.w-10 {
    width: 10%;
}

.menu-logo img {
height: var(--menu-logo-height);
}
.menu-level-0 a:hover, .menu-level-0 .menu-item-container > a:hover {
    border-radius:0;
    height:100%;
    background:rgba(255, 255, 255, 0.2) !important;
}
.menu-level-0 > li.is-current-section  {
    color: var(--menu-item-color-current, var(--menu-item-color-hover));
   background:rgba(255, 255, 255, 0.2) !important;
}

.btn-trans {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.menu-icon-btn:not(.btn) {
    color: var(--menu-color);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0 !important;
}
/* Correctif contraste (déjà posé le 13/11, conservé) */
.module-card__date,.module-card__date-label{color:#5a6066 !important}

/* Logos partenaires (Qualifelec/Qualibat/CLCE) en niveaux de gris, comme sur l'ancien site. */
.partner-logo { filter: grayscale(1); opacity: .65; }

/* ---------- Titres de section avec éclair en filigrane ---------- */
.ae-widget-header {
    display: block;
    padding: 2.5rem 1rem;
    text-align: center;
    position: relative;
}
.ae-widget-header h2 {
    font-size: 42px;
    font-weight: 300;
    text-transform: uppercase;
    color: var(--ae-text);
    position: relative;
}
.ae-widget-header h2 span {
    position: relative;
    z-index: 1;
}
.ae-widget-header h2 span::after {
    content: '';
    position: absolute;
    width: 256px;
    height: 155px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--ae-flash) no-repeat;
    z-index: -1;
}

.ae-widget-header.eco h2 span:after {
    content: '';
    position: absolute;
    width: 145px;
    height: 155px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--eco) no-repeat;
    z-index: -1;
}
.ae-widget-header p {
    color: var(--ae-text);
    padding-top: 8px;
    z-index: 2;
    position: relative;
}
@media (max-width: 964px) {
    .ae-widget-header h2 { font-size: 28px; }
}

/* ---------- Sections à fond gris clair (ancien bg-2 / bg-2-alt du mode clair) ---------- */
.ae-alt-bg { background: var(--ae-color-2-alt); color: var(--ae-text); }
.ae-alt-bg-2 { background: var(--ae-color-2); color: var(--ae-text); }

/* ---------- Fond "réseau" (motif circuit imprimé) : se superpose à la couleur de fond déjà posée
   en ligne (background-color), ne la remplace pas — ne jamais utiliser le raccourci `background`
   sur le même élément sinon il écraserait cette image. Présent sur l'ancien site derrière TOUT
   widget-header en fond clair/blanc (classe cœur bg-2), absent sur les fonds gris pleins (bg-2-alt). */
.ae-bg-reseau {
    background-image: var(--ae-fond-reseau);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* ---------- Icône ronde (titre-icone) ---------- */
.ae-titre-icone {
    width: 80px;
    height: 80px;
    border: 1px solid var(--ae-color-1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    flex: 0 0 auto;
}
.ae-titre-icone.ae-green { border-color: var(--ae-color-4); }
.ae-titre-icone i { font-size: 30px; color: var(--ae-text); }
.ae-titre-icone.ae-icon-green i { color: var(--ae-color-4) !important; }
.ae-titre-icone.ae-small { width: 80px; height: 80px; }
.ae-titre-icone.ae-small i { font-size: 40px; }
@media (max-width: 559px) {
    .ae-titre-icone { width: 60px !important; height: 60px !important; }
    .ae-titre-icone i { font-size: 30px; }
}

/* ---------- Numéro rond relié (étapes "Comment ça se passe") ---------- */
.div-circle {
    width: 110px;
    position:relative;
}
.ae-circle-number {
    width: 70px;
    height: 70px;
    border: 1px solid var(--color-noir);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    position: relative;
    flex: 0 0 auto;
    font-size: 24px;
    font-weight: bold;
    color: var(--color-noir)
}
.ae-circle-number::after {
    content: "";
    width: 40px;
    position: absolute;
    right: -41px;
    height: 1px;
    background-color: var(--color-noir);
}
/* ---------- Bandeau d'en-tête interne (3 colonnes : camion / titre / logo) ---------- */
.ae-header {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 2rem;
    background: var(--ae-bg);
    gap: 1rem;
}
.ae-header .ae-header-left,
.ae-header .ae-header-right {
    width: 22%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ae-header .ae-header-left svg,
.ae-header .ae-header-right svg { width: 100%; height: auto; max-width: 160px; }
.ae-header .ae-header-content { width: 56%; text-align: left; }
.ae-header .ae-titre {
    font-weight: 300;
    font-size: 40px;
    color: var(--ae-color-4);
    text-transform: uppercase;
    margin: 0;
}
.ae-header .ae-subtitle {
    font-weight: 500;
    text-transform: uppercase;
    color: var(--ae-color-4);
    margin: 0;
}
@media (max-width: 1100px) {
    .ae-header .ae-header-right { display: none; }
    .ae-header .ae-header-content { width: 78%; }
}
@media (max-width: 720px) {
    .ae-header { flex-direction: column; align-items: flex-start; }
    .ae-header .ae-header-left { width: 40%; padding-bottom: 9px; }
    .ae-header .ae-header-content { width: 100%; }
}

/* ---------- Héros d'accueil (diagonale + photo + camion) ---------- */
.ae-intro {
    position: relative;
    min-height: 420px;
    height: calc(100vw / 3.06);
    max-height: 560px;
    overflow: visible;
    background: var(--ae-color-2-alt);
}
.ae-intro .ae-intro-diag {
    position: absolute;
    top: -1px;
    left: 0;
/*     width: 80%; */
    height: 101%;
    z-index: 1;
    filter: drop-shadow(0px 2px 1px rgba(0,0,0,.15));
    overflow: hidden;
}
.ae-intro .ae-intro-diag svg { width: 100%; height: 100%; display: block; }
.ae-intro .ae-intro-photo {
    position: absolute;
    right: 0; top: 0;
    width: 80%; height: 100%;
    object-fit: cover; object-position: right;
    z-index: 0;
}
.ae-intro .ae-intro-content {
    position: absolute;
    top: 0; left: 0;
    width: 46%;
    z-index: 50;
    padding: 3.5rem;
    color: var(--ae-text);
}
.ae-intro .ae-intro-content .ae-intro-tagline { 
   font-size: 47px;
    font-weight: 300;
    text-transform: uppercase;
}
.ae-intro .ae-intro-content h1 {
       font-size: 18px; font-weight: 300; text-transform: uppercase; color: var(--ae-text);
}

.ae-intro .ae-camion {
    position: absolute;
    left: -100vw; 
    bottom: 0px;
     width: 27cqw !important;
    max-width: 100%;
    height: auto !important;
    object-fit: contain;
    z-index: 30;
        transition: all 1s;
}
.ae-intro .ae-camion.go {
    left: 4rem !important;
}


.ae-intro .ae-camion svg { width: 100%; height: auto; display: block; }

.module-card ,.card{
    border-bottom: 1px solid var(--color-1) !important;
}
  
.ae-bg-reseau a{
    text-decoration: none  !important;
}
.module-widget__cta{
    text-align:center ;
    margin-top:2rem;
}

.module-detail__cover {
    border-radius: 0px;
}
.titre {
    font-weight: 300;
    font-size: 44px;
    color: var(--text-color);
    text-transform: uppercase;
}

@media (max-width: 1400px) {
    .ae-intro .ae-camion { display: none; }
    .ae-intro .ae-intro-content { width: 60%; }
}
@media (max-width: 964px) {
    .ae-intro { height: auto; min-height: 0; padding-bottom: 1rem; }
    .ae-intro .ae-intro-diag { display: none; }
    .ae-intro .ae-intro-photo { position: relative; width: 100%; height: 260px; }
    .ae-intro .ae-intro-content {
        position: relative; width: 100%; padding: 1.5rem; text-align: center; background: var(--ae-color-2-alt);
    }
    .menu-level-0 > li.is-current-section {
    color: var(--menu-item-color-current, var(--menu-item-color-hover));
    background:var(--color-6) !important;
}
        .menu-level-0 > li > a, .menu-level-0 > li.sub-menu > .menu-item-container {
     
        border-radius: 0!important
    }
    
}

@media (min-width: 992px) {
    #main-menu.menu-breakpoint .menu-level-0 > li.is-current-section > a, #main-menu.menu-breakpoint .menu-level-0 > li.is-current-section > .menu-item-container {
        color: var(--menu-item-color-current, var(--menu-item-color-hover));
        background: #333;
    }
}


html[data-theme='dark'] .sprite.sm.dark {
    display: none;
}

html[data-theme='dark'] .sprite.sm.light {
    display: none;
}

html[data-theme='dark'] .sprite.xl.dark {
    display: flex;
}

html[data-theme='dark'] .sprite.xl.light {
    display: none;
}

html[data-theme='light'] .sprite.sm.light {
    display: none;
}

html[data-theme='light'] .sprite.sm.dark {
    display: none;
}

html[data-theme='light'] .sprite.xl.dark {
    display: none;
}

html[data-theme='light'] .sprite.xl.light {
    display: flex;
}
@media(max-width:575px) {
    html[data-theme='dark'] .sprite.sm.dark {
        display: flex;
        padding: 4rem!important;
        margin-left: auto!important;
        margin-right: auto!important;
    }
    html[data-theme='dark'] .sprite.xl.dark {
        display: none;
    }
    html[data-theme='light'] .sprite.sm.light {
        display: flex;
        padding: 4rem!important;
    }
    html[data-theme='light'] .sprite.xl.light {
        display: none;
    }
    html[data-theme='dark'] .instal.dark {
        display: flex;
        padding: 2rem!important;
    }
    html[data-theme='light'] .instal.light {
        display: flex;
        padding: 2rem!important;
    }
}
.site-footer{
        border-top: solid 10px var(--color-1);
}
.footer-composed .footer-grid {
    display: grid;
    grid-auto-flow: row dense;
    grid-auto-columns: 1fr;
    grid-template-columns: 1.5fr 1.5fr 1fr 1fr 2fr;
    grid-template-rows: 0.75fr 1fr;
    gap: 0 20px;
    grid-template-areas:         "logo logo logo logo truck"        "slot-1 slot-2 slot-3 slot-4 truck";
}
.footer-grid .footer-col:nth-child(1){
        grid-area: slot-1;
}
.footer-grid .footer-col:nth-child(2){
        grid-area: slot-2;
}
.footer-grid .footer-col:nth-child(3){
        grid-area: slot-3;
}
.footer-grid .footer-col:nth-child(4){
        grid-area: slot-4;
}
.footer-grid .footer-col:nth-child(5){
        grid-area: truck;
}
.footer-grid .footer-col:nth-child(6){
        grid-area: logo;
}
.footer-logo img{
    max-width:300px !important;
}
.footer-composed .footer-col-title
 {
   text-transform:uppercase;
   border-bottom: 1px solid var(--color-1);
         padding: 15px 0;
}
.footer-img-right {
    width:440px;
      margin-top: -110px;
}


@media(max-width:1300px) {
   .footer-composed .footer-grid {
        display              : grid;
        grid-auto-flow       : row dense;
        grid-auto-columns    : 1fr;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
        grid-template-rows   : 0.5fr 1fr;
        gap                  : 20px 20px;
        grid-template-areas  : "logo logo logo logo logo truck truck truck" "slot-1 slot-1 slot-2 slot-2 slot-3 slot-3 slot-4 slot-4";
    }

    .footer-grid .footer-col:nth-child(1){
        grid-area: slot-1;
}
.footer-grid .footer-col:nth-child(2){
        grid-area: slot-2;
}
.footer-grid .footer-col:nth-child(3){
        grid-area: slot-3;
}
.footer-grid .footer-col:nth-child(4){
        grid-area: slot-4;
}
.footer-grid .footer-col:nth-child(5){
        grid-area: truck;
}
.footer-grid .footer-col:nth-child(6){
        grid-area: logo;
}
    .footer-img-right {
    width:100%;
      margin-top: -84px;
}
}
@media(max-width:767px) {
   .footer-composed .footer-grid {
        display              : grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
        grid-template-rows   : 0.5fr 1fr 1fr;
        grid-auto-columns    : 1fr;
        gap                  : 20px 20px;
        grid-auto-flow       : row dense;
        grid-template-areas  : "logo logo logo logo logo logo logo logo" "slot-1 slot-1 slot-1 slot-1 slot-2 slot-2 slot-2 slot-2" "slot-3 slot-3 slot-3 slot-3 slot-4 slot-4 slot-4 slot-4";
    }
      .footer-grid .footer-col:nth-child(1){
        grid-area: slot-1;
}
.footer-grid .footer-col:nth-child(2){
        grid-area: slot-2;
}
.footer-grid .footer-col:nth-child(3){
        grid-area: slot-3;
}
.footer-grid .footer-col:nth-child(4){
        grid-area: slot-4;
}
.footer-grid .footer-col:nth-child(5){
        grid-area: truck;
}
.footer-grid .footer-col:nth-child(6){
        grid-area: logo;
}
       .footer-img-right {
 display:none;
}
}
@media(max-width:560px) {
   .footer-composed .footer-grid {
        display              : grid;
        grid-template-columns: 1fr;
        grid-template-rows   : 0.5fr 1fr 1fr 1fr 1fr 1fr;
        grid-auto-columns    : 1fr;
        gap                  : 20px 20px;
        grid-auto-flow       : row dense;
        grid-template-areas  : "truck" "logo" "slot-1" "slot-2" "slot-3" "slot-4";
    }
    .truck {
        grid-area: truck;
    }
    .logo {
        grid-area: logo;
    }
    .slot-1 {
        grid-area: slot-1;
    }
    .slot-2 {
        grid-area: slot-2;
    }
    .slot-3 {
        grid-area: slot-3;
    }
    .slot-4 {
        grid-area: slot-4;
    }
}

.footer-composed .footer-contact{
    text-transform:uppercase;
}

@media screen and (max-width: 453px) {
    .ae-intro .ae-intro-content .ae-intro-tagline  {
                font-size: 16px;
        margin-top: 20px;
    }
       .ae-intro .ae-intro-content h1 {
        font-size: 30px;
        text-align: center;
        font-size: 30px;
        text-align: center;
    }
}
