/* Réinitialisation de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Stack Sans Text', sans-serif;
    color: #333333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow: hidden; /* Empêche les barres de défilement dues à la mosaïque */
    position: relative;
    background-color: #ffffff; /* Fond de sécurité sombre */
}

/* --- STRUCTURE DE LA MOSAÏQUE EN ARRIÈRE-PLAN --- */
.mosaic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes par défaut sur ordinateur */
    gap: 0px;
    z-index: 1;
    opacity: 1; /* Opacité du fond (ajustable de 0.0 à 1.0) */
    pointer-events: none; /* Empêche toute interaction avec le fond */
}

/* Force chaque case à former un carré parfait */
.mosaic-cell {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1; /* Largeur égale à la hauteur */
}

.mosaic-cell img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
	object-position: center; /* Centre horizontalement et verticalement l'image dans son carré */
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Effet de fondu enchaîné de 1,5s */
}

.mosaic-cell img.visible {
    opacity: 1;
}

/* --- CONTENEUR PRINCIPAL (CARTE) --- */
.container {
    position: relative;
    z-index: 2; /* Reste impérativement au-dessus de la mosaïque */
    width: 100%;
    max-width: 600px; 
    background: rgba(255, 255, 255, 0.85); /* 0 à 1 Transparence */
    backdrop-filter: blur(10px); /* Floute légèrement les carrés situés derrière la carte */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: rotate(-3deg);
}

.content-wrapper {
    text-align: center;
    transform: rotate(3deg);
}

.logo {
    max-width: 275px;
    height: auto;
    margin-bottom: 15px;
}

h1 {
    font-family: 'Stack Sans Notch', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000000;
	line-height: 1.2;
}

p {
    font-size: 1.4rem;
    line-height: 1.2;
    color: black;
}

/* --- SECTION CONTACT --- */
.contact-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1); /* Ligne de séparation subtile */
    display: flex;
    flex-direction: column; /* Aligne les éléments verticalement par défaut */
	line-height: 1.2;
}

.contact-link {
    font-size: 1.4rem;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

/* Effet au survol des liens */
.contact-link:hover {
    color: #007bff; /* Change de couleur au survol (bleu) */
}

/* --- ADAPTATION POUR SMARTPHONE --- */
@media (max-width: 768px) {
    .mosaic-bg {
        grid-template-columns: repeat(2, 1fr); /* Passe à seulement 2 colonnes sur mobile */
    }
    
    .container {
        padding: 30px 20px; /* Réduit un peu les marges de la carte pour gagner de la place */
    }

    h1 {
        font-size: 1.8rem; /* Titre légèrement plus petit sur petit écran */
    }
}
