/*
Theme Name: Lined Dremiere
Theme URI: https://votresite.com/lined-dremiere
Author: Aymeric DREMIERE
Description: Un thème WordPress personnalisé utilisant Bootstrap 5 pour un design moderne et harmonisé.
Version: 1.9
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lined-dremiere

    --bs-primary: #0094FF;
    --bs-secondary: #FF0500;
    --bs-tertiary: #FFFF00;
    --bs-body-bg: #f8f9fa;
    --bs-border-color: #2337c6;
*/

:root {
    --bs-primary: #0094FF;
    --bs-secondary: #2337c6;
    --bs-tertiary: #FFFF00;
    --bs-body-bg: #f8f9fa;
    --bs-border-color: #2337c6;
    --bs-title-font: 'Patrick Hand', sans-serif;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    height: 100%;
    box-sizing: border-box;
    background-color: var(--bs-body-bg);
}

body > br {
    display: block;
    margin: 0.3rem 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    border: 1em solid var(--bs-border-color);
    box-sizing: border-box;
    pointer-events: none;
    z-index: 9999;
}

.container {
    padding-left: 25px;
    padding-right: 25px;
    max-width: 1200px;
}

.navbar {
    padding: 0.7rem 0;
    box-shadow: none;
    background-color: transparent;
}

.navbar_title {
    font-family: var(--bs-title-font);
    color: black;
    text-decoration: none;
    margin: 0;
    padding: 0;
    font-weight: normal;
    font-size: 2.5rem;
}

.navbar_title a {
    color: inherit;
    text-decoration: none;
}

.navbar_title a:hover {
    color: inherit;
    text-decoration: none;
}

.navbar-menu {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.navbar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.navbar-menu ul li {
    margin: 0 12px;
}

.navbar-menu ul li a {
    font-size: 1rem;
    color: black;
    text-decoration: none;
}

.navbar-menu ul li a:hover {
    color: var(--bs-secondary);
    text-decoration: none;
}

.footer-menu li a {
    color: inherit;
    text-decoration: none;
}

.footer-menu li a:hover {
    color: var(--bs-secondary);
    text-decoration: none;
}

.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 2rem;
    max-width: 800px; /* Largeur maximale des cartes */
    margin-left: auto;
    margin-right: auto;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.btn-outline-primary {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

.btn-outline-primary:hover {
    background-color: var(--bs-primary);
    color: white;
}

/* Style pour tous les liens (sauf titres, bouton "Lire la suite", navbar, footer et navigation articles) */
a:not(.navbar_title a):not(h1 a):not(h2 a):not(h3 a):not(h4 a):not(h5 a):not(h6 a):not(.btn-outline-primary):not(.navbar-menu a):not(.footer-menu a) {
    color: var(--bs-secondary);
    text-decoration: none;
    font-style: italic;
}

/* Soulignement au survol pour les liens en italique */
a:not(.navbar_title a):not(h1 a):not(h2 a):not(h3 a):not(h4 a):not(h5 a):not(h6 a):not(.btn-outline-primary):not(.navbar-menu a):not(.footer-menu a):hover {
    text-decoration: underline;
    text-decoration-color: var(--bs-secondary);
}

/* Navigation entre articles (précédent/suivant) */
.post-navigation {
    font-size: 0.95rem;
    font-weight: 500;
}

.post-navigation a.previous-post,
.post-navigation a.next-post {
    color: inherit !important;
    text-decoration: none !important;
    font-style: italic;
}

.post-navigation a.previous-post:hover,
.post-navigation a.next-post:hover {
    color: var(--bs-secondary) !important;
    text-decoration: underline !important;
    text-decoration-color: var(--bs-secondary) !important;
}

.post-navigation .text-muted {
    color: #6c757d;
}

/* Titres des articles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--bs-title-font);
    color: black;
    font-weight: normal;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 3rem;
    margin: 0 0 0.75rem 0;
    display: inline-block;
    position: relative;
    background: none;
    padding-bottom: 0.3em;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0.25em;
    background-color: var(--bs-tertiary);
}

h2 a {
    color: inherit;
    text-decoration: none;
    transform: none;
}

h2 a span {
    position: relative;
    z-index: 1;
    display: inline;
    transform: none;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #6c757d;
}

.breadcrumb a {
    color: var(--bs-secondary);
    text-decoration: none;
    font-style: italic;
}

.breadcrumb a:hover {
    text-decoration: underline;
    text-decoration-color: var(--bs-secondary);
}

.breadcrumb [aria-current="page"] {
    color: black;
    font-weight: 500;
}

/* Images dans le contenu */
.content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 0.375rem;
}

/* Images à la une (index et single) - Version corrigée */
.post-featured-image {
    text-align: center;
    margin-bottom: 1.5rem;
}

.post-featured-image-img {
    width: 100%;
    height: auto;
    border-radius: 0.375rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

/* Séparateurs - Largeur maximale égale aux cartes (UNIQUEMENT DESKTOP) */
.separator {
    width: 70%;
    height: 1px;
    background-color: #ccc;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .separator {
        width: 800px; /* Même largeur maximale que les cartes */
    }
}

/* Suppression de la box bleue pour TOUS les liens au clic */
a:focus {
    outline: none;
    box-shadow: none;
}

/* Conserve l'outline pour les boutons */
button:focus,
.btn:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* Style pour les images cliquables avec Fancybox */
.content a[data-fancybox],
.post-featured-image a[data-fancybox] {
    display: inline-block;
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.content a[data-fancybox]:hover,
.post-featured-image a[data-fancybox]:hover {
    transform: scale(1.02);
}

/* Style spécifique pour Fancybox */
.fancybox__container {
    z-index: 99999 !important;
}

/* Footer - Même dimensions que le header avec espacements ajustés */
footer {
    padding: 1rem 0 1.5rem;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 25px;
}

.footer-left {
    flex: 1;
    text-align: left;
    font-size: 0.9rem;
    color: #6c757d;
}

.footer-right {
    flex: 1;
    text-align: right;
}

.footer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu li {
    display: inline-block;
    margin-left: 12px;
}

.footer-menu li a {
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-separator {
    width: 70%;
    height: 1px;
    background-color: #ccc;
    margin: 0 auto 0.5rem;
}

/* Media queries pour les séparateurs (UNIQUEMENT DESKTOP) */
@media (min-width: 992px) {
    .footer-separator {
        width: 800px; /* Même largeur maximale que les cartes */
        margin: 0 auto 0.5rem;
    }
}

/* Responsive */
@media (max-width: 767.98px) {
    body > br {
        display: none;
    }

    .navbar {
        padding: 1rem 0;
    }

    .post-featured-image-img {
        max-height: none;
    }

    .navbar_title {
        text-align: left;
        margin-bottom: 1rem;
        font-size: 2.5rem;
    }

    .navbar-menu {
        margin-top: 0;
        text-align: left;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        text-align: center;
    }

    .footer-menu li {
        margin: 0 6px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar_title {
        text-align: center;
    }

    .navbar-menu {
        margin-top: 0;
        text-align: center;
    }
}

@media (min-width: 992px) {
    .navbar_title {
        text-align: center;
    }

    .navbar-menu {
        margin-top: 0;
        text-align: center;
    }

    /* Largeur des séparateurs égale aux cartes */
    .separator,
    .footer-separator {
        width: 800px;
    }
}
