/********** GED & Archivage — dark editorial section **********/
.ged-section {
    position: relative;
    overflow: hidden;
    padding: 110px 0;
    background: linear-gradient(160deg, #1e2946 0%, #253355 52%, #18213c 100%);
    color: #ffffff;
    isolation: isolate;
}

/* Decorative background: brand glow + archive-shelf rails */
.ged-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.ged-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .55;
}

.ged-glow-1 {
    width: 460px;
    height: 460px;
    top: -160px;
    right: -120px;
    background: var(--primary-glow);
}

.ged-glow-2 {
    width: 380px;
    height: 380px;
    bottom: -140px;
    left: -100px;
    background: rgba(184, 188, 200, .16);
}

.ged-shelf {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(180deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 92px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 160px);
    mask-image: radial-gradient(120% 90% at 70% 10%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(120% 90% at 70% 10%, #000 20%, transparent 78%);
}

/* ---------- Left intro column ---------- */
.ged-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 100px;
    border: 1px solid rgba(196, 18, 48, .5);
    background: rgba(196, 18, 48, .14);
    color: #ffffff;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: .72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ged-title {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: clamp(2.1rem, 3.6vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -.5px;
    margin: 26px 0 22px;
    color: #ffffff;
}

.ged-title em {
    font-style: normal;
    display: block;
    background: linear-gradient(90deg, #ffffff 0%, #ff5c74 55%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary);
}

.ged-lead {
    font-size: 1rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, .68);
    max-width: 46ch;
    margin-bottom: 30px;
}

.ged-points {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
}

.ged-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 0;
    border-top: 1px solid rgba(255, 255, 255, .09);
    font-size: .95rem;
    color: rgba(255, 255, 255, .82);
}

.ged-points li:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.ged-points i {
    color: var(--primary);
    font-size: 1.05rem;
    line-height: 1.5;
}

.ged-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    border-radius: 100px;
    background: var(--primary);
    color: #ffffff;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(196, 18, 48, .35);
    transition: all .4s var(--ease);
}

.ged-cta-btn i {
    transition: transform .4s var(--ease);
}

.ged-cta-btn:hover {
    color: #ffffff;
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(196, 18, 48, .45);
}

.ged-cta-btn:hover i {
    transform: translateX(5px);
}

.ged-note {
    margin: 16px 0 0;
    font-size: .85rem;
    color: rgba(255, 255, 255, .5);
}

/* ---------- Bento grid ---------- */
.ged-bento {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ged-tile {
    position: relative;
    overflow: hidden;
    padding: 30px 28px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .045);
    backdrop-filter: blur(6px);
    transition: transform .45s var(--ease), border-color .45s var(--ease), background .45s var(--ease);
}

.ged-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(90% 120% at 100% 0%, rgba(196, 18, 48, .28) 0%, transparent 62%);
    opacity: 0;
    transition: opacity .45s var(--ease);
    pointer-events: none;
}

.ged-tile:hover {
    transform: translateY(-8px);
    border-color: rgba(196, 18, 48, .55);
    background: rgba(255, 255, 255, .07);
}

.ged-tile:hover::after {
    opacity: 1;
}

.ged-tile-wide {
    grid-column: span 2;
    background:
        linear-gradient(120deg, rgba(196, 18, 48, .22) 0%, rgba(255, 255, 255, .05) 55%);
    border-color: rgba(196, 18, 48, .32);
}

.ged-tile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ged-tile-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(196, 18, 48, .45);
    background: rgba(196, 18, 48, .16);
    color: #ffffff;
    font-size: 1.15rem;
    transition: all .45s var(--ease);
}

.ged-tile:hover .ged-tile-icon {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(-6deg) scale(1.06);
}

.ged-tile-index {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .22);
    transition: -webkit-text-stroke-color .45s var(--ease);
}

.ged-tile:hover .ged-tile-index {
    -webkit-text-stroke-color: rgba(196, 18, 48, .85);
}

.ged-tile h3 {
    position: relative;
    z-index: 1;
    font-size: 1.12rem;
    font-weight: 700 !important;
    color: #ffffff;
    margin-bottom: 10px;
}

.ged-tile-wide h3 {
    font-size: 1.4rem;
}

.ged-tile p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: .9rem;
    line-height: 1.72;
    color: rgba(255, 255, 255, .66);
}

.ged-tile-wide p {
    max-width: 62ch;
}

/* ---------- Process rail ---------- */
.ged-rail-wrap {
    margin-top: 90px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.ged-rail-title {
    font-family: 'Barlow', sans-serif;
    font-size: 1.6rem;
    font-weight: 700 !important;
    color: #ffffff;
    margin-bottom: 8px;
}

.ged-rail-sub {
    color: rgba(255, 255, 255, .6);
    font-size: .95rem;
    margin-bottom: 48px;
}

.ged-rail {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
    position: relative;
}

.ged-rail::before {
    content: '';
    position: absolute;
    top: 26px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, rgba(196, 18, 48, .15), var(--primary) 50%, rgba(196, 18, 48, .15));
}

.ged-node {
    position: relative;
    text-align: center;
}

.ged-node-dot {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #253355;
    border: 2px solid var(--primary);
    color: #ffffff;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    transition: all .4s var(--ease);
}

.ged-node:hover .ged-node-dot {
    background: var(--primary);
    transform: scale(1.12);
    box-shadow: 0 0 0 8px rgba(196, 18, 48, .16);
}

.ged-node h4 {
    font-size: 1rem;
    font-weight: 700 !important;
    color: #ffffff;
    margin-bottom: 6px;
}

.ged-node p {
    margin: 0;
    font-size: .85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .58);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .ged-rail {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px 24px;
    }

    .ged-rail::before {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .ged-section {
        padding: 80px 0;
    }

    .ged-lead {
        max-width: none;
    }

    .ged-bento {
        margin-top: 10px;
    }

    .ged-rail-wrap {
        margin-top: 64px;
    }
}

@media (max-width: 575.98px) {
    .ged-bento {
        grid-template-columns: minmax(0, 1fr);
    }

    .ged-tile-wide {
        grid-column: span 1;
    }

    .ged-rail {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        text-align: left;
    }

    .ged-node {
        display: grid;
        grid-template-columns: 52px 1fr;
        gap: 0 18px;
        text-align: left;
        align-items: center;
    }

    .ged-node-dot {
        grid-row: span 2;
        margin: 0;
    }

    .ged-node h4 {
        align-self: end;
    }

    .ged-node p {
        align-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ged-tile,
    .ged-tile-icon,
    .ged-node-dot,
    .ged-cta-btn,
    .ged-cta-btn i {
        transition: none;
    }

    .ged-tile:hover,
    .ged-cta-btn:hover,
    .ged-node:hover .ged-node-dot {
        transform: none;
    }

    .ged-tile:hover .ged-tile-icon {
        transform: none;
    }
}
