/* =====================================================
   LEH · About Section - CSS
   3 layouts + 4 styles de cards fondateurs
   ===================================================== */

.leh-about-section {
    position: relative;
    --leh-green-dark: #1B4D2E;
    --leh-green: #4A7C3B;
    --leh-green-light: #7AB55C;
}

/* =====================================================
   LAYOUT 1 : IMAGE + TEXTE PUIS FONDATEURS
   LAYOUT 3 : IMAGE + TEXTE AVEC MINI-CARDS
   ===================================================== */
.leh-about-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 80px;
}

.leh-about-image-right .leh-about-main .leh-about-image-wrapper {
    order: 2;
}

.leh-about-image-right .leh-about-main .leh-about-intro {
    order: 1;
}

/* En layout 3 (mini-cards intégrées), pas de gros gap en bas */
.leh-about-layout-image-text-with-mini .leh-about-main {
    margin-bottom: 0;
}

.leh-about-layout-image-text-with-mini .leh-founders-section {
    margin-top: 40px;
}

/* =====================================================
   LAYOUT 2 : TEXTE CENTRÉ
   ===================================================== */
.leh-about-layout-text-then-founders .leh-about-intro-wrapper {
    text-align: center;
    margin-bottom: 60px;
}

.leh-about-layout-text-then-founders .leh-about-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.leh-about-layout-text-then-founders .leh-about-features {
    justify-content: center;
}

/* =====================================================
   IMAGE PRINCIPALE
   ===================================================== */
.leh-about-image-wrapper {
    position: relative;
}

.leh-about-image {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(27,77,46,0.18);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.leh-about-image:hover {
    transform: translateY(-4px);
}

/* Badge sur l'image */
.leh-about-badge {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: linear-gradient(135deg, #1B4D2E 0%, #4A7C3B 100%);
    color: #FFFFFF;
    padding: 24px 28px;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(27,77,46,0.3);
    text-align: center;
    min-width: 140px;
    z-index: 2;
}

.leh-about-badge-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.leh-about-badge-text {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    opacity: 0.9;
}

/* =====================================================
   TEXTE D'INTRO
   ===================================================== */
.leh-about-intro {
    position: relative;
}

.leh-about-pretitle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: 600;
    color: #4A7C3B;
    margin-bottom: 18px;
}

.leh-about-pretitle-line {
    display: inline-block;
    width: 36px;
    height: 2px;
    background-color: currentColor;
}

.leh-about-layout-text-then-founders .leh-about-pretitle {
    /* En layout centré, on garde l'inline-flex mais on centre l'ensemble */
}

.leh-about-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #1B4D2E;
    margin: 0 0 24px 0;
}

.leh-about-title-accent {
    color: #4A7C3B;
    position: relative;
}

.leh-about-content {
    font-size: 16px;
    line-height: 1.7;
    color: #5A5A5A;
    margin-bottom: 28px;
}

.leh-about-content p {
    margin: 0 0 14px 0;
}

.leh-about-content p:last-child {
    margin-bottom: 0;
}

.leh-about-content strong {
    color: #1B4D2E;
    font-weight: 700;
}

/* Points forts (features) */
.leh-about-features {
    list-style: none;
    margin: 0 0 32px 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.leh-about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.leh-about-feature-icon-wrapper {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    flex: 0 0 36px;
    background: linear-gradient(135deg, #1B4D2E 0%, #4A7C3B 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(27,77,46,0.2);
}

.leh-about-feature-icon {
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leh-about-feature-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.leh-about-feature-text {
    font-size: 15px;
    font-weight: 600;
    color: #1B4D2E;
}

/* Bouton CTA */
.leh-about-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #1B4D2E 0%, #4A7C3B 100%);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.leh-about-cta::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.leh-about-cta:hover::before {
    width: 400px;
    height: 400px;
}

.leh-about-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(27,77,46,0.3);
}

.leh-about-cta span,
.leh-about-cta svg {
    position: relative;
    z-index: 1;
}

.leh-about-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.leh-about-cta:hover svg {
    transform: translateX(4px);
}

/* =====================================================
   SECTION FONDATEURS
   ===================================================== */
.leh-founders-section {
    position: relative;
}

.leh-founders-section-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: #1B4D2E;
    margin: 0 0 40px 0;
    text-align: center;
}

.leh-founders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* =====================================================
   CARD FONDATEUR
   ===================================================== */
.leh-founder-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-color: #FFFFFF;
    box-shadow: 0 12px 32px rgba(27,77,46,0.1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease,
                background-color 0.4s ease;
}

.leh-founder-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(27,77,46,0.18);
}

/* === STYLE 1 : PREMIUM AVEC OVERLAY === */
.leh-founder-card[data-style="overlay-hover"] {
    background-color: transparent;
}

.leh-founder-card[data-style="overlay-hover"] .leh-founder-image-wrapper {
    position: relative;
    overflow: hidden;
}

.leh-founder-card[data-style="overlay-hover"] .leh-founder-image {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.leh-founder-card[data-style="overlay-hover"]:hover .leh-founder-image {
    transform: scale(1.08);
}

.leh-founder-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(27,77,46,0.92);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.leh-founder-card[data-style="overlay-hover"]:hover .leh-founder-overlay {
    opacity: 1;
    transform: translateY(0);
}

.leh-founder-overlay .leh-founder-bio {
    color: rgba(255,255,255,0.92);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.leh-founder-card[data-style="overlay-hover"] .leh-founder-info {
    padding: 24px 24px 28px;
    background-color: #FFFFFF;
}

/* === STYLE 2 : ELEVATED (bio toujours visible) === */
.leh-founder-card[data-style="elevated"] {
    background-color: #FFFFFF;
}

.leh-founder-card[data-style="elevated"] .leh-founder-info {
    padding: 28px;
}

/* === STYLE 3 : BORDERED === */
.leh-founder-card[data-style="bordered"] {
    background-color: #FFFFFF;
    border: 2px solid #4A7C3B;
}

.leh-founder-card[data-style="bordered"] .leh-founder-info {
    padding: 28px;
}

/* === STYLE 4 : GRADIENT AU HOVER === */
.leh-founder-card[data-style="gradient"] {
    background-color: #FFFFFF;
}

.leh-founder-card[data-style="gradient"]:hover {
    background: linear-gradient(135deg, #1B4D2E 0%, #4A7C3B 100%);
}

.leh-founder-card[data-style="gradient"] .leh-founder-info {
    padding: 28px;
    transition: color 0.4s ease;
}

.leh-founder-card[data-style="gradient"]:hover .leh-founder-name,
.leh-founder-card[data-style="gradient"]:hover .leh-founder-bio {
    color: #FFFFFF;
}

.leh-founder-card[data-style="gradient"]:hover .leh-founder-role,
.leh-founder-card[data-style="gradient"]:hover .leh-founder-specialty {
    color: rgba(255,255,255,0.9);
}

/* Image / Icon fondateur */
.leh-founder-image-wrapper {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    background-color: rgba(74,124,59,0.08);
}

.leh-founder-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.leh-founder-image-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(74,124,59,0.15) 0%, rgba(122,181,92,0.1) 100%);
    color: #4A7C3B;
    font-size: 120px;
}

.leh-founder-image-fallback i { line-height: 1; }
.leh-founder-image-fallback svg {
    width: 120px;
    height: 120px;
    fill: currentColor;
}

/* Info fondateur */
.leh-founder-info {
    padding: 24px;
}

.leh-founder-name {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #1B4D2E;
    margin: 0 0 6px 0;
    transition: color 0.4s ease;
}

.leh-founder-role {
    font-size: 13px;
    font-weight: 600;
    color: #4A7C3B;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    transition: color 0.4s ease;
}

.leh-founder-specialty {
    font-size: 14px;
    font-weight: 600;
    color: #7AB55C;
    margin-bottom: 14px;
    transition: color 0.4s ease;
}

.leh-founder-bio {
    font-size: 14px;
    line-height: 1.6;
    color: #5A5A5A;
    margin: 0 0 18px 0;
    transition: color 0.4s ease;
}

/* Réseaux sociaux */
.leh-founder-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.leh-founder-card[data-style="overlay-hover"] .leh-founder-socials {
    justify-content: center;
}

.leh-founder-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.15);
    color: #FFFFFF;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.leh-founder-card:not([data-style="overlay-hover"]) .leh-founder-social-link {
    background-color: rgba(74,124,59,0.12);
    color: #4A7C3B;
}

.leh-founder-card:not([data-style="overlay-hover"]) .leh-founder-social-link svg {
    fill: #4A7C3B;
}

.leh-founder-social-link:hover {
    background-color: #7AB55C !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) scale(1.05);
}

.leh-founder-social-link:hover svg {
    fill: #FFFFFF !important;
}

.leh-founder-card[data-style="gradient"]:hover .leh-founder-social-link {
    background-color: rgba(255,255,255,0.15);
    color: #FFFFFF;
}

.leh-founder-card[data-style="gradient"]:hover .leh-founder-social-link svg {
    fill: #FFFFFF;
}

.leh-founder-social-link svg {
    width: 16px;
    height: 16px;
    transition: fill 0.3s ease;
}

/* =====================================================
   LAYOUT 3 : MINI-CARDS
   ===================================================== */
.leh-founder-card-mini .leh-founder-image-wrapper {
    height: 220px;
}

.leh-founder-card-mini .leh-founder-info {
    padding: 18px;
}

.leh-founder-card-mini .leh-founder-name {
    font-size: 18px;
    margin-bottom: 4px;
}

.leh-founder-card-mini .leh-founder-role {
    font-size: 12px;
    margin-bottom: 4px;
}

.leh-founder-card-mini .leh-founder-specialty {
    font-size: 13px;
    margin-bottom: 10px;
}

.leh-founder-card-mini .leh-founder-bio {
    display: none;
}

.leh-founder-card-mini .leh-founder-social-link {
    width: 32px;
    height: 32px;
}

.leh-founder-card-mini .leh-founder-social-link svg {
    width: 14px;
    height: 14px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .leh-about-main {
        gap: 40px;
    }

    .leh-about-title {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    html body .leh-about-main {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        margin-bottom: 50px !important;
    }

    /* Pour l'image à droite : on remet l'image en premier sur mobile (sinon order:2 nous l'envoie en bas) */
    html body .leh-about-image-right .leh-about-main .leh-about-image-wrapper {
        order: 0;
    }
    html body .leh-about-image-right .leh-about-main .leh-about-intro {
        order: 1;
    }

    html body .leh-about-image {
        height: 320px !important;
    }

    html body .leh-about-badge {
        bottom: -16px;
        right: 16px;
        padding: 18px 22px;
        min-width: 110px;
    }

    html body .leh-about-badge-number {
        font-size: 28px;
    }

    html body .leh-about-title {
        font-size: 26px !important;
    }

    html body .leh-about-content {
        font-size: 15px !important;
    }

    html body .leh-about-features {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    html body .leh-founders-section-title {
        font-size: 22px !important;
        margin-bottom: 28px !important;
    }

    html body .leh-founders-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    html body .leh-founder-image-wrapper {
        height: 320px !important;
    }

    html body .leh-founder-name {
        font-size: 19px !important;
    }

    /* Sur mobile, l'overlay est toujours partiellement visible */
    html body .leh-founder-card[data-style="overlay-hover"] .leh-founder-overlay {
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(180deg, transparent 0%, rgba(27,77,46,0.85) 60%, rgba(27,77,46,0.95) 100%);
        justify-content: flex-end;
        padding: 20px;
    }

    html body .leh-founder-card[data-style="overlay-hover"] .leh-founder-overlay .leh-founder-bio {
        font-size: 13px;
    }

    html body .leh-about-section {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* =====================================================
   ACCESSIBILITÉ
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    .leh-about-image,
    .leh-founder-card,
    .leh-founder-image,
    .leh-founder-overlay,
    .leh-founder-social-link,
    .leh-about-cta,
    .leh-about-cta::before {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}
