body { 
    background: #000000; /* Fond noir */
    display: flex; 
    justify-content: center; 
    align-items: center; 
    height: 100vh; 
    margin: 0; 
}

body.light {
    background: #ffffff; /* Fond blanc */
}
.container {
    position: relative;
    width: 80%;
    max-width: 800px;
}

svg { 
    width: 100%; 
    height: 100vh; 
    display: block;
}

.outline-svg {
    position: relative;
    z-index: 2;
}

.fill-svg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.st-outline {
    fill: none;
    stroke: #FFFFFF; /* Lignes blanches */
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
}
body.light .st-outline {
    stroke: #000000; /* Lignes noires */
}

.st-fill { 
    fill: #FFFFFF; 
} /* Remplissage blanc */
body.light .st-fill {
    fill: #000000; /* Remplissage noir */
}
.visible { opacity: 1 !important; }

@keyframes haloPulse {
    0% { filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0)); }
    50% { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 1)); }
    100% { filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0)); }
}
@keyframes haloPulseLight {
    0% { filter: drop-shadow(0 0 0px rgba(0, 0, 0, 0)); }
    50% { filter: drop-shadow(0 0 10px rgba(0, 0, 0, 1)); }
    100% { filter: drop-shadow(0 0 0px rgba(0, 0, 0, 0)); }
}

.pulsing-halo {
    animation: haloPulse 2s ease-in-out forwards;
}
body.light .pulsing-halo {
    animation: haloPulseLight 2s ease-in-out forwards;
}

/* Grille des logos : 2×2, rapprochés au centre */
.logos-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease-out;
    z-index: 3;
}

.logos-grid.visible {
    pointer-events: auto;
    opacity: 1;
}

.logos-grid-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem;
    justify-items: center;
    align-items: center;
    max-width: 520px;
}

.logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 240px;
    border: solid 3px #141831;
    opacity: 0;
    transform: scale(0.85);
    animation: logoReveal 0.5s ease-out forwards;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.logos-grid.visible .logo-link:nth-child(1) { animation-delay: 4s; }
.logos-grid.visible .logo-link:nth-child(2) { animation-delay: 4.1s; }
.logos-grid.visible .logo-link:nth-child(3) { animation-delay: 4.2s; }
.logos-grid.visible .logo-link:nth-child(4) { animation-delay: 4.3s; }

@keyframes logoReveal {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.logo-link:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.logo-link img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
}