/*
Theme Name: Amis de Sabeel France
Theme URI: https://amisdesabeel.fr
Author: Studio Cassette
Author URI: https://www.studiocassette.com
Description: Theme officiel pour le site des Amis de Sabeel France - Reseau de soutien au Centre oecumenique Sabeel present a Jerusalem et Nazareth.
Version: 1.4.2
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amis-sabeel
Tags: blog, news, one-column, two-columns, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, translation-ready
*/

/* =============================================================
   TABLE DES MATIÈRES
   ---------------------------------------------------------------
   1.  VARIABLES CSS (tokens de design)
   2.  RESET & BASE
   3.  TYPOGRAPHIE
   4.  LIENS & TRANSITIONS
   5.  LAYOUT (container, utilitaires)
   6.  COMPOSANTS COMMUNS
       6a. Boutons (.btn)
       6b. Badges catégories (.category-badge)
       6c. Pagination
       6d. Formulaire de recherche
   7.  EN-TÊTE & NAVIGATION
       7a. Header
       7b. Navigation principale
       7c. Menu mobile
   8.  PAGE D'ACCUEIL
       8a. Hero section
       8b. Section vague de prière (prayer-card)
       8c. Grille d'articles (articles-grid)
       8d. Collections (collections-grid)
       8e. Newsletter
   9.  PAGES INTÉRIEURES
       9a. En-tête de page (page-header, breadcrumb)
       9b. Contenu article simple (single-content)
       9c. Sidebar & widgets
   10. PAGE QUI SOMMES-NOUS
       10a. Intro logo + titre
       10b. Contenu Gutenberg (objectifs, déclaration)
       10c. Section Nous soutenir
       10d. Carte contact
   11. PAGE CONTACT
   12. PAGE PARTENAIRES
   13. ZONE DE COMMENTAIRES
   14. PAGE 404 / NO RESULTS
   15. PIED DE PAGE
   16. UTILITAIRES & HELPERS
   17. IMPRESSION (@print)
   ============================================================= */


/* =============================================================
   1. VARIABLES CSS
   ============================================================= */

:root {
  /* Couleurs principales */
  --color-background:           hsl(45, 30%, 97%);
  --color-foreground:           hsl(220, 15%, 15%);
  --color-card:                 hsl(45, 35%, 99%);
  --color-card-foreground:      hsl(220, 15%, 15%);
  --color-primary:              hsl(200, 75%, 45%);
  --color-primary-foreground:   hsl(0, 0%, 100%);
  --color-secondary:            hsl(35, 30%, 90%);
  --color-secondary-foreground: hsl(220, 15%, 15%);
  --color-muted:                hsl(40, 20%, 93%);
  --color-muted-foreground:     hsl(220, 10%, 45%);
  --color-accent:               hsl(200, 60%, 85%);
  --color-accent-foreground:    hsl(220, 15%, 15%);
  --color-border:               hsl(40, 20%, 85%);
  --color-destructive:          hsl(5, 65%, 45%);

  /* Couleurs par catégorie de contenu */
  --color-sabeel:       hsl(200, 75%, 40%);
  --color-kairos:       hsl(220, 60%, 35%);
  --color-publications: hsl(15, 55%, 40%);
  --color-prieres:      hsl(200, 50%, 55%);
  --color-videos:       hsl(280, 40%, 45%);
  --color-cornerstone:  hsl(220, 10%, 45%);

  /* Effets */
  --radius:    0.5rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow:    0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}


/* =============================================================
   2. RESET & BASE
   ============================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-background);
  color: var(--color-foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* =============================================================
   3. TYPOGRAPHIE
   ============================================================= */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  h1 { font-size: 3.75rem; }
}


/* =============================================================
   4. LIENS & TRANSITIONS
   ============================================================= */

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary);
}


/* =============================================================
   5. LAYOUT
   ============================================================= */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.content-area {
  padding: 3rem 0;
}

@media (min-width: 1024px) {
  .content-area { padding: 4rem 0; }
}

.section {
  padding: 3rem 0;
}

@media (min-width: 1024px) {
  .section { padding: 4rem 0; }
}

.section-alt     { background-color: rgba(225, 216, 198, 0.3); }
.section-primary {
  background-color: rgba(14, 141, 191, 0.08);
  border-top: 1px solid rgba(14, 141, 191, 0.12);
  border-bottom: 1px solid rgba(14, 141, 191, 0.12);
}

.section-header {
  margin-bottom: 2rem;
}

.section-header.text-center {
  text-align: center;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-description {
  color: var(--color-muted-foreground);
  max-width: 42rem;
}

.section-header.text-center .section-description {
  margin: 0 auto;
}


/* =============================================================
   6. COMPOSANTS COMMUNS
   ============================================================= */

/* 6a. Boutons
   ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: hsl(200, 75%, 40%);
  border-color: hsl(200, 75%, 40%);
  color: var(--color-primary-foreground);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-border);
  color: var(--color-foreground);
}

.btn-outline:hover {
  background-color: var(--color-secondary);
  color: var(--color-foreground);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-muted-foreground);
}

.btn-ghost:hover {
  background-color: var(--color-secondary);
  color: var(--color-foreground);
}

.btn-lg   { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-icon { padding: 0.625rem; width: 2.5rem; height: 2.5rem; }


/* 6b. Badges catégories
   ------------------------------------------------------------- */

.category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Documents Sabeel — Bleu océan */
.category-badge-sabeel {
  background-color: rgba(14, 116, 153, 0.12);
  color: #0e7499;
  border: 1px solid rgba(14, 116, 153, 0.2);
}

/* Kairos — Indigo */
.category-badge-kairos {
  background-color: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
  border: 1px solid rgba(79, 70, 229, 0.2);
}

/* Publications — Terre cuite */
.category-badge-publications {
  background-color: rgba(180, 83, 9, 0.1);
  color: #b45309;
  border: 1px solid rgba(180, 83, 9, 0.2);
}

/* Vagues de prières — Vert sauge */
.category-badge-prieres {
  background-color: rgba(22, 163, 74, 0.1);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.2);
}

/* Vidéos — Violet */
.category-badge-videos {
  background-color: rgba(147, 51, 234, 0.1);
  color: #9333ea;
  border: 1px solid rgba(147, 51, 234, 0.2);
}

/* Cornerstone — Gris ardoise */
.category-badge-cornerstone {
  background-color: rgba(71, 85, 105, 0.1);
  color: #475569;
  border: 1px solid rgba(71, 85, 105, 0.2);
}

/* Partenaires — Rose ancien */
.category-badge-partenaires {
  background-color: rgba(190, 56, 93, 0.1);
  color: #be385d;
  border: 1px solid rgba(190, 56, 93, 0.2);
}

/* Articles — Bleu-vert */
.category-badge-articles {
  background-color: rgba(13, 148, 136, 0.1);
  color: #0d9488;
  border: 1px solid rgba(13, 148, 136, 0.2);
}


/* 6c. Pagination
   ------------------------------------------------------------- */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background-color: var(--color-card);
  color: var(--color-foreground);
  transition: all 0.2s ease;
}

.pagination a:hover {
  background-color: var(--color-secondary);
}

.pagination .current {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-primary-foreground);
}


/* 6d. Formulaire de recherche
   ------------------------------------------------------------- */

.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 28rem;
  margin: 0 auto;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-card);
  color: var(--color-foreground);
  transition: all 0.2s ease;
}

.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(14, 141, 191, 0.1);
}

/* Dropdown recherche header */
.search-wrapper { position: relative; }

.search-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  z-index: 100;
}

.search-dropdown form { display: flex; gap: 0.5rem; }

.search-dropdown input[type="search"] {
  width: 16rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-background);
  color: var(--color-foreground);
}

.search-dropdown input[type="search"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(14, 141, 191, 0.1);
}


/* =============================================================
   7. EN-TÊTE & NAVIGATION
   ============================================================= */

/* 7a. Header
   ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 1024px) {
  .site-header .container { height: 5rem; }
}

.site-logo { flex-shrink: 0; }
.site-logo img { height: 2.5rem; width: auto; }

@media (min-width: 1024px) {
  .site-logo img { height: 3rem; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


/* 7b. Navigation principale
   ------------------------------------------------------------- */

.main-navigation {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .main-navigation { display: flex; }
}

.main-navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.main-navigation li { margin: 0; padding: 0; }

.main-navigation a {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  color: var(--color-muted-foreground);
  transition: all 0.2s ease;
}

.main-navigation a:hover {
  color: var(--color-foreground);
  background-color: var(--color-secondary);
}

.main-navigation a.active {
  color: var(--color-primary);
  background-color: rgba(14, 141, 191, 0.1);
}


/* 7c. Menu mobile
   ------------------------------------------------------------- */

.mobile-menu-toggle { display: flex; }
.mobile-menu-toggle svg { width: 1.5rem; height: 1.5rem; }

@media (min-width: 1024px) {
  .mobile-menu-toggle { display: none; }
}

.mobile-navigation {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
}

.mobile-navigation.is-open { display: block; }

@media (min-width: 1024px) {
  .mobile-navigation { display: none !important; }
}

.mobile-navigation ul { list-style: none; margin: 0; padding: 0; }
.mobile-navigation li { margin: 0; padding: 0; }

.mobile-navigation a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.5rem;
  color: var(--color-muted-foreground);
  transition: all 0.2s ease;
}

.mobile-navigation a:hover {
  color: var(--color-foreground);
  background-color: var(--color-secondary);
}

.mobile-navigation a.active {
  color: var(--color-primary);
  background-color: rgba(14, 141, 191, 0.1);
}


/* =============================================================
   8. PAGE D'ACCUEIL
   ============================================================= */

/* 8a. Hero section
   ------------------------------------------------------------- */

.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(14, 141, 191, 0.1), var(--color-background), rgba(185, 218, 234, 0.2));
  overflow: hidden;
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .hero-section { padding: 6rem 0; }
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230088cc' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-logo img {
  height: 6rem;
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .hero-logo img { height: 8rem; }
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.6s ease;
}

@media (min-width: 768px)  { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }

.hero-description {
  font-size: 1.25rem;
  color: var(--color-muted-foreground);
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero-description { font-size: 1.5rem; }
}

.hero-description .highlight {
  color: var(--color-primary);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
}

.hero-actions .btn-support {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.hero-actions .btn-support svg {
  flex-shrink: 0;
}

.hero-actions .btn-support:hover {
  background-color: var(--color-primary);
  color: #fff;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* 8b. Vague de prière (prayer-card)
   ------------------------------------------------------------- */

.prayer-card {
  position: relative;
  background-color: var(--color-card);
  border-radius: 1rem;
  border: 2px solid rgba(92, 172, 196, 0.3);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 56rem;
  margin: 0 auto;
}

.prayer-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-prieres), var(--color-accent), var(--color-prieres));
}

.prayer-card-content {
  padding: 1.5rem;
}

@media (min-width: 1024px) {
  .prayer-card-content { padding: 2rem; }
}

.prayer-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.prayer-card-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  background-color: rgba(225, 216, 198, 0.5);
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
}

.prayer-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .prayer-card-title { font-size: 1.875rem; }
}

.prayer-card-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.prayer-card-excerpt {
  color: var(--color-muted-foreground);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* 8c. Grille d'articles
   ------------------------------------------------------------- */

.articles-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .articles-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  background-color: var(--color-card);
  color: var(--color-muted-foreground);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background-color: var(--color-secondary);
  color: var(--color-foreground);
}

.filter-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-primary-foreground);
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 9999px;
  background-color: rgba(0, 0, 0, 0.08);
  margin-left: 0.35rem;
}

.filter-btn.active .filter-count {
  background-color: rgba(255, 255, 255, 0.25);
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px)  { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .articles-grid { grid-template-columns: repeat(3, 1fr); } }

.article-card {
  background-color: var(--color-card);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all 0.3s ease;
}

.article-card:hover {
  border-color: rgba(14, 141, 191, 0.3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.article-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--color-muted);
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-card-image img {
  transform: scale(1.05);
}

/* Placeholder articles sans image à la une */
.article-card-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, hsl(200, 30%, 95%) 0%, hsl(40, 25%, 95%) 50%, hsl(200, 20%, 93%) 100%);
}

.article-card-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230e8dbf' fill-opacity='0.04'%3E%3Ccircle cx='20' cy='20' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.article-card-placeholder a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.article-card-placeholder .placeholder-logo {
  width: 5rem;
  height: auto;
  opacity: 0.12;
  filter: grayscale(50%);
  transition: opacity 0.3s ease;
  object-fit: contain;
}

.article-card:hover .article-card-placeholder .placeholder-logo {
  opacity: 0.2;
}

.article-card-content { padding: 1.25rem; }

.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.article-card-date {
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
}

.article-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.article-card:hover .article-card-title { color: var(--color-primary); }

.article-card-excerpt {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* 8d. Collections
   ------------------------------------------------------------- */

.collections-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .collections-grid { grid-template-columns: repeat(2, 1fr); }
}

.collection-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background-color: var(--color-card);
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.collection-card:hover {
  border-color: rgba(14, 141, 191, 0.3);
  box-shadow: var(--shadow-lg);
}

.collection-card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
}

.collection-card-icon svg { width: 2rem; height: 2rem; }

.collection-card-icon.icon-sabeel      { background-color: rgba(14, 116, 153, 0.1); color: var(--color-sabeel); }
.collection-card-icon.icon-kairos      { background-color: rgba(47, 66, 118, 0.1);  color: var(--color-kairos); }
.collection-card-icon.icon-publications{ background-color: rgba(148, 67, 43, 0.1); color: var(--color-publications); }
.collection-card-icon.icon-primary     { background-color: rgba(14, 141, 191, 0.1); color: var(--color-primary); }

.collection-card-body { flex: 1; }

.collection-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.collection-card:hover .collection-card-title { color: var(--color-primary); }

.collection-card-description {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

.collection-card-arrow {
  flex-shrink: 0;
  align-self: center;
  color: var(--color-muted-foreground);
  transition: color 0.2s ease;
}

.collection-card:hover .collection-card-arrow { color: var(--color-primary); }
.collection-card-arrow svg { width: 1.25rem; height: 1.25rem; }


/* 8e. Newsletter
   ------------------------------------------------------------- */

.newsletter-section {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

/* MailPoet form integration — override MailPoet defaults to match theme */
.newsletter-mailpoet-wrap {
  max-width: 36rem;
  margin: 0 auto;
}

/* Hide MailPoet's own headings and description — the section already has ours */
.newsletter-mailpoet-wrap .mailpoet-heading,
.newsletter-mailpoet-wrap h2.mailpoet-heading,
.newsletter-mailpoet-wrap .mailpoet_form_paragraph:not(.mailpoet_paragraph) {
  display: none !important;
}

/* Hide the honeypot label */
.newsletter-mailpoet-wrap .mailpoet_hp_email_label {
  display: none !important;
}

/* Reset MailPoet inline styles on the form element */
.newsletter-mailpoet-wrap .mailpoet_form_form {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

@media (min-width: 640px) {
  .newsletter-mailpoet-wrap .mailpoet_form_form {
    flex-direction: row !important;
    align-items: flex-start !important;
  }
}

/* Email input wrapper */
.newsletter-mailpoet-wrap .mailpoet_paragraph {
  margin: 0 !important;
  padding: 0 !important;
  flex: 1 !important;
}

/* Hide all labels inside the form */
.newsletter-mailpoet-wrap .mailpoet_text_label,
.newsletter-mailpoet-wrap .mailpoet_form label:not(.mailpoet_hp_email_label) {
  display: none !important;
}

/* Email input field */
.newsletter-mailpoet-wrap input[type="email"],
.newsletter-mailpoet-wrap input.mailpoet_text {
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius) !important;
  background-color: var(--color-card) !important;
  color: var(--color-foreground) !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  height: auto !important;
  line-height: normal !important;
  margin: 0 !important;
}

.newsletter-mailpoet-wrap input[type="email"]:focus,
.newsletter-mailpoet-wrap input.mailpoet_text:focus {
  outline: none !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(14, 141, 191, 0.1) !important;
}

/* Submit button — blue, compact, inline */
.newsletter-mailpoet-wrap .mailpoet_submit,
.newsletter-mailpoet-wrap input[type="submit"] {
  width: auto !important;
  padding: 0.75rem 1.5rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #fff !important;
  background-color: var(--color-primary) !important;
  border: none !important;
  border-radius: var(--radius) !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
  white-space: nowrap !important;
  line-height: normal !important;
  height: auto !important;
  margin: 0 !important;
}

.newsletter-mailpoet-wrap .mailpoet_submit:hover,
.newsletter-mailpoet-wrap input[type="submit"]:hover {
  background-color: var(--color-primary-dark, #0b7aa3) !important;
}

/* Loading spinner */
.newsletter-mailpoet-wrap .mailpoet_form_loading {
  display: none;
}

/* Success / error messages */
.newsletter-mailpoet-wrap .mailpoet_message {
  margin-top: 0.75rem;
  text-align: center;
}

.newsletter-mailpoet-wrap .mailpoet_validate_success {
  color: #065f46 !important;
}

.newsletter-mailpoet-wrap .mailpoet_validate_error {
  color: #991b1b !important;
}

/* Override any MailPoet inline style block that forces its own layout */
.newsletter-mailpoet-wrap .mailpoet_form style,
.newsletter-mailpoet-wrap .mailpoet_form_popup_overlay {
  display: none !important;
}


/* =============================================================
   9. PAGES INTÉRIEURES
   ============================================================= */

/* 9a. En-tête de page
   ------------------------------------------------------------- */

.page-header {
  background: linear-gradient(135deg, rgba(14, 141, 191, 0.1), var(--color-background));
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 1024px) {
  .page-header { padding: 4rem 0; }
}

.page-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .page-title { font-size: 2.5rem; }
}

.page-description {
  font-size: 1.125rem;
  color: var(--color-muted-foreground);
  max-width: 42rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  margin-bottom: 1rem;
}

.breadcrumb a:hover     { color: var(--color-primary); }
.breadcrumb-separator   { color: var(--color-border); }

.breadcrumb > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 40ch;
}


/* 9b. Contenu article simple
   ------------------------------------------------------------- */

.single-content {
  max-width: 48rem;
  margin: 0 auto;
}

.single-content .entry-content {
  font-size: 1.125rem;
  line-height: 1.8;
}

.single-content .entry-content p         { margin-bottom: 1.5rem; }
.single-content .entry-content h2        { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.single-content .entry-content h3        { font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.single-content .entry-content ul,
.single-content .entry-content ol        { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.single-content .entry-content li        { margin-bottom: 0.5rem; }

.single-content .entry-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--color-muted-foreground);
}

.single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.single-date,
.single-author {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

.single-featured-image {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.single-featured-image img {
  width: 100%;
  height: auto;
}

/* 9b-bis. Navigation entre articles (post-nav)
   ------------------------------------------------------------- */

.post-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .post-nav {
    grid-template-columns: 1fr 1fr;
  }
}

.post-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-foreground);
  transition: all 0.2s ease;
}

.post-nav-link:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  background-color: rgba(14, 141, 191, 0.03);
}

.post-nav-link svg {
  flex-shrink: 0;
  color: var(--color-muted-foreground);
  transition: color 0.2s ease;
}

.post-nav-link:hover svg {
  color: var(--color-primary);
}

.post-nav-next {
  text-align: right;
  justify-content: flex-end;
}

.post-nav-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.post-nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
}

.post-nav-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-foreground);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-nav-link:hover .post-nav-title {
  color: var(--color-primary);
}

/* Bouton retour vers l'archive */
.back-to-archive {
  margin-top: 2rem;
  text-align: center;
}

.back-to-archive .btn svg {
  margin-right: 0.5rem;
}

/* 9c. Sidebar & widgets
   ------------------------------------------------------------- */

.sidebar { padding: 2rem 0; }

@media (min-width: 1024px) {
  .content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
  }
  .sidebar { padding: 0; }
}

.widget {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--color-card);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.widget-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.widget ul          { list-style: none; }
.widget ul li       { margin-bottom: 0.5rem; }
.widget ul a        { font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s ease; }
.widget ul a:hover  { color: var(--color-primary); }


/* =============================================================
   10. PAGE QUI SOMMES-NOUS
   ============================================================= */

/* 10a. Intro logo + titre (figée)
   ------------------------------------------------------------- */

.about-intro {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 2px solid #e8e8e8;
}

.about-logo-large img {
  width: 110px;
  height: auto;
  display: block;
}

.about-intro h2 {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #1a1a1a;
}

.about-tagline {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
  font-style: italic;
}

@media (max-width: 600px) {
  .about-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}


/* 10b. Contenu Gutenberg éditable (objectifs, déclaration Sabeel)
   ------------------------------------------------------------- */

.about-gutenberg-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 48px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.about-gutenberg-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 28px 0 6px;
  padding-left: 14px;
  border-left: 3px solid var(--color-primary);
}

.about-gutenberg-content p {
  color: #333;
  line-height: 1.75;
  margin-bottom: 12px;
}

.about-gutenberg-content hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 40px 0;
}

.about-gutenberg-content blockquote {
  background: #f5f9fc;
  border-left: 4px solid var(--color-primary);
  margin: 24px 0;
  padding: 24px 28px;
  border-radius: 0 6px 6px 0;
}

.about-gutenberg-content blockquote p {
  color: #444;
  font-style: italic;
  margin-bottom: 12px;
}

.about-gutenberg-content blockquote p:last-child {
  margin-bottom: 0;
}


/* 10c. Section Nous soutenir (figée)
   ------------------------------------------------------------- */

.about-support-section { margin-top: 56px; }

.support-card {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 36px 40px;
}

.support-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px;
}

.support-card > .support-content > p:first-of-type {
  color: #555;
  line-height: 1.7;
  margin-bottom: 28px;
}

.support-tiers {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.support-tier {
  flex: 1;
  min-width: 130px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 18px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.support-tier-highlight {
  border-color: var(--color-primary);
  background: #f0f7fb;
}

.tier-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
}

.tier-label {
  font-size: 0.85rem;
  color: #555;
}

.support-note {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 28px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.support-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 600px) {
  .support-card      { padding: 24px 20px; }
  .support-tiers     { flex-direction: column; }
  .support-actions   { flex-direction: column; align-items: stretch; }
  .support-actions .btn { justify-content: center; }
}


/* 10d. Carte contact (figée)
   ------------------------------------------------------------- */

.about-contact-section { margin-top: 40px; }

.about-contact-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 28px 32px;
  max-width: 480px;
}

.about-contact-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px;
}

.about-contact-card p {
  margin: 0 0 6px;
  color: #444;
  line-height: 1.6;
  font-size: 0.95rem;
}

.about-contact-card a             { color: var(--color-primary); text-decoration: none; }
.about-contact-card a:hover       { text-decoration: underline; }


/* =============================================================
   11. PAGE CONTACT
   ============================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1.5fr 1fr; }
}

.contact-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .contact-form .form-row { grid-template-columns: 1fr 1fr; }
}

.contact-form .form-group { margin-bottom: 1.25rem; }

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--color-foreground);
}

.contact-form label .required { color: var(--color-destructive); }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-card);
  color: var(--color-foreground);
  transition: all 0.2s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(14, 141, 191, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--color-muted-foreground); }

.contact-form textarea { resize: vertical; min-height: 120px; }

.contact-info-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.75rem 0;
}

.contact-info-item:not(:last-child) {
  border-bottom: 1px solid var(--color-border);
}

.contact-info-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  background-color: rgba(14, 141, 191, 0.1);
  color: var(--color-primary);
}

.contact-info-item h3 {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.125rem;
}

.contact-info-item p    { font-size: 0.95rem; color: var(--color-foreground); }
.contact-info-item a    { color: var(--color-primary); }
.contact-info-item a:hover { text-decoration: underline; }

.contact-card-title  { font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem; }
.contact-card-text   { font-size: 0.875rem; color: var(--color-muted-foreground); line-height: 1.6; }

.contact-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius);
  color: hsl(142, 71%, 30%);
  margin-bottom: 1.5rem;
}

.contact-error {
  padding: 1rem 1.25rem;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius);
  color: var(--color-destructive);
  margin-bottom: 1.5rem;
}


/* =============================================================
   12. PAGE PARTENAIRES
   ============================================================= */

.partners-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px)  { .partners-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .partners-grid { grid-template-columns: repeat(3, 1fr); } }

.partner-card {
  padding: 1.5rem;
  background-color: var(--color-card);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.partner-card:hover {
  border-color: rgba(14, 141, 191, 0.3);
  box-shadow: var(--shadow-lg);
}

.partner-card-logo        { height: 3rem; margin-bottom: 1rem; }
.partner-card-logo img    { height: 100%; width: auto; object-fit: contain; }
.partner-card-name        { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.partner-card-description { font-size: 0.875rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }

.partner-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--color-primary);
  font-weight: 500;
}

.partner-card-link:hover { text-decoration: underline; }


/* =============================================================
   13. ZONE DE COMMENTAIRES
   ============================================================= */

.comments-area {
  max-width: 680px;
  margin: 48px 0 0;
  padding-top: 40px;
  border-top: 2px solid #e8e8e8;
}

.comment-reply-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 20px;
}

/* Message "connecté en tant que" */
.logged-in-as {
  font-size: 0.875rem;
  color: #666;
  background: #f5f9fc;
  border: 1px solid #d0e8f2;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.logged-in-as a       { color: var(--color-primary); text-decoration: none; }
.logged-in-as a:hover { text-decoration: underline; }

/* Label + Textarea */
.comment-form-comment label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.comment-form-comment textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #333;
  background: #fff;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.comment-form-comment textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(14, 141, 191, 0.12);
}

/* Bouton submit */
.form-submit { margin-top: 16px; }

.comment-form .btn-primary,
#submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: var(--color-primary);
  color: #fff;
  border: 2px solid var(--color-primary);
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.comment-form .btn-primary:hover,
#submit:hover {
  background: hsl(200, 75%, 38%);
  border-color: hsl(200, 75%, 38%);
}

/* Liste des commentaires existants */
.comment-list            { list-style: none; padding: 0; margin: 0 0 40px; }
.comment-list .comment   { padding: 20px 0; border-bottom: 1px solid #eee; }

.comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-author .fn      { font-weight: 600; font-size: 0.95rem; color: #1a1a1a; }
.comment-metadata        { font-size: 0.8rem; color: #999; margin-bottom: 10px; }
.comment-metadata a      { color: #999; text-decoration: none; }
.comment-content p       { font-size: 0.95rem; color: #444; line-height: 1.7; margin: 0; }

@media (max-width: 600px) {
  .comments-area { padding-top: 28px; }
}


/* =============================================================
   14. PAGE 404 / NO RESULTS
   ============================================================= */

.not-found-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 3rem 1rem;
}

.not-found-title       { font-size: 6rem; font-weight: 700; color: var(--color-primary); margin-bottom: 1rem; }
.not-found-subtitle    { font-size: 1.5rem; margin-bottom: 1rem; }
.not-found-description { color: var(--color-muted-foreground); margin-bottom: 2rem; max-width: 28rem; }

.no-results            { text-align: center; padding: 4rem 1rem; }
.no-results-title      { font-size: 1.5rem; margin-bottom: 1rem; }
.no-results-description{ color: var(--color-muted-foreground); margin-bottom: 2rem; }


/* =============================================================
   15. PIED DE PAGE
   ============================================================= */

.site-footer {
  background-color: rgba(225, 216, 198, 0.5);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
}

@media (min-width: 1024px) {
  .site-footer { padding: 4rem 0; }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; } }

.footer-about        { max-width: 20rem; }
.footer-logo         { margin-bottom: 1rem; }
.footer-logo img     { height: 2.5rem; width: auto; }
.footer-description  { font-size: 0.875rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.footer-column h3    { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }

.footer-links        { list-style: none; }
.footer-links li     { margin-bottom: 0.5rem; }
.footer-links a      { font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s ease; }
.footer-links a:hover{ color: var(--color-primary); }

.footer-contact address { font-style: normal; font-size: 0.875rem; color: var(--color-muted-foreground); }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

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

@media (min-width: 768px) {
  .footer-bottom-content { flex-direction: row; justify-content: space-between; }
}

.footer-copyright  { font-size: 0.875rem; color: var(--color-muted-foreground); }
.footer-legal      { display: flex; gap: 1rem; }
.footer-legal a    { font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s ease; }
.footer-legal a:hover { color: var(--color-primary); }


/* =============================================================
   16. UTILITAIRES & HELPERS
   ============================================================= */

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

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }


/* =============================================================
   17. IMPRESSION
   ============================================================= */

@media print {
  .site-header,
  .site-footer,
  .mobile-navigation {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }
}


/* PAGE ARCHIVES PARTENAIRES */

/* On cible uniquement ce qui est dans .page-partenaires */

.page-partenaires .content-area {
    padding: 60px 0;
    background-color: #f9fafb;
}

.page-partenaires .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header et Filtres */
.page-partenaires .page-header {
    padding: 80px 0 40px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.page-partenaires .filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.page-partenaires .filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    background: #fff;
    border: 1px solid #ddd;
    color: #444;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-partenaires .filter-btn.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Grille et Cartes */
.page-partenaires .partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.page-partenaires .partner-card-inner {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.page-partenaires .partner-card-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.page-partenaires .partner-logo-wrap {
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.page-partenaires .partner-logo {
    max-height: 100%;
    max-width: 180px;
    object-fit: contain;
}

.page-partenaires .partner-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #111;
}

.page-partenaires .partner-type-badge {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    margin-right: 10px;
}

.page-partenaires .partner-excerpt {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 20px;
}

.page-partenaires .partner-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0073aa;
}

/* Pagination */
.page-partenaires .pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
}