
/* =========================================================
   VARIABLES (doivent exister dans variables.css)
   --ew-primary: #6bbf4a;
   --ew-dark: #0f3f3d;
   --ew-brand-green: #4E8F3A;
   --energy-gradient
========================================================= */

html {
    scroll-behavior: smooth;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn-primary {
    background: var(--energy-gradient);
    color: #ffffff;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(107,191,74,.35);
}

/* =========================================================
   CARDS
========================================================= */

.card {
    background: #ffffff;
    padding: 30px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 45px rgba(0,0,0,.08);
}

/* =========================================================
   ANIMATIONS
========================================================= */

.animate {
    opacity: 0;
    transition: opacity .8s ease, transform .8s ease;
}

.fade-up    { transform: translateY(30px); }
.fade-left  { transform: translateX(30px); }
.fade-right { transform: translateX(-30px); }

.animate.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* =========================================================
   NAVIGATION
========================================================= */

nav a {
    margin-left: 24px;
    text-decoration: none;
    color: var(--ew-dark);
    position: relative;
}

header nav a.active {
    color: var(--ew-primary);
    font-weight: 600;
}

header nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--ew-primary);
}

/* =========================================================
   SVG DIAGRAM
========================================================= */

.ew-diagram rect {
    fill: #ffffff;
    stroke: #e5e7eb;
    transition: all .3s ease;
}

.ew-diagram text {
    font-size: 18px;
    font-weight: 600;
    fill: #0f172a;
    pointer-events: none;
}

.ew-block {
    cursor: pointer;
}

.ew-block:hover rect,
.ew-block.active rect {
    fill: url(#ewGrad);
    stroke: none;
}

.ew-block:hover text,
.ew-block.active text {
    fill: #ffffff;
}

.ew-diagram.dim .ew-block:not(.active) rect {
    opacity: .25;
}

/* =========================================================
   BURGER MENU
========================================================= */

.burger {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 200;
}

.burger span {
    width: 26px;
    height: 2px;
    background: #ffffff;
    display: block;
    transition: transform .35s ease, opacity .25s ease;
}

.burger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(78,143,58,.96);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform .4s ease;
    z-index: 100;
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 28px;
    text-align: center;
}

.mobile-menu nav a {
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: 500;
}

.mobile-menu nav a.btn-primary {
    align-self: center;
}

/* =========================================================
   OVERVIEW – FULL WIDTH SPLIT
========================================================= */

.overview-full {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 90vh;
}

.overview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overview-content {
    background-color: var(--ew-brand-green);
    color: #ffffff;
    display: flex;
    align-items: center;
    padding: 80px;
}

.overview-content p {
    color: #f1f7ee;
}

.overview-inner {
    max-width: 520px;
}

.overview-content h2 {
    font-size: 2.2rem;
    margin-bottom: 24px;
}

/* =========================================================
   HOW SECTION (DÉBORDEMENT CORRIGÉ)
========================================================= */

#how {
    overflow: hidden;
}

#how .split {
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    min-height: 70vh;
}

#how .split > div {
    max-width: 520px;
    justify-self: start;
}

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

@media (max-width: 900px) {
    header nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    .overview-full {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .overview-content {
        padding: 48px 24px;
    }
}
.overview-full {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 90vh;
}

.overview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overview-content {
    background-color: #4E8F3A; /* test visuel garanti */
    color: #ffffff;
    display: flex;
    align-items: center;
    padding: 80px;
}

.overview-content p {
    color: #f1f7ee;
}

.overview-inner {
    max-width: 520px;
}
/* =========================================================
   HOW IT WORKS – SECTION 3
========================================================= */

.how-it-works {
    background: #ffffff;
}

.how-header {
    text-align: center;
    margin-bottom: 64px;
}

.how-header h2 {
    font-size: 2.4rem;
    font-weight: 500;
}

.how-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.how-col {
    font-size: 1.05rem;
    line-height: 1.75;
}

.how-col h3 {
    color: var(--ew-primary);
    font-size: 1.6rem;
    margin-bottom: 24px;
}

.how-col p {
    margin-bottom: 20px;
}

.how-col .legal {
    color: var(--ew-primary);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 900px) {
    .how-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .how-header {
        margin-bottom: 40px;
    }
}
/* =========================================================
   HOW – PREMIUM BANNER DESIGN
========================================================= */

.how-premium {
    background: #ffffff;
}

/* Bandeau haut */
.how-banner {
    background: #f2a02a; /* orange de la référence */
    padding: 48px 0;
    text-align: center;
}

.how-banner h2 {
    color: #0f172a;
    font-size: 2.4rem;
    font-weight: 500;
}

/* Corps */
.how-body {
    padding: 90px 0;
}

.how-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.how-col h3 {
    color: var(--ew-primary);
    font-size: 1.7rem;
    margin-bottom: 28px;
}

.how-col p {
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 22px;
}

.how-col .legal {
    color: var(--ew-primary);
    font-size: .95rem;
}

/* Responsive */
@media (max-width: 900px) {
    .how-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .how-banner h2 {
        font-size: 2rem;
    }
}
/* =========================================================
   HOW – PREMIUM BANNER DESIGN (ENERGYWELL GREEN)
========================================================= */

.how-premium {
    background: #ffffff;
}

/* Bandeau haut */
.how-banner {
    background: #6BBF4A; /* Vert Energywell */
    padding: 48px 0;
    text-align: center;
}

.how-banner h2 {
    color: #ffffff;
    font-size: 2.4rem;
    font-weight: 500;
    letter-spacing: .02em;
}

/* Corps */
.how-body {
    padding: 90px 0;
    background: #ffffff;
}

.how-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.how-col h3 {
    color: #6BBF4A;
    font-size: 1.7rem;
    margin-bottom: 28px;
}

.how-col p {
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 22px;
    color: #1f2937;
}

.how-col .legal {
    color: #4F9E36;
    font-size: .95rem;
    font-style: italic;
}

/* Responsive */
@media (max-width: 900px) {
    .how-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .how-banner h2 {
        font-size: 2rem;
    }
}
/* =========================================================
   FEATURES – PREMIUM REFERENCE DESIGN
========================================================= */

.features-premium {
    width: 100%;
}

/* Bandeau haut */
.features-banner {
    background: #6BBF4A; 
    padding: 48px 0;
    text-align: center;
}

.features-banner h2 {
    font-size: 2.4rem;
    font-weight: 500;
    color: #0f3f3d;
}

/* Split */
.features-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 90vh;
}

/* Image */
.features-image {
    background: #6F6F6F;
    display: flex;
    align-items: center;
    justify-content: center;
}

.features-image img {
    width: 90%;
    max-width: 720px;
    height: auto;
}

/* Panneau droit */
.features-panel {
    background: #F0E04A; /* vert clair Energywell */
    display: flex;
    align-items: center;
    padding: 80px;
}

.features-inner {
    max-width: 560px;
}

.features-inner h3 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #0f3f3d;
}

/* Liste */
.features-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.features-list li {
    position: relative;
    padding-left: 48px;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(15,63,61,.25);
    color: #0f3f3d;
}

.features-list li:last-child {
    border-bottom: none;
}

/* Check */
.features-list .check {
    position: absolute;
    left: 0;
    top: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #6bbf4a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.features-list .check::after {
    content: "✓";
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
}

.features-list strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.features-list p {
    margin: 0;
    line-height: 1.6;
    font-size: .98rem;
}

/* Responsive */
@media (max-width: 900px) {
    .features-split {
        grid-template-columns: 1fr;
    }

    .features-panel {
        padding: 48px 24px;
    }

    .features-banner h2 {
        font-size: 2rem;
    }
}
:root {
    --ew-green: #6BBF4A;
    --ew-green-soft: #CFEDEA;
}

.section-header {
    background: var(--ew-green);
}

.section-body {
    background: var(--ew-green-soft);
}


/* =========================================================
   SECTORS – PREMIUM SPLIT SECTION
========================================================= */

.sectors-premium {
    width: 100%;
}

.sectors-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 90vh;
}

/* ===== PANNEAU GAUCHE ===== */
.sectors-panel {
    background: #F5A623; 
    color: #ffffff;
    display: flex;
    align-items: center;
    padding: 90px;
}

.sectors-inner {
    max-width: 560px;
}

.sectors-inner h2 {
    font-size: 2.4rem;
    font-weight: 500;
    margin-bottom: 48px;
    letter-spacing: .02em;
}

/* ===== LISTE ===== */
.sectors-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sectors-list li {
    position: relative;
    padding-left: 48px;
    padding-bottom: 26px;
    margin-bottom: 26px;
    border-bottom: 1px solid rgba(255,255,255,.25);
    font-size: 1.05rem;
}

.sectors-list li:last-child {
    border-bottom: none;
}

/* Check circulaire */
.sectors-list .check {
    position: absolute;
    left: 0;
    top: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #F2C94C;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sectors-list .check::after {
    content: "✓";
    color: #F2C94C;
    font-size: 14px;
    font-weight: 700;
}

/* ===== IMAGE DROITE ===== */
.sectors-image {
    position: relative;
    overflow: hidden;
}

.sectors-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .sectors-split {
        grid-template-columns: 1fr;
    }

    .sectors-panel {
        padding: 56px 24px;
    }

    .sectors-inner h2 {
        font-size: 2rem;
    }
}
/* ===== IMAGE DROITE ===== */
.sectors-image {
    position: relative;
    overflow: hidden;
}

.sectors-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* conserve le logo ENERGYWELL */
    display: block;
}
.sectors-image {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: top center; /* garantit ENERGYWELL visible */
    background-repeat: no-repeat;
    min-height: 90vh;
}
/* =========================================================
   WHY – PREMIUM VIDEO SPLIT
========================================================= */

.why-premium {
    width: 100%;
}

.why-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 90vh;
}

/* ===== VIDÉO ===== */
.why-video {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper {
    width: 90%;
    max-width: 720px;
    aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

/* ===== PANNEAU DROIT ===== */
.why-panel {
    background: #6BBF4A; /* vert clair Energywell */
    display: flex;
    align-items: center;
    padding: 80px;
}

.why-inner {
    max-width: 560px;
}

.why-inner h2 {
    font-size: 2.4rem;
    font-weight: 500;
    margin-bottom: 48px;
    color: #0f3f3d;
}

/* ===== LISTE ===== */
.why-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.why-list li {
    position: relative;
    padding-left: 48px;
    padding-bottom: 26px;
    margin-bottom: 26px;
    border-bottom: 1px solid rgba(15,63,61,.25);
    color: #0f3f3d;
    font-size: 1.05rem;
}

.why-list li:last-child {
    border-bottom: none;
}

/* Check */
.why-list .check {
    position: absolute;
    left: 0;
    top: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #6bbf4a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-list .check::after {
    content: "✓";
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .why-split {
        grid-template-columns: 1fr;
    }

    .why-panel {
        padding: 56px 24px;
    }

    .why-inner h2 {
        font-size: 2rem;
    }

    .video-wrapper {
        width: 100%;
        border-radius: 0;
    }
}


/* =========================================================
   FOOTER — BLACK & GOLD ULTRA LUXE
========================================================= */

.footer-luxe {
    background: linear-gradient(180deg, #050505 0%, #0B0B0B 100%);
    color: #E6E6E6;
    padding: 100px 90px 42px;
    font-size: 0.95rem;
}

/* GRID */
.footer-luxe-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.4fr;
    gap: 90px;
}

/* BRAND */
.footer-luxe-brand h3 {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 28px;
    color: #D4AF37; /* GOLD */
    letter-spacing: .02em;
}

.footer-luxe-brand p {
    margin-bottom: 12px;
    line-height: 1.7;
    color: #E0E0E0;
}

.footer-luxe-brand strong {
    font-size: 1.05rem;
    color: #FFFFFF;
}

/* TITLES */
.footer-luxe-title {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    margin-bottom: 32px;
    color: #D4AF37;
}

/* NAVIGATION */
.footer-luxe-nav a {
    display: block;
    text-decoration: none;
    color: #E6E6E6;
    margin-bottom: 16px;
    transition: color .25s ease, transform .25s ease;
}

.footer-luxe-nav a:hover {
    color: #D4AF37;
    transform: translateX(6px);
}

/* ENGAGEMENT */
.footer-luxe-engagement p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #DCDCDC;
}

/* DIVIDER */
.footer-luxe-divider {
    margin: 70px 0 28px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(212,175,55,.6),
        transparent
    );
}

/* COPYRIGHT */
.footer-luxe-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,.55);
    letter-spacing: .08em;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .footer-luxe {
        padding: 70px 24px 36px;
    }

    .footer-luxe-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }
}

.footer-logo {
    width: 160px;
    max-width: 100%;
    margin-bottom: 24px;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,.6));
}
.footer-logo {
    width: 160px;
    margin-bottom: 26px;
    opacity: .95;
}

/* =========================================================
   CONTACT – VIP SECTION
========================================================= */

.contact-vip {
    background: radial-gradient(
        circle at top,
        rgba(255,215,160,0.08),
        #050505 70%
    );
    padding: 140px 24px;
    text-align: center;
    position: relative;
}

.contact-vip::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(107,191,74,0.06),
        transparent
    );
    pointer-events: none;
}

.contact-vip-inner {
    max-width: 720px;
    margin: 0 auto;
}

.contact-vip h2 {
    font-size: 2.8rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: .02em;
}

.contact-vip p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255,255,255,.75);
    margin-bottom: 48px;
}

/* ===== BOUTON VIP ===== */

.btn-vip {
    display: inline-block;
    padding: 18px 42px;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0b0b0b;
    text-decoration: none;
    background: linear-gradient(
        135deg,
        #f4d27a,
        #6bbf4a
    );
    box-shadow:
        0 12px 30px rgba(107,191,74,.35),
        inset 0 0 0 1px rgba(255,255,255,.25);
    transition: transform .25s ease, box-shadow .25s ease;
}

.btn-vip:hover {
    transform: translateY(-3px);
    box-shadow:
        0 18px 45px rgba(107,191,74,.45),
        inset 0 0 0 1px rgba(255,255,255,.35);
}

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

@media (max-width: 900px) {
    .contact-vip {
        padding: 100px 20px;
    }

    .contact-vip h2 {
        font-size: 2.2rem;
    }
}
.footer-premium {
    background: radial-gradient(
        circle at top left,
        #111111 0%,
        #000000 70%
    );
    color: #c9c9c9;
    padding: 90px 0 40px;
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 80px;
}

/* LOGO */
.footer-logo {
    width: 180px;
    margin-bottom: 28px;
}

/* COLONNES */
.footer-col h4 {
    color: #d4af37; /* gold */
    font-size: 0.9rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.footer-col address {
    font-style: normal;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-phone {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
}

.footer-phone:hover {
    color: #6bbf4a; /* Energywell green */
}

/* NAV */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col ul a {
    color: #c9c9c9;
    text-decoration: none;
}

.footer-col ul a:hover {
    color: #d4af37;
}

/* ENGAGEMENT */
.footer-engagement span {
    color: #6bbf4a;
    font-weight: 600;
}

.footer-tags {
    margin-top: 18px;
    color: #6bbf4a;
    letter-spacing: .05em;
}

/* BAS DE FOOTER */
.footer-bottom {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid rgba(212,175,55,.25);
    text-align: center;
    color: #9a9a9a;
    font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-logo {
        width: 160px;
    }
}

.hero-enterprise {
    position: relative;
    min-height: var(--hero-min-height, 85vh);
    display: flex;
    align-items: center;
    justify-content: center; /* CENTRAGE */

    background-image: url("../images/energywell-services.jpg");
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;

    padding: 0 6%;
}

/* =========================================================
   HERO ENTERPRISE – ENERGYWELL (FINAL)
========================================================= */

.hero-enterprise {
    position: relative;
    min-height: var(--hero-min-height, 85vh);
    display: flex;
    align-items: center;
    justify-content: center;

    /* Background image */
    background-image: url("../images/energywell-services.jpg");
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;

    padding: 0 6%;
}

/* Overlay global – léger */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 63, 61, 0.35);
}

/* Carte centrale */
.hero-enterprise-card {
    position: relative;
    width: 100%;
    max-width: 460px;     /* ↓ largeur réduite */
    padding: 32px 36px;   /* ↓ hauteur réduite */

    background: rgba(15, 63, 61, 0.6); /* ↓ encore plus léger */
    backdrop-filter: blur(8px);

    border-radius: 12px;
    color: #ffffff;

    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}

/* Branding */
.hero-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.hero-brand img {
    height: 30px;
}

.hero-brand span {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Titre */
.hero-enterprise-card h1 {
    font-size: 2.4rem;
    font-weight: 500;
    margin-bottom: 18px;
}

/* Texte */
.hero-enterprise-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.9;
}

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

@media (max-width: 900px) {
    .hero-enterprise {
        padding: 0 24px;
        background-position: center;
    }

    .hero-enterprise-card {
        padding: 36px 28px;
    }

    .hero-enterprise-card h1 {
        font-size: 2rem;
    }
}


/* =========================================================
   HOMEPAGE SUB NAVIGATION
========================================================= */

.homepage-subnav {
    background: #2F8FB3;
    padding: 18px 24px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.homepage-subnav-list {
    display: flex;
    justify-content: center;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.homepage-subnav-list a {
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.45);
    transition: background .25s ease;
}

.homepage-subnav-list a:hover {
    background: rgba(255,255,255,0.12);
}

.homepage-subnav-list a.active {
    background: #6bbf4a;
    border-color: #6bbf4a;
}

/* =========================================================
   HEADER – ENERGYWELL
========================================================= */

.header-main {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 32px;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
}

/* ===== BRAND ===== */

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-energywell {
    height: 38px;
    display: block;
}

.brand-separator {
    width: 1px;
    height: 28px;
    background: rgba(0,0,0,0.15);
}

.brand-endorsement {
    font-size: 0.85rem;
    color: #4b5563;
    white-space: nowrap;
}

/* ===== NAV ===== */

.header-nav {
    display: flex;
    justify-content: center;
    gap: 28px;
}

.header-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    color: #111827;
    position: relative;
    padding: 6px 0;
}

.header-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #6bbf4a;
    transition: width 0.25s ease;
}

.header-nav a:hover::after,
.header-nav a.active::after {
    width: 100%;
}

/* ===== CTA ===== */

.header-cta .btn-header {
    padding: 12px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #8cc63f, #3ba57c);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* =========================================================
   HEADER – CORRECTION LOGO ENERGYWELL
========================================================= */

.header-main {
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-brand a {
    text-decoration: none;
    color: inherit;
}


/* LOGO ENERGYWELL – TAILLE MAÎTRISÉE */
.logo-energywell {
    height: 36px;        /* 👈 TAILLE PRO */
    width: auto;         /* conserve le ratio */
    max-width: 180px;    /* sécurité */
    display: block;
}

/* Séparateur */
.brand-separator {
    width: 1px;
    height: 26px;
    background: rgba(0,0,0,0.15);
}

/* Endorsement */
.brand-endorsement {
    font-size: 0.85rem;
    color: #4b5563;
    white-space: nowrap;
}

/* =========================================================
   HEADER RÉTRACTABLE
========================================================= */

.header-main {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    transition: all 0.3s ease;
}

/* État réduit */
.header-main.is-scrolled {
    padding-top: 6px;
    padding-bottom: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Logo plus petit au scroll */
.header-main.is-scrolled .logo-energywell {
    height: 30px;
}

/* =========================================================
   SCROLL FLUIDE
========================================================= */

html {
    scroll-behavior: smooth;
}
/* =========================================================
   SUB NAV STICKY
========================================================= */

.homepage-subnav {
    position: sticky;
    top: 72px; /* hauteur du header */
    z-index: 90;

    background: #4f5a61;
    padding: 14px 24px;
}
/* =========================================================
   BURGER
========================================================= */

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #111827;
    margin: 5px 0;
}

/* =========================================================
   MENU MOBILE
========================================================= */

.mobile-menu {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 200;
    padding: 80px 32px;
    display: none;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: block;
    font-size: 1.2rem;
    padding: 14px 0;
    text-decoration: none;
    color: #111827;
}

/* =========================================================
   ANIMATION D'APPARITION DES SECTIONS
========================================================= */

/* État initial */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
    will-change: opacity, transform;
}

/* État visible */
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Variante plus douce (optionnelle) */
.reveal-soft {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 1s ease,
        transform 1s ease;
}

.reveal-soft.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   CORRECTION DES ANCRES (HEADER + SUB-NAV)
========================================================= */

section[id] {
    scroll-margin-top: 140px;
}
/* =========================================================
   ACCESSIBILITÉ — RÉDUCTION DES ANIMATIONS
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-soft {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

/* =========================================================
   CTA HERO DISCRET
========================================================= */

.hero-cta-secondary {
    display: inline-block;
    margin-top: 24px;

    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;

    color: #ffffff;
    opacity: 0.85;

    border-bottom: 1px solid rgba(255,255,255,0.5);
    padding-bottom: 2px;

    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.hero-cta-secondary:hover {
    opacity: 1;
    border-color: #ffffff;
}

/* =========================================================
   SUB NAV – NOUVELLE COULEUR (REMPLACE LE GRIS)
========================================================= */

.homepage-subnav {
    background: #1c4e63; /* bleu-vert Energywell */
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.18);
}

.overview-content h2 {
    color: #ffffff;
}

.overview-content p {
    color: rgba(255,255,255,0.9);
}


.how-banner {
    background: linear-gradient(135deg, #6BBF4A, #4FAE6A);
    padding: 32px 0;              /* ↓ réduit */
    text-align: center;
}

.how-banner h2 {
    font-size: 2.2rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: .02em;
}
.how-body {
    background: #f7f9fb;          /* fond doux */
    padding: 80px 0;
}
.how-grid {
    max-width: 1100px;            /* recentre */
    margin: 0 auto;
    gap: 60px;                    /* ↓ espacement */
}
.how-col {
    background: #ffffff;
    padding: 40px 44px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}
.how-col .legal {
    margin-top: 28px;
    padding-left: 16px;
    border-left: 4px solid #6BBF4A;

    color: #2F8F2F;
    font-size: 1rem;
    font-style: italic;
}

.how-banner {
    padding: 28px 0; /* avant : 32px ou plus */
}
.how-body {
    padding-top: 56px;   /* avant : ~80px */
    padding-bottom: 80px;
}

.features-banner {
    background: #1C4E63; /* bleu pétrole */
    padding: 36px 0;
    text-align: center;
}

.features-banner h2 {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 500;
}
.features-image {
    background: #F4F6F8; /* gris très clair */
    display: flex;
    align-items: center;
    justify-content: center;
}
.features-panel {
    background: #EAF3EC; /* vert très doux */
    display: flex;
    align-items: center;
    padding: 80px;
}
.features-list li {
    border-bottom: 1px solid rgba(28,78,99,.2);
    color: #0f3f3d;
}
.features-list .check {
    background: #6BBF4A;
}

.sectors-panel {
    background: #1C4E63; /* bleu pétrole Energywell */
    color: #ffffff;
    display: flex;
    align-items: center;
    padding: 90px;
}
.sectors-inner h2 {
    color: #ffffff;
    font-size: 2.4rem;
    font-weight: 500;
    margin-bottom: 48px;
}
.sectors-list li {
    border-bottom: 1px solid rgba(255,255,255,0.25);
    font-size: 1.05rem;
}
.sectors-list .check {
    border: 2px solid #6BBF4A;
}

.sectors-list .check::after {
    color: #6BBF4A;
}
.sectors-panel {
    background: linear-gradient(135deg, #1C4E63, #2B6A7D);
}

.why-premium {
    background: #102E3A; /* bleu pétrole foncé */
}
.why-video {
    background: #102E3A;
    display: flex;
    align-items: center;
    justify-content: center;
}
.why-panel {
    background: #1C4E63; /* bleu pétrole Energywell */
    display: flex;
    align-items: center;
    padding: 80px;
}
.why-inner h2 {
    color: #ffffff;
}

.why-list li {
    color: rgba(255,255,255,0.95);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.why-list .check {
    background: #6BBF4A;
}

.why-list .check::after {
    color: #ffffff;
}
.why-panel {
    background: linear-gradient(135deg, #1C4E63, #2B6A7D);
}


.contact-vip {
    position: relative;
    padding: 140px 24px;
    text-align: center;
    overflow: hidden;

    /* Fond principal */
    background:
        radial-gradient(
            circle at center,
            rgba(255,255,255,0.08) 0%,
            rgba(15,63,61,0.85) 45%,
            #0b1f1e 100%
        );
}
.contact-vip::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(107,191,74,0.18),
            rgba(0,0,0,0.35)
        );

    pointer-events: none;
}
.contact-vip h2 {
    font-size: 2.8rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: .02em;
}

.contact-vip p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.75);
    margin-bottom: 48px;
}
.btn-vip {
    display: inline-block;
    padding: 18px 44px;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0b1f1e;
    text-decoration: none;

    background: linear-gradient(
        135deg,
        #cfe08a,
        #6bbf4a
    );

    box-shadow:
        0 12px 32px rgba(107,191,74,.45),
        inset 0 0 0 1px rgba(255,255,255,.35);

    transition: transform .25s ease, box-shadow .25s ease;
}

.btn-vip:hover {
    transform: translateY(-3px);
    box-shadow:
        0 18px 45px rgba(107,191,74,.6),
        inset 0 0 0 1px rgba(255,255,255,.5);
}
background:
    radial-gradient(
        circle at top,
        #2f8f8a,
        #0f3f3d 70%
    );

.footer-premium {
    background: radial-gradient(
        circle at top left,
        #0f3f3d 0%,
        #0b1f26 45%,
        #050505 100%
    );
    color: #d1d5db;
    padding: 90px 0 40px;
    font-size: 0.95rem;
}
.footer-bottom {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid transparent;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(107,191,74,.35),
            transparent
        );
    background-repeat: no-repeat;
    background-size: 100% 1px;
    background-position: top center;

    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
}
.footer-col h4 {
    color: #6bbf4a;
    letter-spacing: .18em;
}

.footer-phone:hover,
.footer-col ul a:hover {
    color: #6bbf4a;
}

.footer-engagement span {
    color: #6bbf4a;
    font-weight: 600;
}
.footer-premium {
    background: linear-gradient(
        180deg,
        #111827 0%,
        #030712 100%
    );
}

/* =========================================================
   BACK TO TOP BUTTON
========================================================= */

.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;

    width: 54px;
    height: 54px;
    border-radius: 50%;

    background: #cfe6a8; /* vert clair Energywell */
    border: none;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;

    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 120;
}

/* Visible après scroll */
.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Hover */
.back-to-top:hover {
    box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}

/* Flèche */
.back-to-top .arrow-up {
    width: 14px;
    height: 14px;
    border-left: 3px solid #2f3a1f;
    border-bottom: 3px solid #2f3a1f;
    transform: rotate(135deg);
    margin-top: 4px;
}
<button id="backToTop" class="back-to-top" aria-label="Remonter en haut">
    <span class="arrow-up"></span>
</button>


/* =========================================================
   CONTACT SPLIT – IMAGE + FORMULAIRE
========================================================= */

.contact-split {
    background: #0b0b0b;
}

.contact-split-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 90vh;
}

/* ===== IMAGE ===== */
.contact-visual {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 80px;
    color: #ffffff;
}

.contact-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(15,63,61,.75),
        rgba(0,0,0,.55)
    );
}

.contact-visual-content {
    position: relative;
    max-width: 420px;
}

.contact-visual-content h2 {
    font-size: 2.4rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.contact-visual-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: .9;
}

/* ===== FORMULAIRE ===== */
.contact-form-panel {
    background: #ffffff;
    padding: 90px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form-panel h3 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: #0f3f3d;
}

.contact-intro {
    font-size: 1.05rem;
    color: #4b5563;
    margin-bottom: 40px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .contact-split-inner {
        grid-template-columns: 1fr;
    }

    .contact-visual {
        padding: 60px 24px;
        min-height: 45vh;
    }

    .contact-form-panel {
        padding: 60px 24px;
    }
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.contact-visual {
    position: relative;
    background-image: url("../images/Energywell-support.png");
    background-size: cover;
    background-position: center;
}

.contact-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15,63,61,0.85),
        rgba(15,63,61,0.55)
    );
}

.contact-visual-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
    color: #ffffff;
}

.contact-visual-content h2 {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.contact-visual-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.9;
}

.contact-visual-clean {
    background: linear-gradient(135deg, #0f3f3d, #1c4e63);
    color: #ffffff;
    display: flex;
    align-items: center;
    padding: 90px;
}

.contact-visual-clean h2 {
    font-size: 2.6rem;
    margin-bottom: 24px;
}

.contact-visual-clean p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: 28px;
}

.contact-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-benefits li {
    margin-bottom: 12px;
    font-weight: 500;
}


/* =====================================================
   CONTACT – SPLIT LAYOUT
===================================================== */

.contact-split {
    background: #ffffff;
}

.contact-split-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 90vh;
}

/* =====================================================
   PANNEAU GAUCHE – TEXTE (SANS IMAGE)
===================================================== */

.contact-visual-clean {
    background: linear-gradient(
        160deg,
        #0f3f3d 0%,
        #134e4a 100%
    );
    color: #ffffff;
    padding: 96px 80px;
    display: flex;
    align-items: center;
}

.contact-visual-content {
    max-width: 460px;
}

.contact-visual-content h2 {
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 36px;
}

.contact-visual-content p {
    font-size: 1.05rem;
    line-height: 1.75;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* Liste bénéfices */
.contact-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-benefits li {
    font-size: 1rem;
    margin-bottom: 16px;
    color: #c7f0d8;
}

/* =====================================================
   PANNEAU DROIT – FORMULAIRE
===================================================== */

.contact-form-panel {
    padding: 96px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form-panel h3 {
    font-size: 2.6rem;
    font-weight: 500;
    color: #0f3f3d;
    margin-bottom: 18px;
}

.contact-intro {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 48px;
}

/* =====================================================
   FORMULAIRE
===================================================== */

.contact-form {
    max-width: 460px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 22px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f3f3d;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    padding: 12px 14px;
    font-size: 0.95rem;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6bbf4a;
    box-shadow: 0 0 0 3px rgba(107,191,74,0.2);
}

/* =====================================================
   BOUTON
===================================================== */

.contact-form .btn-vip {
    margin-top: 20px;
    align-self: flex-start;
}

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

@media (max-width: 900px) {
    .contact-split-inner {
        grid-template-columns: 1fr;
    }

    .contact-visual-clean {
        padding: 64px 32px;
    }

    .contact-visual-content h2 {
        font-size: 2.2rem;
    }

    .contact-form-panel {
        padding: 64px 32px;
    }

    .contact-form-panel h3 {
        font-size: 2.2rem;
    }
}

/* =====================================================
   CONTACT HERO VIP
===================================================== */

.contact-hero {
    position: relative;
    /* Harmonisé avec les autres pages (référence index) */
    min-height: var(--hero-min-height, 85vh);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contact-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(15,63,61,.85),
        rgba(0,0,0,.55)
    );
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 0 24px;
    text-align: center;
    color: #ffffff;
}

.contact-hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.contact-hero-content p {
    font-size: 1.15rem;
    opacity: .9;
}

/* =====================================================
   CONTACT VIP CARD
===================================================== */

.contact-vip-section {
    background: #f7f9fb;
    padding: 100px 24px;
}

.contact-vip-card {
    max-width: 640px;
    margin: -140px auto 0;
    background: #ffffff;
    padding: 56px;
    border-radius: 18px;
    box-shadow: 0 40px 80px rgba(0,0,0,.15);
}

.contact-vip-card h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: #0f3f3d;
}

.contact-vip-intro {
    margin-bottom: 40px;
    color: #475569;
    font-size: 1.05rem;
}

/* =====================================================
   INTERLOCUTEUR ENERGYWELL
===================================================== */

.contact-interlocutor {
    background: #ffffff;
    padding: 80px 24px 40px;
}

.contact-interlocutor-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.contact-interlocutor-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6bbf4a;
    font-weight: 600;
    margin-bottom: 14px;
}

.contact-interlocutor-inner h3 {
    font-size: 1.9rem;
    font-weight: 500;
    color: #0f3f3d;
    margin-bottom: 18px;
}

.contact-interlocutor-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
}

.contact-interlocutor {
    background: radial-gradient(
        circle at top,
        rgba(107,191,74,0.08),
        #ffffff 65%
    );
}


/* =====================================================
   CONTACT EXPERT + FORMULAIRE (VIP)
===================================================== */

.contact-expert-form {
    background: radial-gradient(
        circle at top,
        rgba(107,191,74,0.08),
        #ffffff 65%
    );
    padding: 120px 24px;
}

.contact-expert-form-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.35fr 1fr; /* 👈 colonne gauche plus large */
    gap: 80px;
    align-items: center;
}


/* COLONNE GAUCHE */

.contact-expert-content {
    max-width: 520px;
}

.contact-interlocutor-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6bbf4a;
    font-weight: 600;
    margin-bottom: 18px;
}

.contact-expert-content h2 {
    font-size: 2.4rem;
    line-height: 1.2;
    color: #0f3f3d;
    margin-bottom: 24px;
}

.contact-interlocutor-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 28px;
}

.contact-expert-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-expert-points li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    font-weight: 500;
    color: #0f3f3d;
}

.contact-expert-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #6bbf4a;
    font-weight: 700;
}

/* FORMULAIRE (existant, légèrement renforcé) */

.contact-vip-card {
    background: #ffffff;
    padding: 56px;
    border-radius: 18px;
    box-shadow: 0 40px 80px rgba(0,0,0,.15);
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .contact-expert-form-inner {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .contact-expert-content {
        max-width: 100%;
        text-align: center;
    }

    .contact-expert-points {
        display: inline-block;
        text-align: left;
    }
}

/* =====================================================
   PHOTO EXPERT — CONTACT VIP
===================================================== */

.contact-expert-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 24px;

    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border: 3px solid #ffffff;
}

.contact-expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-expert-avatar {
        margin-left: auto;
        margin-right: auto;
    }
}

.contact-expert-form {
    background: #f3f7f4; /* vert très doux Energywell */
    padding: 120px 24px;
}
.contact-expert-form {
    background: #ffffff;
}
.contact-expert-form {
    background: #e8f2ec;
}

/* =====================================================
   TITRE CONTACT — TRAIT VERTICAL
===================================================== */

.contact-expert-title {
    position: relative;
    padding-left: 28px;
    font-size: 2.4rem;
    line-height: 1.2;
    color: #0f3f3d;
    margin-bottom: 24px;
}

.contact-expert-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 4px;
    height: 70%;
    background: #6bbf4a; /* vert Energywell */
    border-radius: 2px;
}

background: rgba(107,191,74,0.5);
width: 3px;
background: linear-gradient(
    180deg,
    #6bbf4a,
    #1c4e63
);
background: #0f3f3d;

/* =====================================================
   BULLETS — ALIGNÉS ENERGYWELL
===================================================== */

.contact-expert-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-expert-points li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 16px;

    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
    color: #0f3f3d;
}

.contact-expert-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;

    width: 10px;
    height: 10px;
    border-radius: 50%;

    background: #6bbf4a; /* même vert que le trait du titre */
}
.contact-interlocutor-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;

    color: #6bbf4a;
    font-weight: 600;

    margin-bottom: 20px;
}
.contact-interlocutor-text {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #475569; /* gris bleuté pro */

    margin-bottom: 32px;
    max-width: 520px;
}



.contact-expert-content {
    max-width: 560px;
}


/* FORMULAIRE — LARGEUR CONTRÔLÉE */

.contact-vip-card {
    max-width: 460px;       /* 👈 largeur idéale */
    margin-left: auto;     /* pousse le formulaire à droite */
}
/* DÉCALAGE VERTICAL FORMULAIRE */

.contact-vip-card {
    margin-top: 40px; /* 👈 décalage subtil mais efficace */
}
@media (max-width: 900px) {
    .contact-vip-card {
    max-width: 520px;   /* 👈 largeur idéale */
    margin-left: auto;
    margin-top: 40px;
}
.contact-expert-form-inner {
    grid-template-columns: 1.35fr 1fr;
}

}

/* FORMULAIRE — VERSION ASSUMÉE */

.contact-vip-card {
    max-width: 540px;      /* 👈 largeur assumée */
    margin-left: auto;
    margin-top: 40px;

    background: #ffffff;
    padding: 56px;
    border-radius: 18px;
    box-shadow: 0 40px 80px rgba(0,0,0,.15);
}
.contact-expert-form-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 80px;
    align-items: center;
}
@media (max-width: 900px) {
    .contact-expert-form-inner {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .contact-vip-card {
        max-width: 100%;
        margin-top: 0;
        padding: 40px 24px;
    }
}


/* =====================================================
   FEATURE CARDS — PREMIUM
===================================================== */

.features-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    background: #ffffff;
    padding: 36px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0,0,0,.12);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #e8f2ec;
    color: #0f3f3d;
    font-size: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: #0f3f3d;
}

.feature-desc {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 16px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.feature-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.feature-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #6bbf4a;
    font-weight: bold;
}

.feature-usecase {
    font-size: 0.9rem;
    color: #0f3f3d;
    background: #f3f7f4;
    padding: 12px 14px;
    border-radius: 10px;
}

/* =====================================================
   HERO FONCTIONNALITÉS
===================================================== */

.features-hero {
    background: linear-gradient(
        180deg,
        #f4faf6 0%,
        #ffffff 100%
    );
    padding: 120px 24px 100px;
}

.features-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #6bbf4a;
    font-weight: 600;
    margin-bottom: 20px;
}

.features-hero-title {
    font-size: 3rem;
    line-height: 1.1;
    color: #0f3f3d;
    margin-bottom: 24px;
}

.features-hero-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #475569;
    max-width: 640px;
}
.features-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}
.feature-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,.08);
    transition: transform .35s ease, box-shadow .35s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 80px rgba(0,0,0,.12);
}
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        #6bbf4a,
        #4aa36b
    );
    color: #ffffff;
    font-size: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 24px;
}
.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 14px;
    color: #0f3f3d;
}

.feature-desc {
    font-size: 1rem;
    line-height: 1.65;
    color: #475569;
    margin-bottom: 18px;
}
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.feature-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #0f3f3d;
}

.feature-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6bbf4a;
    position: absolute;
    left: 0;
    top: 0.55em;
}
.feature-usecase {
    font-size: 0.9rem;
    background: #f3f8f5;
    padding: 14px 16px;
    border-radius: 12px;
    color: #0f3f3d;
    border-left: 4px solid #6bbf4a;
}
.features-tech {
    background: #f7f9fb;
    padding: 120px 24px;
}

.features-tech-title {
    font-size: 2.3rem;
    margin-bottom: 60px;
    color: #0f3f3d;
}

.features-tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.features-tech-card {
    background: #ffffff;
    padding: 36px;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,.06);
}

.features-tech-card h4 {
    font-size: 1.25rem;
    margin-bottom: 14px;
}
@media (max-width: 900px) {
    .features-list-grid,
    .features-tech-grid {
        grid-template-columns: 1fr;
    }

    .features-hero-title {
        font-size: 2.2rem;
    }
}

/* ==============================
   CONTACT HERO
============================== */

.contact-hero {
  position: relative;
  /* Harmonisé avec les autres pages (référence index) */
  min-height: var(--hero-min-height, 85vh);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.contact-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 1;
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 1.5rem;
  color: #ffffff;
}

.contact-hero-content h1,
.contact-hero-content p {
  color: #ffffff;
}

.list-premium {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
}

.list-premium li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 18px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text);
}
.list-premium li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--color-primary),
        #4fa3c7
    );
}
.dark-section .list-premium li {
    color: rgba(255, 255, 255, 0.9);
}

.dark-section .list-premium li::before {
    background: linear-gradient(
        135deg,
        #9fd4f0,
        #ffffff
    );
}
.reveal .list-premium li {
    opacity: 0;
    transform: translateY(8px);
}

.reveal.is-visible .list-premium li {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.is-visible .list-premium li:nth-child(1) { transition-delay: 0.05s; }
.reveal.is-visible .list-premium li:nth-child(2) { transition-delay: 0.10s; }
.reveal.is-visible .list-premium li:nth-child(3) { transition-delay: 0.15s; }
.reveal.is-visible .list-premium li:nth-child(4) { transition-delay: 0.20s; }


#backToTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #4f8a2f;
  color: #fff;
  font-size: 22px;
  border: none;
  cursor: pointer;
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, transform .3s ease;
}

#backToTop.is-visible {
  opacity: 1;
  visibility: visible;
}

.contact-vip {
    padding: 6rem 1.5rem;
    background: linear-gradient(
        180deg,
        #0F172A 0%,
        #020617 100%
    );
    color: #ffffff;
    text-align: center;
}

.contact-vip-inner {
    max-width: 720px;
    margin: 0 auto;
}

.contact-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    stroke: #ffffff;
    stroke-width: 1.8;
    fill: none;
    opacity: 0.9;
}

.contact-vip h2 {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.contact-lead {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2.25rem;
}

.contact-actions {
    margin-bottom: 1rem;
}

.contact-reassurance {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* =====================================================
   TRANSITION INTER-SECTIONS — ENERGYWELL SYSTEM
===================================================== */

.section-transition {
    position: relative;
}

/* Dégradé de sortie (bas de section) */
.section-transition::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 120px;
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0) 0%,
        rgba(247,250,252,1) 100%
    );
}

/* Variante fond clair */
.section-transition--light::after {
    background: linear-gradient(
        180deg,
        rgba(247,250,252,0) 0%,
        rgba(255,255,255,1) 100%
    );
}

/* Variante fond beige / gold */
.section-transition--gold::after {
    background: linear-gradient(
        180deg,
        rgba(255,247,230,0) 0%,
        rgba(255,244,214,1) 100%
    );
}

/* Variante fond vert doux */
.section-transition--green::after {
    background: linear-gradient(
        180deg,
        rgba(239,244,240,0) 0%,
        rgba(239,244,240,1) 100%
    );
}

.legal-content {
    padding: 80px 24px;
}

.legal-content .container-narrow {
    background: #ffffff;
    border-radius: 24px;
    padding: 64px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

/* =====================================================
   BANNIÈRE COOKIES RGPD
===================================================== */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    z-index: 9999;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    padding: 20px 24px;
    display: none;
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cookie-text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
    color: #0f172a;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #475569;
}

.cookie-text a {
    color: #2e7d32;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
}

.btn-cookie {
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn-cookie--primary {
    background: linear-gradient(135deg, #8bc34a, #4caf50);
    color: #ffffff;
}

.btn-cookie--secondary {
    background: #f1f5f9;
    color: #0f172a;
}

/* Mobile */
@media (max-width: 600px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .cookie-banner-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* =====================================================
 COOKIE BANNER — CHARTE ENERGYWELL
===================================================== */

.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: min(860px, calc(100% - 32px));
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f7fafc 100%
    );
    border-radius: 22px;
    box-shadow:
        0 25px 60px rgba(15, 23, 42, 0.15),
        0 4px 12px rgba(15, 23, 42, 0.06);
    padding: 22px 28px;
    z-index: 9999;
    display: none;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.cookie-text {
    max-width: 720px;
}

.cookie-text strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #475569;
}

.cookie-text a {
    color: #43a047;
    font-weight: 600;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* ---------- Boutons ---------- */

.cookie-btn {
    appearance: none;
    border: none;
    border-radius: 999px;
    padding: 11px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* Refuser — discret */
.cookie-refuse {
    background: #eef2f6;
    color: #0f172a;
}

.cookie-refuse:hover {
    background: #e2e8f0;
}

/* Accepter — CTA Energywell */
.cookie-accept {
    background: linear-gradient(
        135deg,
        #7cb342 0%,
        #43a047 100%
    );
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(67, 160, 71, 0.35);
}

.cookie-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(67, 160, 71, 0.45);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .cookie-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

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

.nav-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    padding: 12px 0;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 6px;
    z-index: 1000;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    white-space: nowrap;
}


@media (hover: hover) and (pointer: fine) {
    .dropdown {
        position: relative;
    }

    .dropdown:hover > .dropdown-menu {
        display: block;
    }
}



/* =====================================================
   HERO À PROPOS — IMAGE
===================================================== */

.hero-apropos {
    background-image: url("../images/apropos.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* =====================================================
   HERO À PROPOS — TEXTE SANS CADRE
===================================================== */

.hero-apropos .hero-enterprise-card {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}
.hero-apropos .hero-overlay {
    background: rgba(0, 0, 0, 0.45);
}


/* HOTFIX PRODUIT: neutralise le hero global components.css */
.hero-enterprise.hero-enterprise--product{
  min-height: auto !important;
  height: auto !important;
  padding: clamp(4rem, 6vw, 6rem) 0 !important;
  justify-content: flex-start;
}

/* CTA devis — desktop uniquement */
.nav-cta-desktop {
    margin-left: 24px;
    display: inline-flex;
    align-items: center;
}

/* Cache le CTA sur mobile */
@media (max-width: 1024px) {
  .nav-cta-desktop {
    display: none !important;
  }
}


/* Lien devis — accentué */
.nav-devis {
    color: #6bbf4a;                 /* vert Energywell */
    font-weight: 600;
}

/* Petit soulignement discret */
.nav-devis::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: #6bbf4a;
    opacity: 0.4;
}

/* Hover */
.nav-devis:hover {
    color: #4fae6a;
}


/* =====================================================
   HERO — LOGO ENERGYWELL (TAILLE AJUSTÉE)
===================================================== */
/* HERO — Logo Energywell */
.hero-brand img {
    width: 140px;      /* ↓ réduit la taille */
    max-width: 100%;
    height: auto;
}
.hero-brand {
    margin-bottom: 24px; /* ↓ avant trop grand */
}
.hero-enterprise-card {
    padding-top: 20px;   /* ↓ au lieu de 56px */
}
@media (max-width: 768px) {
    .hero-brand img {
        width: 200px;
    }

    .hero-brand {
        margin-bottom: 20px;
    }
}





.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;

    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-logo {
    width: 160px;
    height: auto;
    margin-bottom: 6px;
}

.footer-brand address {
    font-style: normal;
    line-height: 1.6;
    color: #d1d5db;
}

.footer-phone {
    margin-top: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
}

.footer-phone:hover {
    color: #6bbf4a;
}
.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 26px;
    color: #6bbf4a;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col ul a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color .2s ease, transform .2s ease;
}

.footer-col ul a:hover {
    color: #6bbf4a;
    transform: translateX(4px);
}
.footer-engagement p {
    line-height: 1.7;
    margin-bottom: 16px;
    color: #d1d5db;
}

.footer-engagement span {
    color: #6bbf4a;
    font-weight: 600;
}

.footer-tags {
    margin-top: 14px;
    font-size: 0.85rem;
    letter-spacing: .05em;
    color: #6bbf4a;
}
.footer-bottom {
    margin-top: 72px;
    padding-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: #9ca3af;

    border-top: 1px solid rgba(107,191,74,0.25);
}
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .footer-brand,
    .footer-engagement {
        align-items: center;
    }

    .footer-logo {
        margin: 0 auto 12px;
    }

    .footer-col ul a:hover {
        transform: none;
    }
}


.contact-expert-form {
    min-height: unset !important;
    height: auto !important;
    overflow: visible !important;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.hero-enterprise {
    position: relative;
    min-height: 100vh; /* pleine hauteur écran */
    display: flex;
    align-items: center;      /* centrage vertical */
    justify-content: center;  /* centrage horizontal */
    text-align: center;
}
.hero-enterprise-card {
    position: relative;
    z-index: 2; /* au-dessus de l’overlay */
    max-width: 720px;
    padding: 3rem 2.5rem;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.45); /* ajustable */
}
.hero-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.hero-brand img {
    max-height: 60px;
    width: auto;
}



.hero-enterprise {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background-size: cover;
    background-position: center top; /* remonte l’image */
}
background-position: center 20%;
background-position: center 10%;
background-position: right top;   /* utile si le visage est à droite */

.hero-enterprise-card {
    width: 560px;     /* largeur du cadran */
    height: 320px;    /* hauteur du cadran */
    
    padding: 3rem 2.5rem;
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: center; /* centrage vertical du contenu */
    text-align: center;
}

.hero-enterprise-card {
    width: 560px;
    aspect-ratio: 16 / 9; /* contrôle la longueur */
    
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (max-width: 768px) {
    .hero-enterprise-card {
        width: 90%;
        height: auto;
        padding: 2rem 1.5rem;
    }
}



.menu-interne {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-interne.is-visible {
    opacity: 1;
    pointer-events: auto;
}


.hero-enterprise {
    position: relative;
    min-height: 100vh; /* clé */
    display: flex;
    align-items: center;
    justify-content: center;

    background-image: url("../images/energywell-services.jpg");
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}
.menu-interne,
.homepage-subnav {
    position: fixed;
    top: 72px; /* sous le header */
    left: 0;
    width: 100%;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 90;
}

.menu-interne.is-visible,
.homepage-subnav.is-visible {
    opacity: 1;
    pointer-events: auto;
}



.hero-brand {
  display: flex;
  align-items: center;
  gap: 32px; /* espace entre les logos */
}

.hero-brand .hero-logo {
  height: 60px;       /* taille de référence */
  width: auto;        /* conserve les proportions */
  object-fit: contain;
  display: block;
}
.hero-brand .hero-logo {
  height: clamp(44px, 6vw, 64px);
  width: auto;
}

/* =====================================================
   HERO ENTERPRISE — STYLE VERDANT (RÉFÉRENCE)
===================================================== */
.hero-enterprise {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;

    background-image: url("../images/energywell-services.jpg");
    background-size: cover;
    background-position: right 15%; /* 👈 visage visible */
    background-repeat: no-repeat;

    padding-left: 8%;
}

/* Logos */
.hero-brand {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 28px;
}

.hero-logo {
  max-height: 48px;
  width: auto;
}

/* Texte */
.hero-enterprise-card p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 32px;
  opacity: 0.95;
}

/* CTA */
.hero-cta-secondary {
  display: inline-block;
  padding: 14px 28px;
  background: #6cc04a;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.hero-cta-secondary:hover {
  background: #5aa83f;
  transform: translateY(-2px);
}

/* Animation */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-enterprise {
    min-height: auto;
    padding: 80px 20px;
  }

  .hero-enterprise-card {
    padding: 32px;
  }

  .hero-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

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

.overview-content p {
    margin-bottom: 1.25rem;
}



/* Centrage du formulaire après suppression du pavé gauche */
.contact-expert-form-inner {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Carte formulaire centrée et maîtrisée */
.contact-vip-card {
    margin: 0 auto;
    width: 100%;
    max-width: 520px;
}
.contact-expert-form {
    display: flex;
    justify-content: center;
}


/* FIX MENU GRANDS ÉCRANS / CHROME */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

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

.nav-cta-desktop {
    margin-left: 1rem;
    white-space: nowrap;
}
.contact-vip-card {
    max-width: 620px;
}



/* =========================================
   BACK TO TOP — STANDARD ENERGYWELL
========================================= */

#backToTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #4f8a2f;
  color: #ffffff;
  font-size: 22px;
  border: none;
  cursor: pointer;
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

#backToTop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  background: #3f7425;
}



/* Centrage titre + phrase sous le titre (contact) */
.contact-vip-card h3,
.contact-vip-card .contact-vip-intro {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.contact-form button.btn-vip {
    display: block;
    margin: 2rem auto 0;
}

/* ======================================================================
   PROFESSIONAL MENU ENHANCEMENTS

   The default navigation styles were functional but lacked a distinctive
   visual hierarchy and call‑to‑action emphasis.  To present a more
   professional appearance on both desktop and mobile, the `.nav‑devis`
   link is transformed into a pill‑shaped button with a green gradient
   background and white text.  The underline previously provided via
   `::after` is removed because the button styling communicates its
   interactive nature.  Additionally, the burger icon is redesigned to
   morph into a “close” symbol when the menu is open.  This is
   accomplished purely with CSS and does not require any markup changes.

   These overrides are defined at the end of the stylesheet so they
   automatically take precedence over earlier declarations.
=======================================================================*/

/* Call‑to‑action link styled as a button */
.nav-devis {
    /* Reset inherited link styles */
    text-decoration: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #8cc63f, #3ba57c);
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* CTA hover state */
.nav-devis:hover {
    background: linear-gradient(135deg, #76b846, #339670);
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Remove underline on the CTA */
.nav-devis::after {
    display: none !important;
}

/* Enlarged clickable area for the burger button */
.burger {
    width: 32px;
    height: 24px;
    position: relative;
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Lines of the burger */
.burger span,
.burger::before,
.burger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #111827;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Middle line */
.burger span {
    top: 50%;
    transform: translateY(-50%);
}

/* Top line */
.burger::before {
    top: 0;
}

/* Bottom line */
.burger::after {
    bottom: 0;
}

/* Transform into a cross when menu is open */
.burger.open::before {
    transform: translateY(11px) rotate(45deg);
}
.burger.open span {
    opacity: 0;
}
.burger.open::after {
    transform: translateY(-11px) rotate(-45deg);
}

/* CTA visibility on mobile: ensure the demo request button remains
   available inside the mobile menu.  When the menu is open the
   `.nav-cta-desktop` container is revealed and pushed to the bottom
   of the menu column. */
@media (max-width: 1024px) {
  .header-nav.open .nav-cta-desktop {
    display: block !important;
    margin-top: auto;
    align-self: center;
    width: 100%;
    text-align: center;
  }
}

/* =====================================================
   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;
    }
}


/* =====================================================
   HEADER — LIEN DÉMO ULTRA DISCRET
===================================================== */

.header-nav .nav-devis {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 6px 0 !important;

    font-weight: 400;          /* plus léger que les autres */
    font-size: 0.9rem;         /* légèrement plus petit */
    color: #6b7280 !important; /* gris discret */

    opacity: 0.85;
    text-decoration: none;
}

/* Aucun soulignement par défaut */
.header-nav .nav-devis::after {
    display: none !important;
}

/* Hover très subtil */
.header-nav .nav-devis:hover {
    opacity: 1;
    color: #111827 !important;
}


/* =====================================================
   HEADER — LOGO AGRANDI (SANS IMPACT STRUCTUREL)
===================================================== */

.header-brand img,
.logo-energywell {
    height: 44px;        /* avant ~36–38px */
    width: auto;
    max-height: 100%;    /* sécurité : ne dépasse jamais le header */
}
height: 46px;


/* =====================================================
   BURGER — ANIMATION PRO
===================================================== */

.burger {
  position: relative;
  background: none;
  border: none;
  padding: 0;
}

.burger span,
.burger::before,
.burger::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: #0b1f33;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.burger span {
  margin: 6px 0;
}

/* État ouvert → X */
.burger.open span {
  opacity: 0;
}

.burger.open::before {
  transform: translateY(8px) rotate(45deg);
}

.burger.open::after {
  transform: translateY(-8px) rotate(-45deg);
}


.logo-energywell{height:42px;width:auto;object-fit:contain;display:block;}
.header-brand{display:flex;align-items:center;}
