/* ====================================
   DECISIOS CUSTOM FOOTER STYLES - MODERN DESIGN
==================================== */

/* Variables CSS pour les couleurs Decisios */
:root {
    --decisios-violet: #220660;
    --decisios-pink: #f91e5a;
    --decisios-cyan: #5ce1e6;
    --decisios-gradient: linear-gradient(135deg, var(--decisios-violet) 0%, var(--decisios-pink) 50%, var(--decisios-cyan) 100%);
    --footer-bg: #ffffff;
    --footer-text: #2c3e50;
    --footer-text-light: #7f8c8d;
    --footer-text-muted: #95a5a6;
    --footer-border: #ecf0f1;
}

/* Masquer le footer Astra existant */
.site-footer,
#colophon,
.ast-footer-wrap,
.ast-small-footer,
.ast-footer-above-ground,
.ast-footer-below-ground {
    display: none !important;
}

/* Container principal du footer */
.decisios-custom-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    position: relative;
    z-index: 10;
    margin-top: auto;
    box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Bordure supérieure avec gradient */
.footer-top-border {
    height: 4px;
    background: var(--decisios-gradient);
    width: 100%;
}

/* Container principal */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: flex-start;
}

/* Contenu principal du footer */
.footer-main-content {
    padding: 60px 0 40px;
}

/* Sections du footer */
.footer-section {
    flex: 1;
    min-width: 280px;
}

/* Section gauche - Logo et description */
.footer-left {
    flex: 1.2;
    max-width: 350px;
}

.footer-logo img {
    max-height: 160px;
    width: auto;
    margin-bottom: 4px;
    filter: brightness(0.8);
    transition: all 0.3s ease;
}

.footer-logo h3 {
    background: var(--decisios-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 24px 0;
    letter-spacing: -1px;
}

.footer-description {
    color: var(--footer-text-light);
    font-size: 16px;
    line-height: 1.7;
    text-align: justify;
    margin: 0;
    font-weight: 400;
}

/* Section centre - Contact avec horaires */
.footer-center {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;

    /* Bordure dégradée en bas */
    border-top: 6px solid transparent;
    border-image: linear-gradient(90deg, #220660, #5e1b9e, #22d3ee) 1;
    border-image-slice: 1;

    padding: 30px 25px;
    border-radius: 0 0 25px 25px;
    position: relative;

    /* Ombre subtile */
    box-shadow: 0 4px 20px rgba(34, 6, 96, 0.08);
}


.footer-center h4 {
    color: var(--decisios-violet);
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 30px 0;
    position: relative;
    text-align: center;
}

.footer-center h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--decisios-gradient);
    border-radius: 1px;
}

.contact-schedule {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 220px;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--footer-border);
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-day {
    font-weight: 500;
    color: var(--footer-text);
    font-size: 15px;
}

.schedule-time {
    color: var(--footer-text-light);
    font-size: 15px;
    font-weight: 400;
}

.contact-button {
background: white;
    background-image: linear-gradient(white, white), linear-gradient(135deg, #220660 0%, #f91e5a 50%, #5ce1e6 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border: 3px solid transparent;
    border-radius: 25px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s 
ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #220660;
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;

    border-radius: 18px 18px 0 0;
}

.contact-button:hover {
background: white;
    background-image: linear-gradient(white, white), linear-gradient(135deg, #220660 0%, #f91e5a 50%, #5ce1e6 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border: 3px solid transparent;
    border-radius: 25px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s 
ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #220660;
}

/* Section droite - Informations de contact */
.footer-right h4 {
    color: var(--decisios-violet);
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 30px 0;
    position: relative;
    padding-bottom: 8px;
}

.footer-right h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--decisios-gradient);
    border-radius: 1px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: transparent;
    border: 2px solid var(--footer-border);
    border-top: 3px solid;
    border-top-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(34, 6, 96, 0.08);
    position: relative;
    transition: all 0.3s ease;
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--decisios-gradient);
    border-radius: 12px 12px 0 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    color: var(--decisios-violet);
    stroke-width: 2;
    transition: all 0.3s ease;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.contact-label {
    color: var(--footer-text-muted);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    color: var(--footer-text);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    word-break: break-word;
}

.contact-value:hover {
    background: var(--decisios-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ligne de séparation */
.footer-separator {
    height: 1px;
    background: var(--decisios-gradient);
    opacity: 0.2;
    margin: 0 20px;
}

/* Liens légaux */
.footer-legal {
    padding: 25px 0;
    border-bottom: 1px solid var(--footer-border);
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

.legal-links a {
    color: var(--footer-text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.legal-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--decisios-gradient);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.legal-links a:hover {
    color: var(--decisios-violet);
}

.legal-links a:hover::after {
    width: 100%;
}

/* Bas du footer */
.footer-bottom {
    padding: 20px 0;
    position: relative;
    overflow: hidden;
    background: rgba(34, 6, 96, 0.02);
}

.footer-bottom-content {
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--footer-text-light);
    font-size: 14px;
    font-weight: 400;
}

.footer-bottom strong {
    background: var(--decisios-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Décoration gradient en bas à gauche */
.footer-gradient-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 4px;
    background: var(--decisios-gradient);
    opacity: 0.6;
}

.footer-gradient-decoration::after {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 80px;
    height: 12px;
    background: linear-gradient(90deg, rgba(34, 6, 96, 0.1) 0%, transparent 100%);
    border-radius: 0 6px 0 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.decisios-custom-footer {
    animation: fadeInUp 0.8s ease-out;
}

.footer-section {
    animation: slideIn 0.6s ease-out forwards;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }

/* Effets au survol */
.contact-item:hover .contact-icon {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(34, 6, 96, 0.15);
    border-color: rgba(34, 6, 96, 0.1);
}

.contact-item:hover .contact-icon svg {
    color: var(--decisios-pink);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 968px) {
    .footer-container {
        gap: 40px;
    }
    
    .legal-links {
        gap: 20px;
    }
    
    /* Section Contact - Tablette */
    .footer-center {
        padding: 25px 20px;
        border-radius: 0 0 20px 20px;
    }
    
    .footer-center::after {
        border-radius: 0 0 20px 20px;
    }
    
    .contact-button {
        padding: 12px 28px;
        font-size: 13px;
    }
    
    /* Section Informations - Tablette */
    .footer-right h4 {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    .contact-item {
        gap: 14px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon::before {
        border-radius: 10px 10px 0 0;
    }
    
    .contact-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .contact-value {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .footer-main-content {
        padding: 50px 0 30px;
    }
    
    .footer-section {
        min-width: auto;
        flex: none;
        max-width: none;
    }
    
    .footer-left {
        order: 1;
    }
    
    .footer-center {
        order: 2;
        /* Section Contact - Mobile */
        padding: 20px 16px;
        border-radius: 0 0 18px 18px;
        margin: 0 10px;
        width: calc(100% - 20px);
        max-width: 400px;
        align-self: center;
    }
    
    .footer-center::after {
        border-radius: 0 0 18px 18px;
    }
    
    .footer-right {
        order: 3;
        /* Section Informations - Mobile */
        max-width: 400px;
        align-self: center;
        width: 100%;
    }
    
    .footer-right h4 {
        font-size: 20px;
        margin-bottom: 25px;
        text-align: center;
    }
    
    .footer-right h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-item {
        justify-content: flex-start;
        text-align: left;
        max-width: 350px;
        margin: 0 auto;
        gap: 16px;
    }
    
    .contact-icon {
        width: 42px;
        height: 42px;
    }
    
    .contact-icon::before {
        border-radius: 11px 11px 0 0;
    }
    
    .contact-icon svg {
        width: 19px;
        height: 19px;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 16px;
    }
    
    /* Contact schedule sur mobile */
    .contact-schedule {
        max-width: 280px;
        margin-bottom: 25px;
    }
    
    .schedule-item {
        padding: 10px 0;
        font-size: 14px;
    }
    
    .contact-button {
        padding: 12px 24px;
        font-size: 13px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 16px;
    }
    
    .footer-main-content {
        padding: 40px 0 25px;
    }
    
    .footer-center h4,
    .footer-right h4 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .footer-separator {
        margin: 0 16px;
    }
    
    .footer-gradient-decoration {
        width: 100px;
        height: 3px;
    }
    
    /* Section Contact - Petit mobile */
    .footer-center {
        padding: 18px 12px;
        border-radius: 0 0 15px 15px;
        margin: 0 8px;
        width: calc(100% - 16px);
        max-width: 320px;
    }
    
    .footer-center::after {
        border-radius: 0 0 15px 15px;
    }
    
    .footer-center h4 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .contact-schedule {
        max-width: 250px;
        margin-bottom: 20px;
        gap: 12px;
    }
    
    .schedule-item {
        padding: 8px 0;
        font-size: 13px;
    }
    
    .schedule-day,
    .schedule-time {
        font-size: 13px;
    }
    
    .contact-button {
        padding: 10px 20px;
        font-size: 12px;
        border-radius: 18px;
        letter-spacing: 0.3px;
    }
    
    /* Section Informations - Petit mobile */
    .footer-right {
        max-width: 320px;
        padding: 0 8px;
    }
    
    .contact-info {
        gap: 20px;
    }
    
    .contact-item {
        max-width: 300px;
        gap: 14px;
    }
    
    .contact-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
    
    .contact-icon::before {
        border-radius: 10px 10px 0 0;
    }
    
    .contact-icon svg {
        width: 17px;
        height: 17px;
    }
    
    .contact-label {
        font-size: 12px;
    }
    
    .contact-value {
        font-size: 14px;
        line-height: 1.4;
    }
}

/* Très petits écrans */
@media (max-width: 360px) {
    .footer-center {
        padding: 16px 10px;
        border-radius: 0 0 12px 12px;
        margin: 0 5px;
        width: calc(100% - 10px);
    }
    
    .footer-center::after {
        border-radius: 0 0 12px 12px;
    }
    
    .footer-center h4 {
        font-size: 16px;
        margin-bottom: 18px;
    }
    
    .contact-schedule {
        max-width: 220px;
        margin-bottom: 18px;
        gap: 10px;
    }
    
    .schedule-item {
        padding: 6px 0;
        font-size: 12px;
    }
    
    .schedule-day,
    .schedule-time {
        font-size: 12px;
    }
    
    .contact-button {
        padding: 9px 18px;
        font-size: 11px;
        border-radius: 16px;
    }
    
    /* Section Informations - Très petit mobile */
    .footer-right {
        max-width: 280px;
        padding: 0 5px;
    }
    
    .footer-right h4 {
        font-size: 16px;
        margin-bottom: 18px;
    }
    
    .contact-info {
        gap: 18px;
    }
    
    .contact-item {
        max-width: 270px;
        gap: 12px;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
        border-radius: 8px;
    }
    
    .contact-icon::before {
        border-radius: 8px 8px 0 0;
    }
    
    .contact-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .contact-label {
        font-size: 11px;
        letter-spacing: 0.3px;
    }
    
    .contact-value {
        font-size: 13px;
        line-height: 1.3;
    }
}

/* Mode sombre support */
@media (prefers-color-scheme: dark) {
    :root {
        --footer-bg: #ffffff;
        --footer-text: #2c3e50;
        --footer-text-light: #7f8c8d;
        --footer-text-muted: #95a5a6;
        --footer-border: #ecf0f1;
    }
}

/* Print styles */
@media print {
    .decisios-custom-footer {
        background: white !important;
        color: black !important;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .footer-top-border,
    .footer-separator,
    .footer-gradient-decoration {
        background: #333333 !important;
    }
    
    .contact-button {
        background: #333333 !important;
        color: white !important;
    }
}