/* =========================================================
   AZORLEARN — PIED DE PAGE (v5 · bleu AzorLearn)
   Composant indépendant : styles propres.
   Police : Sora (police commune du site, voir assets/css/police.css)
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap");

.az-footer,
.azf-top {
    --fz-navy: #040a1c;
    --fz-blue: #0b5fe0;
    --fz-blue-2: #2f86f5;
    --fz-sky: #43b9f2;
    --fz-lime: #f5a524;        /* accent : orange AzorLearn */
    --fz-amber: #f5a524;
    --fz-text: #e3ecff;
    --fz-muted: #bcd0f5;
    --fz-font: "Sora", "Segoe UI", system-ui, Arial, sans-serif;
}

.az-footer, .az-footer *, .az-footer *::before, .az-footer *::after,
.azf-top, .azf-top * {
    box-sizing: border-box;
    font-family: var(--fz-font) !important;
}

.az-footer { width: 100%; margin: 0; padding: 28px 0 18px; background: transparent; color: #fff; }
.az-footer ul { list-style: none; margin: 0; padding: 0; }
.az-footer a { color: inherit; text-decoration: none; }
.az-footer h2, .az-footer h3, .az-footer p { margin: 0; }
.az-footer img { display: block; max-width: 100%; }

.az-f-ico {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.azf-wrap { width: min(1320px, calc(100% - 48px)); margin-inline: auto; }
.azf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.azf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   BLOC SOMBRE (couleur foncée)
   ========================================================= */

.azf-dark {
    position: relative;
    overflow: hidden;
    margin: 0 18px;
    padding-top: 0;
    border-radius: 30px;
    /* Bleu AzorLearn (ni noir, ni trop foncé) */
    background:
        radial-gradient(circle at 92% 0%, rgba(67, 185, 242, .45), transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(47, 134, 245, .35), transparent 45%),
        linear-gradient(150deg, #0b5fe0 0%, #0a4fc4 45%, #0a3f9e 100%);
    box-shadow: 0 24px 60px rgba(11, 95, 224, .22);
}

.azf-dark__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%);
            mask-image: linear-gradient(180deg, #000, transparent 75%);
    pointer-events: none;
}

/* =========================================================
   NEWSLETTER (compacte : une seule ligne)
   ========================================================= */

.azf-news {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px 32px;
    padding: 26px 0 22px;
    margin-bottom: 44px;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.azf-news__text { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--fz-text); font-size: 15px; line-height: 1.45; }
.azf-news__text strong { display: block; color: #fff; font-size: 16.5px; font-weight: 700; }
.azf-news__icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, .16);
    color: #ffd27a;
}
.azf-news__icon .az-f-ico { width: 20px; height: 20px; }

.azf-form { flex: 0 1 470px; min-width: 0; }
.azf-form__row {
    display: flex;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    transition: border-color .2s, background .2s;
}
.azf-form__row:focus-within { border-color: var(--fz-lime); background: rgba(255, 255, 255, .2); }
.azf-form__field { position: relative; flex: 1; display: flex; align-items: center; min-width: 0; }
.azf-form__field input {
    width: 100%;
    height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 15px;
    outline: none;
}
.azf-form__field input::placeholder { color: #d3e1ff; }

.azf-form__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 112px;
    height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: var(--fz-lime);
    color: #1a1300;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: filter .25s;
}
.azf-form__btn:hover { filter: brightness(1.07); }
.azf-spin {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(10, 20, 0, .25);
    border-top-color: #0a1400;
    border-radius: 50%;
    animation: azf-spin .7s linear infinite;
}
@keyframes azf-spin { to { transform: rotate(360deg); } }
.azf-form.is-sending .azf-form__btn { pointer-events: none; opacity: .85; }
.azf-form.is-sending .azf-form__btn > span { display: none; }
.azf-form.is-sending .azf-spin { display: block; }

.azf-form__note { margin-top: 7px !important; padding-left: 16px; color: #c9d9f7; font-size: 12.5px; line-height: 1.45; }
.azf-form__note a { color: #fff; text-decoration: underline !important; text-underline-offset: 2px; }
.azf-form__note a:hover { color: #fff; }

.azf-form__msg { margin-top: 6px !important; padding-left: 16px; font-size: 13.5px; font-weight: 600; }
.azf-form__msg:empty { display: none; }
.azf-form__msg.is-error { color: #ffd0d0; }
.azf-form__msg.is-ok { color: var(--fz-lime); }

/* =========================================================
   LIENS
   ========================================================= */

.azf-main {
    position: relative;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 56px;
    padding-bottom: 52px;
}

/* Marque */

.azf-brand__link { display: inline-flex; align-items: center; gap: 13px; }
.azf-brand__link > span:last-child { padding-left: 14px; border-left: 3px solid #fff; }

.azf-brand__logo {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
}
.azf-brand__logo img { width: 40px; height: 40px; object-fit: contain; }

.azf-brand__name { display: block; font-size: 27px; font-weight: 800; letter-spacing: -.8px; line-height: 1; }
.azf-brand__name span:first-child { color: #fff; }
.azf-brand__name span:last-child { color: #ffd27a; }
.azf-brand__link small { display: block; margin-top: 5px; color: var(--fz-muted); font-size: 11.5px; font-weight: 600; line-height: 1.35; }

.azf-brand__desc { max-width: 400px; margin: 22px 0 !important; color: var(--fz-text); font-size: 15.5px; line-height: 1.75; }

.azf-contact { display: grid; gap: 12px; }
.azf-contact li { display: flex; align-items: center; gap: 12px; color: var(--fz-text); font-size: 15px; }
.azf-contact li > span {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
}
.azf-contact .az-f-ico { width: 17px; height: 17px; }
.azf-contact a:hover { color: #fff; }

.azf-wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 12px 18px;
    border-radius: 12px;
    background: #25d366;
    color: #04240f !important;
    font-size: 14.5px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(37, 211, 102, .2);
    transition: transform .25s, filter .25s;
}
.azf-wa svg { width: 20px; height: 20px; fill: currentColor; }
.azf-wa:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* Colonnes */

.azf-col h3 {
    position: relative;
    margin-bottom: 22px !important;
    padding-bottom: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}
.azf-col h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 3px;
    border-radius: 3px;
    background: var(--fz-lime);
}

.azf-col li + li { margin-top: 12px; }

.azf-col a {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--fz-text);
    font-size: 15px;
    line-height: 1.5;
    transition: color .25s;
}
.azf-col a .az-f-ico { width: 13px; height: 13px; margin-left: 6px; opacity: .7; }
.azf-col a::before {
    content: "";
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--fz-lime);
    transition: width .25s, margin-right .25s;
}
.azf-col a:hover { color: #fff; }
.azf-col a:hover::before { width: 12px; margin-right: 8px; }

/* Réseaux sociaux */

.azf-band {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
}
.azf-band__text { color: var(--fz-text); font-size: 15px; font-weight: 500; }

.azf-social { display: flex; align-items: center; gap: 10px; }

.azf-s {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    transition: transform .25s, background .25s, border-color .25s;
}
.azf-s svg { width: 19px; height: 19px; fill: currentColor; }
.azf-s:hover { transform: translateY(-3px); border-color: transparent; }
.azf-s--fb:hover { background: #1877f2; }
.azf-s--in:hover { background: #0a66c2; }
.azf-s--yt:hover { background: #ff0000; }
.azf-s--ig:hover { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }

/* Bas */

.azf-bottom { position: relative; border-top: 1px solid rgba(255, 255, 255, .18); background: rgba(5, 30, 90, .25); }
.azf-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    color: var(--fz-muted);
    font-size: 14px;
}
.azf-bottom strong { color: #fff; }
.azf-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
/* Laisse la place aux boutons flottants (WhatsApp, retour en haut) */
.azf-bottom__inner { padding-inline: max(0px, calc(86px - (100vw - min(1320px, 100vw - 84px)) / 2)); }
.azf-legal a { color: var(--fz-muted); transition: color .2s; }
.azf-legal a:hover { color: #fff; }

/* =========================================================
   RETOUR EN HAUT
   ========================================================= */

.azf-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--fz-blue);
    box-shadow: 0 6px 16px rgba(10, 26, 58, .14);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(.9);
    transition: opacity .3s, visibility .3s, transform .3s;
}
.azf-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.azf-top:hover { transform: translateY(-3px); }
.azf-top > .az-f-ico { position: relative; width: 17px; height: 17px; stroke-width: 2.4; }
.azf-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.azf-top__track { fill: none; stroke: #e4ebf6; stroke-width: 2.5; }
.azf-top__bar { fill: none; stroke: var(--fz-blue); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 144.5; stroke-dashoffset: 144.5; }

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

@media (max-width: 1100px) {
    .azf-news { flex-direction: column; align-items: stretch; }
    .azf-form { flex-basis: auto; }
    .azf-main { grid-template-columns: repeat(3, 1fr); gap: 40px; }
    .azf-brand { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; align-items: start; }
    .azf-brand__desc { margin-bottom: 0 !important; }
    .azf-contact { grid-row: span 3; align-self: center; }
}

@media (max-width: 720px) {
    .azf-wrap { width: calc(100% - 28px); }

    .az-footer { padding: 18px 0 10px; }
    .azf-dark { margin: 0 10px; border-radius: 22px; }
    .azf-news { padding: 18px 0; margin-bottom: 32px; }
    .azf-news__icon { display: none; }
    .azf-form__note, .azf-form__msg { padding-left: 4px; }

    .azf-main { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
    .azf-brand { display: block; }
    .azf-col:last-child { grid-column: 1 / -1; }
    .azf-col:last-child ul { columns: 2; column-gap: 20px; }
    .azf-col:last-child li { break-inside: avoid; margin: 0 0 12px; }

    .azf-band { flex-direction: column; text-align: center; }
    .azf-bottom__inner { flex-direction: column; align-items: center; gap: 12px; padding: 20px 0 84px; text-align: center; }
    .azf-legal { justify-content: center; gap: 10px 18px; }
    .azf-legal a { display: inline-block; padding: 4px 0; }
    .azf-top { right: 14px; bottom: 14px; width: 40px; height: 40px; }
}

@media (max-width: 380px) {
    .azf-main { grid-template-columns: 1fr; }
    .azf-col:last-child ul { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .az-footer *, .azf-top { transition: none !important; animation: none !important; }
}
