/* ═══════════════════════════════════════════════════════════════
   UCREF — direction.css
   Lier dans direction.php : <link rel="stylesheet" href="css/direction.css">
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero ── */
.dg-hero {
    position: relative;
    overflow: hidden;
    padding: 80px 24px 64px;
    text-align: center;
}
.dg-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 20% 50%,  rgba(250,163,7,.07) 0%, transparent 65%),
        radial-gradient(ellipse 50% 60% at 80% 30%,  rgba(59,130,246,.05) 0%, transparent 60%),
        var(--bg2, #0d2137);
    border-bottom: 1px solid var(--bdr, rgba(255,255,255,.08));
}
.dg-hero-inner {
    position: relative;
}
.dg-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(250,163,7,.1);
    border: 1px solid rgba(250,163,7,.2);
    color: var(--gold, #faa307);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.dg-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.15;
}
.dg-hero p {
    color: var(--text2, #7a9bbf);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
}

/* ── Sections ── */
.dg-section {
    padding: 72px 24px;
}
.dg-section--alt {
    background: var(--bg2, #0d2137);
    border-top: 1px solid var(--bdr, rgba(255,255,255,.08));
    border-bottom: 1px solid var(--bdr, rgba(255,255,255,.08));
}

.section-header {
    text-align: center;
    margin-bottom: 52px;
}
.section-eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold, #faa307);
    margin-bottom: 10px;
}
.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    color: #fff;
    margin: 0;
}

/* ── DG Actuel : layout ── */
.dg-current {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1060px;
    margin: 0 auto;
}

/* ── Photo ── */
.dg-photo-col {
    position: sticky;
    top: 88px;
}
.dg-photo-frame {
    position: relative;
    display: inline-block;
    width: 100%;
}
.dg-photo-frame::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(250,163,7,.4), rgba(250,163,7,.0) 60%);
    z-index: 0;
}
.dg-photo {
    width: 100%;
    border-radius: 16px;
    display: block;
    position: relative;
    z-index: 1;
    object-fit: cover;
    aspect-ratio: 3/4;
}
.dg-photo-accent {
    position: absolute;
    bottom: -12px;
    right: -12px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(250,163,7,.08);
    border: 1px solid rgba(250,163,7,.15);
    z-index: 0;
}
.dg-photo-caption {
    margin-top: 22px;
    text-align: center;
    padding: 20px;
    background: var(--card, #162f50);
    border: 1px solid var(--bdr2, rgba(255,255,255,.14));
    border-radius: 14px;
}
.dg-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 8px;
}
.dg-title-badge {
    display: inline-block;
    background: rgba(250,163,7,.12);
    border: 1px solid rgba(250,163,7,.25);
    color: var(--gold, #faa307);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 13px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.dg-since {
    font-size: .78rem;
    color: var(--text2, #7a9bbf);
}

/* ── Biographie ── */
.dg-bio-col {}
.dg-bio-tag {
    display: inline-block;
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text2, #7a9bbf);
    border-left: 2px solid var(--gold, #faa307);
    padding-left: 10px;
    margin-bottom: 14px;
}
.dg-bio-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.15;
}
.dg-bio-role {
    color: var(--gold, #faa307);
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: .02em;
}
.dg-bio-text {
    color: var(--text, #dce8f5);
    font-size: .96rem;
    line-height: 1.75;
    margin-bottom: 16px;
}

/* ── Timeline formations ── */
.dg-timeline {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--bdr, rgba(255,255,255,.08));
}
.dg-tl-title {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text2, #7a9bbf);
    margin-bottom: 20px;
}
.dg-tl-item {
    display: flex;
    gap: 16px;
    padding-bottom: 22px;
    position: relative;
}
.dg-tl-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 16px;
    bottom: 0;
    width: 1px;
    background: var(--bdr, rgba(255,255,255,.08));
}
.dg-tl-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--bg2, #0d2137);
    border: 2px solid var(--bdr2, rgba(255,255,255,.2));
    flex-shrink: 0;
    margin-top: 3px;
    transition: border-color .2s;
}
.dg-tl-item--active .dg-tl-dot {
    background: var(--gold, #faa307);
    border-color: var(--gold, #faa307);
    box-shadow: 0 0 0 4px rgba(250,163,7,.15);
}
.dg-tl-year {
    font-size: .78rem;
    font-weight: 700;
    color: var(--gold, #faa307);
    margin-bottom: 4px;
    letter-spacing: .02em;
}
.dg-tl-item--active .dg-tl-year {
    color: var(--gold, #faa307);
}
.dg-tl-desc {
    font-size: .88rem;
    color: var(--text2, #7a9bbf);
    line-height: 1.6;
}

/* ── Grille anciens DG ── */
.dg-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    max-width: 1060px;
    margin: 0 auto 48px;
}
.dg-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card, #162f50);
    border: 1px solid var(--bdr, rgba(255,255,255,.08));
    border-radius: 14px;
    padding: 18px 20px;
    position: relative;
    transition: border-color .2s, transform .2s;
    animation: fadeUp .5s ease both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}
.dg-card:hover {
    border-color: rgba(255,255,255,.18);
    transform: translateY(-2px);
}
.dg-card-num {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: .65rem;
    font-weight: 700;
    color: var(--bdr2, rgba(255,255,255,.14));
    letter-spacing: .05em;
    font-family: 'Playfair Display', serif;
}
.dg-card-avatar {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
}
.dg-card-body {
    flex: 1;
    min-width: 0;
}
.dg-card-name {
    font-weight: 600;
    color: #fff;
    font-size: .94rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dg-card-period {
    font-size: .77rem;
    color: var(--text2, #7a9bbf);
    line-height: 1.4;
}
.dg-card-years {
    font-family: 'Playfair Display', serif;
    font-size: .82rem;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
    letter-spacing: .02em;
}

/* ── Chronologie visuelle ── */
.dg-chronoline {
    max-width: 1060px;
    margin: 0 auto;
    padding: 28px 0 0;
}
.dg-chronoline-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    gap: 2px;
    margin-bottom: 10px;
}
.dg-cl-seg {
    flex: 1;
    border-radius: 2px;
    opacity: .55;
    transition: opacity .2s;
}
.dg-cl-seg--active {
    opacity: 1;
}
.dg-cl-seg:hover { opacity: 1; }
.dg-chronoline-labels {
    display: flex;
    justify-content: space-between;
    font-size: .69rem;
    color: var(--text2, #7a9bbf);
    letter-spacing: .03em;
}

/* ── CTA ── */
.dg-cta {
    padding: 72px 24px;
    text-align: center;
    background: var(--bg, #07172a);
}
.dg-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    color: #fff;
    margin-bottom: 10px;
}
.dg-cta p {
    color: var(--text2, #7a9bbf);
    font-size: .96rem;
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.cta-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-cp {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--gold, #faa307);
    color: #000;
    padding: 12px 26px;
    border-radius: 24px;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 700;
    transition: all .2s;
}
.btn-cp:hover { background: #e07800; transform: translateY(-1px); text-decoration: none; }
.btn-cs {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    color: #dce8f5;
    border: 1px solid rgba(255,255,255,.18);
    padding: 12px 26px;
    border-radius: 24px;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    transition: all .2s;
}
.btn-cs:hover {
    border-color: var(--gold, #faa307);
    color: var(--gold, #faa307);
    text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .dg-current {
        grid-template-columns: 1fr;
        gap: 36px;
        max-width: 580px;
    }
    .dg-photo-col {
        position: static;
        max-width: 320px;
        margin: 0 auto;
    }
    .dg-history-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .dg-section { padding: 48px 16px; }
    .dg-card { flex-wrap: wrap; }
    .dg-card-years { width: 100%; font-size: .75rem; }
    .dg-chronoline-labels { font-size: .6rem; }
}
