/* =====================================================================
   AZORLEARN — PAGE D'ACCUEIL (v6)
   Police : Lexend — styles limités à .ac-main
   ===================================================================== */

.home-page {
    --ac-navy: #0a1a3a;
    --ac-ink: #13234a;
    --ac-text: #3b4a6b;
    --ac-muted: #6a7a98;
    --ac-blue: #0b5fe0;
    --ac-blue-2: #2f86f5;
    --ac-blue-dark: #0a47b8;
    --ac-sky: #43b9f2;
    --ac-amber: #f5a524;
    --ac-line: #e4ebf6;
    --ac-soft: #f3f7fe;
    --ac-radius: 22px;
    --ac-shadow: 0 14px 40px rgba(10, 26, 58, .08);
    --ac-shadow-lg: 0 26px 60px rgba(10, 26, 58, .16);
    --ac-font: "Lexend", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --ac-edge: max(24px, calc((100vw - 1320px) / 2 + 24px));
}

.ac-main {
    overflow-x: clip;
    color: var(--ac-text);
    font-family: var(--ac-font);
    font-size: var(--t-body);
    line-height: 1.65;
}

.ac-main h1, .ac-main h2, .ac-main h3, .ac-main p, .ac-main ul, .ac-main figure { margin: 0; padding: 0; }
.ac-main ul { list-style: none; }
.ac-main img { display: block; max-width: 100%; height: auto; }
.ac-main button { font-family: inherit; }

.ac-main h1, .ac-main h2, .ac-main h3 { color: var(--ac-navy); font-family: var(--ac-font); letter-spacing: -.025em; }
.ac-main h2 { font-size: var(--t-h2); font-weight: 800; line-height: 1.2; }

.ac-ico { width: 1.15em; height: 1.15em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.ac-wrap { width: min(1320px, calc(100% - 48px)); margin-inline: auto; }

.ac-section { padding: 72px 0; }

/* ---------- Apparition progressive ---------- */

.home-page.js-ready .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
}
.home-page.js-ready .reveal.reveal-right { transform: translateX(50px); }
.home-page.js-ready .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Titres de section ---------- */

.ac-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.ac-head > p, .ac-head div > p { margin-top: 10px; color: var(--ac-muted); font-size: 16.5px; }

.ac-head--split {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
}

.ac-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 13px;
    border-radius: 999px;
    background: #e8f1ff;
    color: var(--ac-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.ac-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ac-kicker--amber { background: #fff1d6; color: #a86200; }
.ac-kicker--light { background: rgba(255, 255, 255, .14); color: #fff; }

.ac-grad {
    background: linear-gradient(90deg, var(--ac-blue), var(--ac-sky));
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}

/* ---------- Boutons ---------- */

.ac-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 24px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s, background .25s, color .25s, border-color .25s;
}
.ac-btn .ac-ico { transition: transform .25s; }
.ac-btn:hover { transform: translateY(-3px); }
.ac-btn:hover > .ac-ico:last-child { transform: translateX(4px); }

.ac-btn--primary { background: linear-gradient(135deg, var(--ac-blue), var(--ac-blue-2)); color: #fff; box-shadow: 0 14px 30px rgba(11, 95, 224, .3); }
.ac-btn--primary:hover { box-shadow: 0 18px 36px rgba(11, 95, 224, .4); }
.ac-btn--amber { background: var(--ac-amber); color: #1a1300; box-shadow: 0 14px 30px rgba(245, 165, 36, .35); }
.ac-btn--white { background: #fff; color: var(--ac-blue-dark); box-shadow: 0 12px 28px rgba(0, 0, 0, .2); }
.ac-btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.ac-btn--outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.ac-btn--lg { min-height: 54px; padding: 0 30px; font-size: 16px; }
.ac-btn--block { width: 100%; }

.ac-btn--play { padding: 0 20px 0 6px; background: #fff; color: var(--ac-ink); border-color: var(--ac-line); box-shadow: var(--ac-shadow); }
.ac-play {
    position: relative;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e8f1ff;
    color: var(--ac-blue);
}
.ac-play::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(11, 95, 224, .3); animation: ac-ring 2s infinite; }
@keyframes ac-ring { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

.ac-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ac-blue);
    font-size: 16.5px;
    font-weight: 700;
    white-space: nowrap;
}
.ac-link .ac-ico { transition: transform .25s; }
.ac-link:hover .ac-ico { transform: translateX(5px); }

.ac-more { display: flex; justify-content: center; margin-top: 32px; }

.ac-stars { display: inline-flex; gap: 2px; color: var(--ac-amber); }
.ac-stars .ac-ico { width: 17px; height: 17px; fill: currentColor; stroke-width: 1; }

.ac-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; animation: ac-ping 2s infinite; }
@keyframes ac-ping { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } }

/* =====================================================================
   HERO
   ===================================================================== */

.ac-hero {
    position: relative;
    overflow: hidden;
    padding: 48px 0 44px;
    background: linear-gradient(160deg, #eef5ff 0%, #ffffff 55%, #f6faff 100%);
}

.ac-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(11, 95, 224, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 95, 224, .06) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(circle at 70% 40%, #000, transparent 70%);
            mask-image: radial-gradient(circle at 70% 40%, #000, transparent 70%);
    pointer-events: none;
}

.ac-blob { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.ac-blob--1 { width: 420px; height: 420px; top: -120px; right: 8%; background: rgba(67, 185, 242, .28); }
.ac-blob--2 { width: 320px; height: 320px; bottom: -80px; left: -80px; background: rgba(245, 165, 36, .16); }

.ac-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 48px;
}

.ac-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 7px 16px 7px 8px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(11, 95, 224, .1), inset 0 0 0 1px var(--ac-line);
    color: var(--ac-ink);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
}
.ac-eyebrow .ac-ico { width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: var(--ac-blue); color: #fff; }

.ac-hero__title {
    margin-bottom: 18px !important;
    isolation: isolate;
    font-size: var(--t-h1);
    font-weight: 800;
    line-height: 1.1;
}
.ac-line { display: block; }
@media (min-width: 1101px) { .ac-line { white-space: nowrap; } }

.ac-hero__title em {
    position: relative;
    font-style: normal;
    background: linear-gradient(90deg, var(--ac-blue), var(--ac-sky));
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}
.ac-hero__title em::after {
    content: "";
    position: absolute;
    left: 0;
    right: 6%;
    bottom: -4px;
    height: 10px;
    border-radius: 10px;
    background: rgba(245, 165, 36, .45);
    z-index: -1;
}

.ac-hero__lead { max-width: 560px; margin-bottom: 26px !important; color: var(--ac-text); font-size: var(--t-lead); line-height: 1.7; }
.ac-hero__lead strong { color: var(--ac-ink); }

.ac-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.ac-trust { display: flex; align-items: center; gap: 16px; }
.ac-trust p { color: var(--ac-muted); font-size: 15px; }
.ac-trust strong { color: var(--ac-ink); }

.ac-avatars { display: flex; }
.ac-avatars span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin-left: -10px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--c);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}
.ac-avatars span:first-child { margin-left: 0; }

/* Visuel */

.ac-hero__visual { position: relative; isolation: isolate; padding: 24px 24px 24px 0; }

.ac-hero__frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 724 / 508;
    border-radius: 28px 28px 28px 90px;
    box-shadow: var(--ac-shadow-lg);
}
.ac-hero__frame::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .7);
    pointer-events: none;
}
.ac-hero__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.ac-hero__visual:hover .ac-hero__frame img { transform: scale(1.04); }

.ac-hero__visual::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 62%;
    height: 72%;
    border-radius: 36px;
    background: linear-gradient(135deg, var(--ac-blue), var(--ac-sky));
    z-index: -1;
    transform: translate(12px, -12px);
}

.ac-float {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px 10px 10px;
    border-radius: 15px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 40px rgba(10, 26, 58, .18);
    animation: ac-float 5s ease-in-out infinite;
}
.ac-float strong { display: block; color: var(--ac-ink); font-size: 14px; font-weight: 800; line-height: 1.2; }
.ac-float small { display: block; color: var(--ac-muted); font-size: 12px; line-height: 1.3; }
.ac-float__icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: color-mix(in srgb, var(--c) 14%, #fff);
    color: var(--c);
    font-size: 19px;
}
.ac-float--1 { left: -34px; bottom: 60px; }
.ac-float--2 { right: -6px; top: 46%; animation-delay: -2.5s; }
.ac-float--3 { left: 30px; top: 6px; gap: 9px; padding: 10px 16px; color: var(--ac-ink); font-size: 14px; font-weight: 700; animation-delay: -1.2s; }

@keyframes ac-float { 50% { transform: translateY(-10px); } }

/* Points forts */

.ac-points {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 44px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--ac-shadow);
    border: 1px solid var(--ac-line);
}
.ac-point { display: flex; align-items: center; gap: 14px; padding: 15px 22px; }
.ac-point + .ac-point { border-left: 1px solid var(--ac-line); }
.ac-point strong { display: block; color: var(--ac-ink); font-size: 15.5px; font-weight: 800; line-height: 1.3; }
.ac-point small { display: block; color: var(--ac-muted); font-size: 13.5px; }
.ac-point__icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: color-mix(in srgb, var(--c) 13%, #fff);
    color: var(--c);
    font-size: 21px;
    transition: transform .35s, background .35s, color .35s;
}
.ac-point:hover .ac-point__icon { transform: rotate(-8deg) scale(1.08); background: var(--c); color: #fff; }

/* ---------- Bandeau défilant ---------- */

.ac-marquee {
    overflow: hidden;
    padding: 13px 0;
    background: var(--ac-navy);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ac-marquee__track { display: flex; gap: 56px; width: max-content; animation: ac-marquee 30s linear infinite; }
.ac-marquee:hover .ac-marquee__track { animation-play-state: paused; }
.ac-marquee__item { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 15.5px; font-weight: 700; white-space: nowrap; }
.ac-marquee__item .ac-ico { color: var(--ac-sky); font-size: 22px; }
@keyframes ac-marquee { to { transform: translateX(calc(-50% - 28px)); } }

/* =====================================================================
   POURQUOI
   ===================================================================== */

.ac-why { background: #fff; }

.ac-why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.ac-why__card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 16px;
    align-items: start;
    padding: 22px 22px;
    border: 1px solid var(--ac-line);
    border-radius: 18px;
    background: #fff;
    transition: transform .35s, box-shadow .35s, border-color .35s;
}
.ac-why__card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: var(--c);
    transform: scaleX(.2);
    transform-origin: left;
    transition: transform .45s;
}
.ac-why__card:hover { transform: translateY(-8px); box-shadow: var(--ac-shadow-lg); border-color: transparent; }
.ac-why__card:hover::before { transform: scaleX(1); }

.ac-why__num { position: absolute; top: 12px; right: 16px; color: color-mix(in srgb, var(--c) 16%, #fff); font-size: 26px; font-weight: 800; line-height: 1; }

.ac-why__icon {
    grid-row: span 2;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: color-mix(in srgb, var(--c) 13%, #fff);
    color: var(--c);
    font-size: 23px;
    transition: transform .4s, background .4s, color .4s;
}
.ac-why__card:hover .ac-why__icon { transform: rotate(-8deg) scale(1.08); background: var(--c); color: #fff; }

.ac-why__card h3 { margin-bottom: 4px !important; padding-right: 30px; font-size: var(--t-h3); font-weight: 800; }
.ac-why__card p { color: var(--ac-muted); font-size: 14.5px; line-height: 1.6; }

/* =====================================================================
   FORMATIONS PHARES
   ===================================================================== */

.ac-courses { background: var(--ac-soft); }

.ac-courses__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.ac-course {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--ac-radius);
    background: #fff;
    border: 1px solid var(--ac-line);
    box-shadow: var(--ac-shadow);
    transition: transform .35s, box-shadow .35s;
}
.ac-course:hover { transform: translateY(-10px); box-shadow: var(--ac-shadow-lg); }

.ac-course__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.ac-course__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.ac-course:hover .ac-course__media img { transform: scale(1.08); }
.ac-course__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 26, 58, .35)); }

.ac-course__cat {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 1;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--c);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}

.ac-course__body { flex: 1; display: flex; flex-direction: column; padding: 16px 18px 18px; }
.ac-course__body h3 { margin-bottom: 6px !important; font-size: var(--t-h3); font-weight: 800; line-height: 1.35; }
.ac-course__body h3 a { color: inherit; transition: color .25s; }
.ac-course__body h3 a:hover { color: var(--c); }
.ac-course__body p { margin-bottom: 12px !important; color: var(--ac-muted); font-size: 14.5px; line-height: 1.55; }

.ac-course__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px !important; }
.ac-course__meta li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 8px;
    background: var(--ac-soft);
    color: var(--ac-ink);
    font-size: 12.5px;
    font-weight: 600;
}
.ac-course__meta .ac-ico { color: var(--c); }

.ac-course__link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--ac-line);
    color: var(--c);
    font-size: 14.5px;
    font-weight: 800;
}
.ac-course__link .ac-ico { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: color-mix(in srgb, var(--c) 12%, #fff); transition: transform .3s, background .3s, color .3s; }
.ac-course:hover .ac-course__link .ac-ico { transform: translateX(4px); background: var(--c); color: #fff; }

/* =====================================================================
   CERTIFICATION
   ===================================================================== */

.ac-cert { padding: 72px 0; background: #fff; }

.ac-cert__card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    align-items: center;
    gap: 40px;
    padding: 36px 44px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(245, 165, 36, .28), transparent 50%),
        linear-gradient(120deg, #fff7e8 0%, #fffaf2 50%, #ffffff 100%);
    border: 1px solid #f7dfb3;
    box-shadow: 0 24px 60px rgba(245, 165, 36, .14);
}

.ac-cert__text h2 { margin-bottom: 10px !important; }
.ac-cert__text > p { max-width: 560px; margin-bottom: 16px !important; font-size: 16px; }

.ac-cert__points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 22px !important; }
.ac-cert__points li { display: flex; align-items: center; gap: 9px; color: var(--ac-ink); font-size: 14.5px; font-weight: 600; }
.ac-cert__points span { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; border-radius: 50%; background: #17a37a; color: #fff; }
.ac-cert__points .ac-ico { width: 13px; height: 13px; stroke-width: 3; }

/* Attestation dessinée */
.ac-diploma { width: 100%; max-width: 320px; justify-self: center; perspective: 900px; }
.ac-diploma__paper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 22px 20px 18px;
    border-radius: 16px;
    background: #fff;
    border: 10px solid #fff;
    outline: 2px solid #f0d49c;
    outline-offset: -18px;
    box-shadow: 0 30px 60px rgba(120, 70, 0, .2);
    transform: rotateY(-10deg) rotateZ(2deg);
    transition: transform .6s;
}
.ac-cert__card:hover .ac-diploma__paper { transform: rotateY(0) rotateZ(0); }

.ac-diploma__brand { display: inline-flex; align-items: center; gap: 7px; color: #1255a6; font-size: 15px; font-weight: 800; }
.ac-diploma__brand img { width: 24px; height: 24px; }
.ac-diploma__label { color: #a86200; font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.ac-diploma__name { margin: 4px 0 6px; color: var(--ac-navy); font-family: "Caveat", cursive; font-size: 28px; font-weight: 700; line-height: 1; }
.ac-diploma__line { width: 80%; height: 7px; border-radius: 7px; background: #eef2f8; }
.ac-diploma__line--short { width: 55%; }
.ac-diploma__foot { width: 100%; display: flex; align-items: flex-end; justify-content: space-between; margin-top: 14px; }
.ac-diploma__sign { padding-top: 3px; border-top: 1.5px solid #c9d3e3; color: var(--ac-muted); font-family: "Caveat", cursive; font-size: 18px; }
.ac-diploma__seal {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, #ffc461, #f0892b);
    color: #fff;
    font-size: 24px;
    box-shadow: 0 10px 20px rgba(240, 137, 43, .4), inset 0 0 0 5px rgba(255, 255, 255, .35);
}

/* =====================================================================
   STATISTIQUES (bleu nuancé de blanc)
   ===================================================================== */

.ac-stats {
    position: relative;
    padding: 52px 0 58px;
    background: linear-gradient(170deg, #0a3a8a 0%, #0b5fe0 38%, #8dbaf8 76%, #ffffff 100%);
}

.ac-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr) 1.2fr; gap: 14px; }

.ac-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 20px 12px;
    border-radius: 18px;
    background: #fff;
    text-align: center;
    box-shadow: 0 20px 44px rgba(8, 30, 80, .2);
    transition: transform .35s;
}
.ac-stat:hover { transform: translateY(-8px); }

.ac-stat__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 6px;
    border-radius: 13px;
    background: color-mix(in srgb, var(--c) 13%, #fff);
    color: var(--c);
    font-size: 21px;
}
.ac-stat strong { color: var(--c); font-size: clamp(24px, 2.1vw, 30px); font-weight: 800; line-height: 1.1; }
.ac-stat__label { color: var(--ac-text); font-size: 14px; font-weight: 600; line-height: 1.4; }

.ac-stat--quote {
    position: relative;
    overflow: hidden;
    background: linear-gradient(140deg, #0a1a3a, #0b3f93);
}
.ac-stat--quote .ac-ico { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; color: var(--ac-amber); opacity: .8; }
.ac-stat--quote p { color: #fff; font-family: "Caveat", "Segoe Script", cursive; font-size: clamp(26px, 2.3vw, 32px); font-weight: 700; line-height: 1.05; transform: rotate(-3deg); }

/* =====================================================================
   GALERIE
   ===================================================================== */

.ac-gallery { background: #fff; }

.ac-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 190px);
    gap: 14px;
}

.ac-gallery__item {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: #dbe8ff;
    cursor: zoom-in;
    box-shadow: var(--ac-shadow);
}
.ac-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.ac-gallery__item:nth-child(4) { grid-column: span 2; }

.ac-gallery__item img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.ac-gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7, 22, 51, .8)); transition: opacity .4s; }
.ac-gallery__item:hover img { transform: scale(1.08); }

.ac-gallery__cap {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 14px;
    z-index: 2;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    transform: translateY(6px);
    transition: transform .4s;
}
.ac-gallery__item:first-child .ac-gallery__cap { font-size: 17px; }
.ac-gallery__item:hover .ac-gallery__cap { transform: none; }

.ac-gallery__zoom {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: var(--ac-blue);
    font-size: 22px;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .35s, transform .35s;
}
.ac-gallery__item:hover .ac-gallery__zoom,
.ac-gallery__item:focus-visible .ac-gallery__zoom { opacity: 1; transform: none; }

/* =====================================================================
   TÉMOIGNAGES
   ===================================================================== */

.ac-testi { background: var(--ac-soft); }

.ac-carousel__nav { display: flex; gap: 10px; }
.ac-round {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ac-line);
    border-radius: 50%;
    background: #fff;
    color: var(--ac-ink);
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--ac-shadow);
    transition: background .25s, color .25s, transform .25s;
}
.ac-round:hover { background: var(--ac-blue); color: #fff; transform: translateY(-2px); }

.ac-carousel { --pv: 3; --gap: 24px; }
.ac-carousel__viewport { overflow: hidden; padding: 14px 12px 30px; margin: -14px -12px 0; }
.ac-carousel__track { display: flex; gap: var(--gap); will-change: transform; }

.ac-testi__card {
    position: relative;
    flex: 0 0 calc((100% - (var(--pv) - 1) * var(--gap)) / var(--pv));
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 22px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--ac-line);
    box-shadow: var(--ac-shadow);
}
.ac-testi__quote { position: absolute; top: 16px; right: 18px; color: #e1ebfb; font-size: 36px; }
.ac-testi__card > p { flex: 1; color: var(--ac-ink); font-size: 15.5px; line-height: 1.65; font-weight: 500; }

.ac-testi__who { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--ac-line); }
.ac-testi__who strong { display: block; color: var(--ac-ink); font-size: 15px; font-weight: 800; }
.ac-testi__who small { display: block; color: var(--ac-muted); font-size: 14px; }
.ac-testi__avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 60%, #fff));
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 35%, transparent);
}

.ac-carousel__dots { display: flex; justify-content: center; gap: 8px; }
.ac-carousel__dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #c4d5f0;
    cursor: pointer;
    transition: width .35s, background .35s;
}
.ac-carousel__dots button.is-active { width: 32px; background: var(--ac-blue); }

/* =====================================================================
   FAQ
   ===================================================================== */

.ac-faq { background: #fff; }

.ac-faq__grid { display: grid; grid-template-columns: .85fr 1.4fr; gap: 48px; align-items: start; }

.ac-faq__intro { position: sticky; top: 110px; }
.ac-faq__intro h2 { margin-bottom: 10px !important; }
.ac-faq__intro > p { margin-bottom: 22px !important; color: var(--ac-muted); font-size: 16px; }

.ac-faq__help {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--ac-soft);
    border: 1px solid var(--ac-line);
}
.ac-faq__help > span { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 12px; background: var(--ac-blue); color: #fff; font-size: 20px; }
.ac-faq__help strong { display: block; color: var(--ac-ink); font-size: 15px; }
.ac-faq__help a { color: var(--ac-blue); font-size: 14.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.ac-faq__list { display: grid; gap: 10px; }

.ac-faq__item {
    border: 1px solid var(--ac-line);
    border-radius: 14px;
    background: #fff;
    transition: border-color .3s, box-shadow .3s, background .3s;
}
.ac-faq__item.is-open { border-color: #b8d0f7; background: linear-gradient(180deg, #f7faff, #fff); box-shadow: var(--ac-shadow); }

.ac-faq__q {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    border: 0;
    background: none;
    color: var(--ac-ink);
    font-size: var(--t-body);
    font-weight: 700;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
}
.ac-faq__n { color: var(--ac-blue); font-size: 13.5px; font-weight: 800; opacity: .6; }
.ac-faq__t { flex: 1; }
.ac-faq__plus {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e8f1ff;
    color: var(--ac-blue);
    font-size: 17px;
    transition: transform .35s, background .35s, color .35s;
}
.ac-faq__item.is-open .ac-faq__plus { transform: rotate(135deg); background: var(--ac-blue); color: #fff; }

.ac-faq__a { max-height: 0; overflow: hidden; transition: max-height .45s ease; }
.ac-faq__a p { padding: 0 18px 18px 52px; color: var(--ac-text); font-size: 15px; line-height: 1.7; }

/* =====================================================================
   PARTENARIAT
   ===================================================================== */

.ac-partner { padding: 30px 0 90px; }
.ac-partner__card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
    gap: 48px;
    align-items: center;
    overflow: hidden;
    padding: 54px 56px;
    border-radius: 34px;
    background: linear-gradient(140deg, #f2f7ff 0%, #ffffff 55%, #fff7ec 100%);
    border: 1px solid #e3ecfa;
    box-shadow: 0 30px 80px -40px rgba(11, 60, 140, .35);
}
.ac-partner__blob { position: absolute; border-radius: 50%; filter: blur(50px); pointer-events: none; }
.ac-partner__blob--1 { width: 340px; height: 340px; right: -80px; top: -120px; background: rgba(67, 185, 242, .25); }
.ac-partner__blob--2 { width: 260px; height: 260px; left: 30%; bottom: -160px; background: rgba(245, 165, 36, .18); }
.ac-partner__text { position: relative; }
.ac-main .ac-partner h2 { margin: 10px 0 12px !important; font-size: var(--t-h2); line-height: 1.2; }
.ac-main .ac-partner h2 span { color: var(--ac-blue); }
.ac-partner__lead { max-width: 600px; margin-bottom: 26px !important; color: var(--ac-ink); font-size: var(--t-lead); line-height: 1.7; }

.ac-partner__adv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.ac-partner__item {
    display: grid;
    align-content: start;
    gap: 4px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .75);
    border: 1px solid #e6eefb;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: transform .35s, box-shadow .35s;
}
.ac-partner__item:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -20px rgba(11, 60, 140, .4); }
.ac-partner__item > span { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 6px; border-radius: 50%; background: #e8f1ff; color: var(--ac-blue); font-size: 19px; }
.ac-partner__item:nth-child(2) > span { background: #fff1dc; color: #d9820b; }
.ac-partner__item:nth-child(3) > span { background: #e3f7ef; color: #0f8a5f; }
.ac-partner__item strong { color: var(--ac-navy); font-size: 15px; font-weight: 700; line-height: 1.3; }
.ac-partner__item small { color: var(--ac-muted); font-size: 13.5px; line-height: 1.5; }

.ac-partner__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.ac-partner__more { display: inline-flex; align-items: center; gap: 8px; color: var(--ac-navy); font-weight: 700; }
.ac-partner__more:hover { color: var(--ac-blue); }
.ac-partner__more .az-ico, .ac-partner__more svg { transition: transform .25s; }
.ac-partner__more:hover svg { transform: translateX(4px); }

.ac-univ {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 30px 26px 26px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid #e6eefb;
    box-shadow: 0 30px 60px -28px rgba(10, 26, 58, .35);
    color: inherit;
    text-align: center;
    text-decoration: none;
    transition: transform .4s cubic-bezier(.2, .9, .25, 1.1), box-shadow .4s;
}
.ac-univ:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 40px 70px -30px rgba(10, 26, 58, .45); }
.ac-univ__duo { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ac-univ__logo { width: 92px; height: 92px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #f4f8fe; border: 4px solid #fff; box-shadow: 0 10px 24px -10px rgba(10, 26, 58, .35); }
.ac-univ__logo img { width: 100%; height: 100%; object-fit: cover; }
.ac-univ__logo--az { width: 64px; height: 64px; padding: 12px; background: #fff; }
.ac-univ__logo--az img { object-fit: contain; }
.ac-univ__x { color: #9fb0cc; font-size: 20px; font-weight: 600; }
.ac-univ__tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: #e3f7ef; color: #0f8a4f; font-size: 12.5px; font-weight: 700; }
.ac-univ__name { margin-top: 4px; color: var(--ac-navy); font-size: 19px; font-weight: 700; line-height: 1.3; }
.ac-univ__type { color: var(--ac-muted); font-size: 14px; }
.ac-univ__addr { display: inline-flex; align-items: flex-start; gap: 6px; margin-top: 8px; padding-top: 12px; border-top: 1px dashed #dbe4f2; color: var(--ac-ink); font-size: 13.5px; line-height: 1.5; }
.ac-univ__addr svg { flex: 0 0 auto; margin-top: 2px; color: var(--ac-blue); }
.ac-univ__site { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; padding: 9px 16px; border-radius: 999px; background: #eef4ff; color: var(--ac-blue-dark); font-size: 14px; font-weight: 700; transition: background .25s, color .25s; }
.ac-univ:hover .ac-univ__site { background: var(--ac-blue); color: #fff; }

/* =====================================================================
   CTA FINAL
   ===================================================================== */

.ac-final {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    text-align: center;
    background:
        radial-gradient(circle at 20% 0%, rgba(67, 185, 242, .45), transparent 45%),
        linear-gradient(110deg, #0b5fe0 0%, #0a47b8 55%, #0b2a63 100%);
}

.ac-final__ring { position: absolute; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .06); pointer-events: none; }
.ac-final__ring--1 { width: 460px; height: 460px; top: -230px; left: -120px; }
.ac-final__ring--2 { width: 360px; height: 360px; bottom: -200px; right: 4%; border-width: 40px; }

.ac-final__inner { position: relative; max-width: 860px; }
.ac-final__icon {
    width: 56px;
    height: 56px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 17px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-size: 27px;
    animation: ac-float 4s ease-in-out infinite;
}
.ac-main .ac-final h2 { margin-bottom: 10px !important; color: #fff; font-size: var(--t-cta); }
.ac-final__inner > p { max-width: 600px; margin: 0 auto 26px !important; color: #e0ebff; font-size: 16.5px; }
.ac-final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* =====================================================================
   FENÊTRES : VIDÉO + VISIONNEUSE
   ===================================================================== */

.ac-modal,
.ac-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200100;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(4, 12, 32, .88);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.ac-modal.is-open, .ac-lightbox.is-open { opacity: 1; visibility: visible; }

.ac-modal__box {
    position: relative;
    width: 100%;
    max-width: 960px;
    border-radius: 20px;
    background: #000;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .5);
    transform: scale(.92);
    transition: transform .4s cubic-bezier(.2, .9, .25, 1.15);
}
.ac-modal.is-open .ac-modal__box { transform: none; }
.ac-modal__box video { display: block; width: 100%; border-radius: 20px; }

.ac-modal__close,
.ac-lightbox__close {
    position: absolute;
    top: -18px;
    right: -18px;
    z-index: 3;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--ac-navy);
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
    transition: transform .3s;
}
.ac-modal__close:hover, .ac-lightbox__close:hover { transform: rotate(90deg); }
.ac-lightbox__close { top: 24px; right: 24px; }

.ac-lightbox { grid-template-columns: auto 1fr auto; gap: 20px; }
.ac-lightbox__fig { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; }
.ac-lightbox__fig img { max-width: 100%; max-height: calc(100vh - 160px); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transition: opacity .25s; }
.ac-lightbox__fig figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; color: #fff; font-size: 17px; font-weight: 700; }
.ac-lightbox__fig figcaption a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; color: var(--ac-blue); font-size: 14.5px; }
.ac-lightbox__nav {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: background .25s;
}
.ac-lightbox__nav:hover { background: rgba(255, 255, 255, .25); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 1200px) {
    .ac-courses__grid { grid-template-columns: repeat(2, 1fr); }
    .ac-stats__grid { grid-template-columns: repeat(4, 1fr); }
    .ac-stat--quote { grid-column: 1 / -1; padding: 26px; }
    .ac-stat--quote p br { display: none; }
    .ac-carousel { --pv: 2; }
}

@media (max-width: 1100px) {
    .ac-hero { padding-top: 32px; }
    .ac-hero__inner { grid-template-columns: 1fr; gap: 40px; }
    .ac-hero__text { text-align: center; }
    .ac-hero__lead { margin-inline: auto; }
    .ac-hero__actions, .ac-trust { justify-content: center; }
    .ac-hero__visual { max-width: 560px; margin-inline: auto; width: 100%; padding: 18px 18px 18px 0; }
    .ac-float--1 { left: -10px; }

    .ac-why__grid { grid-template-columns: repeat(2, 1fr); }
    .ac-cert__card { grid-template-columns: 1fr; padding: 32px 30px; }
    .ac-diploma { max-width: 300px; margin: 0 auto; }
    .ac-faq__grid { grid-template-columns: 1fr; gap: 36px; }
    .ac-faq__intro { position: static; }

}

@media (max-width: 760px) {

    .ac-wrap { width: calc(100% - 32px); }
    .ac-section, .ac-cert { padding: 48px 0; }
    .ac-head { margin-bottom: 24px; }
    .ac-head > p, .ac-head div > p { font-size: 15.5px; }
    .ac-head--split { flex-direction: column; align-items: flex-start; }
    .ac-more { margin-top: 24px; }

    .ac-hero { padding: 22px 0 32px; }
    .ac-eyebrow { font-size: 13px; padding-right: 14px; }
    .ac-hero__actions .ac-btn { width: 100%; }
    .ac-trust { flex-direction: column; gap: 10px; }
    .ac-float { padding: 10px 13px 10px 10px; border-radius: 14px; }
    .ac-float__icon { width: 36px; height: 36px; font-size: 18px; }
    .ac-float strong { font-size: 13.5px; }
    .ac-float small { font-size: 11.5px; }
    .ac-float--2 { right: -4px; }
    .ac-float--3 { left: 12px; }

    .ac-points { grid-template-columns: 1fr; margin-top: 28px; }
    .ac-point { padding: 12px 16px; }
    .ac-point + .ac-point { border-left: 0; border-top: 1px solid var(--ac-line); }

    .ac-marquee__item { font-size: 14px; }

    .ac-why__grid { gap: 10px; }
    .ac-why__card { padding: 16px; }

    .ac-cert__card { padding: 24px 18px; gap: 22px; border-radius: 20px; }
    .ac-diploma { display: none; }
    .ac-cert__points { flex-direction: column; }
    .ac-hero__visual { max-width: 420px; }
    .ac-eyebrow span, .ac-eyebrow { font-size: 12.5px; }
    .ac-cert__card .ac-btn { width: 100%; }

    .ac-stats { padding: 40px 0 46px; }
    .ac-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .ac-stat { padding: 16px 8px; }
    .ac-stat__icon { width: 38px; height: 38px; font-size: 18px; }
    .ac-stat__label { font-size: 13px; }

    .ac-gallery__grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: 200px 140px 140px; gap: 8px; }
    .ac-gallery__item:first-child { grid-column: span 2; grid-row: span 1; }
    .ac-gallery__item:nth-child(4) { grid-column: span 2; }
    .ac-gallery__item { border-radius: 18px; }
    .ac-gallery__cap { font-size: 15px; left: 14px; bottom: 12px; }

    .ac-carousel { --pv: 1; }
    .ac-carousel__nav { display: none; }
    .ac-testi__card { padding: 18px; }

    .ac-faq__q { padding: 14px; font-size: 15px; gap: 10px; }
    .ac-faq__a p { padding: 0 14px 16px; font-size: 14.5px; }


    .ac-final { padding: 48px 0; }
    .ac-final__actions .ac-btn { width: 100%; }

    .ac-lightbox { grid-template-columns: 1fr; padding: 70px 14px 24px; }
    .ac-lightbox__nav { position: absolute; bottom: 24px; }
    .ac-lightbox__nav.is-prev { left: 20px; }
    .ac-lightbox__nav.is-next { right: 20px; }
    .ac-lightbox__fig img { max-height: calc(100vh - 220px); }
    .ac-lightbox__close { top: 14px; right: 14px; }
    .ac-modal__close { top: -56px; right: 0; }
}

@media (max-width: 480px) {
    .ac-why__grid { grid-template-columns: 1fr; gap: 10px; }
    .ac-why__card { grid-template-columns: 42px 1fr; column-gap: 14px; padding: 14px 16px; border-radius: 14px; }
    .ac-why__num { display: none; }
    .ac-why__icon { width: 42px; height: 42px; border-radius: 12px; font-size: 20px; }
    .ac-why__card h3 { padding-right: 0; }
    .ac-why__card p { font-size: 13.5px; line-height: 1.5; }
    .ac-courses__grid { grid-template-columns: 1fr; }
    .ac-course { display: grid; grid-template-columns: 120px 1fr; }
    .ac-course__media { aspect-ratio: auto; height: 100%; min-height: 150px; }
    .ac-course__cat { left: 8px; top: 8px; padding: 3px 8px; font-size: 10.5px; }
    .ac-course__body { padding: 12px 14px 14px; }
    .ac-course__body p { display: none; }
    .ac-course__meta { margin-bottom: 10px !important; }
    .ac-course__link { padding-top: 8px; }
    .ac-float--2 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .home-page.js-ready .reveal { opacity: 1; transform: none; transition: none; }
    .ac-main *, .ac-main *::before, .ac-main *::after { animation: none !important; }
}

/* Partenariat — responsive */
@media (max-width: 1100px) {
    .ac-partner__card { grid-template-columns: 1fr; gap: 30px; padding: 44px 36px; }
    .ac-univ { max-width: 460px; width: 100%; margin: 0 auto; }
}
@media (max-width: 680px) {
    .ac-partner { padding: 10px 0 60px; }
    .ac-partner__card { padding: 30px 18px; border-radius: 26px; }
    .ac-partner__adv { grid-template-columns: 1fr; gap: 8px; }
    .ac-partner__item { grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; padding: 12px 14px; }
    .ac-partner__item > span { grid-row: span 2; margin: 0; }
    .ac-partner__actions .ac-btn { width: 100%; justify-content: center; }
    .ac-partner__actions { justify-content: center; }
    .ac-univ { padding: 24px 18px 20px; }
    .ac-univ__logo { width: 76px; height: 76px; }
    .ac-univ__logo--az { width: 56px; height: 56px; }
}

/* Espace entre l’introduction et les cartes de formules */
.ac-main .ac-offers .ac-head { margin-bottom: 0 !important; }
.ac-main .ac-offers .fp-offers { margin-top: 44px !important; }
@media (max-width: 760px) { .ac-main .ac-offers .fp-offers { margin-top: 30px !important; } }
