/**
 * Footer AIRDancia — CSS site-wide
 * Emplacement cible : blocksy-child/assets/css/aird-footer.css
 *
 * Cohérent avec aird-header.css : mêmes couleurs, mêmes calques aurora +
 * grain, même typographie (Manrope + Caveat). Même technique de breakout
 * 100vw pour s'étendre à toute la largeur même rendu dans un container
 * limité (Elementor, Blocksy).
 */

/* Caveat + Cinzel sont déjà importées par aird-header.css site-wide. On garde
   un import minimal ici pour les pages qui n'auraient que le footer (cas rare).
   Le navigateur dédup automatiquement. */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&family=Cinzel:wght@500;600&display=swap');

:root {
    --aird-or:        #E5A93D;
    --aird-or-clair:  #F5C76E;
}

/* =========================================================
   SITE FOOTER
   ========================================================= */
.aird-sitefooter {
    position: relative;
    isolation: isolate;
    background: linear-gradient(180deg, #19132a 0%, #15101e 35%, #0e0a18 100%);
    color: #fff;
    font-family: 'Manrope', sans-serif;
    overflow: hidden;
    padding: 56px 56px 24px;
    /* Breakout : le footer s'étend à toute la largeur de la fenêtre,
       même s'il est rendu dans un container Elementor / Blocksy limité. */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
}

/* Neutralise les wrappers Elementor (mêmes règles que le header) si
   le footer est inséré via shortcode [aird_footer] dans un widget */
.elementor-widget-shortcode:has(.aird-sitefooter),
.elementor-widget-html:has(.aird-sitefooter),
.elementor-element:has(> .elementor-widget-container > .elementor-widget-shortcode .aird-sitefooter),
.elementor-element:has(.aird-sitefooter),
.elementor-section:has(.aird-sitefooter),
.elementor-column:has(.aird-sitefooter),
.elementor-container:has(.aird-sitefooter),
.elementor-widget-wrap:has(.aird-sitefooter) {
    margin: 0 !important;
    padding: 0 !important;
}
.elementor-widget-shortcode:has(.aird-sitefooter) .elementor-widget-container,
.elementor-widget-html:has(.aird-sitefooter) .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
}

/* ----------- Background : aurora + grain + topline or ----------- */
.aird-sitefooter__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.aird-sitefooter__aurora {
    position: absolute;
    inset: -10% -10%;
    background:
        radial-gradient(50% 60% at 18% 20%, rgba(229, 169, 61, .14) 0%, transparent 60%),
        radial-gradient(40% 55% at 82% 30%, rgba(255, 62, 201, .10) 0%, transparent 70%),
        radial-gradient(60% 80% at 50% 110%, rgba(120, 90, 200, .14) 0%, transparent 70%);
    filter: blur(50px);
    opacity: .85;
}
.aird-sitefooter__grain {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 3px 3px;
    mix-blend-mode: overlay;
    opacity: .35;
}
/* Ligne or fine en haut du footer (pendant visuel du border-bottom du header) */
.aird-sitefooter__topline {
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(229, 169, 61, .35) 25%,
        rgba(245, 199, 110, .85) 50%,
        rgba(229, 169, 61, .35) 75%,
        transparent 100%
    );
    filter: drop-shadow(0 0 5px rgba(229, 169, 61, .45));
}

/* ----------- Inner ----------- */
.aird-sitefooter__inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
}

/* =========================================================
   Motto Trajan en haut du footer
   "Tout l'univers de la danse" — Cinzel uppercase, doré, espacé
   Encadré de 2 petits losanges décoratifs
   ========================================================= */
.aird-sitefooter__motto {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 auto 40px;
    padding: 0 16px;
    text-align: center;
}
.aird-sitefooter__motto-text {
    font-family: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.42em;          /* respiration très large */
    text-transform: uppercase;
    /* Dégradé doré subtil (haut clair → bas plus foncé) */
    background: linear-gradient(180deg,
        #F5D98A 0%,
        #E5A93D 55%,
        #C28A1F 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter:
        drop-shadow(0 1px 0 rgba(0, 0, 0, .35))
        drop-shadow(0 0 10px rgba(229, 169, 61, .18));
    /* Compense le letter-spacing à droite */
    padding-left: 0.42em;
}
.aird-sitefooter__motto-deco {
    color: var(--aird-or);
    font-size: 9px;
    line-height: 1;
    opacity: .55;
    transform: translateY(-1px);
    filter: drop-shadow(0 0 6px rgba(229, 169, 61, .45));
}

@media (max-width: 768px) {
    .aird-sitefooter__motto {
        gap: 12px;
        margin-bottom: 32px;
    }
    .aird-sitefooter__motto-text {
        font-size: 12.5px;
        letter-spacing: 0.32em;
        padding-left: 0.32em;
    }
}
@media (max-width: 480px) {
    .aird-sitefooter__motto-text {
        font-size: 11px;
        letter-spacing: 0.26em;
        padding-left: 0.26em;
    }
    .aird-sitefooter__motto-deco { font-size: 8px; }
}

/* =========================================================
   TOP : Brand + Colonnes de liens
   ========================================================= */
.aird-sitefooter__top {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 2.7fr);
    gap: 48px;
    align-items: start;
}

/* ----------- Brand (gauche) ----------- */
.aird-sitefooter__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    max-width: 360px;
}
.aird-fbrand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.aird-fbrand__mark {
    width: 76px;
    height: 76px;
    aspect-ratio: 1 / 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.aird-fbrand__mark img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter:
        drop-shadow(0 5px 12px rgba(0, 0, 0, 0.55))
        drop-shadow(0 0 16px rgba(229, 169, 61, 0.28));
    transition: filter .35s ease, transform .35s ease;
}
.aird-fbrand:hover .aird-fbrand__mark img {
    filter:
        drop-shadow(0 7px 18px rgba(0, 0, 0, 0.65))
        drop-shadow(0 0 26px rgba(245, 199, 110, 0.55));
    transform: scale(1.04) translateY(-1px);
}

.aird-sitefooter__baseline {
    margin: 0;
    font-family: 'Caveat', cursive;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #F5C76E 0%, #E5A93D 50%, #D49942 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 12px rgba(229, 169, 61, .25));
}
.aird-sitefooter__baseline em {
    font-style: normal;
}
.aird-sitefooter__pitch {
    margin: 0;
    color: rgba(255, 255, 255, .62);
    font-size: 13.5px;
    line-height: 1.65;
    font-weight: 400;
}

/* ----------- Réseaux sociaux ----------- */
.aird-sitefooter__socials {
    display: inline-flex;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.aird-fsocial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(180deg, #1a1424 0%, #100a1b 100%);
    border: 1px solid rgba(229, 169, 61, .28);
    color: var(--aird-or-clair);
    text-decoration: none;
    transition: all .25s ease;
}
.aird-fsocial:hover {
    color: #fff;
    border-color: rgba(229, 169, 61, .75);
    box-shadow: 0 0 18px rgba(229, 169, 61, .22);
    transform: translateY(-2px);
}

/* =========================================================
   Colonnes de liens (droite)
   ========================================================= */
.aird-sitefooter__nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}
.aird-fcol__title {
    margin: 0 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
}
.aird-fcol__dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F5C76E 0%, #E5A93D 100%);
    box-shadow: 0 0 8px rgba(245, 199, 110, .65);
}
.aird-fcol__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.aird-fcol__list li {
    list-style: none;
    margin: 0;
    padding: 0;
    background: none;
}
.aird-fcol__list li::before,
.aird-fcol__list li::marker {
    content: none !important;
    display: none !important;
}
.aird-fcol__link {
    display: inline-block;
    color: rgba(255, 255, 255, .68);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.4;
    padding: 2px 0;
    position: relative;
    transition: color .2s ease, transform .2s ease, padding .2s ease;
}
.aird-fcol__link::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--aird-or-clair);
    opacity: 0;
    transition: opacity .2s ease;
}
.aird-fcol__link:hover {
    color: var(--aird-or-clair);
    padding-left: 12px;
}
.aird-fcol__link:hover::before {
    opacity: 1;
    left: 0;
}

/* =========================================================
   Séparateur or
   ========================================================= */
.aird-sitefooter__sep {
    height: 1px;
    margin: 36px 0 18px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(229, 169, 61, .25) 20%,
        rgba(245, 199, 110, .55) 50%,
        rgba(229, 169, 61, .25) 80%,
        transparent 100%
    );
}

/* =========================================================
   BOTTOM : copyright + crédit
   ========================================================= */
.aird-sitefooter__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(255, 255, 255, .55);
    font-size: 12.5px;
    line-height: 1.4;
}
.aird-sitefooter__copy {
    margin: 0;
}
.aird-sitefooter__copy strong {
    color: var(--aird-or-clair);
    font-weight: 700;
    letter-spacing: 0.02em;
}
.aird-sitefooter__love {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-style: italic;
}
.aird-sitefooter__heart {
    display: inline-flex;
    color: #ff5b78;
    filter: drop-shadow(0 0 6px rgba(255, 91, 120, .55));
    animation: airdHeartBeat 2.4s ease-in-out infinite;
}
@keyframes airdHeartBeat {
    0%, 100% { transform: scale(1); }
    20%      { transform: scale(1.18); }
    40%      { transform: scale(0.96); }
    60%      { transform: scale(1.10); }
    80%      { transform: scale(1); }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
    .aird-sitefooter {
        padding: 48px 32px 22px;
    }
    .aird-sitefooter__top {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .aird-sitefooter__brand {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .aird-sitefooter {
        padding: 40px 20px 22px;
    }
    .aird-sitefooter__nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
    }
    .aird-sitefooter__bottom {
        justify-content: center;
        text-align: center;
    }
    .aird-sitefooter__love {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .aird-sitefooter__nav {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .aird-sitefooter__baseline {
        font-size: 22px;
    }
    .aird-sitefooter__pitch {
        font-size: 13px;
    }
}

/* ============================================================================
 * Bouton scroll-to-top — fixe en bas droite, visible après 400px de scroll.
 * Design : cercle gradient or doré (cohérent design system), icône flèche
 * haut. Fade-in/out doux. Sur mobile, remonté au-dessus de la bottombar.
 * ========================================================================== */
.aird-scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(229, 169, 61, 0.55);
    border-radius: 50%;
    background: linear-gradient(135deg, #F5C76E 0%, #E5A93D 50%, #D49942 100%);
    color: #1a1a2e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(229, 169, 61, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 9000;
}
.aird-scroll-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.aird-scroll-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(229, 169, 61, 0.55),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.aird-scroll-top:active {
    transform: translateY(0);
}
.aird-scroll-top:focus { outline: none; }
.aird-scroll-top:focus-visible {
    outline: 2px solid rgba(245, 217, 138, 0.9);
    outline-offset: 3px;
}
.aird-scroll-top svg {
    pointer-events: none;
}

/* Mobile : la bottombar (.aird-bottombar) est fixée en bas avec une hauteur
   ~64-68px + safe-area iOS. On remonte le scroll-top au-dessus pour ne pas
   qu'il soit caché par la bottombar. */
@media (max-width: 991px) {
    body:has(.aird-bottombar) .aird-scroll-top {
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }
    .aird-scroll-top {
        right: 16px;
        width: 44px;
        height: 44px;
    }
}
