/**
 * CG Couleur et Granulat - Footer Styles
 * Footer layout, widgets, copyright
 *
 * @package CG_Theme
 */

/* ==========================================================================
   FOOTER BASE
   ========================================================================== */

.cg-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Décoration dorée en haut */
.cg-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #C9A227, transparent);
}

/* ==========================================================================
   FOOTER MAIN (Colonnes)
   ========================================================================== */

.cg-footer__main {
    padding: 4rem 0;
}

.cg-footer__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* IMPORTANT: Utiliser .cg-footer__columns car c'est ce que le template génère */
.cg-footer__columns {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
}

/* ==========================================================================
   FOOTER COLONNES
   ========================================================================== */

.cg-footer__column {
    display: flex;
    flex-direction: column;
}

/* Colonne À propos */
.cg-footer__column--about {
    max-width: 350px;
}

.cg-footer__logo {
    margin-bottom: 1.5rem;
}

/* Encapsulation du logo sur fond noir */
.cg-footer__logo .custom-logo-link {
    display: inline-block;
    background: #ffffff;
    padding: 10px 18px;
    border-radius: 12px 4px 12px 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.cg-footer__logo .custom-logo-link:hover {
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
    transform: translateY(-2px);
}

.cg-footer__logo img {
    height: 50px;
    width: auto;
    display: block;
}

.cg-footer__logo-text {
    font-family: var(--cg-font-heading, 'Montserrat', sans-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: block;
}

.cg-footer__logo-text span {
    color: #C9A227;
}

.cg-footer__description {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   RÉSEAUX SOCIAUX
   ========================================================================== */

.cg-footer__social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.cg-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 6px;
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cg-footer__social-link:hover {
    background-color: #C9A227;
    border-color: #C9A227;
    color: #1a1a1a;
    transform: translateY(-3px);
}

/* ==========================================================================
   TITRES & MENUS
   ========================================================================== */

.cg-footer__title {
    font-family: var(--cg-font-heading, 'Montserrat', sans-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: #C9A227;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.cg-footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #C9A227;
}

.cg-footer__menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cg-footer__menu li {
    margin-bottom: 0.75rem;
}

.cg-footer__menu a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding-left: 0;
}

.cg-footer__menu a::before {
    content: '';
    width: 0;
    height: 1px;
    background-color: #C9A227;
    transition: width 0.3s ease;
    position: absolute;
    left: 0;
    top: 50%;
}

.cg-footer__menu a:hover {
    color: #C9A227;
    padding-left: 15px;
}

.cg-footer__menu a:hover::before {
    width: 10px;
}

/* ==========================================================================
   INFOS DE CONTACT
   ========================================================================== */

.cg-footer__contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cg-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cg-footer__contact-item i {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(201, 162, 39, 0.15);
    border-radius: 8px;
    color: #C9A227;
    font-size: 1rem;
}

.cg-footer__contact-item a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cg-footer__contact-item a:hover {
    color: #C9A227;
}

.cg-footer__contact-item span {
    color: #b0b0b0;
}

/* ==========================================================================
   FOOTER BOTTOM (Copyright)
   ========================================================================== */

.cg-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.cg-footer__bottom .cg-footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cg-footer__copyright {
    color: #888888;
    font-size: 0.85rem;
}

.cg-footer__copyright p {
    margin: 0;
}

.cg-footer__copyright a {
    color: #C9A227;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cg-footer__copyright a:hover {
    text-decoration: underline;
}

/* Legal menu */
.cg-footer__legal {
    display: flex;
    gap: 1.5rem;
}

.cg-footer__legal-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

.cg-footer__legal-menu li {
    margin: 0;
}

.cg-footer__legal-menu a {
    color: #888888;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.cg-footer__legal-menu a:hover {
    color: #C9A227;
}

/* Credits */
.cg-footer__credits {
    color: #888888;
    font-size: 0.85rem;
}

.cg-footer__credits p {
    margin: 0;
}

.cg-footer__credits a {
    color: #C9A227;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cg-footer__credits a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */

.cg-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #C9A227;
    color: #1a1a1a;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.cg-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cg-back-to-top:hover {
    background: #d4af37;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
}

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

@media (max-width: 1024px) {
    .cg-footer__columns {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .cg-footer__column--about {
        grid-column: 1 / -1;
        max-width: none;
        text-align: center;
    }
    
    .cg-footer__social {
        justify-content: center;
    }
    
    .cg-footer__title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .cg-footer__main {
        padding: 3rem 0;
    }
    
    .cg-footer__columns {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .cg-footer__column--about {
        margin-bottom: 1rem;
    }
    
    .cg-footer__menu a::before {
        display: none;
    }
    
    .cg-footer__menu a:hover {
        padding-left: 0;
    }
    
    .cg-footer__contact-item {
        justify-content: center;
        text-align: left;
    }
    
    .cg-footer__bottom .cg-footer__container {
        flex-direction: column;
        text-align: center;
    }
    
    .cg-footer__legal,
    .cg-footer__legal-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .cg-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
