/*
Theme Name: CSWIP 2025
Theme URI: https://cswip.ca
Author: Peggy S - Créatrice Web
Description: Minimal custom theme for the Canadian Society for Women in Philosophy (CSWIP), with sections for About, Events & Conferences, Call for Papers, Jobs, Links, and Membership & Contact.
Version: 1.0
Text Domain: cswip2025
*/

:root {
  --cswip-primary: #7b145a;
  --cswip-secondary: #f5e8f2;
  --cswip-dark: #222222;
  --cswip-light: #ffffff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f9fa;
  color: #222;
}

a {
  color: var(--cswip-primary);
}
a:hover, a:focus {
  color: #4f0c37;
  text-decoration: none;
}

/* Header & nav */
.site-header {
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background-color: var(--cswip-light);
}

.site-logo img {
  max-height: 70px;
  width: auto;
}

.navbar-nav .nav-link {
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Hero */
/*.cswip-hero {*/
  /*padding: 4rem 0 3rem;*/
  /*background: radial-gradient(circle at top left, var(--cswip-secondary), #ffffff);*/
/*}*/

.cswip-hero {
    background-image: url('https://cswip.ca/wp-content/uploads/2025/11/sectionUnFP_v1.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 6rem 0 4rem;
    /* border-radius: 0 0 40px 40px; optionnel */
}

.cswip-hero h1 {
  font-weight: 700;
}
.cswip-hero .badge {
  background-color: var(--cswip-primary);
}

/* Sections */
.section-title {
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #ba2939;
}

.cswip-section {
  position: relative;
  padding: 4rem 0;
  background-color: #ffffff;
}

/* Petite barre accent en haut de chaque section */
.cswip-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 6px;
  border-radius: unset;
  background: linear-gradient(90deg, #ba2939 0%, #ba2939 30%, #ffffff00 100%);
}

/* Espacement uniforme entre les sections */
.cswip-section + .cswip-section {
  margin-top: 0;
}

/* Titres de section un peu plus présents */
.cswip-section .section-title,
.cswip-section .h4.section-title {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #ba2939;
}

/* ===== VARIANTE FOND TENDRE ===== */

.cswip-section.bg-light {
  background-color: #fff7f8; /* léger tint de #ba2939 */
}

/* Barre plus douce sur les sections bg-light */
.cswip-section.bg-light::before {
  background: linear-gradient(90deg, #f4c7cf, #ffffff);
}

/* Cards / lists */
.cswip-card {
  background-color: #ffffff;
  border-radius: 0.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 5px 10px rgba(0,0,0,0.02);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  background-color: var(--cswip-dark);
  color: #f1f1f1;
}
.site-footer a {
  color: #f1f1f1;
}

/* Utility */
.mt-6 { margin-top: 4rem !important; }

/* ====== CSWIP HEADER / TOPBAR ====== */

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Bande du haut */
.cswip-topbar {
  min-height: 120px;
  display: flex;
  align-items: center;
}

/* Container interne du header (là où le logo en arrière-plan sera affiché) */
.cswip-topbar-inner {
  min-height: 120px;
  background-repeat: no-repeat;
  background-position: left center;
  /* Hauteur des logos limitée à 120px : on force la taille en hauteur */
  background-size: auto 100%;
}

/* Lien logo : zone cliquable, le visuel vient du background de .cswip-topbar-inner */
.cswip-logo {
  display: block;
  max-width: 400px;   /* largeur max du bloc logo */
  width: auto;
  height: 120px;      /* même hauteur que la topbar */
  flex: 0 0 auto;     /* ne pas prendre plus de place que nécessaire */
}

/* On s’assure que le conteneur flex du logo + burger ne wrap pas */
.cswip-topbar-inner .d-flex {
  flex-wrap: nowrap;
  width: 100%;
}

/* Bouton burger rond, à droite */
.cswip-burger-button {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  background-color: transparent;
  border: 2px solid #ba2939;
}

.cswip-burger-button:hover,
.cswip-burger-button:focus {
  background-color: rgba(186,41,57,0.08);
}

.cswip-burger-line {
 width: 22px;
  height: 3px;
  background-color: #ba2939;
  border-radius: 4px;
}

/* Offcanvas menu styling */
.cswip-offcanvas {
  background-color: #ffffff;
}

.cswip-offcanvas-nav .navbar-nav > li > a,
.cswip-offcanvas-nav .menu > li > a {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

/* ====== ARRIÈRE-PLAN DU HEADER SELON LA LARGEUR ====== */

/* Mobile-first : par défaut, PETIT logo (cswipo-logo...) dans le container */
.cswip-topbar-inner {
  background-image: url('https://cswip.ca/wp-content/uploads/2025/11/masthead-e1764004211812.jpg');
}

/* Sur écrans 992px et + : MASTHEAD large dans le même container */
@media (min-width: 992px) {
  .cswip-topbar-inner {
    background-image: url('https://cswip.ca/wp-content/uploads/2025/11/masthead.jpg');
  }
}

/* On s’assure que la recherche ne s’affiche jamais dans le header */
.cswip-search-desktop {
  display: none !important;
}


/* ===== OFFCANVAS – MINIMALISTE ===== */

.offcanvas-body {
  padding-top: 1rem;
  font-size: 1rem;
}

/* TITRES DE SECTIONS */
.offcanvas-section-title {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a7a7a;
  margin: 1.5rem 0 0.75rem;
  font-weight: 600;
}

/* SEPARATEUR MINIMAL */
.cswip-divider {
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 1rem 0;
}

/* Liens du menu */
.cswip-offcanvas-nav .navbar-nav > li > a {
  padding: 0.35rem 0;
  font-size: 1rem;
  color: #222;
  font-weight: 500;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.cswip-offcanvas-nav .navbar-nav > li > a:hover {
  color: #ba2939;
  padding-left: 4px;
}

/* Recherche minimaliste */
.cswip-offcanvas-search {
  padding: 0.25rem 0;
}

/* Style minimal du champ recherche si tu veux (optionnel) */
.cswip-offcanvas-search input[type="search"] {
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.15);
}
.cswip-offcanvas-search button {
  border-radius: 4px;
  background-color: #ffffff;
  border: 1px solid rgba(0,0,0,0.15);
}

/* Switcher de langue */
.cswip-lang-switcher a {
  color: #222;
  font-weight: 500;
}
.cswip-lang-switcher a:hover {
  color: #ba2939;
}

/* Listes dans la section "Other" */
.offcanvas-body ul li a {
  color: #222;
  transition: color 0.15s ease;
}
.offcanvas-body ul li a:hover {
  color: #ba2939;
}

/* ===== OFFCANVAS – MINIMALISTE + SEARCH ACCENT ===== */

.offcanvas-body {
  padding-top: 1rem;
  font-size: 1rem;
}

/* TITRES DE SECTIONS */
.offcanvas-section-title {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a7a7a;
  margin: 1.5rem 0 0.75rem;
  font-weight: 600;
}

/* SEPARATEUR MINIMAL */
.cswip-divider {
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 1rem 0;
}

/* 🔍 Recherche — ACCENT rose pâle */
.cswip-offcanvas-search {
  padding: 1rem;
  background: #fff5f6; /* rose pâle */
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.03);
  margin-bottom: 1.25rem;
}

/* Style soft du champ */
.cswip-offcanvas-search input[type="search"] {
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.15);
}

.cswip-offcanvas-search button {
  border-radius: 6px;
  background-color: #ffffff;
  border: 1px solid rgba(0,0,0,0.15);
}

/* 📁 Liens du menu */
.cswip-offcanvas-nav .navbar-nav > li > a {
  padding: 0.35rem 0;
  font-size: 1rem;
  color: #222;
  font-weight: 500;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.cswip-offcanvas-nav .navbar-nav > li > a:hover {
  color: #ba2939;
  padding-left: 4px;
}

/* 🌐 Polylang langage */
.cswip-lang-switcher a {
  color: #222;
  font-weight: 500;
}
.cswip-lang-switcher a:hover {
  color: #ba2939;
}

/* ⚙️ Liens de la section OTHER */
.offcanvas-body ul li a {
  color: #222;
  transition: color 0.15s ease;
}
.offcanvas-body ul li a:hover {
  color: #ba2939;
}

/* ===== OFFCANVAS HEADER — hauteur fixe + centrage vertical ===== */

.offcanvas-header {
  height: 120px !important;      /* Hauteur fixe */
  display: flex !important;      /* Flexbox pour le centrage */
  align-items: center !important;/* Centre verticalement */
  justify-content: space-between;/* Titre à gauche, X à droite */
  padding: 0 1.25rem;            /* Un padding propre */
  margin: 0;                     /* Retire tout espace parasite */
}

/* ===== POLYLANG – suppression des puces + style minimal ===== */

.cswip-lang-switcher ul {
  list-style: none !important; /* Retire les puces */
  padding-left: 0 !important;  /* Retire le retrait */
  margin: 0;
}

.cswip-lang-switcher li {
  padding: 0.25rem 0;
  margin: 0;
}

.cswip-lang-switcher a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.cswip-lang-switcher a:hover {
  color: #ba2939;
}

/* ===== OFFCANVAS BACKGROUND IMAGE ===== */
.offcanvas {
  /*  background-image:
    linear-gradient(
      rgba(186, 41, 57, 0.25),
      rgba(186, 41, 57, 0.25)
    ),
    url('https://cswip.ca/wp-content/uploads/2025/11/footerbg.gif');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;*/

  background-image: url('https://cswip.ca/wp-content/uploads/2025/11/footerbg.gif');
  background-size: cover;         /* ou "contain" selon ton test */
  background-repeat: no-repeat;
  background-position: center;
}

/* ===== STYLE GLOBAL DES LIENS (hors boutons) ===== */

/* Sélecteur intelligent qui évite les boutons */
a:not(.btn) {
  color: #222;
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

a:not(.btn):hover,
a:not(.btn):focus {
  color: #ba2939;
  padding-left: 3px; /* petit effet élégant */
}

/* Optionnel : éviter l'effet sur certains espaces si nécessaire */
nav a:not(.btn),
.cswip-offcanvas-nav a:not(.btn),
.site-footer a:not(.btn) {
  padding-left: 0; /* si tu ne veux pas l'effet dans ces zones */
}

/* ===== TITRES H2 / H3 ===== */

.cswip-section h2,
.cswip-section .h2,
.entry-content h2 {
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  color: #ba2939;
  margin-bottom: 1rem;
}

.cswip-section h3,
.cswip-section .h3,
.entry-content h3 {
  font-weight: 600;
  font-size: 1.25rem;
  color: #222;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* ===== LIENS DANS LES CARTES ===== */

.cswip-card a:not(.btn) {
  color: #222;
  font-weight: 500;
  padding-left: 0; /* annule le padding-left global */
  text-decoration: none;
}

.cswip-card a:not(.btn):hover,
.cswip-card a:not(.btn):focus {
  color: #ba2939;
  text-decoration: underline;
}

/* ===== LIENS IMPORTANTS ===== */

a.cswip-link-important:not(.btn) {
  color: #ba2939;
  font-weight: 600;
  border-bottom: 2px solid rgba(186, 41, 57, 0.4);
  padding-bottom: 2px;
  text-decoration: none;
}

a.cswip-link-important:not(.btn):hover,
a.cswip-link-important:not(.btn):focus {
  border-bottom-color: #ba2939;
}

/* ===== STYLE DES LIENS .btn-link (Bootstrap override) ===== */

.btn.btn-link,
a.btn.btn-link {
  color: #ba2939 !important;      /* couleur du thème */
  font-weight: 600;
  text-decoration: none;
  padding-left: 0 !important;
}

.btn.btn-link:hover,
a.btn.btn-link:hover,
.btn.btn-link:focus,
a.btn.btn-link:focus {
  color: #8e1f2c !important;      /* rouge foncé */
  text-decoration: underline;
}

/* Conteneur principal aligné sur le header */
.cswip-main-inner {
  /* Pour l’instant, rien de spécial : on garde le comportement de .container
     Mais si un jour tu veux ajuster la largeur, tu peux le faire ici. */
}

/* Réseaux sociaux – offcanvas CSWIP */

/* UL */
.cswip-social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-left: 0;
    margin: 0;
    list-style: none;
}

/* LI */
.cswip-social-icons li {
    margin: 0;
}

/* Lien = badge rond */
.offcanvas-body .cswip-social-icons a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #ba2939;    /* cercle rouge visible */
    background: #ffffff;          /* fond blanc */
    color: #ba2939;               /* icône rouge */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* Icône SVG : hérite de la couleur du lien */
.offcanvas-body .cswip-social-icons svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* HOVER : cercle rouge plein + icône blanche + petit glow */
.offcanvas-body .cswip-social-icons a:hover {
    background: #ba2939;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 0 6px rgba(186, 41, 57, 0.4);
}

/* Forcer le blanc sur le SVG au hover */
.offcanvas-body .cswip-social-icons a:hover svg {
    fill: #ffffff !important;
    color: #ffffff !important;
}

.cswip-footer-credit {
    font-size: 0.7rem;
    color: #f1f1f1;
    opacity: 0.9;
}

.cswip-footer-credit a.cswip-footer-contact {
    color: #f9c2cb;
    font-weight: 100;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.cswip-footer-credit a.cswip-footer-contact:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Footer du Offcanvas : bloc Connexion / Dashboard */
.cswip-login-footer {
    position: absolute;
    bottom: 10px;               /* distance du bas */
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 12px;            /* petit caractère */
    padding: 5px 0;
    color: #555;
}

.cswip-login-link {
    color: #444;
    text-decoration: none;
    transition: color 0.15s ease;
}

.cswip-login-link:hover {
    color: #ba2939;
    text-decoration: underline;
}

/* Petit séparateur (•) */
.cswip-login-footer .sep {
    margin: 0 6px;
    color: #999;
}

/* ========= POSTS (HOME) – BLOCK MINIMAL ========= */

/* Image à la une dans les posts de la home */
.cswip-post-thumb img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0.75rem 0.75rem 0 0;
}

/* Catégories au-dessus du titre */
.cswip-post-categories {
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
}

/* Extrait */
.cswip-post-excerpt {
    font-size: 0.95rem;
}

/* ===== SECTION LATEST POSTS – LOOK PLUS CHALEUREUX ===== */

/* Fond légèrement rosé pour distinguer la section */
.cswip-latest-posts {
    background-color: #fff5f6; /* rose très pâle */
}

/* Barre du haut un peu plus douce pour cette section */
.cswip-latest-posts::before {
    background: linear-gradient(90deg, #f4c7cf 0%, #ffffff 100%);
}

/* Cards de cette section : bordure et ombre un peu plus présentes */
.cswip-latest-posts .cswip-card {
    border-color: rgba(186, 41, 57, 0.18);
    box-shadow: 0 8px 18px rgba(186, 41, 57, 0.05);
}

/* Catégories en petit ruban rose */
.cswip-latest-posts .cswip-post-categories {
    color: #ba2939;
    background-color: #ffe8ee;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

/* Titre du post un peu plus costaud */
.cswip-latest-posts .cswip-post-card h3 {
    font-size: 1.1rem;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

/* Texte d’intro de la section */
.cswip-latest-posts p {
    max-width: 600px;
}
.cswip-post-date {
    font-size: 0.8rem;
    color: #777;
}
/* ===== BACKGROUND POUR LA SECTION POSTS (aligné gauche + bas) ===== */

.cswip-latest-posts {
    background-image: url('https://cswip.ca/wp-content/uploads/2025/11/footerbg.gif');
    background-repeat: no-repeat;
    background-position: right bottom; /* gauche + bas */
    background-size: auto;            /* taille naturelle */
    background-attachment: scroll;    /* PAS fixe */
}

/* SECTION POSTS en pleine largeur */
.cswip-latest-posts {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
}

/* Un container wide uniquement dans la section Posts */
.cswip-latest-posts .container {
    max-width: 1600px; /* large, mais pas immense */
    padding-left: 5rem;   /* marge interne confortable */
    padding-right: 5rem;  /* marge interne confortable */
}

/* Mise en page responsive des posts : 1, 2 ou 3 posts */
.cswip-latest-posts .row.g-4 {
    display: flex;
    flex-wrap: wrap;
}

/* Les cards adaptent leur largeur automatiquement */
.cswip-latest-posts .cswip-post-card-wrapper {
    flex: 1 1 33.333%;   /* 3 posts = 3 colonnes */
    padding: 0.75rem;
}

/* 2 posts = 2 colonnes full width */
@media (max-width: 1100px) {
    .cswip-latest-posts .cswip-post-card-wrapper {
        flex: 1 1 50%;
    }
}

/* 1 post = 1 colonne full width */
@media (max-width: 700px) {
    .cswip-latest-posts .cswip-post-card-wrapper {
        flex: 1 1 100%;
    }
}
/* ===== LAYOUT INTELLIGENT POUR LA SECTION POSTS ===== */

/* La rangée devient un flex container */
.cswip-posts-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* 3 posts : 3 colonnes */
.cswip-post-col-3 {
    flex: 0 1 33.333%;
    padding: 0.75rem;
}

/* 2 posts : 2 colonnes */
.cswip-post-col-2 {
    flex: 0 1 50%;
    padding: 0.75rem;
}

/* 1 post : card large centrée */
.cswip-post-col-1 {
    flex: 0 1 100%;
    max-width: 900px;
    padding: 0.75rem;
    margin-left: auto;
    margin-right: auto;
}

/* Responsif : sur petits écrans, 1 colonne dans tous les cas */
@media (max-width: 768px) {
    .cswip-post-col-1,
    .cswip-post-col-2,
    .cswip-post-col-3 {
        flex: 0 1 100%;
        max-width: 100%;
    }
}

/* Date du post */
.cswip-post-date {
    font-size: 0.8rem;
    color: #777;
}
/* ===== SECTION POSTS – OPTION D (FLAT MINIMAL CLEAN) ===== */

/* Fond propre, sans couleur */
.cswip-latest-posts {
    background-color: #ffffff;
}

/* Cards ultra sobres et académiques */
.cswip-latest-posts .cswip-card {
    background-color: #ffffff;
    border: 1px solid #e4e4e4;      /* gris ultra léger */
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: none;                /* look plat */
}

/* Catégories — petit accent mais minimaliste */
.cswip-post-categories {
    color: #ba2939;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Date très sobre */
.cswip-post-date {
    font-size: 0.8rem;
    color: #777;
}

/* Titre : propre et affirmé */
.cswip-latest-posts h3.h5 a {
    color: #222;
    font-weight: 700;
    text-decoration: none;
}

/* Extrait : lecture fluide, ton sobre */
.cswip-post-excerpt {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.55;
}

/* Image avec coins arrondis propres */
.cswip-latest-posts .cswip-post-thumb img {
    border-radius: 0.75rem 0.75rem 0 0;
    object-fit: cover;
    height: 180px;
    width: 100%;
}

/* Ajuste les marges internes pour la largeur max */
.cswip-latest-posts .container {
    padding-left: 10px;
    padding-right: 10px;
}
/* ===== FINITIONS SECTION POSTS – VERSION ÉPURÉE ===== */

/* Cards : plus de liseré rose, look clean et pro */
.cswip-latest-posts .cswip-card {
    border: 1px solid #e6e6e6;             /* bordure légère */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.03);
    border-radius: 0.75rem;
    background: #ffffff;
}

/* Titre de post : police moins grasse, look plus raffiné */
.cswip-latest-posts h3.h5 a {
    font-weight: 500;       /* AVANT 700 → maintenant plus doux */
    color: #222;
}

/* Soulignement discret sous le titre */
.cswip-latest-posts h3.h5 {
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #f0dde2;
    margin-bottom: 0.75rem;
}

/* Au survol : léger accent CSWIP */
.cswip-latest-posts h3.h5 a:hover {
    color: #ba2939;
}

/* Titre de section : icône + soulignement */
.cswip-latest-posts .section-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 2px solid #ba2939;
    padding-bottom: 0.25rem;
}

.cswip-latest-posts .section-title::before {
    content: "📢";
    font-size: 1.1rem;
    line-height: 1;
}
/* Pagination des posts */
.cswip-posts-pagination .pagination {
    justify-content: center;
    gap: 6px;
}

.cswip-posts-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #e0e0e0;
    font-size: 0.85rem;
    color: #444;
    text-decoration: none;
    padding: 0 10px;
}

.cswip-posts-pagination .page-numbers.current {
    background-color: #ba2939;
    color: #ffffff;
    border-color: #ba2939;
    font-weight: 600;
}

.cswip-posts-pagination .page-numbers:hover {
    border-color: #ba2939;
    color: #ba2939;
}
/* PAGINATION ELEGANTE */
.cswip-pagination ul {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding-left: 0;
    list-style: none;
}

.cswip-pagination li a,
.cswip-pagination li span {
    display: inline-flex;
    min-width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #ccc;
    font-size: 0.9rem;
    color: #444;
    text-decoration: none;
    transition: 0.25s;
}

.cswip-pagination li a:hover {
    color: #ba2939;
    border-color: #ba2939;
}

.cswip-pagination .current {
    background: #ba2939;
    color: #fff;
    border-color: #ba2939;
    font-weight: 600;
}
/* Fond de la page News : image en bas à gauche, comme un décor */
.cswip-news-page {
    background-image: url('https://cswip.ca/wp-content/uploads/2025/11/footerbg.gif');
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: auto;
}
/* Wrapper */
.cswip-offcanvas-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Part left : CSWIP + barre verticale */
.cswip-brand-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cswip-logo-text {
    font-size: 2.2rem; /* Ajuste exactement comme ton site si nécessaire */
    font-weight: 600;
    line-height: 1;
    color: #000;
}

/* La barre verticale */
.cswip-divider-vertical {
    display: inline-block;
    width: 1px;
    height: 36px;
    background-color: #000;
    opacity: 0.5; /* gris léger comme sur ton image */
}

/* Sous-titre à droite */
.cswip-brand-right {
    max-width: 260px; /* empêche le texte de devenir trop large */
}

.cswip-subtitle {
    font-size: 1.1rem;
    line-height: 1.2;
    font-weight: 400;
    color: #000;
    display: block;
}

/* ===== BOUTON CLOSE OFFCANVAS – VERSION FINALE ===== */

.offcanvas-header .btn-close {
    width: 38px;
    height: 38px;
    padding: 0;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid #a30000;
    background: transparent;
    background-image: none; /* désactive l’icône Bootstrap */
    opacity: 1;
}

/* Notre X personnalisé */
.offcanvas-header .btn-close::before {
    content: "✕";
    font-size: 18px;
    line-height: 34px;
    color: #a30000;
    font-weight: 700;
    display: block;
    text-align: center;
}

/* Hover léger */
.offcanvas-header .btn-close:hover {
    background-color: rgba(186,41,57,0.08);
}
