/* ============================================================
   SenCentrale — Home Page redesign
   ============================================================ */

/* ── Scroll-reveal animations ───────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }
.reveal-delay-5 { transition-delay: 0.50s; }
.reveal-delay-6 { transition-delay: 0.60s; }

/* ── Hero redesign ──────────────────────────────────────── */
.hero {
    background:
        linear-gradient(145deg, #0a4a22 0%, #117333 45%, #1a9444 100%);
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0 3rem;
    display: flex;
    align-items: center;
}

/* Motif géométrique en arrière-plan */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Halo lumineux droit */
.hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.hero__inner {
    position: relative;
    z-index: 1;
    max-width: 44rem;
    margin: 0 auto;
    text-align: center;
}

.hero-kicker {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.95);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    margin-bottom: 1.1rem;
}

.hero-title {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.hero-title em {
    font-style: normal;
    color: #f1c249;
}

.hero-subtitle {
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    color: rgba(255,255,255,0.88);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.hero__cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    color: #117333;
    font-size: 0.9375rem;
    font-weight: 700;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    border: 2px solid transparent;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hero__cta-primary:hover {
    background: #f0faf4;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

.hero__cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.4);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.hero__cta-secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.65);
    transform: translateY(-2px);
}

/* ── Stats band ─────────────────────────────────────────── */
.home-stats-band {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
}

.home-stats-inner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1rem;
}

.home-stat {
    flex: 1 1 160px;
    text-align: center;
    padding: 1.5rem 1.25rem;
    position: relative;
}

.home-stat + .home-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: #e5e7eb;
}

.home-stat__value {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: #117333;
    line-height: 1;
    display: block;
    letter-spacing: -0.03em;
}

.home-stat__label {
    font-size: 0.8125rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: 0.3rem;
    display: block;
}

/* ── Bande lancement (avant seuil stats) ────────────────── */
.home-launch-band {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
}

.home-launch-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.home-launch-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.home-launch-item svg {
    width: 16px;
    height: 16px;
    stroke: #117333;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.home-launch-sep {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .home-launch-sep { display: none; }
    .home-launch-item { padding: 0.75rem 1rem; font-size: 0.8125rem; }
    .home-launch-inner { justify-content: flex-start; }
}

/* ── Wave separator ─────────────────────────────────────── */
.home-wave {
    display: block;
    width: 100%;
    line-height: 0;
    margin-bottom: -2px;
}
.home-wave--flip {
    transform: scaleY(-1);
    margin-top: -2px;
    margin-bottom: 0;
}

/* ── CTA split amélioration ─────────────────────────────── */
.home-cta-split {
    box-shadow: 0 8px 40px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.home-cta-split__image {
    overflow: hidden;
}
.home-cta-split__image img {
    transition: transform 0.6s ease;
}
.home-cta-split:hover .home-cta-split__image img {
    transform: scale(1.03);
}

.home-cta-split__kicker {
    background: rgba(241,194,73,0.18);
    color: #7a5a00;
    font-weight: 700;
    letter-spacing: 0.12em;
    border: 1px solid rgba(241,194,73,0.4);
    font-size: 0.7rem;
}

/* ── Why SenCentrale band ───────────────────────────────── */
.home-why-band {
    background: linear-gradient(180deg, #f0faf4 0%, #f9fafb 100%);
    padding: 0;
}

.home-why-band .card--home-features {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
}

.home-why-band .card-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.home-why-band .card-title--section {
    font-size: clamp(1.4rem, 3vw, 1.875rem);
    font-weight: 800;
    color: #1f2937;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.home-why-band .card-title--section::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, #117333, #f1c249);
    border-radius: 999px;
    margin: 0.6rem auto 0;
}

.home-why-band .section-lead {
    color: #6b7280;
    font-size: 1rem;
    max-width: 36rem;
    margin: 0.75rem auto 0;
    line-height: 1.6;
}

/* ── Features grid redesign ─────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 600px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-item {
    padding: 1.75rem 1.5rem;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    min-height: 0;
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    text-align: left;
}

.feature-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
    pointer-events: none;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(17,115,51,0.12);
    border-color: rgba(17,115,51,0.2);
}
.feature-item:hover::after {
    border-color: rgba(17,115,51,0.25);
}

.feature-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    width: 100%;
    text-align: left;
    padding: 0;
    cursor: pointer;
}

/* Icône SVG dans cercle coloré */
.feature-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-wrap--green   { background: #dcfce7; color: #15803d; }
.feature-icon-wrap--blue    { background: #dbeafe; color: #1d4ed8; }
.feature-icon-wrap--amber   { background: #fef3c7; color: #b45309; }
.feature-icon-wrap--purple  { background: #ede9fe; color: #7c3aed; }
.feature-icon-wrap--rose    { background: #ffe4e6; color: #be123c; }
.feature-icon-wrap--teal    { background: #ccfbf1; color: #0f766e; }

.feature-icon-wrap svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.75;
}

.feature-item__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.35;
    margin: 0;
}

.feature-item__desc {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.55;
    margin: 0.3rem 0 0;
}

/* ── CTA final bande ────────────────────────────────────── */
.home-final-cta {
    background: linear-gradient(135deg, #0e5c2a 0%, #117333 100%);
    padding: 3.5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.home-final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.home-final-cta__title {
    font-size: clamp(1.4rem, 3vw, 1.875rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    position: relative;
}

.home-final-cta__sub {
    color: rgba(255,255,255,0.82);
    font-size: 1rem;
    margin-bottom: 1.75rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
}

.home-final-cta__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    position: relative;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 480px) {
    .home-stat { padding: 1.25rem 0.75rem; }
    .home-stat__value { font-size: 1.5rem; }
    .hero__cta-primary,
    .hero__cta-secondary { width: 100%; justify-content: center; }
}
