/* Typographie du template World : Work Sans (texte) + Ubuntu (titres, liens) */
body {
    font-family: "Work Sans", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Ubuntu", sans-serif;
}

a {
    transition: color 180ms ease, background-color 180ms ease;
}

.header-area .navbar-brand img {
    display: block;
    max-width: 180px;
    max-height: 48px;
    object-fit: contain;
}

/* Menu : toujours sur fond noir, sur toutes les pages */
.header-area,
.header-area.sticky {
    background-color: #171717;
    margin-top: 0;
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.header-area .navbar,
.header-area.sticky .navbar {
    border-color: #171717;
}

.header-area .navbar .navbar-nav .nav-link {
    color: #8d8d8d;
    font-family: "Ubuntu", sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.header-area .navbar .navbar-nav .nav-link:hover,
.header-area .navbar .navbar-nav .nav-link:focus,
.header-area .navbar .navbar-nav .nav-item.active .nav-link {
    color: #ffffff;
}

.header-area .navbar .navbar-nav .nav-action-button {
    background: transparent;
    border: 0;
    cursor: pointer;
    line-height: 1.5;
    text-transform: uppercase;
}

/* Pages sans hero : le contenu démarre sous le menu fixe */
main:not(:has(.hero-area)) {
    padding-top: 75px;
}

/* Recherche : on garde la loupe animée du template (style.css) */
#search-wrapper form {
    margin: 0;
}

#search-wrapper #search {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: content-box;
    height: 17px;
    line-height: 17px;
}

#search-wrapper #search::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

#search-wrapper #search,
#search-wrapper #search:focus,
#search-wrapper #search:-webkit-autofill {
    background-color: transparent !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    box-shadow: 0 0 0 1000px #171717 inset;
}

#search-wrapper #search:focus {
    padding-right: 40px;
}

/* Fermeture : une seule croix (icône), on neutralise la croix dessinée en CSS du template */
#search-wrapper #close-icon,
#search-wrapper #close-icon[style*="display: block"] {
    background: transparent;
    border: 0;
    padding: 0;
    right: 12px;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    transform: none;
    color: #8d8d8d;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}

#search-wrapper #close-icon:hover {
    color: #ffffff;
}

#search-wrapper #close-icon:before,
#search-wrapper #close-icon:after,
#search-wrapper #close-icon[style*="display: block"]:before,
#search-wrapper #close-icon[style*="display: block"]:after {
    display: none;
}

#search-wrapper .site-search-submit {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    padding: 0;
}

.business-category-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 8px;
}

.business-category-tabs .title {
    flex: 1 0 100%;
}

.business-category-tabs .nav-link {
    white-space: nowrap;
}

/* Images jamais recadrées : affichées en entier (contain) dans un cadre 360x195 (grandes cartes) */
.business-featured-image,
.profile-card-image,
.category-post-image,
.search-post-image,
.latest-post-image {
    display: block;
    width: 100%;
    aspect-ratio: 360 / 195;
    object-fit: contain;
    background-color: #f4f4f4;
}

.single-blog-post.post-style-4 .post-thumbnail .latest-post-image {
    background-color: #f4f4f4;
}

.single-blog-post.post-style-2 .post-thumbnail .business-featured-image {
    width: 95px;
    height: 95px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background-color: #f4f4f4;
}

/* Footer : fond sombre du template, accent bleu */
.footer-area {
    background-color: #171717;
}

.footer-area h6 {
    letter-spacing: 1px;
    font-family: "Ubuntu", sans-serif;
}

.footer-area .footer-logo img {
    max-height: 40px;
}

.footer-area .btn-brand {
    background-color: #E6B448;
    border: 1px solid #E6B448;
    color: #fff;
    font-family: "Ubuntu", sans-serif;
    letter-spacing: 1px;
}

.footer-area .btn-brand:hover,
.footer-area .btn-brand:focus {
    background-color: #fff;
    border-color: #fff;
    color: #E6B448 !important;
}

.btn-outline-primary {
    border-color: #E6B448;
    color: #E6B448;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #E6B448;
    border-color: #E6B448;
    color: #fff;
}

.home-profile-grid .single-blog-post,
.category-post-grid .single-blog-post,
.search-results-grid .single-blog-post {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-profile-grid .post-content,
.category-post-grid .post-content,
.search-results-grid .post-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-profile-grid .post-content .headline,
.category-post-grid .post-content .headline,
.search-results-grid .post-content .headline {
    margin-bottom: 12px;
}

.page-heading {
    border-bottom: 2px solid #f1f1f1;
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.page-heading .eyebrow,
.editorial-category {
    color: #E6B448;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.editorial-article {
    max-width: 900px;
}

.editorial-article .article-title {
    color: #111;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 18px;
}

.editorial-article .article-meta {
    border-bottom: 1px solid #e7e7e7;
    color: #777;
    margin-bottom: 30px;
    padding-bottom: 18px;
}

.editorial-article .article-cover {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: cover;
    margin-bottom: 30px;
}

.editorial-article .article-body {
    color: #333;
    font-size: 1.08rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.editorial-article .article-body img {
    height: auto;
    max-width: 100%;
}

.editorial-article .article-body h2,
.editorial-article .article-body h3,
.editorial-article .article-body h4 {
    color: #111;
    margin: 1.6em 0 0.6em;
}

.editorial-article .article-body blockquote {
    border-left: 3px solid #E6B448;
    color: #555;
    margin: 1.5em 0;
    padding: 8px 20px;
}

.editorial-article .article-body iframe,
.editorial-article .article-body video {
    max-width: 100%;
}

.profile-quote {
    border-left: 3px solid #E6B448;
    color: #333;
    font-size: 1.3rem;
    line-height: 1.6;
    margin: 30px 0;
    padding: 8px 22px;
}

.footer-area a:hover,
.footer-area a:focus {
    color: #fff !important;
}

@media (max-width: 767.98px) {
    .business-category-tabs .nav-item {
        margin-bottom: 4px;
    }

    .section-padding-100 {
        padding: 55px 0;
    }

    .single-blog-post.post-style-2 .post-content {
        min-width: 0;
        padding-right: 10px;
    }

    .single-blog-post.post-style-2 .post-content .headline h5 {
        overflow-wrap: anywhere;
    }

    .editorial-article .article-title {
        font-size: 2rem;
    }

    .editorial-article .article-body {
        font-size: 1rem;
    }
}

/* Formulaire de contact */
.btn-brand-solid {
    background-color: #E6B448;
    border: 1px solid #E6B448;
    border-radius: 0;
    color: #fff;
    font-family: "Ubuntu", sans-serif;
    letter-spacing: 1px;
    padding: 10px 28px;
}

.btn-brand-solid:hover,
.btn-brand-solid:focus {
    background-color: #171717;
    border-color: #171717;
    color: #fff;
}

main .form-control {
    border-radius: 0;
}

main .form-control:focus {
    border-color: #E6B448;
    box-shadow: none;
}

main .form-group label {
    color: #171717;
    font-family: "Ubuntu", sans-serif;
    font-weight: 500;
}

/* Vidéo YouTube sur la fiche article */
.editorial-article .article-video {
    margin-bottom: 30px;
    background: #171717;
}

/* Résumé du portrait (HTML issu de l'éditeur) : le h2/strong du résumé reste au style « chapeau » */
.profile-summary h2,
.profile-summary h3 {
    color: #555;
    font-family: "Work Sans", sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.profile-summary p {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Magazines : couverture affichée en entier (portrait 3:4), jamais recadrée */
.magazine-cover {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    background-color: #f4f4f4;
}

.magazine-cover-large {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.magazine-card .post-content {
    padding: 15px 20px 20px;
}

.pagination .page-link {
    color: #171717;
    border-radius: 0;
}

.pagination .page-item.active .page-link {
    background-color: #E6B448;
    border-color: #E6B448;
    color: #fff;
}
