/* FENEM — Homepage Premium (inspired by Afiyah, adapted for energy sector) */

.page-home-premium {
    --stack-offset: 14px;
    --panel-radius: 40px;
}

.page-home-premium main {
    padding-top: var(--header-height);
}

.page-home-premium .site-header {
    background: var(--white);
    box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.page-home-premium .header-top {
    background: linear-gradient(90deg, #0f172a 0%, #1a2744 50%, #0f172a 100%);
    padding: .6rem 0;
}
.page-home-premium .announcement-bar {
    padding: .7rem 0;
    font-size: .9rem;
    background: linear-gradient(90deg,
        rgba(0, 150, 57, 0.28) 0%,
        rgba(0, 150, 57, 0.12) 45%,
        rgba(0, 150, 57, 0.08) 55%,
        rgba(0, 150, 57, 0.22) 100%);
}
.page-home-premium .main-nav {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: .75rem 0 .6rem;
}
.page-home-premium .logo { height: 60px; }
.page-home-premium .nav-row-menu { padding-top: .5rem; }
.page-home-premium .nav-link.active {
    background: var(--green-light);
    color: var(--green);
    border-radius: 999px;
    font-weight: 600;
}
.page-home-premium .site-search {
    max-width: 380px;
}

/* Hero + Partenaires — section fusionnée */
.hero-unified {
    position: relative;
    margin: 0;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 32px 32px;
}
.hero-premium-bg {
    position: absolute; inset: 0;
    pointer-events: none; z-index: 0;
}
.hero-bg-slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroBgFade 24s infinite;
}
.hero-bg-slide-1 {
    background-image: url('../images/hero-bg-wind-sunset.jpg');
    animation-delay: 0s;
}
.hero-bg-slide-2 {
    background-image: url('../images/hero-bg-industrial.jpg');
    animation-delay: 8s;
}
.hero-bg-slide-3 {
    background-image: url('../images/hero-bg-wind-night.jpg');
    animation-delay: 16s;
}
@keyframes heroBgFade {
    0%, 28% { opacity: 1; transform: scale(1); }
    33%, 95% { opacity: 0; transform: scale(1.03); }
    100% { opacity: 1; transform: scale(1); }
}
.hero-bg-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(6, 40, 25, .82) 0%,
        rgba(0, 100, 48, .68) 35%,
        rgba(8, 30, 22, .78) 70%,
        rgba(10, 25, 20, .92) 100%);
}
.hero-sparkles {
    position: absolute; inset: 0; opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 4l2 6h6l-5 4 2 6-5-4-5 4 2-6-5-4h6z' fill='%23fff'/%3E%3C/svg%3E");
}

.hero-premium {
    position: relative; z-index: 1;
    width: 100%;
    min-height: 420px;
    max-height: 520px;
    display: flex;
    align-items: center;
}
.hero-trust-merged {
    position: relative; z-index: 1;
    padding: 1.25rem 0 2rem;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, .15) 0%,
        rgba(0, 0, 0, .28) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.hero-trust-merged .trust-banner {
    margin-bottom: 1.25rem;
}
.hero-trust-merged .trust-banner-inner {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.hero-trust-merged .trust-logo-item {
    background: rgba(255, 255, 255, .95);
    border-color: rgba(255, 255, 255, .5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}
.hero-unified-fade {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 48px; z-index: 2; pointer-events: none;
    background: linear-gradient(to bottom, transparent, var(--gray-100));
}

.hero-premium-wrap {
    position: relative; z-index: 1;
    width: min(1360px, 96%); margin: 0 auto;
}
.hero-premium-inner {
    position: relative; z-index: 1;
    max-width: 680px;
    padding: 3.5rem 0;
}
.hero-premium-content h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 800; color: var(--white);
    line-height: 1.15; margin-bottom: 1rem;
    letter-spacing: -.02em;
}
.hero-highlight { color: var(--yellow); }
.hero-premium-desc {
    font-size: 1.05rem; color: rgba(255,255,255,.88);
    max-width: 520px; margin-bottom: 1.25rem; line-height: 1.65;
}
.hero-actions {
    display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
}
.btn-hero-white {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .85rem 1.75rem; background: var(--white);
    color: var(--green) !important; font-weight: 700;
    border-radius: 999px; font-size: .95rem;
    transition: all .35s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
.btn-hero-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,.2);
    color: var(--green-dark) !important;
}
.btn-hero-outline {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .85rem 1.75rem; background: transparent;
    color: var(--white) !important; font-weight: 700;
    border: 2px solid rgba(255,255,255,.45);
    border-radius: 999px; font-size: .95rem;
    transition: all .35s cubic-bezier(.4,0,.2,1);
}
.btn-hero-outline:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.7);
    transform: translateY(-2px);
}

/* Chiffres clés — cartes modernes */
.stats-section-modern {
    padding: 0 0 2rem;
    margin-top: -1rem;
    background: var(--gray-100);
    position: relative;
    z-index: 2;
}
.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.stat-card-modern {
    background: var(--white);
    border-radius: 20px;
    padding: 1.75rem 1.25rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(0, 150, 57, .1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .06);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}
.stat-card-modern::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--yellow));
}
.stat-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 150, 57, .12);
}
.stat-card-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin-bottom: 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 150, 57, .12), rgba(252, 209, 22, .12));
    color: var(--green);
}
.stat-card-modern .stat-number {
    display: block;
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--green-dark);
    line-height: 1;
    margin-bottom: .4rem;
}
.stat-card-modern .stat-label {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: var(--gray-500);
    letter-spacing: .01em;
}

/* Bandeau partenaires (standalone pages) */
.trust-strip {
    padding: 0 0 2.5rem;
    background: var(--gray-100);
}
.trust-banner {
    display: flex; justify-content: center;
    margin-bottom: 1.75rem;
    padding: 0 1rem;
}
.trust-banner-inner {
    display: inline-flex; align-items: center; gap: 1.25rem;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, #0a6b38 100%);
    color: var(--white);
    padding: .85rem 2.5rem;
    border-radius: 999px;
    box-shadow: 0 8px 28px rgba(0, 150, 57, .3);
    position: relative;
    overflow: hidden;
}
.trust-banner-inner::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
    animation: trustBannerShine 4s ease-in-out infinite;
}
@keyframes trustBannerShine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}
.trust-banner-text {
    font-size: clamp(.9rem, 2vw, 1.05rem);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
    position: relative; z-index: 1;
}
.trust-banner-line {
    width: 32px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--yellow), transparent);
    flex-shrink: 0;
    position: relative; z-index: 1;
}
.trust-logos {
    display: flex; flex-wrap: wrap; justify-content: center;
    align-items: center; gap: 1.5rem 2rem;
}
.trust-logos-images { gap: 1rem 1.75rem; }
.trust-logo-item {
    display: flex; align-items: center; justify-content: center;
    background: var(--white); border-radius: 14px;
    padding: .75rem 1.25rem; min-width: 130px; height: 68px;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    transition: transform var(--transition), box-shadow var(--transition);
}
.trust-logo-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.trust-logo-item img {
    max-height: 44px; max-width: 130px;
    width: auto; object-fit: contain;
}

/* Marquee partenaires */
.trust-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    padding: .5rem 0 1rem;
}
.trust-marquee-track {
    display: flex; align-items: center; gap: 1.5rem;
    width: max-content;
    animation: trustMarquee 45s linear infinite;
}
.trust-marquee .trust-logo-item { flex-shrink: 0; }
.trust-marquee:hover .trust-marquee-track {
    animation-play-state: paused;
}
@keyframes trustMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Cascade stack — Président + Bénéfices */
.cascade-stack-section {
    padding: 0;
    background: var(--gray-100);
    margin-top: 0;
}
.cascade-stack {
    position: relative;
    padding-bottom: 4vh;
}
.cascade-panel {
    position: sticky;
    top: calc(var(--header-height) - 10px);
    min-height: 85vh;
    border-radius: var(--panel-radius) var(--panel-radius) 0 0;
    margin-top: calc(var(--panel-index, 0) * -28px);
    z-index: calc(12 + var(--panel-index, 0));
    overflow: hidden;
    display: flex; align-items: center;
    padding: 3.5rem 0 4.5rem;
    box-shadow: 0 -8px 40px rgba(0,0,0,.08);
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.cascade-panel .benefits-pattern {
    position: absolute; inset: 0; opacity: .04; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 2l2 5h5l-4 3 2 5-5-3-5 3 2-5-4-3h5z' fill='%23009639'/%3E%3C/svg%3E");
}
.president-grid-cascade {
    position: relative; z-index: 1;
    align-items: center;
}
.president-grid-cascade .president-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800; margin-bottom: .35rem;
}
.cascade-panel.platform-theme-cream {
    background: linear-gradient(180deg, var(--white) 0%, #f8faf9 100%);
}
.cascade-panel.platform-theme-light {
    background: linear-gradient(180deg, #e8f8ef 0%, #f0faf4 100%);
}

/* Benefits sticky stack (inside cascade panel) */
.benefits-pattern {
    position: absolute; inset: 0; opacity: .04; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 2l2 5h5l-4 3 2 5-5-3-5 3 2-5-4-3h5z' fill='%23009639'/%3E%3C/svg%3E");
}
.benefits-stack-layout {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: start;
}
.benefits-stack-intro h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800; line-height: 1.2;
    margin-bottom: 1rem; color: var(--gray-900);
}
.benefits-stack-intro p {
    color: var(--gray-500); font-size: 1.05rem;
    line-height: 1.7; margin-bottom: 2rem;
}
.benefits-stack-layout {
    position: relative; z-index: 1;
}
.benefits-stack-photo {
    border-radius: 24px; overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.benefits-stack-photo img {
    width: 100%; height: 300px; object-fit: cover;
}
.cascade-panel .stack-cards { padding-bottom: 2rem; }

.stack-cards { position: relative; padding-bottom: 4rem; }
.stack-card {
    position: sticky;
    top: calc(var(--header-height) + 20px + var(--stack-index, 0) * var(--stack-offset));
    display: flex; gap: 1.25rem; align-items: flex-start;
    background: var(--white);
    border-radius: 20px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 24px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
    border: 1px solid rgba(0,150,57,.08);
    z-index: calc(10 + var(--stack-index, 0));
    transition: transform .4s cubic-bezier(.4,0,.2,1), box-shadow .4s;
}
.stack-card.is-active {
    box-shadow: 0 12px 40px rgba(0,150,57,.15);
    transform: scale(1.01);
}
.stack-card-icon {
    flex-shrink: 0; width: 48px; height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--green-light), #fef9e7);
    color: var(--green);
    display: flex; align-items: center; justify-content: center;
}
.stack-card-body h3 {
    font-size: 1.05rem; font-weight: 700;
    margin-bottom: .5rem; line-height: 1.35;
}
.stack-card-body p {
    font-size: .9rem; color: var(--gray-500); line-height: 1.65;
}

/* FAQ */
.faq-section { padding: 5rem 0; background: var(--white); }
.faq-grid {
    display: grid; grid-template-columns: 1fr 1.1fr;
    gap: 4rem; align-items: start;
}
.faq-visual h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800; margin-bottom: .75rem;
}
.faq-visual > p {
    color: var(--gray-500); margin-bottom: 2rem; line-height: 1.7;
}
.faq-image-wrap {
    position: relative; border-radius: 24px; overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 3 / 4;
    max-height: 480px;
    background: var(--gray-100);
}
.faq-image-wrap img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
}
.faq-image-badge {
    position: absolute; bottom: 1rem; right: 1rem;
    background: var(--white); padding: .5rem .65rem;
    border-radius: 12px; box-shadow: var(--shadow-md);
}
.faq-image-badge img { width: 56px; height: auto; object-fit: contain; }
.faq-search-wrap { margin-bottom: 1.25rem; }
.faq-search-input {
    width: 100%; padding: .85rem 1.15rem;
    border: 1px solid var(--gray-300);
    border-radius: 999px; font-family: var(--font);
    font-size: .95rem; outline: none;
    transition: border-color .3s, box-shadow .3s;
}
.faq-search-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0,150,57,.12);
}
.faq-item.is-hidden { display: none; }
.faq-no-match {
    display: none; padding: 1.5rem 0;
    color: var(--gray-500); font-size: .95rem;
}
.faq-no-match.visible { display: block; }

.faq-item { border-bottom: 1px solid var(--gray-100); }
.faq-question {
    width: 100%; display: flex; justify-content: space-between;
    align-items: center; gap: 1rem;
    padding: 1.35rem 0; background: none; border: none;
    cursor: pointer; text-align: left;
    font-family: var(--font); font-size: 1rem; font-weight: 700;
    color: var(--gray-900); line-height: 1.4;
}
.faq-chevron {
    flex-shrink: 0; width: 32px; height: 32px;
    border-radius: 50%; background: var(--gray-100);
    position: relative; transition: transform .3s, background .3s;
}
.faq-chevron::before {
    content: ''; position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -30%);
    border: solid var(--gray-700); border-width: 0 2px 2px 0;
    padding: 3px; transform: translate(-50%, -50%) rotate(45deg);
}
.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    background: var(--green-light);
}
.faq-item.open .faq-chevron::before { border-color: var(--green); }
.faq-answer {
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.4,0,.2,1), opacity .3s;
    max-height: 0; opacity: 0;
}
.faq-item.open .faq-answer { max-height: 300px; opacity: 1; }
.faq-answer p {
    padding-bottom: 1.25rem; color: var(--gray-500);
    font-size: .95rem; line-height: 1.7;
}
.faq-answer[hidden] { display: block; max-height: 0; opacity: 0; }

/* Platform escalating panels */
.platform-stack-section {
    padding: 4rem 0 0;
    background: var(--gray-100);
    margin-bottom: 0;
}
.page-home-premium .platform-stack-section + .news-section {
    background: var(--gray-100);
}
.platform-stack-header {
    text-align: center; max-width: 640px;
    margin: 0 auto 3rem;
}
.platform-stack-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800; margin-bottom: .75rem;
}
.platform-stack-header p { color: var(--gray-500); font-size: 1.05rem; }

.platform-stack { position: relative; padding-bottom: 4vh; }
.platform-panel {
    position: sticky;
    top: calc(var(--header-height) - 10px);
    min-height: 78vh;
    border-radius: var(--panel-radius) var(--panel-radius) 0 0;
    margin-top: calc(var(--panel-index, 0) * -28px);
    z-index: calc(20 + var(--panel-index, 0));
    overflow: hidden;
    display: flex; align-items: center;
    padding: 4rem 0 5rem;
    box-shadow: 0 -8px 40px rgba(0,0,0,.08);
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.platform-panel-bg {
    position: absolute; inset: 0;
    background-image: var(--panel-bg);
    background-size: cover;
    background-position: center;
    opacity: .18;
    pointer-events: none;
}
.platform-theme-dark .platform-panel-bg { opacity: .22; }
.platform-theme-gold .platform-panel-bg,
.platform-theme-cream .platform-panel-bg { opacity: .14; }
.platform-panel.is-scaled,
.cascade-panel.is-scaled {
    transform: scale(calc(1 - (var(--panel-index, 0) * 0.015)));
}
.platform-theme-dark {
    background: linear-gradient(135deg, #064e2b, var(--green-dark));
    color: var(--white);
}
.platform-theme-light {
    background: linear-gradient(180deg, #e8f8ef, #f0faf4);
    color: var(--gray-900);
}
.platform-theme-gold {
    background: linear-gradient(180deg, #fef9e7, #fff8dc);
    color: var(--gray-900);
}
.platform-theme-cream {
    background: linear-gradient(180deg, var(--white), var(--gray-100));
    color: var(--gray-900);
}

.platform-panel-pattern {
    position: absolute; inset: 0; opacity: .06; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 4l2 6h6l-5 4 2 6-5-4-5 4 2-6-5-4h6z' fill='%23009639'/%3E%3C/svg%3E");
}
.platform-theme-dark .platform-panel-pattern {
    opacity: .08;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 4l2 6h6l-5 4 2 6-5-4-5 4 2-6-5-4h6z' fill='%23fff'/%3E%3C/svg%3E");
}

.platform-panel-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 1.1fr;
    gap: 3rem; align-items: center;
}
.platform-index {
    display: inline-block; font-size: .75rem; font-weight: 800;
    letter-spacing: .15em; opacity: .5; margin-bottom: .75rem;
}
.platform-panel-text h3 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800; margin-bottom: 1rem; line-height: 1.2;
}
.platform-panel-text p {
    font-size: 1.05rem; line-height: 1.7;
    margin-bottom: 1.75rem; opacity: .85;
}
.platform-theme-dark .platform-panel-text p { opacity: .8; }

.platform-device-frame {
    position: relative;
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,.25);
    transform: perspective(1000px) rotateY(-3deg) rotateX(2deg);
    transition: transform .6s cubic-bezier(.4,0,.2,1);
    border: 4px solid rgba(255,255,255,.85);
}
.platform-device-frame::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.15));
    pointer-events: none;
}
.platform-panel:hover .platform-device-frame {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}
.platform-device-frame img {
    width: 100%; height: 360px; object-fit: cover;
    object-position: center;
}
.platform-stack-header h2::after {
    content: '';
    display: block; width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--green), var(--yellow));
    margin: 1rem auto 0; border-radius: 2px;
}

/* Arrière-plans photo pleine section */
.section-with-bg {
    position: relative; overflow: hidden;
    color: var(--white);
}
.section-bg {
    position: absolute; inset: 0; z-index: 0;
}
.section-bg img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
}
.section-bg-overlay {
    position: absolute; inset: 0;
}
.section-bg-overlay-dark {
    background: linear-gradient(135deg,
        rgba(10, 20, 35, .88) 0%,
        rgba(6, 50, 30, .82) 50%,
        rgba(10, 20, 35, .9) 100%);
}
.section-bg-overlay-green {
    background: linear-gradient(135deg,
        rgba(4, 60, 32, .88) 0%,
        rgba(0, 120, 55, .78) 45%,
        rgba(10, 30, 25, .85) 100%);
}
.section-with-bg > .container {
    position: relative; z-index: 1;
}

/* Icônes uniformes — vert FENEM + jaune */
.ui-icon-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; flex-shrink: 0;
    border-radius: 10px;
    background: rgba(0, 150, 57, .35);
    color: var(--yellow);
    border: 1px solid rgba(252, 209, 22, .25);
}
.ui-icon-badge-sm {
    width: 28px; height: 28px; border-radius: 8px;
}

/* Actualités — carrousel auto */
.page-home-premium .news-section.section {
    padding: 1.5rem 0 3rem; overflow: hidden;
    margin-top: -1rem;
}
.page-home-premium .news-section .section-header.flex-header {
    margin-bottom: 1.75rem; max-width: none; text-align: left;
}
.page-home-premium .news-section .section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.news-carousel {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    padding: .25rem 0 1rem;
}
.news-carousel-track {
    display: flex; gap: 1.25rem; width: max-content;
    animation: newsCarousel 70s linear infinite;
}
.news-carousel:hover .news-carousel-track {
    animation-play-state: paused;
}
.news-card-slide {
    flex: 0 0 min(340px, 82vw);
    max-width: 340px;
}
@keyframes newsCarousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Prochains événements — modernisé */
.page-home-premium .events-preview-modern.section {
    padding: 3.5rem 0;
}
.page-home-premium .events-preview-modern.bg-dark {
    background: transparent;
}
.page-home-premium .events-header {
    margin-bottom: 1.75rem; max-width: none; text-align: left;
}
.page-home-premium .events-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--white);
}
.page-home-premium .events-header .text-gradient {
    background: linear-gradient(90deg, var(--yellow), #fff8dc);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.events-cards-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem; position: relative; z-index: 1;
}
.event-card-modern {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 20px;
    padding: 1.35rem 1.35rem 1.25rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.event-card-modern:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,.14);
    border-color: rgba(252, 209, 22, .35);
}
.event-card-top {
    display: flex; align-items: flex-start; justify-content: space-between;
    margin-bottom: 1rem;
}
.event-date-badge {
    display: flex; flex-direction: column; align-items: center;
    min-width: 52px; padding: .4rem .55rem;
    background: linear-gradient(145deg, var(--green), var(--green-dark));
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    line-height: 1;
}
.event-date-badge .event-day {
    font-size: 1.35rem; font-weight: 800; color: var(--white);
}
.event-date-badge .event-month {
    font-size: .62rem; font-weight: 700; color: rgba(255,255,255,.85);
    letter-spacing: .04em; margin-top: .15rem;
}
.event-card-body h3 {
    font-size: 1.02rem; font-weight: 700; margin-bottom: .45rem; line-height: 1.35;
    color: var(--white);
}
.event-card-body p {
    color: rgba(255,255,255,.62); font-size: .88rem; line-height: 1.55;
    margin-bottom: 1rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.event-meta-modern {
    display: flex; flex-direction: column; gap: .55rem;
}
.event-meta-item {
    display: flex; align-items: center; gap: .55rem;
    font-size: .82rem; color: rgba(255,255,255,.72);
}
/* CTA modernisé */
.page-home-premium .cta-section-modern.section {
    padding: 3.5rem 0;
}
.cta-box-modern {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 1.4fr auto;
    gap: 2.5rem; align-items: center;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 28px;
    padding: 2.75rem 3rem;
    color: var(--white);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.cta-content-modern { position: relative; z-index: 1; }
.cta-tag {
    background: rgba(252, 209, 22, .2);
    color: var(--yellow);
    border: 1px solid rgba(252, 209, 22, .3);
    margin-bottom: .75rem;
}
.cta-content-modern h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800; margin-bottom: .65rem;
    color: var(--white);
}
.cta-content-modern > p {
    color: rgba(255, 255, 255, .9);
    max-width: 520px; line-height: 1.65; margin-bottom: 1.25rem;
}
.cta-features {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: .65rem 1.5rem; list-style: none; padding: 0; margin: 0;
}
.cta-features li {
    display: flex; align-items: center; gap: .65rem;
    font-size: .9rem; font-weight: 500;
    color: rgba(255, 255, 255, .92);
}
.cta-actions-modern {
    display: flex; flex-direction: column; gap: .85rem;
    flex-shrink: 0; z-index: 1;
}
.cta-actions-modern .btn-primary {
    background: var(--yellow); color: var(--dark); border-color: var(--yellow);
}
.cta-actions-modern .btn-primary:hover {
    background: var(--white); color: var(--green); border-color: var(--white);
}
.cta-actions-modern .btn-outline {
    border-color: rgba(255,255,255,.45); color: var(--white);
}
.cta-actions-modern .btn-outline:hover {
    background: var(--white); color: var(--green);
}

/* Responsive */
@media (max-width: 1024px) {
    .benefits-stack-layout,
    .faq-grid,
    .platform-panel-inner,
    .president-grid-cascade {
        grid-template-columns: 1fr;
    }
    .hero-unified { border-radius: 0 0 24px 24px; }
    .hero-premium { min-height: 360px; max-height: none; }
    .hero-trust-merged { padding-bottom: 1.5rem; }
    .benefits-stack-photo { margin-bottom: 1.5rem; }
    .stack-card { position: relative; top: auto !important; }
    .cascade-panel,
    .platform-panel {
        position: relative; top: auto !important;
        min-height: auto; margin-top: 0 !important;
        border-radius: 24px; margin-bottom: 1.5rem;
    }
    .cascade-stack,
    .platform-stack { padding-bottom: 2rem; }
    .trust-marquee-track { animation-duration: 60s; }
    .news-carousel-track { animation-duration: 90s; }
    .events-cards-grid { grid-template-columns: 1fr; }
    .cta-box-modern { grid-template-columns: 1fr; text-align: center; padding: 2rem 1.5rem; }
    .cta-features { grid-template-columns: 1fr; text-align: left; }
    .cta-actions-modern { width: 100%; }
    .platform-stack-section { padding-bottom: 2rem; }
    .stats-cards-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .trust-marquee-track,
    .news-carousel-track,
    .hero-bg-slide { animation: none; }
    .hero-bg-slide-1 { opacity: 1; }
    .trust-banner-inner::before { animation: none; }
}

@media (max-width: 768px) {
    .page-home-premium { --header-height: 130px; }
    .hero-unified { border-radius: 0 0 20px 20px; }
    .hero-premium { min-height: 340px; max-height: none; }
    .page-home-premium .logo { height: 52px; }
    .hero-premium-inner { padding: 2rem 0; }
    .hero-premium-content h1 { font-size: 1.85rem; }
    .stats-cards-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .trust-banner-inner { padding: .75rem 1.5rem; gap: .75rem; }
    .trust-banner-line { width: 20px; }
    .platform-device-frame { transform: none; }
    .platform-device-frame img { height: 220px; }
}
