/* =====================================================
   TECHNOLOGIE — ENERGYWELL DESIGN SYSTEM (STABLE)
   - Titres / sous-titres centrés
   - Pas de doublons d'icônes
   - Grilles responsives propres
===================================================== */

/* =====================================================
   RESET ICÔNES HTML (ANTI-DOUBLONS)
   (Garde tes données HTML, mais coupe l'affichage des spans)
===================================================== */
.solution-icon,
.benefit-icon,
.detection-icon {
    display: none !important;
}

/* =====================================================
   TOKENS (cohérence design)
===================================================== */
:root{
    --ew-navy: #0b1f33;
    --ew-navy-2:#081a2a;
    --ew-green:#4f8a2f;
    --ew-mint:#7fe3a1;

    --ew-bg:#f6f9fb;
    --ew-bg-2:#eef3f7;
    --ew-white:#ffffff;

    --ew-text:#3c4a5d;
    --ew-text-2:#4a5d73;

    --ew-radius-lg: 26px;
    --ew-radius-md: 18px;

    --ew-shadow-soft: 0 16px 36px rgba(11,31,51,.06);
    --ew-shadow-mid: 0 24px 60px rgba(11,31,51,.08);
    --ew-shadow-strong: 0 40px 90px rgba(11,31,51,.12);

    --ew-border: rgba(11,31,51,.08);
}

/* =====================================================
   BASE — TYPO, CONTAINERS, TITRES CENTRÉS
===================================================== */
.container,
.container-narrow{
    max-width:1200px;
    margin:0 auto;
    padding:0 24px;
}
.container-narrow{ max-width:960px; }

h2{
    text-align:center;
    color: var(--ew-navy);
    letter-spacing:-0.02em;
    line-height:1.15;
}

.section-eyebrow,
.principle-eyebrow,
.architecture-eyebrow,
.detection-eyebrow{
    display:block;
    text-align:center;
    margin-bottom:.75rem;
    font-size:.72rem;
    letter-spacing:.22em;
    text-transform:uppercase;
    font-weight:700;
    color:var(--ew-green);
}

/* Sous-titres / intros centrés (sans casser ton HTML) */
.section-intro,
.solution-intro,
.lead,
.contact-lead{
    text-align:center;
    margin-left:auto;
    margin-right:auto;
}

/* Petits raffinements généraux */
section{
    position:relative;
}
img{
    max-width:100%;
    height:auto;
}

/* =====================================================
   HERO
===================================================== */
.hero-enterprise--solution{
    position:relative;
    background:url("../../images/energywell-technologie.jpg") center/cover no-repeat;
    color:#fff;
    overflow:hidden;
}
.hero-enterprise--solution .hero-overlay{
    position:absolute;
    inset:0;
    background: linear-gradient(
        90deg,
        rgba(6,16,26,.92) 0%,
        rgba(6,16,26,.70) 50%,
        rgba(6,16,26,.35) 100%
    );
}
.hero-solution-inner{
    position:relative;
    z-index:2;
    max-width: 980px;
    margin:0 auto;
    padding: clamp(6.5rem, 10vw, 9.5rem) 24px;
    text-align:center;
}
.hero-enterprise--solution h1{
    letter-spacing:-0.03em;
    line-height:1.06;
    text-shadow:0 10px 40px rgba(0,0,0,.45);
    margin-bottom: 1.25rem;
}
.hero-enterprise--solution p{
    text-shadow:0 10px 40px rgba(0,0,0,.35);
    color: rgba(255,255,255,.88);
    line-height:1.75;
}
.hero-highlight{
    margin-top:1.75rem;
    font-weight:600;
    color:var(--ew-mint);
    letter-spacing:.02em;
}

/* =====================================================
   PRINCIPE FONDATEUR
===================================================== */
.principle-section{
    padding: clamp(5.5rem, 8vw, 7.5rem) 0;
    background: linear-gradient(180deg, #ffffff 0%, var(--ew-bg) 100%);
    text-align:center;
}
.principle-content{
    max-width: 920px;
    margin: 0 auto;
}
.principle-content h2{
    margin-bottom: 1.25rem;
}
.principle-content p{
    font-size: 1.075rem;
    line-height: 1.8;
    color: var(--ew-text);
    margin: 0 auto 1rem;
    max-width: 860px;
}

/* =====================================================
   SOLUTION OVERVIEW
===================================================== */
.solution-overview{
    padding: clamp(6.5rem, 9vw, 8.5rem) 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(79,138,47,.10), transparent 55%),
        linear-gradient(180deg, var(--ew-bg-2), #ffffff);
    text-align:center;
}
.solution-overview h2{
    margin-bottom: 1.25rem;
}
.solution-overview p{
    max-width: 880px;
    margin: 0 auto 1.1rem;
    color: var(--ew-text);
    line-height: 1.75;
}

/* Cards points */
.solution-points{
    display:grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.75rem;
    max-width: 1200px;
    margin: 3.25rem auto 0;
    padding:0;
    list-style:none;
}
.solution-points li{
    background: rgba(255,255,255,.95);
    border: 1px solid var(--ew-border);
    border-radius: 20px;
    padding: 2.35rem 2.1rem;
    min-height: 160px;
    box-shadow: var(--ew-shadow-soft);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.solution-points li:hover{
    transform: translateY(-6px);
    box-shadow: var(--ew-shadow-strong);
    border-color: rgba(79,138,47,.22);
}
.solution-points li::before{
    display:block;
    width: 44px;
    height: 44px;
    margin: 0 auto 1rem;
    border-radius: 14px;
    background: rgba(79,138,47,.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size: 1.35rem;
    color: var(--ew-green);
}
.solution-points li:nth-child(1)::before{ content:"⚡"; }
.solution-points li:nth-child(2)::before{ content:"🎯"; }
.solution-points li:nth-child(3)::before{ content:"🧩"; }
.solution-points li:nth-child(4)::before{ content:"🌐"; }

@media (max-width: 1024px){
    .solution-points{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px){
    .solution-points{ grid-template-columns: 1fr; }
}

/* =====================================================
   STATS / PREUVES
===================================================== */
.stats-dark{
    padding: clamp(7rem, 10vw, 9rem) 0;
    background:
        radial-gradient(ellipse at 50% 20%, rgba(127,227,161,.10), transparent 55%),
        linear-gradient(180deg, #040806 0%, #020403 100%);
    overflow:hidden;
}
.stats-dark-container{
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 48px;
    display:grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    text-align:center;
    gap: 0;
}
.stat-dark{
    position:relative;
    padding: 1.5rem 1.25rem;
}
.stat-dark:not(:last-child)::after{
    content:"";
    position:absolute;
    right:0;
    top:50%;
    transform: translateY(-50%);
    width:1px;
    height: 140px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,.14), transparent);
}
.stat-dark strong{
    display:block;
    font-size: clamp(3.2rem, 5vw, 4.4rem);
    color: var(--ew-mint);
    letter-spacing: -0.02em;
    margin-bottom: .85rem;
    text-shadow: 0 0 24px rgba(127,227,161,.12);
}
.stat-dark span{
    display:block;
    max-width: 360px;
    margin: 0 auto;
    color: rgba(255,255,255,.74);
    line-height: 1.7;
    font-size: .98rem;
}
@media (max-width:1024px){
    .stats-dark-container{
        grid-template-columns:1fr;
        gap: 2.5rem;
    }
    .stat-dark::after{ display:none; }
}

/* =====================================================
   BÉNÉFICES
===================================================== */
.benefits-section{
    padding: clamp(6.5rem, 9vw, 8.5rem) 0;
    background:#fff;
}
.benefits-header{
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align:center;
}
.benefits-header .lead{
    max-width: 760px;
    color: var(--ew-text-2);
    line-height: 1.75;
    margin-top: .75rem;
}
.benefits-grid{
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display:grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 2.25rem;
}
.benefit-card{
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--ew-border);
    border-radius: 22px;
    padding: 2.8rem 2.6rem;
    text-align:center;
    box-shadow: var(--ew-shadow-soft);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.benefit-card:hover{
    transform: translateY(-6px);
    box-shadow: var(--ew-shadow-strong);
    border-color: rgba(79,138,47,.22);
}
.benefit-card h3{
    margin-top: .25rem;
}
.benefit-card h3::before{
    display:flex;
    align-items:center;
    justify-content:center;
    width: 52px;
    height: 52px;
    margin: 0 auto 1.15rem;
    border-radius: 18px;
    background: rgba(79,138,47,.10);
    font-size: 1.5rem;
    color: var(--ew-green);
}
.benefit-card:nth-child(1) h3::before{ content:"€"; }
.benefit-card:nth-child(2) h3::before{ content:"🌱"; }
.benefit-card:nth-child(3) h3::before{ content:"📈"; }

.benefit-card p{
    color: var(--ew-text-2);
    line-height:1.7;
}
@media (max-width:1024px){
    .benefits-grid{ grid-template-columns: 1fr; }
    .benefit-card{ max-width: 680px; margin: 0 auto; }
}

/* =====================================================
   EFFICACITÉ / INNOVATION
===================================================== */
.efficiency-innovation{
    padding: clamp(7rem, 10vw, 9rem) 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(79,138,47,.10), transparent 55%),
        linear-gradient(180deg, #ffffff 0%, var(--ew-bg) 100%);
}
.efficiency-innovation-grid{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display:grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items:center;
}
.efficiency-visual img{
    border-radius: 26px;
    box-shadow: 0 40px 90px rgba(11,31,51,.18);
}
.efficiency-text{
    text-align:left;
}
.efficiency-text h2{
    text-align:left;
    margin-bottom: 1.25rem;
}
.text-green{ color: var(--ew-green); }
.efficiency-text .lead{
    text-align:left;
    color: var(--ew-text);
    font-weight:600;
    margin: 0 0 1.1rem;
}
.efficiency-text p{
    color: var(--ew-text-2);
    line-height:1.8;
    max-width: 560px;
}
@media (max-width:1024px){
    .efficiency-innovation-grid{
        grid-template-columns: 1fr;
        text-align:center;
    }
    .efficiency-text,
    .efficiency-text h2,
    .efficiency-text .lead{
        text-align:center;
    }
    .efficiency-text p{
        margin-left:auto;
        margin-right:auto;
    }
}

/* =====================================================
   ARCHITECTURE
===================================================== */
.architecture-section{
    padding: clamp(6.5rem, 9vw, 8.5rem) 0;
    background: linear-gradient(180deg, var(--ew-navy-2), var(--ew-navy));
    color:#fff;
    text-align:center;
}
.architecture-header{
    max-width: 900px;
    margin: 0 auto 4rem;
}
.architecture-grid{
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display:grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 2.25rem;
}
.architecture-item{
    padding: 2.8rem 2.4rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 22px 60px rgba(0,0,0,.35);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    text-align:left;
}
.architecture-item:hover{
    transform: translateY(-6px);
    border-color: rgba(127,227,161,.18);
    box-shadow: 0 28px 80px rgba(0,0,0,.42);
}
.architecture-item h3{
    margin-top:.25rem;
    color:#fff;
}
.architecture-item h3::before{
    display:flex;
    align-items:center;
    justify-content:center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(127,227,161,.10);
    margin: 0 0 1rem;
    font-size: 1.35rem;
}
.architecture-item:nth-child(1) h3::before{ content:"🧠"; }
.architecture-item:nth-child(2) h3::before{ content:"📡"; }
.architecture-item:nth-child(3) h3::before{ content:"📊"; }

.architecture-item p{
    color: rgba(255,255,255,.78);
    line-height:1.75;
}
@media (max-width:1024px){
    .architecture-grid{ grid-template-columns: 1fr; }
    .architecture-item{ max-width: 760px; margin: 0 auto; text-align:center; }
    .architecture-item h3::before{ margin-left:auto; margin-right:auto; }
}

/* =====================================================
   DÉTECTION
===================================================== */
.detection-section{
    padding: clamp(6.5rem, 9vw, 8.5rem) 0;
    background: var(--ew-bg);
}
.detection-header{
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align:center;
}
.detection-grid{
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display:grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 2.25rem;
}
.detection-card{
    background:#fff;
    border: 1px solid var(--ew-border);
    border-radius: 28px;
    padding: 3rem 2.6rem;
    text-align:center;
    box-shadow: var(--ew-shadow-mid);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.detection-card:hover{
    transform: translateY(-6px);
    box-shadow: var(--ew-shadow-strong);
    border-color: rgba(79,138,47,.22);
}
.detection-card h3::before{
    display:flex;
    align-items:center;
    justify-content:center;
    width: 52px;
    height: 52px;
    margin: 0 auto 1.15rem;
    border-radius: 18px;
    background: rgba(79,138,47,.10);
    font-size: 1.35rem;
    color: var(--ew-green);
}
.detection-card--sensors h3::before{ content:"📡"; }
.detection-card--local   h3::before{ content:"🧠"; }
.detection-card--bias    h3::before{ content:"🎯"; }

.detection-card p{
    color: var(--ew-text-2);
    line-height: 1.75;
}
@media (max-width:1024px){
    .detection-grid{ grid-template-columns: 1fr; }
    .detection-card{ max-width: 760px; margin: 0 auto; }
}

/* =====================================================
   LOGICIEL & DATA (FIX ICONES)
   Objectif :
   - DATA + icône sur la même ligne (label)
   - Aucune icône dans le titre (pas de doublon)
===================================================== */
.software-data-section{
    padding: clamp(7rem, 10vw, 9rem) 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(79,138,47,.10), transparent 55%),
        linear-gradient(180deg, #f8fafc 0%, var(--ew-bg-2) 100%);
}

.software-data-header{
    max-width: 920px;
    margin: 0 auto 4.5rem;
    text-align:center;
}

.software-data-grid{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display:grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 2.5rem;
}

.software-data-card{
    background: rgba(255,255,255,.95);
    border: 1px solid var(--ew-border);
    border-radius: 34px;
    padding: 3.2rem 3rem;
    text-align:center;
    box-shadow: var(--ew-shadow-mid);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.software-data-card:hover{
    transform: translateY(-6px);
    box-shadow: var(--ew-shadow-strong);
    border-color: rgba(79,138,47,.22);
}

/* Label DATA / ANALYSE / ACTION + icône sur la même ligne */
.software-data-tag{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap: .6rem;

    font-size: .75rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--ew-green);

    margin-bottom: 1.4rem;
}

/* Icône unique après le label (une seule fois) */
.software-data-tag::after{
    font-size: 1.1rem;
    letter-spacing: normal;
    line-height: 1;
}

/* DATA / ANALYSE / ACTION : icône unique */
.software-data-card:nth-child(1) .software-data-tag::after{ content:"📥"; }
.software-data-card:nth-child(2) .software-data-tag::after{ content:"📊"; }
.software-data-card:nth-child(3) .software-data-tag::after{ content:"🎛️"; }

/* IMPORTANT : on interdit toute icône automatique sur le titre */
.software-data-card h3::before,
.software-data-card h3::after{
    content:none !important;
    display:none !important;
}

.software-data-card h3{
    color: var(--ew-navy);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.software-data-card p{
    color: var(--ew-text-2);
    line-height: 1.85;
    max-width: 520px;
    margin: 0 auto;
}

@media (max-width:1024px){
    .software-data-grid{ grid-template-columns: 1fr; }
    .software-data-card{ max-width: 760px; margin: 0 auto; }
}

/* =====================================================
   INTÉGRATIONS (FIX DÉSORGANISATION)
===================================================== */
.integration-section{
    padding: clamp(6.5rem, 9vw, 9rem) 0;
    background: #f6f9f8;
    text-align:center;
}

.integration-section .section-intro{
    max-width: 820px;
    color: var(--ew-text);
    line-height: 1.75;
    margin-top: .75rem;
}

.integration-list{
    max-width: 980px;
    margin: 3.5rem auto 0;
    padding: 0 24px;
    display:grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 2.25rem;
}

.integration-card{
    background: #ffffff;
    border: 1px solid var(--ew-border);
    border-radius: 22px;
    padding: 2.75rem 2.5rem;
    box-shadow: var(--ew-shadow-soft);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    text-align:left;
}

.integration-card:hover{
    transform: translateY(-6px);
    box-shadow: var(--ew-shadow-strong);
    border-color: rgba(79,138,47,.22);
}

/* Titre centré visuellement dans la card sans casser le texte */
.integration-card h3{
    display:flex;
    align-items:center;
    gap: .85rem;
    margin-bottom: .65rem;
    color: var(--ew-navy);
}

/* Icône ronde stable */
.integration-card h3::before{
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius: 50%;
    background: rgba(79,138,47,.10);
    font-size: 1.05rem;
}

.integration-card p{
    margin: 0;
    color: var(--ew-text-2);
    line-height: 1.7;
}

.integration-card:nth-child(1) h3::before{ content:"❄️"; }
.integration-card:nth-child(2) h3::before{ content:"🔗"; }
.integration-card:nth-child(3) h3::before{ content:"🔐"; }
.integration-card:nth-child(4) h3::before{ content:"🏭"; }

@media (max-width: 768px){
    .integration-list{ grid-template-columns: 1fr; }
    .integration-card{ max-width: 760px; margin: 0 auto; }
}

/* =====================================================
   CTA FINAL
===================================================== */
.contact-vip{
    padding: clamp(7rem, 10vw, 9rem) 0;
    background: linear-gradient(180deg, var(--ew-navy-2), var(--ew-navy));
    color:#fff;
    text-align:center;
}
.contact-vip h2{
    color:#fff;
}
.contact-lead{
    max-width: 780px;
    color: rgba(255,255,255,.78);
    line-height: 1.8;
    margin: 1.35rem auto 0;
}

/* =====================================================
   BACK TO TOP
===================================================== */
#backToTop{
    position:fixed;
    right:24px;
    bottom:24px;
    width:56px;
    height:56px;
    border-radius:50%;
    background: var(--ew-green);
    color:#fff;
    border:none;
    cursor:pointer;
    opacity:0;
    visibility:hidden;
    transition: opacity .25s ease, transform .25s ease;
    transform: translateY(6px);
    z-index:9999;
}
#backToTop.is-visible{
    opacity:1;
    visibility:visible;
    transform: translateY(0);
}
#backToTop:hover{
    filter: brightness(1.03);
}



/* =====================================================
   ARCHITECTURE — TITRES VISIBLES
===================================================== */

.architecture-section h2 {
    color: #ffffff;
    opacity: 1;
}

.architecture-section .architecture-eyebrow {
    color: #7fe3a1;
}
/* =====================================================
   ARCHITECTURE — ICÔNES CENTRÉES
===================================================== */

.architecture-item h3::before {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;

    font-size: 1.6rem;
    border-radius: 16px;

    background: rgba(127, 227, 161, 0.12);
}



/* =====================================================
   TRANSITION VISUELLE ENTRE SECTIONS
   Dégradé doux, sans espace inutile
===================================================== */

.section-transition-gradient {
    height: 96px;
    margin-top: -48px; /* absorbe l’espace visuel */

    background: linear-gradient(
        180deg,
        rgba(246,249,251,0) 0%,
        rgba(246,249,251,0.65) 45%,
        rgba(246,249,251,1) 100%
    );

    pointer-events: none;
}
@media (max-width: 768px) {
    .section-transition-gradient {
        height: 48px;        /* beaucoup plus compact */
        margin-top: -24px;

        background: linear-gradient(
            180deg,
            rgba(246,249,251,0) 0%,
            rgba(246,249,251,1) 100%
        );
    }
}

/* =====================================================
   HEADER — STRUCTURE BLOQUÉE (FINAL)
===================================================== */
.header-main {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    height: 72px;
    min-height: 72px;
}

.header-container {
    height: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    white-space: nowrap;
}

.header-nav a {
    flex-shrink: 0;
}

@media (min-width: 1600px) {
    .header-container {
        padding-left: 48px;
        padding-right: 48px;
    }
}
