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

/* ====================================================
   FOOTER - VERSION FINALE PROPRE
   ICÔNE INLINE DANS LE TEXTE (Téléphone & Nos Sites)
   BLOC ENTIER CENTRÉ, MÊME SUR PLUSIEURS LIGNES
   3 COLONNES ÉQUILIBRÉES POUR UN CENTRAGE CORRECT
===================================================== */

.CR-footer {
    width: 100%;
    background: #0a0a0a;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    font-family: Arial, sans-serif;
}

/* ====================================================
   LIGNE 1 : NOS UNIVERS | TÉLÉPHONE | NOS SITES
   AVEC BORDURE ANIMÉE EN HAUT UNIQUEMENT
===================================================== */

.CR-footer-top-line1 {
    width: 100%;
    padding: 20px 3% 15px;
    box-sizing: border-box;
    position: relative;
    background: #0a0a0a;
}

.CR-footer-top-line1::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 0.5px;
    background: #FFD600;
    animation: slideLeftToRight 3s ease-in-out infinite;
}

@keyframes slideLeftToRight {
    0% {
        left: -100%;
        width: 100%;
    }

    50% {
        left: 0;
        width: 100%;
    }

    100% {
        left: 100%;
        width: 100%;
    }
}

.CR-footer-container-line1 {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1.1fr;
    gap: 10px;
    align-items: start;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.CR-footer-univers,
.CR-footer-phone,
.CR-footer-sites {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Titres */
.CR-footer-univers h4,
.CR-footer-phone h4,
.CR-footer-sites h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 10px;
    position: relative;
    padding-bottom: 6px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Aldrich', sans-serif;
}

.CR-footer-univers h4::after,
.CR-footer-phone h4::after,
.CR-footer-sites h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #FFD600;
    border-radius: 1px;
}

.CR-footer-univers ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    width: 100%;
}

.CR-footer-univers ul li {
    width: 100%;
    text-align: center;
}

.CR-footer-univers ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
}

.CR-footer-univers ul li a:hover {
    color: #FFD600;
    transform: translateY(-2px);
}

/* ====================================================
   TÉLÉPHONE — bloc centré, icône inline dans le texte
===================================================== */

.CR-footer-phone-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.CR-footer-phone-links a {
    display: block;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.5;
    transition: color 0.3s ease, transform 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.CR-footer-phone-links a i {
    color: #FFD600;
    font-size: 0.95rem;
    margin-right: 6px;
    vertical-align: middle;
}

.CR-footer-phone-links a:hover {
    color: #FFD600;
    transform: translateY(-2px);
}

.CR-footer-phone-links a:hover i {
    color: #FFD600;
}

/* ====================================================
   NOS SITES — bloc centré, icône inline dans le texte
   L'icône fait partie du flux : le centrage reste correct
   même quand le texte passe sur 2 lignes.
===================================================== */

.CR-footer-sites-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.5;
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    max-width: 600px;
}

.CR-footer-address-link {
    display: block;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.5;
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.CR-footer-address-link i {
    color: #FFD600;
    font-size: 0.95rem;
    margin-right: 4px;
    vertical-align: middle;
}

.CR-footer-address-link strong {
    color: #FFD600;
}

.CR-footer-address-link:hover {
    color: #FFD600;
    transform: translateY(-2px);
}

.CR-footer-address-link:hover strong {
    color: #FFD600;
}

/* ====================================================
   LIGNE 2 : DESCRIPTION
===================================================== */

.CR-footer-description-line {
    width: 100%;
    padding: 15px 5%;
    box-sizing: border-box;
    position: relative;
    background: #0a0a0a;
}

.CR-footer-description-line::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 0.5px;
    background: #FFD600;
    animation: slideRightToLeft 3s ease-in-out infinite;
}

@keyframes slideRightToLeft {
    0% {
        right: -100%;
        width: 100%;
    }

    50% {
        right: 0;
        width: 100%;
    }

    100% {
        right: 100%;
        width: 100%;
    }
}

.CR-footer-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 auto;
    max-width: 700px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

/* ====================================================
   LIGNE 3 : RÉSEAUX SOCIAUX
===================================================== */

.CR-footer-social-line {
    width: 100%;
    padding: 12px 5%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    background: #0a0a0a;
}

.CR-footer-social {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.CR-social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin: 0;
    position: relative;
    line-height: 1;
}

.CR-social-link:hover {
    background: #FFD600;
    border-color: #FFD600;
    color: #111;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 214, 0, 0.2);
}

.CR-social-link i,
.CR-social-link svg {
    font-size: 17px !important;
    width: 17px !important;
    height: 17px !important;
    line-height: 17px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ====================================================
   BARRE DU BAS
===================================================== */

.CR-footer-bottom {
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    text-align: center;
}

.CR-footer-bottom span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: bold;
    margin: 0;
    display: block;
    font-family: 'Montserrat', sans-serif;
}

/* ====================================================
   MODAL MAP
===================================================== */

.CR-map-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.CR-map-modal-overlay.active {
    display: flex;
}

.CR-map-modal {
    background: #111;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
    position: relative;
    border: 1px solid rgba(255, 214, 0, 0.3);
}

.CR-map-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #0a0a0a;
    border-bottom: 2px solid #FFD600;
}

.CR-map-modal-header h3 {
    color: #FFD600;
    font-family: 'Aldrich', sans-serif;
    font-size: 1.1rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.CR-map-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.CR-map-modal-close:hover {
    color: #FFD600;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.CR-map-modal-body {
    position: relative;
    width: 100%;
    height: 500px;
}

.CR-map-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@media (max-width: 768px) {
    .CR-footer-top-line1 {
        padding: 15px 2% 10px;
    }

    .CR-footer-container-line1 {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px;
        padding: 0 10px;
    }

    .CR-footer-univers,
    .CR-footer-phone,
    .CR-footer-sites {
        padding: 0 5px;
    }

    .CR-footer-univers h4,
    .CR-footer-phone h4,
    .CR-footer-sites h4 {
        font-size: 0.8rem;
        margin-bottom: 8px;
        padding-bottom: 5px;
        letter-spacing: 0.3px;
    }

    /* Tailles unifiées entre Notre Univers / Téléphone / Nos Sites */
    .CR-footer-univers ul li a,
    .CR-footer-phone-links a,
    .CR-footer-address-link {
        font-size: 0.75rem;
    }

    .CR-footer-phone-links a i,
    .CR-footer-address-link i {
        font-size: 0.8rem;
    }

    .CR-footer-sites-content {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 15px !important;
        align-items: start !important;
        justify-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 5px !important;
    }

    .CR-footer-site-wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .CR-footer-description-line {
        padding: 12px 3%;
    }

    .CR-footer-desc {
        font-size: 0.8rem;
    }

    .CR-footer-social-line {
        padding: 10px 3%;
    }

    /* Modal mobile fullscreen */
    .CR-map-modal {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        border: none;
    }

    .CR-map-modal-body {
        height: calc(100vh - 60px);
    }
}

@media (max-width: 480px) {
    .CR-footer-top-line1 {
        padding: 12px 2% 8px;
    }

    .CR-footer-container-line1 {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px;
        padding: 0 5px;
    }

    .CR-footer-univers,
    .CR-footer-phone,
    .CR-footer-sites {
        padding: 0 3px;
    }

    .CR-footer-univers h4,
    .CR-footer-phone h4,
    .CR-footer-sites h4 {
        font-size: 0.7rem;
        margin-bottom: 6px;
        padding-bottom: 4px;
    }

    .CR-footer-univers ul li a,
    .CR-footer-phone-links a,
    .CR-footer-address-link {
        font-size: 0.65rem;
    }

    .CR-footer-phone-links a i,
    .CR-footer-address-link i {
        font-size: 0.7rem;
    }

    .CR-footer-sites-content {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        align-items: start !important;
        justify-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 3px !important;
    }

    .CR-footer-site-wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .CR-footer-description-line {
        padding: 10px 3%;
    }

    .CR-footer-desc {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .CR-footer-social-line {
        padding: 8px 3%;
    }

    .CR-social-link {
        width: 32px;
        height: 32px;
    }

    .CR-social-link i,
    .CR-social-link svg {
        font-size: 14px !important;
        width: 14px !important;
        height: 14px !important;
        line-height: 14px !important;
    }

    .CR-footer-bottom {
        padding: 0 !important;
        margin: 0 !important;
    }

    .CR-footer-bottom span {
        font-size: 0.7rem;
    }
}

/* ====================================================
   PC : blocs centrés, icône inline, grille équilibrée
===================================================== */

@media (min-width: 769px) {
    .CR-footer-container-line1 {
        grid-template-columns: 1fr 1fr 1.1fr;
    }

    .CR-footer-sites {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .CR-footer-sites-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .CR-footer-site-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }

    .CR-footer-address-link,
    .CR-footer-phone-links a {
        display: block;
        width: auto;
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .CR-footer-address-link i,
    .CR-footer-phone-links a i {
        color: #FFD600;
    }
}