/* ==========================================================================
   PROVAPEUR - FOOTER COMPONENT STYLES
   Uniformisé pour tout le site (ordinateur & mobile)
   ========================================================================== */

:root {
    --footer-bg: #0b1120;
    --footer-bottom-bg: #060913;
    --footer-text: #e2e8f0;
    --footer-muted: #cbd5e1;
    --footer-submuted: #94a3b8;
    --footer-primary: #0284c7;
    --footer-accent-blue: #38bdf8;
    --footer-accent-green: #22c55e;
    --footer-accent-red: #cc0000;
}

/* --- Base Footer --- */
.site-footer {
    background-color: var(--footer-bg) !important;
    color: var(--footer-text) !important;
    padding-top: 5rem !important;
    position: relative !important;
    border-top: 4px solid var(--primary, #00adef) !important;
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    opacity: 1 !important;
    display: block !important;
}

.footer-top {
    padding-bottom: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 2.1fr 1.1fr 1.4fr !important;
    gap: 2.5rem !important;
}

/* --- Colonne 1 : Identité & Avis Google --- */
.brand-col .logo-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 162px;
    height: 70px;
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 6px;
    border: 2.5px solid #4285F4;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 0 0 8px rgba(66, 133, 244, 0.3);
    padding: 8px;
    font-family: 'Outfit', sans-serif;
    box-sizing: border-box;
}

.google-text {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -1px;
    margin-bottom: 2px;
    display: flex;
}

.google-text span {
    display: inline-block;
}

.g-blue { color: #1967d2 !important; }
.g-red { color: #d93025 !important; }
.g-yellow { color: #b45309 !important; }
.g-green { color: #137333 !important; }

.google-stars {
    color: #b45309 !important;
    font-size: 1.1rem;
    letter-spacing: 2px;
    line-height: 1;
}

.site-footer .brand-desc {
    color: var(--footer-muted) !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
    font-size: 0.95rem !important;
    opacity: 1 !important;
}

/* --- Titres des colonnes --- */
.footer-heading {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin-bottom: 1.5rem !important;
    position: relative !important;
    padding-bottom: 0.75rem !important;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary, #0284c7);
    border-radius: 2px;
}

/* --- Navigation & Liens standard --- */
.footer-nav {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-nav li {
    margin-bottom: 0.75rem;
}

.footer-nav a {
    color: var(--footer-muted) !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    opacity: 1 !important;
}

.footer-nav a::before {
    content: '›';
    margin-right: 0.5rem;
    color: var(--primary, #0284c7);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.footer-nav a:hover {
    color: var(--footer-accent-blue) !important;
}

.footer-nav a:hover::before {
    transform: translateX(4px);
}

/* Lien Promotion spécial clignotant */
.footer-promo-link {
    color: #ff4d4d !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    padding: 2px 5px;
    border: 2px solid #ff6666 !important;
    border-radius: 4px;
    margin: 5px 0;
    animation: blink-promo 1.5s infinite;
}

@keyframes blink-promo {
    0% {
        transform: scale(1);
        background: transparent;
        color: #ff4d4d;
    }
    50% {
        transform: scale(1.05);
        background: #ff4d4d;
        color: #ffffff;
    }
    100% {
        transform: scale(1);
        background: transparent;
        color: #ff4d4d;
    }
}

/* --- Grille des Villes Desservies (Desktop) --- */
.desktop-villes-grid {
    columns: 2;
    column-gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.desktop-villes-grid li {
    break-inside: avoid;
    margin-bottom: 0.55rem;
}

.desktop-villes-grid a {
    font-size: 0.85rem;
    line-height: 1.35;
    white-space: nowrap;
}

/* --- Dropdown des Villes Desservies (Mobile) --- */
.mobile-villes-dropdown {
    display: none;
    margin-top: 0.75rem;
}

.mobile-villes-details {
    display: block;
    width: 100%;
    max-width: 220px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.mobile-villes-details[open] {
    max-width: 100%;
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.15);
}

.mobile-villes-summary {
    list-style: none;
    padding: 0.65rem 1rem;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    user-select: none;
    transition: all 0.2s ease;
}

.mobile-villes-summary::-webkit-details-marker {
    display: none;
}

.mobile-villes-summary:hover {
    color: var(--footer-accent-blue);
    background: rgba(255, 255, 255, 0.03);
}

.mobile-villes-summary .chevron {
    color: var(--footer-accent-blue);
    font-size: 0.85rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.mobile-villes-details[open] .mobile-villes-summary .chevron {
    transform: rotate(180deg);
}

.mobile-villes-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 0.85rem;
    padding: 0.85rem 1.15rem 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
}

.mobile-villes-links-grid li {
    margin-bottom: 0;
}

.mobile-villes-links-grid a {
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--footer-muted);
}

.mobile-villes-links-grid a:hover {
    color: var(--footer-accent-blue);
}

/* --- Cartes Contact & Info --- */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-decoration: none;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.contact-row.highlight {
    background: rgba(2, 132, 199, 0.1);
    border-color: rgba(2, 132, 199, 0.2);
}

.contact-row:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.contact-row.highlight:hover {
    background: rgba(2, 132, 199, 0.15);
}

.icon-circle {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-row.highlight .icon-circle {
    background: var(--primary, #0284c7);
    color: #ffffff;
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-text .label {
    font-size: 0.85rem;
    color: var(--footer-muted);
    margin-bottom: 0.25rem;
}

.info-text .value {
    color: #ffffff;
    font-weight: 500;
}

.contact-row.highlight .value {
    color: var(--footer-accent-blue);
    font-size: 1.1rem;
    font-weight: 700;
}

.trust-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--footer-muted);
}

/* ==========================================================================
   SECTION CERTIFICATIONS & ACCRÉDITATIONS FOOTER
   ========================================================================== */
.footer-certifications-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(6, 9, 19, 0.7) 100%);
    padding: 3rem 0 3.5rem;
    margin-top: 1rem;
}

.footer-certifications-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2.2rem;
}

.certifications-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--footer-accent-blue);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.6rem;
    background: rgba(2, 132, 199, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.35rem 1.1rem;
    border-radius: 50px;
}

.certifications-title {
    font-size: 1.85rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 0.75rem !important;
    letter-spacing: -0.5px !important;
}

.certifications-subtitle {
    color: var(--footer-submuted) !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin: 0 auto !important;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

.certif-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.9rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.certif-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(2, 132, 199, 0.08);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.25);
}

.certif-card .certif-logo {
    width: 100%;
    max-width: 165px;
    height: auto;
    max-height: 75px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* --- Footer Bottom (Barre inférieure) --- */
.footer-bottom {
    background: var(--footer-bottom-bg) !important;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--footer-muted) !important;
    font-size: 0.9rem;
    opacity: 1 !important;
}

.footer-social {
    display: flex;
    align-items: center;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablettes & Mobiles)
   ========================================================================== */
@media (max-width: 1200px) and (min-width: 993px) {
    .desktop-villes-grid a {
        font-size: 0.8rem;
        white-space: normal;
    }
}

@media (max-width: 1024px) {
    .certifications-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .brand-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .desktop-villes-grid {
        display: none !important;
    }
    .mobile-villes-dropdown {
        display: block !important;
    }
    .bottom-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .footer-certifications-section {
        padding: 2.2rem 0 2.5rem;
    }
    .certifications-title {
        font-size: 1.45rem !important;
    }
    .certifications-subtitle {
        font-size: 0.88rem !important;
    }
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .certif-card {
        padding: 0.75rem 0.5rem;
    }
}
