.atl-cms-page {
    background: #f6f8fb;
}

body {
    overflow-x: hidden;
}
/* =========================================================
   HERO PREMIUM — compatible avec la vue actuelle
   ========================================================= */

.atl-cms-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 88px 0 92px;
    color: #fff;
    background:
        radial-gradient(circle at 14% 18%, rgba(255,255,255,.08), transparent 27%),
        radial-gradient(circle at 86% 16%, rgba(12,111,150,.24), transparent 30%),
        linear-gradient(135deg, #002357 0%, #0b2a82 58%, #0c6f96 100%);
}

.atl-cms-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
}

.atl-cms-hero::after {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    right: -230px;
    bottom: -310px;
    z-index: -1;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    box-shadow:
        0 0 0 52px rgba(255,255,255,.018),
        0 0 0 104px rgba(255,255,255,.012);
    pointer-events: none;
}

.atl-cms-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr);
    gap: 50px;
    align-items: center;
}

.atl-cms-hero-content {
    min-width: 0;
}

.atl-cms-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    padding: 9px 15px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    box-shadow: 0 10px 28px rgba(0,0,0,.10);
    color: rgba(255,255,255,.88);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.atl-cms-eyebrow i {
    color: #fda257;
    font-size: 14px;
}

.atl-cms-hero h1 {
    max-width: 820px;
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -.045em;
    text-wrap: balance;
    text-shadow: 0 14px 34px rgba(0,0,0,.16);
}

.atl-cms-hero-excerpt {
    max-width: 740px;
    margin: 25px 0 0;
    color: rgba(255,255,255,.82);
    font-size: 18px;
    line-height: 1.75;
}

.atl-cms-hero-image {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 28px;
    background: rgba(255,255,255,.08);
    box-shadow:
        0 25px 70px rgba(0,0,0,.24),
        0 0 0 1px rgba(255,255,255,.03) inset;
    transform: translateY(0);
}

.atl-cms-hero-image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,.10) 0%,
        rgba(255,255,255,0) 32%,
        rgba(0,35,87,.16) 100%
    );
}

.atl-cms-hero-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 330px;
    display: block;
    object-fit: cover;
    transition: transform .7s ease;
}

.atl-cms-hero-image:hover img {
    transform: scale(1.035);
}

/* =========================================================
   CONTENU / SIDEBAR — repris à l'identique du CSS fonctionnel
   ========================================================= */

.atl-cms-content-section {
    padding: 70px 0 95px;
}

.atl-cms-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
    align-items: start;
}

.atl-cms-content-card,
.atl-cms-sidebar-card,
.atl-cms-sidebar-links {
    border: 1px solid #e8edf4;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 15px 45px rgba(0,35,87,.07);
}

.atl-cms-content-header {
    padding: 30px 35px 25px;
    border-bottom: 1px solid #edf1f6;
}

.atl-cms-content-header span {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 10px;
    color: #0c6f96;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.atl-cms-content-header h2 {
    margin: 0;
    color: #002357;
    font-size: 28px;
    font-weight: 800;
}

.atl-cms-content-body {
    padding: 35px;
}

.atl-cms-content-text {
    color: #46546a;
    font-size: 17px;
    line-height: 1.9;
}

.atl-cms-empty {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #8793a6;
    text-align: center;
}

.atl-cms-empty i {
    font-size: 44px;
}

.atl-cms-empty p {
    margin: 0;
}

.atl-cms-sidebar {
    display: grid;
    gap: 18px;
}

.atl-cms-sidebar-card {
    padding: 28px;
}

.atl-cms-sidebar-icon {
    display: flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 15px;
    background: #eef5ff;
    color: #0b2a82;
    font-size: 22px;
}

.atl-cms-sidebar-card > span {
    display: block;
    margin-bottom: 8px;
    color: #0c6f96;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
}

.atl-cms-sidebar-card h3 {
    margin: 0 0 12px;
    color: #002357;
    font-size: 23px;
    font-weight: 800;
}

.atl-cms-sidebar-card p {
    margin: 0 0 22px;
    color: #69778b;
    font-size: 14px;
    line-height: 1.7;
}

.atl-cms-sidebar-btn {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-radius: 13px;
    background: #002357;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.atl-cms-sidebar-btn:hover {
    background: #0b2a82;
    color: #fff;
}

.atl-cms-sidebar-links {
    overflow: hidden;
}

.atl-cms-sidebar-links a {
    display: grid;
    grid-template-columns: 24px minmax(0,1fr) 18px;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    border-bottom: 1px solid #edf1f6;
    color: #304056;
    text-decoration: none;
}

.atl-cms-sidebar-links a:last-child {
    border-bottom: 0;
}

.atl-cms-sidebar-links a:hover {
    background: #f7f9fc;
    color: #0b2a82;
}

.atl-cms-sidebar-links a > i:first-child {
    color: #0c6f96;
}

.atl-cms-sidebar-links a > span {
    font-size: 13px;
    font-weight: 700;
}

.atl-cms-sidebar-links a > i:last-child {
    color: #9aa6b6;
}

@media (max-width: 991px) {
    .atl-cms-hero {
        padding: 70px 0;
    }

    .atl-cms-hero-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .atl-cms-content-layout {
        grid-template-columns: 1fr;
    }

    .atl-cms-sidebar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .atl-cms-hero {
        padding: 55px 0 60px;
    }

    .atl-cms-hero h1 {
        font-size: 42px;
    }

    .atl-cms-content-section {
        padding: 45px 0 65px;
    }

    .atl-cms-content-header,
    .atl-cms-content-body {
        padding: 25px;
    }

    .atl-cms-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .atl-cms-hero h1 {
        font-size: 36px;
    }

    .atl-cms-content-header h2 {
        font-size: 23px;
    }

    .atl-cms-content-text {
        font-size: 15px;
        line-height: 1.8;
    }
}

/* =========================================================
   ATLANTICA CMS — CONTENU RICHE DES PAGES PUBLIQUES
   ========================================================= */

.atl-cms-content-text > *:first-child {
    margin-top: 0;
}

.atl-cms-content-text > *:last-child {
    margin-bottom: 0;
}

.atl-cms-content-text p {
    margin: 0 0 22px;
    color: #46546a;
    font-size: 17px;
    line-height: 1.9;
}

.atl-cms-content-text h2 {
    margin: 48px 0 18px;
    color: #002357;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.025em;
}

.atl-cms-content-text h3 {
    margin: 30px 0 12px;
    color: #0b2a82;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 800;
}

.atl-cms-content-text ul,
.atl-cms-content-text ol {
    margin: 0 0 26px;
    padding-left: 23px;
    color: #46546a;
}

.atl-cms-content-text li {
    margin: 0 0 9px;
    padding-left: 5px;
    line-height: 1.75;
}

.atl-cms-content-text strong {
    color: #002357;
    font-weight: 800;
}

.atl-cms-content-text a {
    color: #0b2a82;
    font-weight: 700;
    text-decoration: none;
}

.atl-cms-content-text a:hover {
    color: #0c6f96;
    text-decoration: underline;
}

.atl-page-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 28px 0 34px;
}

.atl-page-feature-grid > div {
    padding: 25px;
    border: 1px solid #e8edf4;
    border-radius: 18px;
    background: #f9fbfd;
}

.atl-page-feature-grid h3 {
    margin: 0 0 10px;
    color: #002357;
    font-size: 18px;
}

.atl-page-feature-grid p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.75;
}

.atl-page-feature-grid p:last-child {
    margin-bottom: 0;
}

.atl-page-highlight,
.atl-page-callout,
.atl-page-quote {
    margin: 30px 0;
    padding: 24px 26px;
    border-left: 4px solid #0c6f96;
    border-radius: 16px;
    background: linear-gradient(135deg, #eef5ff 0%, #f8fbff 100%);
}

.atl-page-highlight strong,
.atl-page-quote strong,
.atl-page-callout strong {
    display: block;
    margin-bottom: 8px;
    color: #002357;
    font-size: 18px;
    font-weight: 800;
}

.atl-page-highlight span,
.atl-page-quote span,
.atl-page-callout p {
    display: block;
    margin: 0;
    color: #5d6a7e;
    font-size: 15px;
    line-height: 1.7;
}

.atl-page-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0 34px;
}

.atl-page-stats-grid > div {
    padding: 22px 18px;
    border: 1px solid #e7ecf3;
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.atl-page-stats-grid strong {
    display: block;
    margin-bottom: 7px;
    color: #0b2a82;
    font-size: 30px;
    line-height: 1;
}

.atl-page-stats-grid span {
    display: block;
    color: #69778b;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
}

.atl-page-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0 34px;
}

.atl-page-steps > div {
    min-height: 185px;
    padding: 22px 18px;
    border: 1px solid #e8edf4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0,35,87,.045);
}

.atl-page-steps > div > strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 15px;
    border-radius: 50%;
    background: #eef5ff;
    color: #0b2a82;
    font-size: 12px;
}

.atl-page-steps h3 {
    margin: 0 0 9px;
    color: #002357;
    font-size: 16px;
}

.atl-page-steps p {
    margin: 0;
    color: #69778b;
    font-size: 14px;
    line-height: 1.65;
}

.atl-page-cta {
    margin: 38px 0 0;
    padding: 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, #002357 0%, #0b2a82 60%, #0c6f96 100%);
    color: #fff;
}

.atl-page-cta h2 {
    margin: 0 0 10px !important;
    color: #fff !important;
}

.atl-page-cta p {
    margin: 0 !important;
    color: rgba(255,255,255,.78) !important;
}

.atl-page-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.atl-page-cta-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    background: rgba(255,255,255,.10);
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
}

.atl-page-cta-actions a:hover {
    background: rgba(255,255,255,.18);
}

@media (max-width: 991px) {
    .atl-page-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .atl-page-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .atl-page-feature-grid,
    .atl-page-steps,
    .atl-page-stats-grid {
        grid-template-columns: 1fr;
    }

    .atl-cms-content-text h2 {
        font-size: 25px;
    }

    .atl-cms-content-text h3 {
        font-size: 19px;
    }

    .atl-cms-content-text p {
        font-size: 15px;
        line-height: 1.8;
    }

    .atl-page-cta {
        padding: 24px;
    }
}

/* =========================================================
   SLIDER HERO — Migration & Mobilité / Projet Agro-Pastoral
   ========================================================= */
.atl-cms-hero-slider {
    min-height: 330px;
    aspect-ratio: 4 / 3;
    isolation: isolate;
}
.atl-cms-hero-slider .atl-cms-slider-track,
.atl-cms-hero-slider .atl-cms-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.atl-cms-hero-slider .atl-cms-slide {
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity .75s ease, visibility .75s ease;
}
.atl-cms-hero-slider .atl-cms-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}
.atl-cms-hero-slider .atl-cms-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    transform: scale(1.015);
    transition: transform 6s ease;
}
.atl-cms-hero-slider .atl-cms-slide.is-active img { transform: scale(1.08); }
.atl-cms-hero-slider .atl-cms-slide::after {
    content: "";
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 22, 48, .72) 100%);
    pointer-events: none;
}
.atl-cms-slide-caption {
    position: absolute;
    z-index: 3;
    left: 24px;
    right: 24px;
    bottom: 27px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .01em;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.atl-cms-slide-caption span {
    display: inline-block;
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 999px;
    background: rgba(0,35,87,.35);
    backdrop-filter: blur(8px);
}
.atl-cms-slider-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 50%;
    color: #fff;
    background: rgba(0,35,87,.55);
    box-shadow: 0 6px 20px rgba(0,0,0,.18);
    transform: translateY(-50%);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.atl-cms-slider-arrow:hover {
    color: #fff;
    background: #0c6f96;
    transform: translateY(-50%) scale(1.06);
}
.atl-cms-slider-prev { left: 14px; }
.atl-cms-slider-next { right: 14px; }
.atl-cms-slider-dots {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: 13px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.atl-cms-slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.58);
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}
.atl-cms-slider-dot.is-active { width: 25px; background: #fff; }
.atl-cms-slider-arrow:focus-visible,
.atl-cms-slider-dot:focus-visible { outline: 3px solid #80d957; outline-offset: 3px; }
@media (max-width: 991px) {
    .atl-cms-hero-slider { min-height: 300px; aspect-ratio: 16 / 11; }
}
@media (max-width: 575px) {
    .atl-cms-hero-slider { min-height: 245px; aspect-ratio: 4 / 3; border-radius: 20px; }
    .atl-cms-slide-caption { left: 16px; right: 16px; bottom: 25px; font-size: 12px; }
    .atl-cms-slider-arrow { width: 36px; height: 36px; }
    .atl-cms-slider-prev { left: 9px; }
    .atl-cms-slider-next { right: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    .atl-cms-hero-slider .atl-cms-slide,
    .atl-cms-hero-slider .atl-cms-slide img,
    .atl-cms-slider-arrow,
    .atl-cms-slider-dot { transition: none !important; }
}



/* Lecteurs YouTube issus du contenu CMS */
.atl-cms-video { width: 100%; max-width: 100%; margin: 22px 0; }
.atl-cms-video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #061b36; }
.atl-cms-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.atl-cms-content-text .atl-cms-video { margin: 18px 0 26px; }
.atl-cms-content-text .atl-cms-video-frame { box-shadow: 0 12px 30px rgba(0,35,87,.12); }


/* Page Migration : les trois lecteurs vidéo restent alignés horizontalement. */
.atl-migration-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
    width: 100%;
    margin: 24px 0 42px;
}
.atl-migration-videos-grid .atl-migration-video {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e7edf4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 35, 87, .08);
}
.atl-migration-videos-grid .atl-migration-video p { margin: 0 !important; }
.atl-migration-videos-grid .atl-cms-video { margin: 0; width: 100%; max-width: none; }
.atl-migration-videos-grid .atl-cms-video-frame { border-radius: 0; box-shadow: none; }
@media (max-width: 991px) {
    .atl-migration-videos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    .atl-migration-videos-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
