/* 
 * Footer CSS
 * SEA Architecture
 */

.footer {
    min-height: 100vh;
    height: auto;
    width: 100%;
    font-family: 'Victor Mono', monospace;
    overflow: visible;
    box-sizing: border-box;
    max-width: 100%;
    margin-top: 8rem;
}

@media (max-width: 768px) {
    .footer {
        margin-top: 0;
    }
}

.footer-grid {
    display: grid;
    grid-template-areas: 
        "info stats"
        "info slogan"
        "logo social";
    grid-template-columns: 50% 50%;
    grid-template-rows: auto auto auto;
    min-height: 100vh;
    height: auto;
    width: 100%;
    border: 1px solid #000;
    margin: 0;
    padding: 0;
}

@media (min-width: 769px) {
    .footer-grid {
        grid-template-columns: repeat(10, 1fr);
    }
}

/* Bloc 1: Informations */
.footer-info {
    grid-area: info;
    padding: 6rem;
    border-bottom: 1px solid #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

@media (min-width: 769px) {
    .footer-info {
        grid-column: 1 / span 5;
        grid-row: 1 / span 2;
    }
}

/* Règles mobiles - doivent venir après les règles desktop */
@media (max-width: 768px) {
    .footer-info {
        grid-row: 1;
        padding: 2rem;
    }
}

.info-text {
    margin: 0.5rem 0;
    font-size: clamp(0.5rem, 0.65rem + 0.5vw, 1rem);
    line-height: 1.4;
}

.info-content-centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    height: 100%;
    width: 100%;
}

.info-logo-container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 3rem;
    width: 100%;
    padding-left: 0;
}

@media (max-width: 768px) {
    .info-logo-container {
        margin-top: 1rem;
    }
}

.info-logo {
    max-width: 200px;
}

@media (max-width: 768px) {
    .info-logo {
        max-width: 150px;
    }
}

/* Bloc 2: Stats */
.footer-stats {
    grid-area: stats;
    border-bottom: 1px solid #000;
    border-left: 1px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    width: 100%;
}

@media (min-width: 769px) {
    .footer-stats {
        grid-column: 6 / span 5;
        grid-row: 1;
    }
}

.stats-container {
    display: flex;
    justify-content: space-evenly;
    gap: 3rem;
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 5rem;
    line-height: 1;
}

.stat-label {
    font-size: clamp(0.4rem, 0.8rem + 0.5vw, 1.6rem);
    margin-top: 0.5rem;
}

/* Bloc 3: Slogan */
.footer-slogan {
    grid-area: slogan;
    border-bottom: 1px solid #000;
    border-left: 1px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 2rem;
}

@media (min-width: 769px) {
    .footer-slogan {
        grid-column: 6 / span 5;
        grid-row: 2;
    }
}

.slogan-text {
    font-size: clamp(0.4rem, 0.5rem + 2vw, 2.5rem);
    line-height: 1.1;
    text-transform: uppercase;
}

/* Bloc 4: Logo & mentions légales */
.footer-logo-legal {
    grid-area: logo;
    padding: 2rem;
    border-right: 1px solid #000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-logo-legal .text-container {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-top: 20px
}

@media (max-width: 768px) {
    .footer-logo-legal .text-container {
        align-items: start;
        padding-top: 0;
    }
}

@media (min-width: 769px) {
    .footer-logo-legal {
        grid-column: 1 / span 7;
        grid-row: 3;
    }
}

.logo-container {
    min-height: 300px;
    display: flex;
    justify-content: flex-start;
    align-items: end;
    width: 100%;
    height: 70%;
    gap: 2rem;
    padding-left: 2rem;
}

@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
        min-height: 150px;
        gap: 1rem;
        align-items: flex-start;
        padding-left: 0;
    }
}

.footer-logo {
    max-width: 350px;
    height: auto;
}
.footer-logo-sea {
    max-width: 700px;
    height: auto;
}

@media (max-width: 768px) {
    .footer-logo {
        max-width: 200px;
    }
    .footer-logo-sea {
        max-width: 280px;
    }
}

.legal-links {
    text-align: center;
    font-size: clamp(0.7rem, 1.2vw, 1.12rem);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .legal-links {
        margin-top: 2rem;
        text-align: left;
    }
}

.legal-link {
    text-decoration: none;
    color: #000;
    transition: opacity 0.3s ease;
}

.legal-link:hover {
    opacity: 0.7;
}

.esb-link {
    text-decoration: none;
    color: #000;
    transition: opacity 0.3s ease;
}

.esb-link:hover {
    opacity: 0.7;
}

.credits {
    text-align: center;
    font-size: clamp(0.7rem, 1.2vw, 1.1rem);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .credits {
        text-align: left;
    }
}

/* Bloc 5: Liens & social */
.footer-links-social {
    grid-area: social;
    padding: 5rem 5rem 2rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

@media (max-width: 768px) {
    .footer-links-social {
        padding: 2rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .footer-links-social::after {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        height: 100%;
        width: 1px;
        background-color: #000;
    }
}

@media (min-width: 769px) {
    .footer-links-social {
        grid-column: 8 / span 3;
        grid-row: 3;
    }
}

.site-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.site-link {
    font-size: clamp(0.7rem, 1.2vw, 1.1rem);
    text-decoration: none;
    color: #000;
    transition: opacity 0.3s ease;
    display: block;
}

@media (max-width: 768px) {
    .site-link {
        margin-bottom: 0;
    }
}

.site-link:hover {
    opacity: 0.7;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: auto;
    flex-wrap: no-wrap;
}

@media (max-width: 768px) {
    .social-links {
        flex-direction: column;
        align-items: flex-end;
        margin-top: 0;
        gap: 0.5rem;
    }
}

.social-link {
    background-color: #000;
    border: 1px solid #000;
    border-radius: 20px;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9vw;
    text-decoration: none;
    color: #fff;
    display: inline-block;
    font-weight: 400;
}

@media (max-width: 768px) {
    .social-link {
        font-size: clamp(0.7rem, 0.8rem + 0.5vw, 1rem);
        padding: 0.4rem 1rem;
        width: 100%;
        text-align: center;
        border-radius: 30px;
    }
}

.social-link:hover {
    background-color: transparent;
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, auto);
        height: auto;
        min-height: 100vh;
    }
    
    .footer-info,
    .footer-stats,
    .footer-slogan,
    .footer-logo-legal,
    .footer-links-social {
        grid-column: 1;
        border-right: none;
        border-bottom: 1px solid #000;
    }
    
    .footer-stats { grid-row: 2; }
    .footer-slogan { grid-row: 3; }
    .footer-links-social { grid-row: 4; }
    .footer-logo-legal { grid-row: 5; }
    
    .stat-number {
        font-size: 3rem;
    }
}
