/* =========================================
   PAGE GENTA GROUP — Styles dédiés
   ========================================= */


/* =========================================
   SECTION — Hero image
   ========================================= */

#hero .heroImg {
    position: relative;
    border-radius: 10px;
    box-shadow: none;
}

#hero .heroImg::before,
#hero .heroImg::after {
    position: absolute;
    border-radius: 10px;
    padding: 8px 16px;
    background: #FFFFFF;
    font-size: var(--wp--preset--font-size--small);
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--wp--preset--shadow--card);
    z-index: 2;
}

#hero .heroImg::before {
    bottom: 2rem;
    left: -1rem;
}

#hero .heroImg::after {
    top: 2rem;
    right: -1rem;
}

#hero .heroImg::before { content: var(--hero-img-before, none); }
#hero .heroImg::after  { content: var(--hero-img-after, none); }

#hero .heroImg figcaption {
    position: absolute;
    bottom: 0;
    padding: 10px 20px;
    margin-bottom: 0 !important;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    color: white;
    font-size: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

@media (hover: hover) {
    #hero .heroImg:hover figcaption {
        opacity: 1;
    }
}

#hero .heroImg figcaption.is-visible {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 900px) {
    #hero .heroImg figcaption {
        font-size: 0.6rem;
    }
}


/* =========================================
   SECTION — Raison d'être
   ========================================= */

@media (max-width: 780px) {
    #raisonEtre .wp-block-column:first-child,
    #histoire .wp-block-column:first-child {
        border-right: none !important;
        padding-right: 0 !important;
    }

    #raisonEtre .wp-block-column:last-child,
    #histoire .wp-block-column:last-child {
        padding-left: 0 !important;
    }
}


/* =========================================
   SECTION — Timeline histoire & stratégie
   ========================================= */

.gentaTimeline {
    display: flex;
    flex-direction: column;
}

.gentaTimeline__item {
    display: flex;
    gap: 1.25rem;
    align-items: stretch;
}

.gentaTimeline__marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    padding-top: 0.15rem;
}

.gentaTimeline__dot {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.gentaTimeline__dot--past {
    background: var(--wp--preset--gradient--accent-gradient);
    border: none;
    box-shadow: 0 0 0 4px rgba(51, 187, 188, 0.15);
}

.gentaTimeline__dot--future {
    background: white;
    border: 2px dashed var(--color-bleu-moyen);
    animation: timelineDotSpin 6s linear infinite;
}

@keyframes timelineDotSpin {
    to { transform: rotate(360deg); }
}

.gentaTimeline__line {
    width: 2px;
    background: var(--wp--preset--color--muted, #e5e7eb);
    flex: 1;
    min-height: 2.5rem;
    margin: 0.4rem 0;
}

.gentaTimeline__content {
    padding-bottom: 1rem;
    padding-top: 0.25rem;
}

.gentaTimeline__year {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-bleu-moyen);
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.gentaTimeline__title {
    display: block;
    font-size: var(--wp--preset--font-size--small);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.gentaTimeline__desc {
    font-size: var(--wp--preset--font-size--small);
    margin: 0;
}

.gentaTimeline__pillars {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.gentaTimeline__pillars li {
    font-size: var(--wp--preset--font-size--small);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gentaTimeline__pillars li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #33BBBC;
    flex-shrink: 0;
}


/* =========================================
   SECTION — Nos cinq cœurs de métiers
   ========================================= */

#gentaServices .iconContainer {
    display: flex;
    aspect-ratio: 1 / 1 !important;
    align-items: center;
    justify-content: center;
}

#gentaServices .wp-block-group.has-border-color {
    position: relative;
}

#gentaServices .wp-block-group.has-border-color a {
    text-decoration: none;
    color: var(--wp--preset--color--bleu-expertise);
}

#gentaServices .wp-block-group.has-border-color a:hover {
    color: var(--wp--preset--color--bleu-partage);
}

#gentaServices .wp-block-group.has-border-color a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

@media (max-width: 780px) {
    #gentaServices .is-layout-grid {
        grid-template-columns: 1fr !important;
    }
}


/* =========================================
   GOUVERNANCE — Cards avec SVG décoratif
   ========================================= */

.gouvernance-cards-svg {
    position: relative;
    overflow: hidden;
}

.gouvernance-cards-svg svg {
    position: absolute;
    bottom: -1px;
    right: -1px;
    z-index: 0;
}

.gouvernance-cards-svg > *:not(.wp-block-image) {
    position: relative;
    z-index: 1;
}

.gouvernance-cards-svg > .wp-block-image {
    position: static !important;
}


/* =========================================
   SOLUTIONS BENEFITS — Liste deux colonnes
   ========================================= */

.solutionsBenefitsList {
    columns: 2;
    width: 100%;
    list-style: none;
    padding-left: 0;
}

.solutionsBenefitsList li {
    padding-left: 0;
    break-inside: avoid;
}

.solutionsBenefitsList li::before {
    content: '✅';
    margin-right: 0.5em;
}


/* =========================================
   SECTION — ODD (Objectifs de Développement Durable)
   ========================================= */

.onuODD {
    align-items: center;
    justify-items: center;
}

.onuODD figure {
    margin: 0;
    transition: transform 0.3s ease;
}

.onuODD figure:has(a):hover {
    transform: translateY(-3px);
}
