/*
Theme Name: Twenty Twenty-One Child
Theme URI: https://example.com/
Description: Thème enfant personnalisé de Twenty Twenty-One
Author: Ton Nom
Author URI: https://example.com
Template: twentytwentyone
Version: 1.0
*/


/* === Couleurs générales === */
body {
    background-color: #ffffff !important;
    color: #000000 !important;
}

h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title,
.entry-content {
    color: #000000 !important;
}

/* === Logo uniquement, sans nom du site === */
.site-title,
.site-description {
    display: none !important;
}


/* Masquer le titre et le slogan du site */
.site-title,
.site-description {
    display: none !important;
}

/* === Tailles et espacement personnalisés pour les titres === */
h1 {
    font-size: 2.5rem !important;
    font-weight: 300 !important;
    line-height: 1.5 !important;
}

h2 {
    font-size: 2rem !important;
    font-weight: 300 !important;
    line-height: 2 !important;
}

h3 {
    font-size: 1.75rem !important;
    font-weight: 300 !important;
    line-height: 2 !important;
}

h4 {
    font-size: 1.5rem !important;
    font-weight: 300 !important;
    line-height: 1.8 !important;
}

h5 {
    font-size: 1.25rem !important;
    font-weight: 300 !important;
    line-height: 1.8 !important;
}

h6 {
    font-size: 1rem !important;
    font-weight: 300 !important;
    line-height: 1.8 !important;
}

/* === Style du texte de base === */
body,
.entry-content,
.entry-content p {
    font-size: 1rem;
    line-height: 1.5; /* Ajuste ici pour plus ou moins d'espacement */
    font-weight: 200;
    text-align: justify;
}

/* === Style du texte de base dans les listes === */
.entry-content ul,
.entry-content ol {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5em;
    padding-left: 1.5em; /* Indentation à gauche */
}

.entry-content li {
    font-weight: 400;
    margin-bottom: 0.75em;
}

/* === Supprimer la barre sous les H1 === */

/*.entry-header {
    border-bottom: none !important;
}*/

/* === Réduire l’espace sous le titre === */
.entry-header {
    margin-bottom: 0.5rem !important; /* ou 0 si tu veux coller */
}

.entry-title {
    margin-bottom: 0 !important;
}

/* === Customisation de la loupe, le reste est dans le site-header.php === */

.site-header {
    position: relative; /* S'assure que le positionnement absolu est relatif au header */
}

.custom-search-wrapper {
    position: absolute;
    /* Ne PAS définir top ici, il sera géré par le JS */
    right: 40px;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.custom-search-icon img {
    cursor: pointer;
    display: block;
    width: 25px;
    height: 25px;
    transition: opacity 0.2s;
}

.custom-search-icon img:hover {
    opacity: 0.7;
}

#custom-search-box {
    position: absolute;
    top: 40px;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 1001;
    min-width: 250px;
}

/* === Menu de langue === */

.language-switcher {
    position: absolute;
    top: 20px;
    left: 40px;
    margin: 0;
    z-index: 2000;
    font-size: 0.90em;
}
@media (max-width: 600px) {
    .language-switcher {
        left: 10px;
        top: 10px;
    }
}

/* === Modifier hauteur header responsive=== */

@media (max-width: 9000px) {
    .site-header {
        padding-top: 30px !important;
    }
}
@media (max-width: 600px) {
    .site-header {
        padding-top: 55px !important;
    }
    .custom-search-wrapper {
        right: 10px !important;  /* Colle la loupe au bord droit sur mobile */
        top: 50% !important;     /* Garde l'alignement vertical si besoin */
        transform: translateY(-50%);
}
    