/* Importez la police Noto Sans depuis Google Fonts. La feuille de style est désormais commentée et pourrait être minimisée prochainement. */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&display=swap');

/* Styles de base pour le corps et le HTML */
body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans', sans-serif;
    height: 100%;
    background-color: #f0f0f0;
}

/* Conteneur pour la page entière */
.page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* Conteneur principal pour le contenu de la carte */
.objet-container {
    background-color: white;
    padding: 20px 30px 20px 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 90%;
    width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Styles pour la sélection de la langue */
.language-switch {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 0px;
    font-size: 28px;
}

.language-switch span {
    cursor: pointer;
}

/* Styles pour l'image de la carte */
.card-image {
    max-width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    margin: 10px 0;
}

/* Styles pour le titre */
.title {
    font-size: 28px;
    text-align: center;
    color: #000;
    margin: 0;
    padding-top: 0px;
}

/* Styles pour le texte du droit d'auteur */
.copyright {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 10px;
}

/* Formatage général du texte */
h1 {
    font-size: 32px;
    color: #88181A;
    margin: 0;
}

h2 {
    color: #88181A;
    font-size: 20px;
}

p {
    font-size: 20px;
    color: #000;
    margin: 0;
}


/* Effet de fondu pour des transitions fluides */
.fade {
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

.fade-in {
    opacity: 1;
}

/* Requête multimédia pour l'orientation paysage sur les appareils mobiles */
@media (max-width: 780px) and (orientation: landscape) {
    .page-container {
        align-items: flex-start;
        padding: 10px;
    }
    .card-container {
        max-height: 100%;
        overflow-y: auto;
        padding: 10px 20px;
        max-width: 90%;
    }
    .card-image {
        max-height: 100%;
        max-width: 100%;
        margin: 10px 0;
    }
    .title {
        font-size: 32px;
        margin: -10px 0 0 0;
    }
    h1 {
        font-size: 32px;
        margin: 0;
    }
    h2 {
        font-size: 18px;
    }
    p {
        font-size: 20px;
        margin: 0;
    }
    .language-switch {
        font-size: 28px;
        margin: 5px 0 5px  0;
    }
    .copyright {
        margin-top: 10px;
		font-size: 12px;
		text-align: center;
    }
}

/* Media Query pour les très petits écrans */
@media (max-width: 320px) {
    .card-container {
        padding: 15px;
    }
    .title {
        font-size: 24px;
        margin: -10px 0 0 0;
    }
    h1 {
        font-size: 24px;
    }
    h2 {
        font-size: 18px;
    }
    p {
        font-size: 18px;
    }
    .language-switch {
        font-size: 24px;
        margin-bottom: 5px;
    }
    .flag {
        width: 25px;
        height: 15px;
        display: inline-block;
        margin: 0;
        border: 1px solid #ddd;
        cursor: pointer;
    }
}
