/*
Theme Name: generatepress-child
Description: thème enfant gp
Author: Romain Gouleau
Author URI: https://vesin-avocat.fr/
Template: generatepress
Version: 1.1
*/

/* =====================================================
   Les blocs SEO Builder (sommaire, liens de bas de page)
   sont stylés par le plugin (Réglages > Apparence).
   ===================================================== */

/* =========================
   TITRES
   ========================= */
h2,
.entry-title,
.entry-meta {
    text-align: center;
}

h3 {
    font-weight: bold;
}

/* =========================
   IMAGES
   ========================= */
.page img,
.fl-module-rich-text img {
    max-width: 100%;
    height: auto;
}

/* =========================
   FIL D'ARIANE YOAST
   ========================= */
#breadcrumbs,
.breadcrumbs {
    text-align: center;
    font-size: 13px;
    color: #777;
    margin: 10px 0 20px;
}

#breadcrumbs a,
.breadcrumbs a {
    color: #777;
    text-decoration: none;
}

#breadcrumbs a:hover,
.breadcrumbs a:hover {
    text-decoration: underline;
}

/* =========================
   BLOC AUTEUR (bas des articles)
   ========================= */
.custom-author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 50px 0 30px;
    padding: 24px;
    border: 1px solid #e8edf2;
    border-radius: 16px;
    background: #f8fafc;
}

.custom-author-box .author-avatar {
    flex: 0 0 120px;
    width: 120px;
}

.custom-author-box img {
    display: block;
    border-radius: 50%;
    width: 120px !important;
    max-width: none !important;
    height: 120px !important;
    object-fit: cover;
}

.author-written-by {
    font-size: 13px;
    color: #777;
}

.author-name {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 5px;
}

.author-bio {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .custom-author-box {
        flex-direction: column;
        text-align: center;
    }

    .custom-author-box .author-avatar {
        flex-basis: auto;
        width: 100px;
    }

    .custom-author-box img {
        width: 100px !important;
        height: 100px !important;
    }
}

/* =========================
   ARTICLES SIMILAIRES (bas d'article)
   ========================= */
.related-posts {
    margin-top: 60px;
}

.related-posts h3 {
    margin-bottom: 25px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.related-item {
    text-decoration: none;
    color: inherit;
}

.related-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
}

.related-title {
    margin-top: 10px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
}

.related-item:hover .related-title {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   BEAVER BUILDER, FORMULAIRES, VIDÉOS
   ========================= */
.fl-callout-title {
    text-align: center !important;
}

.nf-form-title,
.nf-form-fields-required,
.wp-block-embed {
    text-align: center;
}

.wp-block-embed iframe,
p iframe[src*="youtube.com"] {
    display: block;
    margin: 40px auto;
}

/* =========================
   EN-TÊTE ET MISE EN PAGE DU THÈME
   ========================= */
.inside-header {
    padding: 0;
}

body .grid-container {
    max-width: 100%;
}

.separate-containers .site-main {
    margin: 0 !important;
}

.header-widget {
    float: none;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    text-align: center;
}

#container-header-align {
    width: 100%;
}

#header-paiement {
    margin-right: 25%;
    display: inline-block;
    color: white;
    position: relative;
    bottom: 50px;
}

#header-contact {
    margin-left: 25%;
    display: inline-block;
    position: relative;
    bottom: 50px;
}

#logo-header-align {
    display: inline-block;
}

.paiement,
.tel {
    color: white !important;
    font-weight: bold;
    font-size: 18px;
}

.fa {
    color: white;
}

@media screen and (max-width: 1070px) {
    #header-paiement {
        margin-right: 0;
        display: block;
        position: static;
        margin-bottom: 10px;
    }

    #header-contact {
        margin-left: 0;
        display: block;
        position: static;
    }

    #logo-header-align {
        display: inline-block;
        margin-bottom: 10px;
    }

    #container-header-align {
        margin-top: 10px;
        margin-bottom: 10px;
    }
}
