/* General Body Styles */
body {
    background-color: #fff;
    font-family: sans-serif;
    overflow-x: hidden;
}

body.overflow-hidden {
    overflow: hidden;
}

.border-b-pb-8 {
  border-bottom: 1px solid currentColor;
  padding-bottom: 2rem;
  border-color: #D3D3D3;
}

/* Layout Container */
.max-w-screen-2xl {
    max-width: 1536px;
}
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

@media (min-width: 640px) {
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}


/* Header */
.header-border {
    border-bottom: 2px solid black;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.header-logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
}
.header-actions {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}
.header-action-button {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: black;
    transition: color 0.2s;
}
.header-action-button:hover {
    color: #dc2626;
}
@media (min-width: 640px) {
    .header-action-button { display: flex; }
}
.icon-button {
    color: black;
    transition: transform 0.3s ease, color 0.3s ease; /* animation fluide */
}
.icon-button:hover {
    transform: scale(1.1);
    color: black;
}
.mobile-menu-button {
    display: block;
}
.desktop-menu-button {
    display: block;
}
@media (min-width: 768px) {
    .mobile-menu-button { display: none; }
    .desktop-menu-button { display: block; }
}

/* Navigation */
.main-nav {
    display: none;
    border-bottom: 2px solid black;
}
@media (min-width: 768px) {
    .main-nav { display: block; }
}
.main-nav nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 0.75rem 0;
}
.main-nav a {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #374151;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease; /* animation fluide */
}
.main-nav a:hover {
    transform: scale(1.1);
    color: black;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: white;
    z-index: 50;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}
.mobile-menu.is-open {
    transform: translateX(0);
}
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid black;
    padding: 1rem;
}
.mobile-menu-nav {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.mobile-menu-nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}
.mobile-menu-nav li {
    margin-bottom: 2rem;
}
.mobile-menu-nav a {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #374151;
    text-decoration: none;
    transition: color 0.2s;
}
.mobile-menu-nav a:hover {
    color: #dc2626;
}
.mobile-menu-footer {
    border-top: 2px solid black;
    padding: 1rem;
    display: flex;
    justify-content: center;
}
.mobile-menu-footer .header-action-button {
    display: flex;
}


/* ddd */

ul.desknav {
  display: ruby;       /* ou flex si tu veux un menu plus classique */
  list-style: none;    /* supprime les puces */
  padding: 0;
  margin: 0;
}

/* Supprimer les ::marker si présent */
ul.desknav li::marker {
  content: "";
}

/* Espacement des items */
ul.desknav li {
  display: inline-block;   /* items horizontaux */
  margin: 0 1rem;          /* 1rem = espace horizontal entre les items */
}

ul.desknav li a{
    text-decoration: none;
    font-weight: 700;
    color: black;
}
/* Desktop Menu */
.desktop-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: white;
    z-index: 50;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}
.desktop-menu.is-open {
    transform: translateX(0);
}
.desktop-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid black;
    padding: 1rem;
}
.desktop-menu-nav {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.desktop-menu-nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}
.desktop-menu-nav li {
    margin-bottom: 2rem;
}
.desktop-menu-nav a {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #374151;
    text-decoration: none;
    transition: color 0.2s;
}
.desktop-menu-nav a:hover {
    color: #dc2626;
}
.desktop-menu-footer {
    border-top: 2px solid black;
    padding: 1rem;
    display: flex;
    justify-content: center;
}
.desktop-menu-footer .header-action-button {
    display: flex;
}


/* Search Modal */
.search-modal {
    position: fixed;
    inset: 0;
    background-color: white;
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 6rem 1rem 1rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}
.search-modal.is-open {
    transform: translateY(0);
}
.search-modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: black;
    transition: transform 0.3s ease, color 0.3s ease;
}
.search-modal-close-btn:hover {
    transform: scale(1.1);
    color: black;
}
@media (min-width: 640px) {
    .gap-8 { gap: 0rem; }
    .search-modal-close-btn { top: 2rem; right: 2rem; }
}
.search-input {
    width: 100%;
    font-size: 1.5rem;
    font-weight: 300;
    text-align: center;
    background-color: transparent;
    border: 0;
    border-bottom: 2px solid #d1d5db;
    outline: none;
    transition: border-color 0.3s;
    padding: 1rem 0;
    color: black;
}
.search-input::placeholder {
    color: #9ca3af;
}
.search-input:focus {
    border-color: black;
    ring: 0;
}
@media (min-width: 640px) {
    .search-input { font-size: 2.25rem; }
}


/* Grid Layout */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-8 { gap: 2rem; }

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:col-span-1 { grid-column: span 1 / span 1; }
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
    .lg\:col-span-3 { grid-column: span 3 / span 3; }
    .lg\:pt-20 { padding-top: 5rem; }
    .lg\:gap-12 { gap: 3rem; }
}
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:item-1 { order: 1 !important; }
    .md\:item-2 { order: 2 !important; }
}

.item-1 {
  order: 2; /* reversed on mobile */
}

.item-2 {
  order: 1; /* reversed on mobile */
}

/* Article Styles */
.article-tag {
    text-decoration: none;
    color: black;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
}
.red-tag { background-color: #ffdd04; }

.article-title-link {
    text-decoration: none;
    color: #111827;
}
.article-title-link:hover {
    text-decoration: underline;
}
.article-date {
    font-size: 0.875rem;
    color: #6b7281;
}
.article-image {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    height: unset;
}
.block { display: block; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
.space-y-12 > :not([hidden]) ~ :not([hidden]) { margin-top: 3rem; }
.space-y-16 > :not([hidden]) ~ :not([hidden]) { margin-top: 4rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

/* Hero Article */
.hero-main-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
    color: #111827;
}
@media (min-width: 768px) {
    .hero-main-title { font-size: 3rem; line-height: 1; }
}
.hero-side-title {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
}
.hero-side-date {
    font-size: 0.75rem;
}

/* Featured Article */
.featured-section-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 3rem 0;
}
.divider-line {
    flex-grow: 1;
    border-top: 1px solid #d1d5db;
}
.divider-title {
    padding: 0 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #1f2937;
}
.featured-card-title {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
}
.read-more-btn {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    background-color: #dc2626;
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    letter-spacing: 0.05em;
    transition: background-color 0.2s;
}
.read-more-btn:hover {
    background-color: #b91c1c;
}

/* Article Page */
.back-button {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: black;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}
.back-button:hover {
    transform: scale(1.1);
}
.article-content-title {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 2.25rem;
}
@media (min-width: 768px) {
    .article-content-title { font-size: 3rem; line-height: 1; }
}
.article-separator {
    margin-bottom: 4rem;
    border-color: #d1d5db;
}
.article-prose {
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: #374151;
}
.article-prose p {
    margin-bottom: 1.5rem;
}
.loading-indicator {
    text-align: center;
    padding: 3rem 0;
    color: #6b7281;
}

/* Side Related Articles */
.related-articles h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #1f2937;
    border-bottom: 2px solid #d1d5db;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}
.related-articles h3 {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 700;
}

/* Utility classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
.w-full { width: 100%; }
.max-w-2xl { max-width: 42rem; }
button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
.h-6 { height: 1.5rem; }
.w-6 { width: 1.5rem; }
.h-8 { height: 2rem; }
.w-8 { width: 2rem; }


.logo-tag {
    text-decoration: none;
    color: white;
    font-size:1.2em;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
}

article > a {
    text-decoration: none;
    color: black;
}



.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 100% !important;
	width: auto !important;
    /* Override inline width */
    padding: 5px 3px 10px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 100%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
    padding: 0 4px 5px;
    color: var(--text-light);
    font-style: italic;
}