/* ============================================================
   ADP — Page d'accueil | CSS spécifique
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.adp-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Image pleine largeur en fond */
.adp-hero-right {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.adp-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 8s ease;
}

.adp-hero:hover .adp-hero-img {
    transform: scale(1.04);
}

/* Dégradé sur la gauche pour lisibilité du texte */
.adp-hero-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0.97) 0%,
        rgba(255,255,255,0.90) 30%,
        rgba(255,255,255,0.55) 55%,
        rgba(255,255,255,0.0) 80%
    );
    z-index: 1;
    pointer-events: none;
}

/* Texte par-dessus l'image */
.adp-hero-left {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--adp-nav-height) + 4rem) clamp(2rem, 6vw, 6rem) 4rem clamp(2rem, 6vw, 6rem);
    max-width: 620px;
}

.adp-hero-left .adp-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--adp-blue);
    margin-bottom: 1.5rem;
}

.adp-hero-left .adp-label::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--adp-blue);
    flex-shrink: 0;
}

.adp-hero-title {
    font-size: clamp(3rem, 5.5vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1.75rem;
    color: var(--adp-black);
}

.adp-hero-subtitle {
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    color: var(--adp-gray-text);
    font-weight: 400;
    line-height: 1.8;
    max-width: 480px;
    margin-bottom: 2.5rem;
}

.adp-hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.adp-hero-actions .btn-primary i {
    transition: transform 0.25s ease;
}

.adp-hero-actions .btn-primary:hover i {
    transform: translateX(4px);
}

/* ── Section Pôles ────────────────────────────────────────── */
.adp-poles {
    background: var(--adp-white);
    padding: 6rem 0 5rem;
    border-bottom: 1px solid var(--adp-border);
}

.adp-poles .adp-label  { margin-bottom: 1rem; }
.adp-poles .section-title { margin-bottom: 3rem; }

/* Rangée 5 pôles — pleine largeur */
.adp-poles-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border-top: 1px solid var(--adp-border);
}

/* Carte pôle — version compacte horizontale */
.adp-pole-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 2.25rem clamp(1.25rem, 2.5vw, 2rem);
    border: none;
    border-right: 1px solid var(--adp-border);
    border-radius: 0;
    background: var(--adp-white);
    transition: var(--adp-transition-mid);
    position: relative;
    overflow: hidden;
}

.adp-pole-item:last-child {
    border-right: none;
}

.adp-pole-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--adp-blue), var(--adp-blue-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.adp-pole-item:hover {
    background: var(--adp-surface);
    box-shadow: inset 0 -4px 0 var(--adp-blue);
}

.adp-pole-item:hover::before { transform: scaleX(1); }

/* Icône */
.adp-pole-item .adp-pole-card__icon {
    width: 44px;
    height: 44px;
    background: rgba(30,115,216,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--adp-blue);
    transition: var(--adp-transition-fast);
}

.adp-pole-item:hover .adp-pole-card__icon {
    background: var(--adp-blue);
    color: var(--adp-white);
}

/* Label ADP | NOM */
.adp-pole-item .adp-pole-card__body { flex: 1; }

.adp-pole-item .adp-pole-card__body h3 {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--adp-black);
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.adp-pole-item .adp-pole-card__body h3 span {
    color: var(--adp-blue);
}

.adp-pole-item .adp-pole-card__body p {
    font-size: 0.82rem;
    color: var(--adp-gray-text);
    line-height: 1.6;
}

.adp-pole-item .adp-pole-card__link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--adp-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.adp-pole-item .adp-pole-card__link i { transition: transform 0.25s ease; }
.adp-pole-item:hover .adp-pole-card__link i { transform: translateX(4px); }

@media (max-width: 1100px) {
    .adp-poles-row { grid-template-columns: repeat(3,1fr); }
    .adp-pole-item:nth-child(3) { border-right: none; }
    .adp-pole-item:nth-child(4), .adp-pole-item:nth-child(5) { border-top: 1px solid var(--adp-border); }
}
@media (max-width: 700px) {
    .adp-poles-row { grid-template-columns: repeat(2,1fr); }
    .adp-pole-item { border-right: 1px solid var(--adp-border) !important; border-top: 1px solid var(--adp-border); }
    .adp-pole-item:nth-child(even) { border-right: none !important; }
}
@media (max-width: 440px) {
    .adp-poles-row { grid-template-columns: 1fr; }
    .adp-pole-item { border-right: none !important; }
}

/* ── Ancien .adp-poles-grid (legacy) ── */
.adp-poles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Carte pôle */
.adp-pole-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: var(--adp-white);
    border: 1px solid var(--adp-border);
    border-radius: var(--adp-radius-lg);
    padding: 2rem;
    transition: var(--adp-transition-mid);
    position: relative;
    overflow: hidden;
}

.adp-pole-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--adp-blue), var(--adp-blue-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.adp-pole-card:hover {
    border-color: rgba(30,115,216,0.25);
    box-shadow: var(--adp-shadow-lg);
    transform: translateY(-4px);
}

.adp-pole-card:hover::before { transform: scaleX(1); }

/* Icône */
.adp-pole-card__icon {
    width: 48px;
    height: 48px;
    background: rgba(30,115,216,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--adp-blue);
    transition: var(--adp-transition-fast);
}

.adp-pole-card:hover .adp-pole-card__icon {
    background: var(--adp-blue);
    color: var(--adp-white);
}

/* Corps */
.adp-pole-card__body { flex: 1; }

.adp-pole-card__body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--adp-black);
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.adp-pole-card__body p {
    font-size: 0.9rem;
    color: var(--adp-gray-text);
    line-height: 1.65;
}

/* Lien bas */
.adp-pole-card__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--adp-blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: auto;
}

.adp-pole-card__link i { transition: transform 0.25s ease; }
.adp-pole-card:hover .adp-pole-card__link i { transform: translateX(5px); }

/* Variante Lab */
.adp-pole-card--lab {
    background: linear-gradient(135deg, var(--adp-blue-dark) 0%, #0d3d73 100%);
    border-color: transparent;
    color: var(--adp-white);
}

.adp-pole-card--lab .adp-pole-card__icon {
    background: rgba(255,255,255,0.15);
    color: var(--adp-white);
}

.adp-pole-card--lab .adp-pole-card__body h3 { color: var(--adp-white); }
.adp-pole-card--lab .adp-pole-card__body p  { color: rgba(255,255,255,0.7); }
.adp-pole-card--lab .adp-pole-card__link    { color: rgba(255,255,255,0.85); }

.adp-pole-card--lab::before {
    background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
}

.adp-pole-card--lab:hover {
    box-shadow: 0 16px 48px rgba(11,47,91,0.4);
}

/* ── Responsive pôles ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .adp-poles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .adp-poles-grid { grid-template-columns: 1fr; }
}

/* ── Section Pourquoi ADP ─────────────────────────────────── */
.adp-why {
    padding: 7rem 0;
    background: var(--adp-white);
}

.adp-why-header {
    max-width: 640px;
    margin-bottom: 4rem;
}

.adp-why-header .adp-label   { margin-bottom: 1rem; }
.adp-why-header .section-title { margin-bottom: 0.75rem; }

.adp-why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.adp-why-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--adp-border);
    border-radius: var(--adp-radius-lg);
    background: var(--adp-surface);
    transition: var(--adp-transition-mid);
}

.adp-why-card:hover {
    border-color: rgba(30,115,216,0.2);
    box-shadow: var(--adp-shadow-md);
    background: var(--adp-white);
}

.adp-why-card__num {
    font-family: var(--adp-font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(30,115,216,0.12);
    line-height: 1;
    flex-shrink: 0;
    width: 3rem;
    transition: color 0.3s ease;
}

.adp-why-card:hover .adp-why-card__num {
    color: rgba(30,115,216,0.25);
}

.adp-why-card__content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--adp-black);
    margin-bottom: 0.6rem;
}

.adp-why-card__content p {
    font-size: 0.9rem;
    color: var(--adp-gray-text);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .adp-why-grid { grid-template-columns: 1fr; }
}

/* ── Bandeau CTA ──────────────────────────────────────────── */
.adp-cta-band {
    background: linear-gradient(135deg, var(--adp-blue-dark) 0%, #0d3d73 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.adp-cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.adp-cta-band__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}

.adp-cta-band__text h2 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 900;
    color: var(--adp-white);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.adp-cta-band__text p {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
}

.adp-cta-band__actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.adp-cta-band .btn-primary {
    background: var(--adp-white);
    color: var(--adp-blue-dark);
    border-color: var(--adp-white);
}

.adp-cta-band .btn-primary:hover {
    background: var(--adp-gray-light);
    border-color: var(--adp-gray-light);
}

.adp-cta-band .btn-ghost {
    color: rgba(255,255,255,0.75);
}

.adp-cta-band .btn-ghost:hover {
    color: var(--adp-white);
}

@media (max-width: 768px) {
    .adp-cta-band__inner { flex-direction: column; align-items: flex-start; }
}

/* ── Responsive hero ──────────────────────────────────────── */
@media (max-width: 900px) {
    .adp-hero-left {
        padding: calc(var(--adp-nav-height) + 2rem) 1.5rem 3rem;
        max-width: 100%;
    }

    .adp-hero-fade {
        background: linear-gradient(
            to right,
            rgba(255,255,255,0.97) 0%,
            rgba(255,255,255,0.90) 50%,
            rgba(255,255,255,0.3) 100%
        );
    }
}

@media (max-width: 768px) {
    .adp-hero-title {
        font-size: clamp(2.4rem, 9vw, 3.5rem);
    }

    .adp-hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* -- Projets r�cents (J3) -- */
.adp-recent { padding: 5rem 0 0; background: #0D1B2A; position: relative; }
.adp-recent::after {
    content: '';
    display: block;
    height: 5rem;
    background: linear-gradient(to bottom, #0D1B2A 0%, var(--adp-white) 100%);
    margin-top: 0;
}
.adp-recent__header { display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:1.5rem; margin-bottom:3rem; padding:0 clamp(1.5rem,4vw,4rem); }
.adp-recent__header .adp-label { color: var(--adp-blue); }
.adp-recent__header .section-title { margin-bottom:0; color:#fff; }
.adp-recent__header .section-title span { color: var(--adp-blue); }
.adp-recent__all { font-size:.82rem; color:#fff !important; border-color:rgba(255,255,255,0.35) !important; white-space:nowrap; }
.adp-recent__all:hover { background:rgba(255,255,255,0.1) !important; border-color:#fff !important; }
.adp-carousel-wrap { display:grid; grid-template-columns:repeat(4,1fr); gap:0; }
.adp-carousel { display:contents; }
.adp-carousel-btn { display:none; }
.adp-rc-card { display:block; overflow:hidden; text-decoration:none; transition:var(--adp-transition-mid); }
.adp-rc-card:hover .adp-rc-card__img img { transform:scale(1.06); }
.adp-rc-card__img { aspect-ratio:4/3; overflow:hidden; }
.adp-rc-card__img img { width:100%; height:100%; object-fit:cover; transition:transform 0.6s ease; display:block; }
.adp-rc-card__info { padding:1.25rem 1.5rem 1.75rem; background:#0D1B2A; }
.adp-rc-card__name { font-size:1rem; font-weight:700; color:#fff; margin-bottom:.3rem; }
.adp-rc-card__cat { font-size:.78rem; color:var(--adp-blue); font-weight:600; }
@media(max-width:900px){.adp-carousel-wrap{grid-template-columns:repeat(2,1fr);}}
@media(max-width:560px){.adp-carousel-wrap{grid-template-columns:1fr;}}

/* -- Engagement (J4) -- */
.adp-engagement{padding:5rem 0;background:var(--adp-surface);border-top:1px solid var(--adp-border);}
.adp-engagement__inner{display:flex;align-items:flex-start;gap:2.5rem;padding:2.5rem;background:var(--adp-white);border:1px solid var(--adp-border);border-radius:var(--adp-radius-lg);border-left:4px solid var(--adp-blue);}
.adp-engagement__icon{width:56px;height:56px;background:rgba(30,115,216,.1);border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:1.4rem;color:var(--adp-blue);flex-shrink:0;}
.adp-engagement__body .adp-label{margin-bottom:.75rem;}
.adp-engagement__body h2{font-size:clamp(1.2rem,2.5vw,1.6rem);font-weight:800;color:var(--adp-black);letter-spacing:-0.02em;line-height:1.3;margin-bottom:1rem;}
.adp-engagement__body p{font-size:.9rem;color:var(--adp-gray-text);line-height:1.75;max-width:680px;margin-bottom:1.25rem;}
.adp-engagement__link{display:inline-flex;align-items:center;gap:.5rem;font-size:.82rem;font-weight:700;color:var(--adp-blue);text-transform:uppercase;letter-spacing:.1em;}
.adp-engagement__link:hover{gap:.75rem;}
@media(max-width:600px){.adp-engagement__inner{flex-direction:column;gap:1.5rem;}}

/* -- Newsletter (J5) -- */
.adp-newsletter{background:var(--adp-blue);padding:2rem 0;}
.adp-newsletter__inner{display:flex;align-items:center;gap:2rem;flex-wrap:wrap;}
.adp-newsletter__text{flex:0 0 auto;}
.adp-newsletter__label{font-size:.8rem;font-weight:700;color:rgba(255,255,255,.7);text-transform:uppercase;letter-spacing:.15em;margin-bottom:.3rem;display:flex;align-items:center;gap:.5rem;}
.adp-newsletter__text p{font-size:.88rem;color:rgba(255,255,255,.85);}
.adp-newsletter__form{display:flex;gap:.5rem;flex:1;min-width:260px;}
.adp-newsletter__form input{flex:1;padding:.7rem 1rem;border:none;border-radius:4px;font-family:var(--adp-font-body);font-size:.88rem;color:var(--adp-black);}
.adp-newsletter__form input:focus{outline:2px solid rgba(255,255,255,.5);}
.adp-newsletter__form button{padding:.7rem 1.5rem;background:var(--adp-blue-dark);color:#fff;border:none;border-radius:4px;font-weight:700;font-size:.82rem;text-transform:uppercase;letter-spacing:.08em;cursor:pointer;white-space:nowrap;transition:var(--adp-transition-fast);}
.adp-newsletter__form button:hover{background:#071e3d;}
.adp-newsletter__socials{display:flex;gap:.75rem;margin-left:auto;}
.adp-newsletter__socials a{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.15);color:#fff;display:flex;align-items:center;justify-content:center;font-size:.82rem;transition:var(--adp-transition-fast);}
.adp-newsletter__socials a:hover{background:rgba(255,255,255,.3);}
@media(max-width:900px){.adp-newsletter__socials{margin-left:0;}}
