/* ag2mdo */
/* =========================================
   DDEC — Page d'accueil (landing)
   Thème : bleu + couleurs du logo DDEC
   Palette : bleu #1e3a8a/#3b82f6, vert logo #80AC82, bleu lavande logo #9896BC
   ========================================= */

.landing {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

/* ── Navbar ────────────────────────────── */
.ld-nav {
    position: sticky;
    top: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 2rem;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 8px rgba(15, 23, 42, .05);
}
.ld-nav-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    color: #1e293b;
}
.ld-nav-logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 3px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.ld-nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.ld-nav-brand-name {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: .02em;
    color: #1e3a8a;
}
.ld-nav-brand-sub {
    font-size: .7rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.ld-nav-links {
    display: flex;
    align-items: center;
    gap: .25rem;
}
.ld-nav-links a {
    color: #475569;
    text-decoration: none;
    padding: .5rem .85rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: .9rem;
    transition: background .2s, color .2s;
}
.ld-nav-links a:hover {
    background: #eff6ff;
    color: #1d4ed8;
}
.ld-nav-cta {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff !important;
    padding: .55rem 1.3rem !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, .35);
    transition: transform .2s, box-shadow .2s !important;
}
.ld-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .4);
    background: linear-gradient(135deg, #172554, #1d4ed8) !important;
}
.ld-nav-portail {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .3);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.ld-nav-portail:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .4);
}

/* ── Hero ──────────────────────────────── */
.ld-hero {
    position: relative;
    background: linear-gradient(135deg, #0c1b3d 0%, #1e3a8a 55%, #2563eb 100%);
    color: #fff;
    padding: 5.5rem 2rem 6.5rem;
    overflow: hidden;
}
.ld-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 300px at 85% 20%, rgba(128, 172, 130, .25), transparent 60%),
        radial-gradient(500px 300px at 10% 80%, rgba(152, 150, 188, .25), transparent 60%);
    pointer-events: none;
}
.ld-hero-inner {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 3rem;
    align-items: center;
}
.ld-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    padding: .35rem .9rem;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.ld-hero h1 {
    font-size: 2.9rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -.01em;
}
.ld-hero h1 .accent {
    background: linear-gradient(90deg, #80AC82, #9896BC);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ld-hero p.lead {
    font-size: 1.12rem;
    color: #dbeafe;
    max-width: 560px;
    margin-bottom: 2rem;
}
.ld-hero-actions {
    display: flex;
    gap: .9rem;
    flex-wrap: wrap;
}
@keyframes ldBtnGradientFlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes ldBtnShineSweep {
    0%, 55%   { transform: translateX(-260%) skewX(-18deg); }
    90%, 100% { transform: translateX(400%) skewX(-18deg); }
}
.ld-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .8rem 1.7rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.ld-btn-blue {
    background: linear-gradient(135deg, #2563eb, #3b82f6, #2563eb);
    background-size: 220% 220%;
    animation: ldBtnGradientFlow 5s ease-in-out infinite;
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .4);
}
.ld-btn-blue::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .5) 50%, transparent 100%);
    transform: translateX(-260%) skewX(-18deg);
    animation: ldBtnShineSweep 4.2s ease-in-out infinite;
    pointer-events: none;
}
.ld-btn-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(37, 99, 235, .5);
}
@media (prefers-reduced-motion: reduce) {
    .ld-btn-blue { animation: none; background-position: 50% 50%; }
    .ld-btn-blue::after { animation: none; content: none; }
}
.ld-btn-ghost {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    backdrop-filter: blur(4px);
}
.ld-btn-ghost:hover {
    background: rgba(255, 255, 255, .2);
    transform: translateY(-2px);
}
.ld-hero-visual {
    display: flex;
    justify-content: center;
}
.ld-hero-visual img {
    max-width: 260px;
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    border: 3px solid rgba(255, 255, 255, .15);
}
.ld-hero-logo {
    max-width: 340px;
    width: 100%;
    border-radius: 18px;
    background: #fff;
    padding: 1.2rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    border: 3px solid rgba(255, 255, 255, .2);
}

/* ── Bande de stats ────────────────────── */
.ld-stats-band {
    margin-top: -3.2rem;
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}
.ld-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .12);
    padding: 1.6rem 1.2rem;
    border: 1px solid #e2e8f0;
}
.ld-stat {
    text-align: center;
    padding: .5rem;
}
.ld-stat i {
    font-size: 1.5rem;
    color: #2563eb;
    margin-bottom: .4rem;
}
.ld-stat-nb {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}
.ld-stat-lb {
    font-size: .8rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ── Sections communes ─────────────────── */
.ld-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4.5rem 1.5rem;
}
.ld-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.8rem;
}
.ld-kicker {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #1d4ed8;
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .6rem;
}
.ld-section-head h2 {
    font-size: 2.1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: .8rem;
    letter-spacing: -.01em;
}
.ld-section-head p {
    color: #64748b;
    font-size: 1.02rem;
}

/* ── Présentation DDEC ─────────────────── */
.ld-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
.ld-about-text h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: .9rem;
}
.ld-about-text p {
    color: #475569;
    margin-bottom: 1rem;
}
.ld-about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.ld-value-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.2rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
    transition: transform .2s, box-shadow .2s;
}
.ld-value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .1);
}
.ld-value-card i {
    font-size: 1.4rem;
    color: #2563eb;
    margin-bottom: .6rem;
}
.ld-value-card h4 {
    font-size: .95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .3rem;
}
.ld-value-card p {
    font-size: .85rem;
    color: #64748b;
    margin: 0;
}

/* ── Écoles ────────────────────────────── */
.ld-schools {
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
    padding: 4.5rem 1.5rem;
}
.ld-schools-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.ld-schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.ld-school-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}
.ld-school-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .12);
}
.ld-school-top {
    padding: 1.5rem 1.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #f1f5f9;
}
.ld-school-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 5px;
    flex-shrink: 0;
}
.ld-school-logo-ph {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.ld-school-name {
    font-weight: 800;
    font-size: 1.02rem;
    color: #0f172a;
    line-height: 1.3;
}
.ld-school-tag {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: #e0f2fe;
    color: #0369a1;
    font-size: .72rem;
    font-weight: 700;
    padding: .15rem .6rem;
    border-radius: 50px;
    margin-top: .4rem;
}
.ld-school-body {
    padding: 1.1rem 1.5rem 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.ld-school-row {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    font-size: .88rem;
    color: #475569;
}
.ld-school-row i {
    color: #2563eb;
    width: 16px;
    text-align: center;
    margin-top: .15rem;
}
.ld-school-director {
    margin-top: .6rem;
    padding-top: .8rem;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .85rem;
    color: #334155;
}
.ld-school-director i {
    color: #94a3b8;
}

/* ── Services ──────────────────────────── */
.ld-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
}
.ld-service-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.6rem 1.4rem;
    text-align: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
    transition: transform .2s, box-shadow .2s;
}
.ld-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .1);
}
.ld-service-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto .9rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.ld-service-card h4 {
    font-size: .98rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .4rem;
}
.ld-service-card p {
    font-size: .85rem;
    color: #64748b;
    margin: 0;
}

/* ── Espaces ───────────────────────────── */
.ld-roles {
    background: linear-gradient(135deg, #0c1b3d, #1e3a8a);
    color: #fff;
}
.ld-roles-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4.5rem 1.5rem;
}
.ld-roles .ld-kicker {
    color: #80AC82;
}
.ld-roles .ld-section-head h2 {
    color: #fff;
}
.ld-roles .ld-section-head p {
    color: #cbd5e1;
}
.ld-roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.4rem;
}
.ld-role-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    padding: 1.6rem 1.4rem;
    text-align: center;
    transition: background .2s, transform .2s;
}
.ld-role-card:hover {
    background: rgba(255, 255, 255, .12);
    transform: translateY(-4px);
}
.ld-role-card i {
    font-size: 1.7rem;
    color: #80AC82;
    margin-bottom: .7rem;
}
.ld-role-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .4rem;
}
.ld-role-card p {
    font-size: .84rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}
.ld-role-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #9896BC;
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
}
.ld-role-link:hover {
    color: #80AC82;
    text-decoration: underline;
}

/* ── Contact ───────────────────────────── */
.ld-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
}
.ld-contact-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem 1.3rem;
    text-align: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
}
.ld-contact-card i {
    font-size: 1.5rem;
    color: #2563eb;
    margin-bottom: .6rem;
}
.ld-contact-card h4 {
    font-size: .9rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .35rem;
}
.ld-contact-card p,
.ld-contact-card a {
    font-size: .87rem;
    color: #64748b;
    text-decoration: none;
    margin: 0;
    word-break: break-word;
}
.ld-contact-card a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ── CTA final ─────────────────────────── */
.ld-final-cta {
    text-align: center;
    background: linear-gradient(135deg, #eff6ff, #e0f2fe);
    border: 1px solid #bfdbfe;
    border-radius: 22px;
    padding: 3.2rem 2rem;
    max-width: 900px;
    margin: 0 auto 4.5rem;
}
.ld-final-cta h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: .7rem;
}
.ld-final-cta p {
    color: #475569;
    max-width: 560px;
    margin: 0 auto 1.6rem;
}
.ld-final-portail {
    display: inline-block;
    vertical-align: middle;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2563eb;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .35);
    margin-left: .6rem;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.ld-final-portail:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, .45);
}

/* ── Footer ────────────────────────────── */
.ld-footer {
    background: #0c1b3d;
    color: #cbd5e1;
    padding: 2.5rem 1.5rem 1.5rem;
    text-align: center;
}
.ld-footer-brand {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: .3rem;
}
.ld-footer-sub {
    font-size: .82rem;
    color: #94a3b8;
    margin-bottom: 1.2rem;
}
.ld-footer-visitors {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}
.ld-fv-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 110px;
    padding: .5rem .9rem;
    background: rgba(255, 255, 255, .05);
    border-radius: 10px;
}
.ld-fv-item i {
    color: #80AC82;
    margin-bottom: .25rem;
}
.ld-fv-nb {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}
.ld-fv-lb {
    font-size: .7rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.ld-footer-copy {
    font-size: .8rem;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 1.2rem;
}

/* ── Responsive ────────────────────────── */
@media (max-width: 900px) {
    .ld-hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .ld-hero h1 {
        font-size: 2.2rem;
    }
    .ld-hero p.lead {
        margin-left: auto;
        margin-right: auto;
    }
    .ld-hero-actions {
        justify-content: center;
    }
    .ld-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .ld-about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .ld-nav {
        flex-wrap: wrap;
        padding: .75rem 1rem;
    }
    .ld-nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .ld-nav-links a {
        font-size: .82rem;
        padding: .4rem .6rem;
    }
    .ld-nav-cta {
        padding: .45rem 1rem !important;
        font-size: .82rem !important;
    }
    .ld-nav-portail {
        width: 34px;
        height: 34px;
    }
    .ld-hero {
        padding: 3.5rem 1rem 5rem;
    }
    .ld-hero h1 {
        font-size: 1.8rem;
    }
    .ld-hero p.lead {
        font-size: .98rem;
    }
    .ld-hero-visual img {
        max-width: 180px;
    }
    .ld-section,
    .ld-schools {
        padding: 3rem 1rem;
    }
    .ld-section-head h2 {
        font-size: 1.6rem;
    }
    .ld-about-values {
        grid-template-columns: 1fr;
    }
    .ld-stats {
        grid-template-columns: 1fr 1fr;
        padding: 1.1rem .6rem;
    }
    .ld-stat-nb {
        font-size: 1.5rem;
    }
}
