/**
 * FOOTER PREMIUM - RAUCIMS & PARTNERS
 * Fichier CSS dédié exclusivement au footer
 * Charte : Orange principal / Bleu marine secondaire / Blanc & Noir
 * Style : Corporate Premium - Moderne & Élégant
 * Cohérent avec header.css
 */

/* ========================================================================
   VARIABLES & CONFIGURATION
   ======================================================================== */

:root {
    --raucims-orange: #FF6B35;
    --raucims-orange-hover: #FF8555;
    --raucims-orange-dark: #E65A2E;
    --raucims-blue-marine: #1A2E4A;
    --raucims-blue-dark: #0F1A2E;
    --raucims-blue-light: #2C4A6F;
    --raucims-white: #FFFFFF;
    --raucims-black: #0A0A0A;
    --raucims-gray-light: #F8F9FA;
    --raucims-gray-medium: #E0E4E8;
    --raucims-gray-dark: #6C757D;
    --raucims-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================================================
   CONTENEUR FOOTER INDÉPENDANT
   ======================================================================== */

.boxed-footer {
    position: relative;
    background: var(--raucims-white);
}

/* ========================================================================
   FOOTER PRINCIPAL - Zone Widgets
   ======================================================================== */

.footer.widget-footer {
    background: linear-gradient(135deg, var(--raucims-blue-marine) 0%, var(--raucims-blue-dark) 100%);
    padding: 50px 0 35px;
    position: relative;
    overflow: hidden;
}

/* Effet overlay subtil pour profondeur */
.footer.widget-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--raucims-orange), transparent);
}

/* Container footer */
.footer.widget-footer .container {
    position: relative;
    z-index: 2;
}

/* ========================================================================
   WIDGETS - Structure générale
   ======================================================================== */

.footer.widget-footer .row {
    gap: 30px 0;
}

/* Colonnes widgets */
.footer.widget-footer [class*="col-"] {
    margin-bottom: 0;
}

/* Widgets individuels */
.footer.widget-footer .widget-logo,
.footer.widget-footer .widget-out-link,
.footer.widget-footer .widget-recent-new,
.footer.widget-footer .widget-letter {
    padding: 0;
}

/* ========================================================================
   WIDGET 1 - LOGO & INFORMATIONS
   ======================================================================== */

.footer.widget-footer .widget-logo {
    padding-right: 20px;
}

/* Logo footer */
.footer.widget-footer #logo-footer {
    margin-bottom: 20px;
}

.footer.widget-footer #logo-footer img {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: var(--raucims-transition);
}

.footer.widget-footer #logo-footer a:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 107, 53, 0.6));
    transform: scale(1.02);
}

/* Texte descriptif */
.footer.widget-footer .widget-logo p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    /* font-family définie dans typography.css */
}

/* Liste informations contact */
.footer.widget-footer .flat-information {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer.widget-footer .flat-information li {
    display: flex;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    transition: var(--raucims-transition);
}

.footer.widget-footer .flat-information li:last-child {
    margin-bottom: 0;
}

.footer.widget-footer .flat-information li i {
    color: var(--raucims-orange);
    font-size: 16px;
    margin-right: 12px;
    margin-top: 2px;
    min-width: 16px;
    transition: var(--raucims-transition);
}

.footer.widget-footer .flat-information li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--raucims-transition);
}

.footer.widget-footer .flat-information li:hover a {
    color: var(--raucims-orange);
    transform: translateX(3px);
}

.footer.widget-footer .flat-information li:hover i {
    color: var(--raucims-orange-hover);
    transform: scale(1.15);
}

/* ========================================================================
   WIDGET 2 - LIENS DE NAVIGATION
   ======================================================================== */

.footer.widget-footer .widget-out-link .widget-title {
    color: var(--raucims-white);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 12px;
    position: relative;
    /* font-family définie dans typography.css (Playfair Display pour widget-title) */
    letter-spacing: 0.3px;
}

.footer.widget-footer .widget-out-link .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--raucims-orange);
    border-radius: 2px;
}

/* Colonnes de liens */
.footer.widget-footer .widget-out-link .one-half {
    float: left;
    width: 50%;
    padding: 0;
}

.footer.widget-footer .widget-out-link ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer.widget-footer .widget-out-link li {
    margin-bottom: 10px;
}

.footer.widget-footer .widget-out-link li:last-child {
    margin-bottom: 0;
}

.footer.widget-footer .widget-out-link li a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    text-decoration: none;
    transition: var(--raucims-transition);
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 0;
}

.footer.widget-footer .widget-out-link li a::before {
    content: '\f105';
    font-family: 'FontAwesome';
    margin-right: 8px;
    color: var(--raucims-orange);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--raucims-transition);
}

.footer.widget-footer .widget-out-link li a:hover {
    color: var(--raucims-orange);
    padding-left: 8px;
}

.footer.widget-footer .widget-out-link li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================================================
   WIDGET 3 - ARTICLES RÉCENTS
   ======================================================================== */

.footer.widget-footer .widget-recent-new .widget-title {
    color: var(--raucims-white);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 12px;
    position: relative;
    /* font-family définie dans typography.css (Playfair Display pour widget-title) */
    letter-spacing: 0.3px;
}

.footer.widget-footer .widget-recent-new .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--raucims-orange);
    border-radius: 2px;
}

.footer.widget-footer .popular-new {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer.widget-footer .popular-new li {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer.widget-footer .popular-new li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.footer.widget-footer .popular-new .text h6 {
    margin: 0 0 6px 0;
}

.footer.widget-footer .popular-new .text h6 a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--raucims-transition);
    line-height: 1.5;
}

.footer.widget-footer .popular-new .text h6 a:hover {
    color: var(--raucims-orange);
}

.footer.widget-footer .popular-new .text span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-style: italic;
}

/* ========================================================================
   WIDGET 4 - NEWSLETTER
   ======================================================================== */

.footer.widget-footer .widget-letter .widget-title {
    color: var(--raucims-white);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 12px;
    position: relative;
    /* font-family définie dans typography.css (Playfair Display pour widget-title) */
    letter-spacing: 0.3px;
}

.footer.widget-footer .widget-letter .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--raucims-orange);
    border-radius: 2px;
}

.footer.widget-footer .widget-letter .info-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Formulaire newsletter */
.footer.widget-footer .flat-mailchimp {
    position: relative;
}

.footer.widget-footer .flat-mailchimp .field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer.widget-footer .flat-mailchimp input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--raucims-white);
    font-size: 14px;
    /* font-family définie dans typography.css (Roboto pour inputs) */
    transition: var(--raucims-transition);
    backdrop-filter: blur(10px);
}

.footer.widget-footer .flat-mailchimp input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer.widget-footer .flat-mailchimp input[type="email"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--raucims-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

/* Bouton S'abonner */
.footer.widget-footer .subscribe-submit {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--raucims-orange) 0%, var(--raucims-orange-dark) 100%);
    border: none;
    border-radius: 8px;
    color: var(--raucims-white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--raucims-transition);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    /* font-family définie dans typography.css (Poppins pour boutons) */
}

.footer.widget-footer .subscribe-submit:hover {
    background: linear-gradient(135deg, var(--raucims-orange-hover) 0%, var(--raucims-orange) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.footer.widget-footer .subscribe-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* ========================================================================
   BOTTOM BAR - Copyright & Réseaux Sociaux
   ======================================================================== */

.bottom {
    background: var(--raucims-blue-dark);
    padding: 18px 0;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
}

/* Copyright */
.bottom .copyright p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
    /* font-family définie dans typography.css */
}

.bottom .copyright a {
    color: var(--raucims-orange);
    text-decoration: none;
    transition: var(--raucims-transition);
    font-weight: 500;
}

.bottom .copyright a:hover {
    color: var(--raucims-orange-hover);
    text-decoration: underline;
}

/* Container droite du footer (bouton admin + réseaux sociaux) */
.bottom .footer-right-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

/* Bouton connexion administrateur - Style discret */
.bottom .btn-admin-login {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: var(--raucims-transition);
    /* font-family définie dans typography.css */
    white-space: nowrap;
}

.bottom .btn-admin-login:hover {
    background: rgba(255, 107, 53, 0.08);
    border-color: var(--raucims-orange);
    color: var(--raucims-orange);
}

.bottom .btn-admin-login:active {
    background: rgba(255, 107, 53, 0.12);
}

/* Réseaux sociaux - Style premium circulaire */
.bottom .social-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bottom .social-links li {
    margin: 0;
}

.bottom .social-links li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--raucims-orange);
    border-radius: 50%;
    color: var(--raucims-orange);
    font-size: 16px;
    text-decoration: none;
    transition: var(--raucims-transition);
    backdrop-filter: blur(10px);
}

.bottom .social-links li a:hover {
    background: var(--raucims-orange);
    border-color: var(--raucims-orange);
    color: var(--raucims-white);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.bottom .social-links li a:active {
    transform: translateY(-2px) scale(1.05);
}

/* ========================================================================
   BOUTON GO TO TOP
   ======================================================================== */

.go-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--raucims-orange) 0%, var(--raucims-orange-dark) 100%);
    border: 2px solid var(--raucims-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--raucims-white);
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--raucims-transition);
    z-index: 9998;
    box-shadow: 0 6px 20px rgba(26, 46, 74, 0.3);
}

.go-top.active {
    opacity: 1;
    visibility: visible;
}

.go-top:hover {
    background: linear-gradient(135deg, var(--raucims-orange-hover) 0%, var(--raucims-orange) 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.5);
}

.go-top:active {
    transform: translateY(-2px) scale(1.05);
}

.go-top i {
    transition: var(--raucims-transition);
}

.go-top:hover i {
    transform: translateY(-3px);
}

/* ========================================================================
   RESPONSIVE - TABLETTE (max-width: 991px)
   ======================================================================== */

@media (max-width: 991px) {
    .footer.widget-footer {
        padding: 45px 0 30px;
    }

    .footer.widget-footer .widget-logo,
    .footer.widget-footer .widget-out-link,
    .footer.widget-footer .widget-recent-new,
    .footer.widget-footer .widget-letter {
        margin-bottom: 30px;
    }

    .footer.widget-footer [class*="col-lg-3"] {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .bottom {
        padding: 16px 0;
    }

    .bottom .copyright {
        text-align: center;
        margin-bottom: 16px;
    }

    .bottom .footer-right-content {
        flex-direction: column;
        justify-content: center;
        gap: 16px;
    }

    .bottom .btn-admin-login {
        font-size: 11px;
        padding: 5px 12px;
    }

    .bottom .social-links {
        justify-content: center;
    }

    .go-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
}

/* ========================================================================
   RESPONSIVE - MOBILE (max-width: 767px)
   ======================================================================== */

@media (max-width: 767px) {
    .footer.widget-footer {
        padding: 40px 0 28px;
    }

    .footer.widget-footer .widget-title {
        font-size: 16px;
        margin-bottom: 18px;
        padding-bottom: 10px;
    }

    .footer.widget-footer [class*="col-lg-3"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .footer.widget-footer .widget-logo,
    .footer.widget-footer .widget-out-link,
    .footer.widget-footer .widget-recent-new,
    .footer.widget-footer .widget-letter {
        margin-bottom: 25px;
    }

    .footer.widget-footer .widget-out-link .one-half {
        width: 100%;
        float: none;
        margin-bottom: 12px;
    }

    .bottom {
        padding: 14px 0;
        text-align: center;
    }

    .bottom .copyright {
        margin-bottom: 14px;
    }

    .bottom .copyright p {
        font-size: 13px;
    }

    .bottom .footer-right-content {
        flex-direction: column;
        gap: 14px;
    }

    .bottom .btn-admin-login {
        font-size: 11px;
        padding: 5px 12px;
    }

    .bottom .social-links {
        justify-content: center;
        gap: 10px;
    }

    .bottom .social-links li a {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .go-top {
        width: 42px;
        height: 42px;
        bottom: 15px;
        right: 15px;
        font-size: 16px;
    }
}

/* ========================================================================
   RESPONSIVE - PETIT MOBILE (max-width: 480px)
   ======================================================================== */

@media (max-width: 480px) {
    .footer.widget-footer {
        padding: 35px 0 25px;
    }

    .footer.widget-footer #logo-footer img {
        max-width: 150px;
    }

    .footer.widget-footer .widget-logo p,
    .footer.widget-footer .flat-information li,
    .footer.widget-footer .widget-out-link li a,
    .footer.widget-footer .widget-letter .info-text {
        font-size: 13px;
    }

    .footer.widget-footer .flat-mailchimp input[type="email"],
    .footer.widget-footer .subscribe-submit {
        padding: 10px 14px;
        font-size: 13px;
    }

    .bottom {
        padding: 12px 0;
    }

    .bottom .copyright p {
        font-size: 12px;
    }

    .bottom .btn-admin-login {
        font-size: 10px;
        padding: 4px 10px;
    }

    .bottom .social-links li a {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .go-top {
        width: 40px;
        height: 40px;
        bottom: 12px;
        right: 12px;
        font-size: 15px;
    }
}

/* ========================================================================
   CORRECTIONS SPÉCIFIQUES - Classes utilitaires
   ======================================================================== */

.footer.widget-footer .reponsive-mb30 {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .footer.widget-footer .reponsive-mb30 {
        margin-bottom: 30px;
    }
}

/* Clearfix pour colonnes flottantes */
.footer.widget-footer .clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* ========================================================================
   AMÉLIORATIONS ACCESSIBILITÉ
   ======================================================================== */

.footer.widget-footer a:focus-visible,
.bottom a:focus-visible,
.go-top:focus-visible {
    outline: 3px solid var(--raucims-orange);
    outline-offset: 3px;
    border-radius: 4px;
}

.footer.widget-footer button:focus-visible {
    outline: 3px solid var(--raucims-orange);
    outline-offset: 3px;
}

/* Réduction des animations pour préférences utilisateur */
@media (prefers-reduced-motion: reduce) {
    .footer.widget-footer *,
    .footer.widget-footer *::before,
    .footer.widget-footer *::after,
    .bottom *,
    .bottom *::before,
    .bottom *::after,
    .go-top,
    .go-top * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* Brochure modal (global footer) */
#globalBrochureModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
#globalBrochureModal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}
#globalBrochureModal .modal-content {
    position: relative;
    background: #fff;
    padding: 24px;
    width: 100%;
    max-width: 520px;
    z-index: 2;
    border-radius: 8px;
}
