/* ============================================================
   SOGOB — main.css
   Stratégie anti-conflit Bootstrap :
   • Solution 1 : tous les sélecteurs préfixés par .sogob-theme
   • Solution 2 : variables Bootstrap 5 surchargées dans :root
   ============================================================ */


/* ============================================================
   1. VARIABLES SOGOB + SURCHARGE DES VARIABLES BOOTSTRAP 5
   ============================================================ */
:root {
  /* --- Palette SOGOB --- */
  --sogob-primary:   #6A4430;
  --sogob-secondary: #B4DFF1;
  --sogob-bg:        #EFF5F8;
  --sogob-accent:    #C49D9D;
  --sogob-text:      #030302;
  --text-logo:       #C53B44;

  /* --- Typographie SOGOB --- */
  --font-title: 'Playfair Display', serif;
  --font-body:  'Inter', sans-serif;

  /* --- Surcharge des variables Bootstrap 5 (Solution 2) ---
     Ces redéfinitions évitent les conflits sans !important      */
  --bs-primary:             #6A4430;
  --bs-primary-rgb:         106, 68, 48;
  --bs-link-color:          #6A4430;
  --bs-link-color-rgb:      106, 68, 48;
  --bs-link-hover-color:    #C53B44;
  --bs-body-font-family:    'Inter', sans-serif;
  --bs-body-bg:             #EFF5F8;
  --bs-body-color:          #333333;
  --bs-border-radius:       0.5rem;
  --bs-border-radius-lg:    0.75rem;
  --bs-border-radius-pill:  50rem;
  --bs-focus-ring-color:    rgba(106, 68, 48, 0.25);
}


/* ============================================================
   2. BASE — Body & Typographie  (.sogob-theme = <body>)
   ============================================================ */
.sogob-theme {
  font-family: var(--font-body);
  background-color: var(--sogob-bg);
  color: var(--sogob-text);
  overflow-x: hidden;
  position: relative;
}

.sogob-theme h1,
.sogob-theme h2,
.sogob-theme h3,
.sogob-theme h4,
.sogob-theme h5,
.sogob-theme h6,
.sogob-theme .navbar-brand {
  font-family: var(--font-title);
}

.sogob-theme .font-title {
  font-family: var(--font-title);
}


/* ============================================================
   3. TOPBAR
   ============================================================ */
.sogob-theme #topbar {
  background: var(--sogob-primary);
  height: 40px;
  font-size: 13px;
  color: #fff;
}

.sogob-theme #topbar a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.sogob-theme #topbar a:hover {
  color: var(--sogob-secondary);
}

.sogob-theme .social-links a {
  margin-left: 15px;
  font-size: 14px;
}

.sogob-theme .contact-info i:first-of-type {
  margin-right: 0.5rem;
}

.sogob-theme .contact-info i:not(:first-of-type) {
  margin-right: 0.5rem;
  margin-left: 1.5rem;
}

.sogob-theme ul.coordonnees li > i {
  margin-right: 1rem;
}

.sogob-theme ul.coordonnees li > a {
  text-decoration: none;
  color: rgba(var(--bs-white-rgb), var(--bs-text-opacity));
}


/* ============================================================
   4. NAVBAR
   ============================================================ */
.sogob-theme .navbar {
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.sogob-theme .navbar-brand img {
  height: 70px;
  transition: 0.3s;
}

.sogob-theme .nav-link {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin: 0 5px;
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  transition: 0.3s;
  color: #333;
}

.sogob-theme .nav-link:hover,
.sogob-theme #menu-menu-principal li.active > a {
  background: var(--sogob-bg);
  color: var(--sogob-primary);
  font-weight: 700;
}

.sogob-theme .btn-donate {
  background-color: var(--text-logo);
  color: white;
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-left: 15px;
  text-decoration: none;
  display: inline-block;
}

.sogob-theme .btn-donate:hover {
  background-color: #a32a31;
  color: white;
}

/* Nav Pills (médiathèque) */
.sogob-theme .nav-pills .nav-link {
  background: white;
  color: var(--sogob-primary);
  border-radius: 50px;
  padding: 10px 30px;
  margin: 0 10px;
  font-weight: bold;
  border: 2px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sogob-theme .nav-pills .nav-link.active {
  background: var(--text-logo);
  color: white;
  border-color: var(--text-logo);
}


/* ============================================================
   5. PAGE HEADER & HERO WAVE
   ============================================================ */
.sogob-theme .page-header {
  position: relative;
  background: linear-gradient(rgba(106, 68, 48, 0.9), rgba(106, 68, 48, 0.7)),
    url('https://images.unsplash.com/photo-1579684385127-1ef15d508118?q=80&w=2000&auto=format&fit=crop')
    center / cover;
  padding: 100px 0 120px;
  color: white;
  text-align: center;
  margin-bottom: 60px;
}

.sogob-theme .page-header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.sogob-theme .hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 5;
}

.sogob-theme .hero-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.sogob-theme .hero-wave .shape-fill {
  fill: var(--sogob-bg);
}


/* ============================================================
   6. HERO CAROUSEL (index)
   ============================================================ */
.sogob-theme #heroCarousel {
  position: relative;
}

.sogob-theme #hero-carousel-inner > .carousel-item {
  height: 80vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
}

sogob-theme #carouselAlbum > .carousel-item {
  height: 80vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

.sogob-theme .carousel-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    to right,
    rgba(106, 68, 48, 0.95) 0%,
    rgba(106, 68, 48, 0.6) 50%,
    transparent 100%
  );
}

.sogob-theme .hero-content {
  position: relative;
  z-index: 2;
  color: white;
  height: 100%;
  display: flex;
  align-items: center;
}

.sogob-theme .hero-badge {
  display: inline-block;
  padding: 6px 15px;
  background: var(--text-logo);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
}

.sogob-theme .hero-badge a {
  text-decoration: none;
  color: #fff;
}

.sogob-theme .hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.sogob-theme .hero-excerpt {
  font-size: 1.2rem;
  margin-bottom: 30px;
  font-weight: 300;
  max-width: 600px;
  opacity: 0.9;
}

/* Wave hero → chiffres clés (index) */
.sogob-theme #heroCarousel .hero-wave svg {
  height: 80px;
}

.sogob-theme #heroCarousel .hero-wave .shape-fill {
  fill: #ffffff;
}


/* ============================================================
   7. CHIFFRES CLÉS
   ============================================================ */
.sogob-theme .stats-section {
  background-color: #ffffff;
  padding: 60px 0;
  position: relative;
  z-index: 10;
  margin-top: -30px;
}

.sogob-theme .stat-card {
  text-align: center;
  padding: 20px;
}

.sogob-theme .stat-icon {
  font-size: 2.5rem;
  color: var(--sogob-secondary);
  margin-bottom: 15px;
}

.sogob-theme .stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--sogob-primary);
  font-family: var(--font-title);
  line-height: 1;
}

.sogob-theme .stat-text {
  font-size: 1rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  margin-top: 10px;
}


/* ============================================================
   8. SECTIONS & CARDS GÉNÉRIQUES
   ============================================================ */
.sogob-theme .section-title {
  color: var(--sogob-primary);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 30px;
  border-bottom: 3px solid var(--sogob-secondary);
  padding-bottom: 10px;
  display: inline-block;
}

.sogob-theme .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.sogob-theme .section-header h2 {
  font-size: 2.5rem;
  color: var(--sogob-primary);
  font-weight: 700;
}

.sogob-theme .divider {
  height: 4px;
  width: 60px;
  background: var(--sogob-accent);
  margin: 20px auto;
  border-radius: 2px;
}

.sogob-theme .content-section {
  margin-bottom: 80px;
  scroll-margin-top: 120px;
}

/* Feature Card */
.sogob-theme .feature-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: 0.3s;
  border-top: 4px solid var(--sogob-primary);
}

.sogob-theme .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Feature card variante médiathèque */
.sogob-theme .feature-card img {
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.sogob-theme .icon-box {
  width: 60px;
  height: 60px;
  background: var(--sogob-bg);
  color: var(--sogob-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}


/* ============================================================
   9. MENU LATÉRAL / SCROLLSPY (page about)
   ============================================================ */
.sogob-theme .sidebar-nav {
  position: sticky;
  top: 120px;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.sogob-theme .sidebar-nav .nav-link {
  color: #555;
  border-left: 3px solid transparent;
  padding: 12px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 0 8px 8px 0;
}

.sogob-theme .sidebar-nav #menu-menu-principal li.active > a,
.sogob-theme .sidebar-nav .nav-link:hover {
  border-color: var(--sogob-primary);
  color: var(--sogob-primary);
  background: var(--sogob-bg);
  font-weight: 700;
}


/* ============================================================
   10. ACCORDION (activités)
   ============================================================ */
.sogob-theme .accordion-button {
  font-weight: 600;
  color: var(--sogob-primary);
  background-color: white;
  border-bottom: 1px solid #eee;
}

.sogob-theme .accordion-button:not(.collapsed) {
  color: var(--sogob-primary);
  background-color: var(--sogob-bg);
  box-shadow: none;
}

.sogob-theme .accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.1);
}

.sogob-theme .accordion-item {
  border: none;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}


/* ============================================================
   11. PRÉSIDENTS
   ============================================================ */
.sogob-theme .presidents-section {
  padding: 80px 0;
  background: var(--sogob-bg);
  position: relative;
}

.sogob-theme .pres-card-mag {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.sogob-theme .pres-card-mag:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(106, 68, 48, 0.15);
}

.sogob-theme .pres-img-mag {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.sogob-theme .pres-mag-body {
  padding: 25px;
  text-align: center;
}

.sogob-theme .btn-mag-action {
  background: var(--sogob-bg);
  color: var(--sogob-primary);
  border: 2px solid var(--sogob-primary);
  padding:5px 10px;
  border-radius: 50px;
  font-weight: bold;
  transition: 0.3s;
  width: 100%;
}

.sogob-theme .btn-mag-action:hover {
  background: var(--sogob-primary);
  color: white;
}


/* ============================================================
   12. SWIPER (slider)
   ============================================================ */
/* Swiper expose --swiper-navigation-color pour coloriser ses flèches SVG internes */
.sogob-theme .presidents-slider-container {
  position: relative;
  padding: 0 25px;
}

.sogob-theme .swiper-button-next,
.sogob-theme .swiper-button-prev {
  --swiper-navigation-color: var(--sogob-primary);
  --swiper-navigation-size: 20px;
  background: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  transition: background 0.3s, box-shadow 0.3s;
  top: 38%;
}

.sogob-theme .swiper-button-next:hover,
.sogob-theme .swiper-button-prev:hover {
  --swiper-navigation-color: white;
  background: var(--sogob-primary);
  box-shadow: 0 6px 20px rgba(106, 68, 48, 0.35);
}


/* ============================================================
   13. ACTUALITÉS
   ============================================================ */
.sogob-theme .news-section {
  background: white;
  padding: 100px 0;
}

/* Variante index (fond coloré + bordure basse) */
.sogob-theme .news-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: 0.3s;
  background: var(--sogob-bg);
  height: 100%;
  border-bottom: 4px solid transparent;
}

.sogob-theme .news-card:hover {
  transform: translateY(-8px);
  border-bottom: 4px solid var(--text-logo);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

/* Variante page actualités (fond blanc + bordure haute) */
.sogob-theme .news-card.news-card--page {
  background: white;
  border-top: 4px solid var(--sogob-primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-bottom: none;
}

.sogob-theme .news-card img {
  height: 240px;
  object-fit: cover;
  width: 100%;
}

.sogob-theme .category-badge-news {
  background: var(--text-logo);
  color: white;
  padding: 5px 15px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
}

.sogob-theme .category-badge-news a {
  text-decoration: none;
  color: #ffffff;
}


/* ============================================================
   14. PARTENAIRES
   ============================================================ */
.sogob-theme .partners-section {
  background: var(--sogob-bg);
  padding: 4rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.sogob-theme .partners-slider-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.sogob-theme .partners-track {
  display: flex;
  align-items: center;
  width: fit-content;
  animation: scroll-partners 30s linear infinite;
}

.sogob-theme .partner-logo-item {
  width: 180px;
  height: 80px;
  margin: 0 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: grayscale(1);
  opacity: 0.5;
  transition: 0.3s;
  flex-shrink: 0;
}

.sogob-theme .partner-logo-item:hover {
  filter: grayscale(0);
  opacity: 1;
}

.sogob-theme .partner-logo-item a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.sogob-theme .partner-logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@keyframes scroll-partners {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ============================================================
   15. MODALE — BUREAU
   ============================================================ */
.sogob-theme .bureau-item {
  background: var(--sogob-bg);
  border-left: 4px solid var(--sogob-primary);
  padding: 12px 15px;
  border-radius: 8px;
  height: 100%;
}

.sogob-theme .bureau-item .role {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--sogob-primary);
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.sogob-theme .bureau-item .name {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0;
}

.sogob-theme .bureau-item .deputy {
  font-size: 0.8rem;
  color: #666;
  font-style: italic;
  margin-top: 5px;
}


/* ============================================================
   16. CONTACT
   ============================================================ */
.sogob-theme .contact-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  border-left: 4px solid var(--sogob-primary);
}

.sogob-theme .contact-icon {
  width: 50px;
  height: 50px;
  background: var(--sogob-bg);
  color: var(--sogob-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 20px;
}

.sogob-theme .form-box {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  border-top: 5px solid var(--text-logo);
}

.sogob-theme .form-control {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  padding: 0.8rem 1rem;
  border-radius: 8px;
}

.sogob-theme .form-control:focus {
  border-color: var(--sogob-primary);
  box-shadow: none;
  background-color: #fff;
}




/* ============================================================
   16b. NINJA FORMS — Bouton Submit
   Ninja Forms génère un <input type="submit"> ou <button>
   avec les classes .ninja-forms-field et .nf-element.
   On surcharge leur style pour correspondre à la maquette.
   ============================================================ */

/* Champs texte / textarea / select Ninja Forms */
.sogob-theme .nf-form-content .nf-field-element input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.sogob-theme .nf-form-content .nf-field-element textarea,
.sogob-theme .nf-form-content .nf-field-element select {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.sogob-theme .nf-form-content .nf-field-element input:not([type="submit"]):focus,
.sogob-theme .nf-form-content .nf-field-element textarea:focus,
.sogob-theme .nf-form-content .nf-field-element select:focus {
  border-color: var(--sogob-primary);
  box-shadow: none;
  background-color: #fff;
  outline: none;
}

/* Labels */
.sogob-theme .nf-form-content label {
  font-weight: 600;
  color: #444;
  margin-bottom: 0.4rem;
  font-family: var(--font-body);
}

/* Bouton Submit — reproduit exactement la maquette */
.sogob-theme .nf-form-content input[type="submit"].ninja-forms-field,
.sogob-theme .nf-form-content button[type="submit"].ninja-forms-field,
.sogob-theme .nf-form-content .submit-wrap input[type="submit"],
.sogob-theme .nf-form-content .submit-wrap button {
  /* Reset total des styles Ninja Forms */
  all: unset;
  /* Styles maquette */
  display: block;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--sogob-primary);
  color: #ffffff;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.9rem 1.5rem;
  border-radius: 50rem; /* rounded-pill Bootstrap */
  text-align: center;
  cursor: pointer;
  border: none;
  margin-top: 1.5rem;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
  letter-spacing: 0.3px;
}

.sogob-theme .nf-form-content input[type="submit"].ninja-forms-field:hover,
.sogob-theme .nf-form-content button[type="submit"].ninja-forms-field:hover,
.sogob-theme .nf-form-content .submit-wrap input[type="submit"]:hover,
.sogob-theme .nf-form-content .submit-wrap button:hover {
  background-color: #552f1e; /* sogob-primary assombri */
  box-shadow: 0 6px 20px rgba(106, 68, 48, 0.35);
  transform: translateY(-2px);
}

.sogob-theme .nf-form-content input[type="submit"].ninja-forms-field:active,
.sogob-theme .nf-form-content button[type="submit"].ninja-forms-field:active,
.sogob-theme .nf-form-content .submit-wrap input[type="submit"]:active,
.sogob-theme .nf-form-content .submit-wrap button:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Message de succès / erreur Ninja Forms */
.sogob-theme .nf-response-msg {
  margin-top: 1rem;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
}

.sogob-theme .nf-response-msg p {
  margin: 0;
}

/* ============================================================
   17. MÉDIATHÈQUE
   ============================================================ */
.sogob-theme .btn-album {
  background-color: #B8860B;
  color: white;
  border-radius: 50px;
  font-weight: bold;
  padding: 8px 20px;
  border: none;
  transition: 0.3s;
}

.sogob-theme .btn-album:hover {
  background-color: #8B6508;
  color: white;
  transform: scale(1.05);
}

.sogob-theme .vid-thumb {
  position: relative;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
}

.sogob-theme .vid-thumb::after {
  content: '\f144';
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 3rem;
  opacity: 0.8;
  transition: 0.3s;
}

.sogob-theme .vid-thumb:hover::after {
  color: var(--text-logo);
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.sogob-theme .vid-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: 0.4s;
}

.sogob-theme .vid-thumb:hover img {
  transform: scale(1.05);
  filter: brightness(0.7);
}


/* ============================================================
   18. FOOTER
   ============================================================ */
.sogob-theme footer {
  background-color: var(--sogob-primary);
  color: white;
  padding: 5rem 0 2rem;
  font-size: 0.9rem;
}

.sogob-theme .footer-logo {
  height: 70px;
  margin-bottom: 20px;
}


/* ============================================================
   19. ANIMATIONS & UTILITAIRES
   ============================================================ */
.sogob-theme .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.sogob-theme .reveal.active {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   20. RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .sogob-theme .hero-title {
    font-size: 2rem;
  }

  .sogob-theme .carousel-item::before {
    background: linear-gradient(
      to bottom,
      rgba(106, 68, 48, 0.8),
      rgba(106, 68, 48, 0.9)
    );
  }

  .sogob-theme .page-header h1 {
    font-size: 2.2rem;
  }

  .sogob-theme .section-title {
    font-size: 1.8rem;
  }
}

/* ============================================================
   21. PAGINATION — Page Actualités
   ============================================================ */
 
/* Boutons de page */
.sogob-theme .pagination-sogob .page-link {
  color: var(--sogob-primary);
  border: 1px solid #dee2e6;
  border-radius: 8px;
  min-width: 40px;
  text-align: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: var(--font-body);
}
 
.sogob-theme .pagination-sogob .page-link:hover {
  background-color: var(--sogob-bg);
  border-color: var(--sogob-primary);
  color: var(--sogob-primary);
}
 
/* Page active */
.sogob-theme .pagination-sogob .page-item.active .page-link {
  background-color: var(--sogob-primary);
  border-color: var(--sogob-primary);
  color: #ffffff;
}
 
/* Boutons Précédent / Suivant (rounded-pill) */
.sogob-theme .pagination-sogob .page-link.rounded-pill {
  background-color: var(--sogob-bg);
  border-color: var(--sogob-primary);
  font-weight: 600;
  font-size: 0.85rem;
}
 
.sogob-theme .pagination-sogob .page-link.rounded-pill:hover:not(:disabled) {
  background-color: var(--sogob-primary);
  color: #ffffff;
}
 
/* État désactivé */
.sogob-theme .pagination-sogob .page-item.disabled .page-link {
  opacity: 0.4;
  pointer-events: none;
}

/* ============================================================
   22. BOUTON SCROLL TO TOP
   ============================================================ */
.sogob-theme .scroll-top {
  position: fixed;        /* ancré à la fenêtre, hors du flux */
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  width: 46px;
  height: 46px;
  background-color: var(--sogob-primary);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(106, 68, 48, 0.4);
  cursor: pointer;
  text-decoration: none;
  /* Caché par défaut, révélé par JS quand scrollY > 200 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.3s;
}
 
.sogob-theme .scroll-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
 
.sogob-theme .scroll-top:hover {
  background-color: #552f1e;
  box-shadow: 0 6px 20px rgba(106, 68, 48, 0.5);
}
 
@media (max-width: 768px) {
  .sogob-theme .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}