/* =========================================
   OBJECTIF PROF - THEME SHOREDITCH
   Marges réduites et barre latérale à gauche
   ========================================= */


/* 1. LARGEUR GENERALE */

.entry-hero-wrapper,
.hentry-wrapper,
.site-content-wrapper,
.site-footer-wrapper,
.site-header-wrapper,
.site-content-wrapper .has-post-thumbnail .entry-header-wrapper,
.widget-area-wrapper {
    max-width: 1200px;
    width: calc(100% - 3em);
}


/* 2. COLONNES : SIDEBAR A GAUCHE */

@media screen and (min-width: 896px) {

    /* Articles à droite */
    body:not(.no-sidebar) .content-area {
        order: 2 !important;
        -webkit-order: 2 !important;
        -ms-flex-order: 2 !important;
        width: 66.666667% !important;
        padding-left: 1em !important;
        padding-right: 0 !important;
    }

    /* Bienvenue et widgets à gauche */
    body:not(.no-sidebar) .site-content-wrapper .widget-area {
        order: 1 !important;
        -webkit-order: 1 !important;
        -ms-flex-order: 1 !important;
        width: 33.333333% !important;
        padding-left: 0 !important;
        padding-right: 2em !important;
        padding-top: 2em !important;
        border-top: 0 !important;
    }

}


/* 3. REDUIRE LES ESPACES ENTRE LES ARTICLES */

@media screen and (min-width: 896px) {

    .blog .content-area .hentry,
    .archive .content-area .hentry,
    .search .content-area .hentry {
        padding-top: 2em !important;
        padding-bottom: 1.5em !important;
    }

}


/* 4. REDUIRE L'ESPACE EN HAUT */

@media screen and (min-width: 896px) {

    .blog .content-area {
        padding-top: 0 !important;
    }

    .site-content-wrapper .widget-area {
        padding-top: 2em !important;
        padding-bottom: 2em !important;
    }

}


/* 5. ESPACE SOUS LE MENU */

@media screen and (min-width: 896px) {

    .sticky-header .site-content {
        padding-top: 3em;
    }

}


/* 6. AFFICHAGE SUR TELEPHONE */

@media screen and (max-width: 895px) {

    .site-content-wrapper {
        display: flex;
        flex-direction: column;
    }

    .site-content-wrapper .content-area,
    .site-content-wrapper .widget-area {
        width: 100%;
        order: initial;
    }

}

/* Empêche l'image de dépasser ou de buguer lorsqu'elle est rendue "sticky" par l'extension */
.header-image.is-sticky {
    z-index: 998 !important;
    background-color: #fff; /* Évite la transparence si le texte passe derrière */
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* Ajoute une jolie ombre subtile sous l'image fixe */
}

/* S'assure que l'image à l'intérieur s'adapte bien à la largeur de l'écran */
.header-image img {
    max-width: 100% !important;
    height: auto !important;
}

/* Masque le titre de la catégorie et sa description sur les pages d'archives/catégories */
.archive .page-header,
.category .page-header {
    display: none !important;
}

/* Réajuste l'espace en haut pour que le contenu ne soit pas trop collé au menu */
.archive .site-content,
.category .site-content {
    padding-top: 40px !important;
}

/* Masquer uniquement les widgets de la colonne latérale */
body:not(.home) .site-content-wrapper .widget-area {
    display: none !important;
}

/* Élargir et centrer le contenu */
body:not(.home) .content-area {
    width: 100% !important;
    max-width: 760px;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

/* Toujours afficher le pied de page */
.widget-footer-top-area,
.widget-footer-bottom-area {
    display: block !important;
}




/* Largeur optimale pour le confort de lecture */
    margin-left: auto;
    margin-right: auto;
    float: none;
}

/* Empêcher la barre de recherche Ivory Search de recouvrir les onglets du menu */
.is-menu-wrapper,
.main-navigation .is-menu form.is-search-form {
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    margin-top: 8px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 9999;
}

/* Agrandir uniquement la taille de la police du menu principal Shoreditch */
.main-navigation a {
    font-size: 17px;
}

/* Masquer la mention WordPress et Shoreditch dans le pied de page */
.site-info {
    display: none;
}


/* =====================================
   FOOTER SHOREditch - mise en page
   ===================================== */

/* Réduction de la bande rouge */
.widget-footer-top-area {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Conteneur principal */
.widget-footer-top-area .widget-area-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 18px 15px !important;
    margin: 0 auto !important;
}

/* Widgets côte à côte */
.widget-footer-top-area .widget {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

/* Liens du menu horizontal */
.widget-footer-top-area .widget_nav_menu ul {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 35px !important;
    list-style: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Suppression des traits et espaces */
.widget-footer-top-area .widget_nav_menu li {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Liens */
.widget-footer-top-area .widget_nav_menu a {
    display: inline-block;
    padding: 0 !important;
}

/* Version mobile */
@media screen and (max-width: 600px) {
    .widget-footer-top-area .widget-area-wrapper {
        padding: 15px !important;
    }

    .widget-footer-top-area .widget_nav_menu ul {
        gap: 15px !important;
    }
}


/* BAS DU FOOTER : FOND BLANC */
.widget-footer-bottom-area {
    background-color: #ffffff !important;
    text-align: center !important;
    padding: 15px 0 !important;
}

/* Centrage du compteur */
.widget-footer-bottom-area .widget-area-wrapper,
.widget-footer-bottom-area .widget-area,
.widget-footer-bottom-area .widget {
    float: none !important;
    width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
    background-color: #ffffff !important;
}

/* Couleur du texte */
.widget-footer-bottom-area,
.widget-footer-bottom-area p,
.widget-footer-bottom-area a {
    color: #333333 !important;
}

@media screen and (max-width: 767px) {
  .hentry-inner .row {
    display: flex;
    flex-wrap: wrap;
  }

  .hentry-inner .row > * {
    width: 100%;
  }

  .hentry-inner .row .entry-body {
    order: 2;
  }

  .hentry-inner .row .col-lg-4 {
    order: 1;
    margin-bottom: 30px;
  }
}


/* OBJECTIF PROF - Amélioration de la lisibilité */

/* Texte courant */
body,
.entry-content,
.entry-summary,
.widget-area {
    color: #374151;
}

/* Paragraphes */
.entry-content p,
.entry-summary p,
.widget-area p {
    color: #374151;
}

/* Titres */
h1, h2, h3, h4, h5, h6,
.entry-title {
    color: #24364B;
}



/* OBJECTIF PROF - Taille des titres d'articles */

/* Titres des articles sur le site */
.wf-active .entry-title {
    font-size: 24px !important;
    line-height: 1.25 !important;
}

/* Titres des articles sur mobile */
@media screen and (max-width: 600px) {
    .wf-active .entry-title {
        font-size: 22px !important;
    }
}

/* Espacement équilibré du menu principal sur Shoreditch */
@media screen and (min-width: 896px) {
    .main-navigation .primary-menu > li {
        margin-left: 12px !important;
        margin-right: 12px !important;
    }
}