/*--------------------------------------------------------------
# Footer LNCI (toutes les pages)
# Anthracite + accents orange (cohérent avec le header), trame « plan technique »,
# filigrane du nom, colonnes révélées au défilement, accordéons sur mobile.
--------------------------------------------------------------*/

.lnci-footer {
    --f-orange: #fba919;
    --f-orange-dark: #e39400;
    --f-bg: #121315;
    --f-text: rgba(255, 255, 255, .7);
    --f-line: rgba(255, 255, 255, .1);
    --f-ease: cubic-bezier(.2, .7, .2, 1);

    position: relative;
    overflow: hidden;
    padding-top: 88px;
    background: var(--f-bg);
    border-top: 4px solid var(--f-orange);
    color: var(--f-text);
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

/* trame de plan technique */
.lnci-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: url(../images/bgsite.png) center top / 778px auto repeat;
    filter: invert(1);
    opacity: .11;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%);
    mask-image: linear-gradient(180deg, #000, transparent 90%);
}

.lnci-footer__watermark {
    position: absolute;
    right: -1vw;
    bottom: 40px;
    font-family: 'Ubuntu', Arial, sans-serif;
    font-size: clamp(120px, 22vw, 340px);
    font-weight: 700;
    line-height: .8;
    letter-spacing: -.02em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .06);
    pointer-events: none;
    user-select: none;
}

.lnci-footer .container { position: relative; }

.lnci-footer .container::before,
.lnci-footer .container::after { display: none; } /* clearfix Bootstrap */

.lnci-footer a { text-decoration: none; }

.lnci-footer a:focus-visible,
.lnci-footer summary:focus-visible,
.lnci-totop:focus-visible {
    outline: 3px solid var(--f-orange);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Grille ---------- */

.lnci-footer__main {
    display: grid;
    grid-template-columns: minmax(0, 3.4fr) minmax(0, 2fr) minmax(0, 3.2fr) minmax(0, 3.6fr);
    gap: 56px;
    padding-bottom: 72px;
}

/* ---------- Présentation ---------- */

.lnci-footer__logo { display: inline-block; margin-bottom: 22px; }

.lnci-footer__logo img {
    display: block;
    width: auto;
    height: 54px;
    filter: brightness(0) invert(1);
    transition: opacity .25s ease;
}

.lnci-footer__logo:hover img { opacity: .85; }

.lnci-footer__about {
    max-width: 380px;
    margin: 0 0 28px;
    color: var(--f-text);
}

.lnci-footer__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--f-orange);
    font-family: 'Ubuntu', Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #111 !important;
    transition: background-color .25s ease, transform .25s var(--f-ease), box-shadow .25s ease;
}

.lnci-footer__cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-20deg);
    transition: left .6s var(--f-ease);
}

.lnci-footer__cta:hover {
    background: var(--f-orange-dark);
    box-shadow: 0 12px 26px rgba(251, 169, 25, .3);
    transform: translateY(-2px);
}

.lnci-footer__cta:hover::before { left: 120%; }
.lnci-footer__cta svg { transition: transform .25s var(--f-ease); }
.lnci-footer__cta:hover svg { transform: translateX(4px); }

/* ---------- Titres de colonnes ---------- */

.lnci-footer__group { margin: 0; }

.lnci-footer__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 26px !important;
    padding-bottom: 14px;
    font-family: 'Ubuntu', Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #fff;
    list-style: none;
    position: relative;
    cursor: default;
}

.lnci-footer__title::-webkit-details-marker { display: none; }

.lnci-footer__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: var(--f-orange);
}

.lnci-footer__title svg { display: none; }

/* ---------- Liens ---------- */

.lnci-footer .lnci-footer__links {
    margin: 0 !important; /* neutralise les marges de liste héritées du thème */
    padding: 0;
    list-style: none;
}

.lnci-footer__links li { margin: 0 0 11px; }

.lnci-footer__links a {
    position: relative;
    display: inline-block;
    color: var(--f-text) !important;
    transition: color .25s ease, padding-left .3s var(--f-ease);
}

.lnci-footer__links a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--f-orange);
    transition: width .3s var(--f-ease);
}

.lnci-footer__links a:hover,
.lnci-footer__links a:focus-visible,
.lnci-footer__links a[aria-current="page"],
.lnci-footer__links .current-menu-item > a {
    padding-left: 16px;
    color: #fff !important;
}

.lnci-footer__links a:hover::before,
.lnci-footer__links a:focus-visible::before,
.lnci-footer__links a[aria-current="page"]::before,
.lnci-footer__links .current-menu-item > a::before { width: 9px; }

/* ---------- Contact ---------- */

.lnci-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lnci-footer__contact li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.lnci-footer__icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--f-line);
    border-radius: 50%;
    color: var(--f-orange);
    transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

.lnci-footer__contact li:hover .lnci-footer__icon {
    background: var(--f-orange);
    border-color: var(--f-orange);
    color: #111;
}

.lnci-footer__contact a,
.lnci-footer__contact li > span:last-child {
    min-width: 0;
    padding-top: 7px;
    color: #fff !important;
    overflow-wrap: anywhere;
}

.lnci-footer__contact a {
    text-decoration: underline;
    text-decoration-color: rgba(251, 169, 25, .6);
    text-underline-offset: 4px;
    transition: text-decoration-color .25s ease;
}

.lnci-footer__contact a:hover { text-decoration-color: var(--f-orange); }
.lnci-footer__contact li > span:last-child { color: var(--f-text) !important; }

/* ---------- Barre du bas ---------- */

.lnci-footer__bottom {
    position: relative;
    border-top: 1px solid var(--f-line);
}

.lnci-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 22px;
    padding-bottom: 22px;
}

.lnci-footer__copy {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
}

/* ---------- Apparition au défilement ---------- */

.lnci-footer-js .lnci-footer__reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s var(--f-ease);
}

.lnci-footer-js .lnci-footer.is-in .lnci-footer__reveal { opacity: 1; transform: none; }
.lnci-footer-js .lnci-footer.is-in .lnci-footer__reveal:nth-child(2) { transition-delay: .08s; }
.lnci-footer-js .lnci-footer.is-in .lnci-footer__reveal:nth-child(3) { transition-delay: .16s; }
.lnci-footer-js .lnci-footer.is-in .lnci-footer__reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Bouton « haut de page » (anneau de progression) ---------- */

.lnci-totop {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #16171a;
    color: #fff;
    box-shadow: 0 10px 26px rgba(17, 17, 17, .25);
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s cubic-bezier(.2, .7, .2, 1), background-color .25s ease;
}

.lnci-totop.is-visible { opacity: 1; transform: none; }
.lnci-totop:hover { background: #fba919; color: #111; }

.lnci-totop__ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.lnci-totop__ring circle {
    fill: none;
    stroke: rgba(255, 255, 255, .15);
    stroke-width: 2.5;
}

.lnci-totop__ring .lnci-totop__progress {
    stroke: #fba919;
    stroke-dasharray: 138.23;
    stroke-dashoffset: 138.23;
    stroke-linecap: round;
}

.lnci-totop:hover .lnci-totop__progress { stroke: #111; }
.lnci-totop__arrow { position: relative; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.lnci-totop:hover .lnci-totop__arrow { transform: translateY(-2px); }

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
    .lnci-footer__main { gap: 36px; }
}

@media (max-width: 991px) {
    .lnci-footer { padding-top: 64px; }
    .lnci-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 36px; padding-bottom: 56px; }
    .lnci-footer__brand { grid-column: 1 / -1; }
    .lnci-footer__about { max-width: 560px; }
}

@media (max-width: 767px) {
    .lnci-footer { padding-top: 52px; font-size: 15px; }
    .lnci-footer__main { grid-template-columns: 1fr; gap: 0; padding-bottom: 36px; }
    .lnci-footer__brand { padding-bottom: 32px; }
    .lnci-footer__cta { width: 100%; justify-content: center; }

    /* accordéons */
    .lnci-footer__group { border-top: 1px solid var(--f-line); }
    .lnci-footer__group:last-child { border-bottom: 1px solid var(--f-line); }
    .lnci-footer__title { margin: 0 !important; padding: 18px 0; cursor: pointer; }
    .lnci-footer__title::after { display: none; }
    .lnci-footer__title svg { display: block; color: var(--f-orange); transition: transform .3s var(--f-ease); }
    .lnci-footer__group[open] > .lnci-footer__title svg { transform: rotate(180deg); }
    .lnci-footer__group[open] > .lnci-footer__links { padding-bottom: 18px; animation: lnci-footer-in .35s var(--f-ease); }
    .lnci-footer__title--static { cursor: default; }
    .lnci-footer__group--contact .lnci-footer__contact { padding-bottom: 22px; }
    .lnci-footer__links li { margin-bottom: 4px; }
    .lnci-footer__links a { padding: 6px 0; }
    .lnci-footer__links a:hover { padding-left: 16px; }
    .lnci-footer__bottom-inner { justify-content: center; text-align: center; padding-bottom: 88px; } /* place pour le bouton haut de page */
    .lnci-footer__watermark { bottom: 70px; }
    .lnci-totop { right: 16px; bottom: 16px; width: 48px; height: 48px; }
}

@keyframes lnci-footer-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .lnci-footer *,
    .lnci-footer *::before,
    .lnci-totop,
    .lnci-totop * {
        transition: none !important;
        animation: none !important;
    }
    .lnci-footer-js .lnci-footer__reveal { opacity: 1; transform: none; }
}
