/*
--------------------------------------
Footer Psyrates — fond sombre
--------------------------------------
*/

footer ul {
    margin          : 0;
    list-style-type : none;
}

.main-footer__container {
    font-family : 'Montserrat', sans-serif;
    background  : var(--color-bg-dark);
    color       : rgba(255, 255, 255, 0.60);
    position    : relative;
    overflow    : hidden;
}

/* Icône décorative en filigrane (icono_psyrates.svg) */
.main-footer__container::before {
    content            : '';
    position           : absolute;
    left               : -80px;
    top                : 50%;
    transform          : translateY(-50%);
    width              : 500px;
    height             : 500px;
    background-image   : url('../img/icons/icono-psyrates.svg');
    background-repeat  : no-repeat;
    background-size    : contain;
    opacity            : 0.04;
    pointer-events     : none;
    filter             : brightness(0) invert(1);
}

.main-footer__container .main-footer__inner {
    display        : flex;
    flex-direction : column;
    max-width      : 1280px;
    width          : 100%;
    margin         : auto;
    padding        : 80px 1.5rem 40px;
    row-gap        : 0;
    position       : relative;
    z-index        : 1;
}

/*
--------------------------------------
Logo & texte & infos contact
--------------------------------------
*/

.main-footer__container .footer-logo {
    display        : flex;
    flex-direction : column;
    row-gap        : 16px;
}

.main-footer__container .footer-logo .footer-logo__img {
    width     : 100%;
    max-width : 325px;
    filter    : brightness(0) invert(1);
}

.main-footer__container .footer-text {
    font-size   : 14px;
    line-height : 1.7;
    color       : rgba(255, 255, 255, 0.45);
    max-width   : 320px;
    margin-top  : 8px;
}

/* Bloc contact (adresse, téléphone, email) */

.main-footer__container .footer-info {
    margin-top  : 24px;
    display     : flex;
    flex-direction: column;
    gap         : 10px;
}

.main-footer__container .footer-info a,
.main-footer__container .footer-info address {
    display         : flex;
    align-items     : flex-start;
    gap             : 8px;
    font-size       : 13px;
    font-style      : normal;
    color           : rgba(255, 255, 255, 0.55);
    text-decoration : none;
    transition      : color var(--transition-normal);
    line-height     : 1.5;
}

.main-footer__container .footer-info a:hover {
    color : var(--color-highlight);
}

.main-footer__container .footer-info svg {
    flex-shrink : 0;
    margin-top  : 2px;
    width       : 15px;
    height      : 15px;
}

/*
--------------------------------------
Menus liens
--------------------------------------
*/

/* Titre de colonne */
.main-footer__container .footer-links__title {
    padding-bottom : 20px;
}

.main-footer__container .footer-links__title .footer-links__title-text {
    font-size      : 11px;
    font-weight    : 700;
    letter-spacing : 0.12em;
    text-transform : uppercase;
    color          : rgba(255, 255, 255, 0.35);
    line-height    : 1;
}

/* Liens */

.main-footer__container .footer-links__list ul {
    display        : flex;
    flex-direction : column;
    gap            : 8px;
}

.main-footer__container .footer-links__list .footer-centres__accordion {
    gap            : 3px;
}

.main-footer__container .footer-links__list .menu-link {
    display: flex;
    align-items: center;
    column-gap: 5px;
    font-size       : 14px;
    color           : #fff9;
    text-decoration : none;
    transition      : color var(--transition-normal);
}

.main-footer__container .footer-links__list .menu-link:hover,
.main-footer__container .footer-links__list .menu-link:focus {
    color : var(--color-highlight);
}

.main-footer__container .menu-item--parent .menu-link {
    font-size: 12px;
    color: #fff6;
    text-transform: uppercase;
    cursor: default;
}

.main-footer__container .menu-item--parent:hover .menu-link {
    color: #fff6;
}

.main-footer__container .menu-item--child {
    padding-left: 10px;
}

li.menu-item--parent:not(:first-of-type) {
    margin-top: 10px;
}

/*
--------------------------------------
Accordion "Nos centres"
--------------------------------------
*/

.footer-centres__accordion {
    display        : flex;
    flex-direction : column;
}

.footer-centres__dept-btn {
    display         : flex;
    align-items     : center;
    justify-content : space-between;
    gap             : 8px;
    width           : 100%;
    padding         : 9px 0;
    cursor          : pointer;
    font-size       : 14px;
    color           : rgba(255, 255, 255, 0.55);
    background      : none;
    border          : none;
    text-align      : left;
    transition      : color var(--transition-normal, 0.2s ease);
    user-select     : none;
}

.footer-centres__dept-btn:hover {
    color : var(--color-highlight, #2470DB);
}

.footer-centres__chevron {
    flex-shrink : 0;
    color       : rgba(255, 255, 255, 0.3);
    transition  : transform 0.25s ease;
}

.footer-centres__dept-btn[aria-expanded="true"] .footer-centres__chevron {
    transform : rotate(180deg);
}

.footer-centres__villes[hidden] {
    display : none !important;
}

.footer-centres__villes {
    padding        : 2px 0 10px 10px;
    display        : flex;
    flex-direction : column;
    gap            : 6px;
}

.footer-centres__ville-link {
    font-size : 12px;
    color     : rgba(255, 255, 255, 0.38);
}

.footer-centres__ville-link:hover {
    color : var(--color-highlight, #2470DB);
}

/*
--------------------------------------
Copyright
--------------------------------------
*/

.footer-copyright__inner {
    display         : flex;
    align-items     : center;
    justify-content : space-between;
    max-width       : 1280px;
    width           : 100%;
    margin          : 0 auto;
    padding         : 24px 1.5rem;
    border-top      : 1px solid rgba(255, 255, 255, 0.08);
    gap             : 16px;
}

.footer-copyright__text,
.footer-copyright__link {
    display: flex;
    align-items: center;
    font-size   : 11px;
    color       : rgba(255, 255, 255, 0.25);
    transition: all 0.35s ease-in-out;
}

.footer-copyright__link a:hover,
.footer-copyright__link:hover .footer-copyright__text {
    color : var(--color-highlight);
}
