/*
Theme Name:  Planete Sciences Mediterranee 2025
Theme URI:   https://www.planete-sciences.org/mediterranee/
Author:      Planete Sciences Mediterranee
Description: Thème modernisé — même âme, nouveau corps. Fond ciel bleu, icônes rondes, esprit PSM conservé avec une technique 2025.
Version:     3.0.0
Requires at least: 5.0
Requires PHP: 7.4
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwelve
Tags:        custom-menu, featured-images, responsive-layout
*/

/* Import polices auto-hébergées (aucune requête externe) */
@import url('fonts/fonts.css');

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Bleu dominant (héritage original) */
  --blue:        #1d6fa4;
  --blue-dark:   #0c447c;
  --blue-light:  #5fc7ee;
  --blue-pale:   #e8f4fb;
  --blue-mid:    #c8e8f7;

  /* Accents */
  --yellow:      #fbc51d;
  --yellow-dark: #d4a800;
  --pink:        #c9418d;
  --pink-pale:   #fde8f3;

  /* Neutres */
  --white:       #ffffff;
  --off:         #f4fafd;
  --grey:        #6b7280;
  --dark:        #1a2744;
  --border:      #d0e8f5;

  /* Palette vive PSM */
  --psm-1:  #fbc51d;
  --psm-2:  #d698bf;
  --psm-3:  #7ac6c4;
  --psm-4:  #e54428;
  --psm-5:  #becd00;
  --psm-6:  #c9418d;
  --psm-7:  #a4bedf;
  --psm-8:  #ed8481;
  --psm-9:  #5fc7ee;
  --psm-10: #ffee02;
  --psm-11: #6cabca;

  /* Typo */
  --font-display: 'Baloo 2', 'Open Sans', Arial, sans-serif;
  --font-body:    'Nunito', 'Open Sans', Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --pad:       1.5rem;
  --rad:       14px;
  --rad-sm:    8px;
  --rad-full:  9999px;
  --trans:     .18s ease;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; overflow-y: scroll; }

/* ── Fond page : ciel bleu avec motifs scientifiques en filigrane ── */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark);
  background-color: #daf0fb;
  background-image:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(255,255,255,.7) 0%, transparent 55%),
    radial-gradient(ellipse 60% 80% at 90% 100%, rgba(200,232,247,.5) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' opacity='.06'%3E%3Ccircle cx='50' cy='80' r='30' fill='none' stroke='%231d6fa4' stroke-width='1'/%3E%3Ccircle cx='50' cy='80' r='50' fill='none' stroke='%231d6fa4' stroke-width='.5'/%3E%3Ccircle cx='320' cy='200' r='40' fill='none' stroke='%231d6fa4' stroke-width='1'/%3E%3Ccircle cx='320' cy='200' r='65' fill='none' stroke='%231d6fa4' stroke-width='.5'/%3E%3Cline x1='50' y1='80' x2='200' y2='150' stroke='%231d6fa4' stroke-width='.5'/%3E%3Cline x1='200' y1='150' x2='320' y2='200' stroke='%231d6fa4' stroke-width='.5'/%3E%3Ccircle cx='200' cy='150' r='4' fill='%231d6fa4'/%3E%3Ccircle cx='50' cy='80' r='4' fill='%231d6fa4'/%3E%3Ccircle cx='320' cy='200' r='4' fill='%231d6fa4'/%3E%3Ccircle cx='100' cy='300' r='3' fill='%231d6fa4'/%3E%3Ccircle cx='280' cy='350' r='3' fill='%231d6fa4'/%3E%3Cline x1='100' y1='300' x2='280' y2='350' stroke='%231d6fa4' stroke-width='.4'/%3E%3C/svg%3E");
  background-attachment: fixed;
  background-size: cover, cover, 400px 400px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--blue-dark); }
a:focus { outline: 2px solid var(--yellow); outline-offset: 2px; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; clear: both; }
table { border-collapse: collapse; border-spacing: 0; }
embed, iframe, object, video { max-width: 100%; }
.clear::after, .wrapper::after { content: ''; display: table; clear: both; }

/* Screen reader */
.screen-reader-text, .assistive-text {
  clip: rect(1px,1px,1px,1px);
  position: absolute !important;
  height: 1px; width: 1px; overflow: hidden;
}
.assistive-text:focus {
  background: var(--white); border: 2px solid var(--dark);
  border-radius: var(--rad-sm); clip: auto !important;
  color: var(--dark); display: block; font-size: 13px;
  padding: 10px 14px; position: absolute; top: 6px; left: 6px; z-index: 100000;
}

/* ============================================================
   BANDE PALETTE PSM
   ============================================================ */
.psm-palette-band { display: flex; height: 6px; width: 100%; }
.psm-palette-band span { flex: 1; }

/* ============================================================
   CONTENEUR
   ============================================================ */
.wrapper { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }

/* ============================================================
   BANDEAU SUPÉRIEUR
   ============================================================ */
#bandeau {
  background: var(--blue);
  height: auto;
  position: relative;
  z-index: 100;
}
#bandeau #bandeau_conteneur {
  width: auto;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 1rem;
  flex-wrap: wrap;
}
#bandeau #bandeau_conteneur a {
  color: rgba(255,255,255,.85);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--trans);
  background: none;
  height: auto; width: auto;
  float: none;
  margin: 0; padding: 0;
}
#bandeau #bandeau_conteneur a:hover { color: var(--yellow); }
#bandeau #bandeau_conteneur #cont {
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.95);
  padding: 0;
}
#bandeau #bandeau_conteneur #cont:hover {
  color: var(--yellow);
  font-size: 11px; padding: 0;
}
/* Pastilles pour liens médias */
#bandeau #bandeau_conteneur #canard,
#bandeau #bandeau_conteneur #radio,
#bandeau #bandeau_conteneur #presse,
#bandeau #bandeau_conteneur #img {
  background: rgba(255,255,255,.12);
  border-radius: var(--rad-full);
  padding: 2px 8px;
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,.85);
  height: auto; width: auto;
  display: inline-flex; align-items: center;
  margin: 0 1px;
  letter-spacing: .02em;
  transition: background var(--trans), color var(--trans);
}
#bandeau #bandeau_conteneur #canard::before { content: '🦆 '; }
#bandeau #bandeau_conteneur #radio::before  { content: '📻 '; }
#bandeau #bandeau_conteneur #presse::before { content: '📰 '; }
#bandeau #bandeau_conteneur #img::before    { content: '📷 '; }
#bandeau #bandeau_conteneur #canard:hover,
#bandeau #bandeau_conteneur #radio:hover,
#bandeau #bandeau_conteneur #presse:hover,
#bandeau #bandeau_conteneur #img:hover {
  background: rgba(255,255,255,.22); color: var(--white);
}

/* ============================================================
   HEADER PRINCIPAL
   ============================================================ */
#masthead {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--yellow);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(29,111,164,.12);
  transition: box-shadow var(--trans);
}
#masthead.scrolled { box-shadow: 0 4px 24px rgba(29,111,164,.18); }

.site-header {
  background: none;
  height: auto;
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: .5rem var(--pad);
  min-height: 155px;
}
/* Logo PSM à gauche */
.header-logo-left {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.header-logo-img {
  height: 145px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  transition: opacity var(--trans), transform var(--trans);
}
.header-logo-left:hover .header-logo-img {
  opacity: .85;
  transform: translateY(-1px);
}

/* ============================================================
   NAVIGATION — pilules arrondies (hommage boutons ronds)
   ============================================================ */
.main-navigation {
  display: flex;
  align-items: center;
  gap: .375rem;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
}
.nav-menu li { position: relative; }
.nav-menu li a {
  display: block;
  padding: .45rem .875rem;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700;
  color: var(--blue);
  background: var(--blue-pale);
  border: 1.5px solid var(--blue-mid);
  border-radius: var(--rad-full);
  transition: all var(--trans);
  white-space: nowrap;
  letter-spacing: -.01em;
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item > a,
.nav-menu li.current-menu-ancestor > a {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: 0 2px 10px rgba(29,111,164,.25);
}
/* Sous-menus */
.nav-menu li ul {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border-radius: var(--rad);
  box-shadow: 0 8px 32px rgba(29,111,164,.16);
  border-top: 3px solid var(--yellow);
  min-width: 210px;
  padding: .375rem 0;
  z-index: 200;
}
.nav-menu li:hover > ul,
.nav-menu li:focus-within > ul { display: block; }
.nav-menu li ul li a {
  background: none;
  border: none;
  border-radius: 0;
  padding: .425rem 1rem;
  color: var(--dark); font-size: .8rem;
  box-shadow: none;
}
.nav-menu li ul li a:hover {
  background: var(--blue-pale);
  color: var(--blue);
  border: none; box-shadow: none;
}
/* Burger */
.menu-toggle {
  display: none;
  background: var(--blue-pale);
  border: 1.5px solid var(--blue-mid);
  color: var(--blue);
  border-radius: var(--rad-full);
  padding: .45rem .875rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700;
  transition: all var(--trans);
  line-height: 1; margin: 0;
}
.menu-toggle:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* CTA header */
.header-cta-btn {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .5rem 1.125rem;
  background: var(--yellow);
  color: var(--dark) !important;
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 800;
  border-radius: var(--rad-full);
  border: 2px solid transparent;
  white-space: nowrap; flex-shrink: 0;
  transition: all var(--trans);
  letter-spacing: -.01em;
  box-shadow: 0 2px 8px rgba(251,197,29,.3);
}
.header-cta-btn:hover {
  background: var(--yellow-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(251,197,29,.4);
  color: var(--dark) !important;
}

/* ============================================================
   ZONE DE CONTENU PRINCIPAL
   ============================================================ */
#page { /* transparent — fond body visible */ }

#main.wrapper {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem var(--pad);
}

/* Carte blanche autour du contenu principal */
#primary {
  background: rgba(255,255,255,.92);
  border-radius: var(--rad);
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(29,111,164,.08);
  border: 1px solid rgba(255,255,255,.8);
}
#primary.site-content { margin-top: 0; }

/* Sidebar */
#secondary {
  background: rgba(255,255,255,.88);
  border-radius: var(--rad);
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(29,111,164,.06);
  margin-top: 0;
}

/* ============================================================
   ENTRÉES / ARTICLES
   ============================================================ */
.hentry { margin-bottom: 2rem; }

.entry-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: .75rem;
  letter-spacing: -.02em;
}
.entry-title a { color: inherit; }
.entry-title a:hover { color: var(--blue); }

.entry-meta {
  font-size: .78rem; color: var(--grey);
  margin-bottom: 1rem;
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
}
.entry-meta a { color: var(--blue); }

.entry-content {
  font-size: .95rem; line-height: 1.85; color: #1f2d3d;
}
.entry-content h2 {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 800;
  color: var(--blue-dark); margin: 1.75rem 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--blue-pale);
}
.entry-content h3 {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  color: var(--blue); margin: 1.5rem 0 .5rem;
}
.entry-content p { margin-bottom: 1rem; }
.entry-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.entry-content ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1rem; }
.entry-content li { margin-bottom: .375rem; }
.entry-content a { color: var(--blue); text-decoration: underline; }
.entry-content a:hover { color: var(--blue-dark); }
.entry-content blockquote {
  border-left: 4px solid var(--yellow);
  padding: .875rem 1.25rem;
  background: rgba(251,197,29,.08);
  border-radius: 0 var(--rad) var(--rad) 0;
  margin: 1.5rem 0; font-style: italic;
  color: var(--blue-dark);
}
.entry-content img { border-radius: var(--rad); margin: 1.25rem 0; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .wp-caption-text {
  font-size: .78rem; font-style: italic; color: var(--grey); margin-top: .375rem;
}

/* Responsive images */
.entry-content img, .comment-content img, .widget img,
img.header-image, img.wp-post-image { max-width: 100%; height: auto; }
embed, iframe, object, video { max-width: 100%; }

/* ============================================================
   ALIGNEMENT IMAGES
   ============================================================ */
.alignleft  { float: left;  margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; }

/* ============================================================
   CARTES ACTIVITÉS — icônes rondes bleues
   ============================================================ */
.psm-activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.125rem;
  margin: 1.5rem 0;
}
.psm-activity-card {
  background: rgba(255,255,255,.92);
  border-radius: var(--rad);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--trans), box-shadow var(--trans);
}
.psm-activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(29,111,164,.14);
  border-color: transparent;
}
.psm-card-top {
  height: 88px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--blue-pale), var(--blue-mid));
}
/* Icône ronde — hommage aux boutons PNG originaux */
.psm-card-ico {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 3px 12px rgba(29,111,164,.3), 0 1px 3px rgba(0,0,0,.1);
  transition: transform var(--trans);
}
.psm-activity-card:hover .psm-card-ico { transform: scale(1.08); }
.psm-card-stripe {
  position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
}
.psm-card-body {
  padding: 1rem 1.125rem 1.25rem;
  flex: 1; display: flex; flex-direction: column;
}
.psm-card-tag {
  font-family: var(--font-display);
  font-size: .65rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: .375rem;
}
.psm-card-title {
  font-family: var(--font-display);
  font-size: .9rem; font-weight: 700;
  color: var(--dark); margin-bottom: .5rem; line-height: 1.35;
}
.psm-card-text {
  font-size: .8rem; color: var(--grey); line-height: 1.65;
  flex: 1; margin-bottom: .875rem;
}
.psm-card-link {
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: .25rem;
  transition: gap var(--trans);
  margin-top: auto;
}
.psm-card-link:hover { gap: .5rem; text-decoration: none; }

/* ============================================================
   ÉVÈNEMENTS (conservé)
   ============================================================ */
.bloc_event { width: 220px; float: left; margin-right: 25px; margin-bottom: 30px; }
.bloc_event p { margin: 0 !important; font-size: 12px; }
.bloc_event .date { color: var(--blue); text-transform: uppercase; font-weight: bold; }

/* ============================================================
   WIDGETS SIDEBAR
   ============================================================ */
.widget { margin-bottom: 1.5rem; }
.widget-title {
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--blue-dark);
  border-bottom: 2px solid var(--yellow);
  padding-bottom: .375rem; margin-bottom: .875rem;
}
.widget ul li {
  padding: .3rem 0;
  border-bottom: 1px solid rgba(29,111,164,.1);
  font-size: .875rem;
}
.widget ul li:last-child { border: none; }
.widget ul li a { color: var(--blue); }
.widget ul li a:hover { color: var(--blue-dark); }

/* ============================================================
   NAVIGATION ARTICLES
   ============================================================ */
.site-content nav { clear: both; overflow: hidden; margin: 1.5rem 0; }
.nav-previous { float: left; width: 50%; }
.nav-next { float: right; text-align: right; width: 50%; }
.nav-previous a, .nav-next a {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .45rem 1rem;
  background: var(--blue-pale);
  color: var(--blue);
  border: 1.5px solid var(--blue-mid);
  border-radius: var(--rad-full);
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 700;
  transition: all var(--trans);
}
.nav-previous a:hover, .nav-next a:hover {
  background: var(--blue); color: var(--white);
  border-color: var(--blue);
}

/* ============================================================
   FORMULAIRES
   ============================================================ */
button, input, select, textarea {
  font-family: var(--font-body); font-size: .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--rad-sm);
  padding: .5rem .75rem;
  transition: border-color var(--trans), box-shadow var(--trans);
}
input[type="text"], input[type="email"], input[type="url"],
input[type="password"], input[type="search"], textarea {
  background: rgba(255,255,255,.9); color: var(--dark); width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29,111,164,.12);
}
input[type="checkbox"], input[type="radio"], input[type="file"],
input[type="hidden"], input[type="image"] {
  border: 0; border-radius: 0; padding: 0; width: auto;
}
/* Boutons */
button, input[type="submit"], input[type="button"], input[type="reset"],
article.post-password-required input[type="submit"] {
  background: var(--blue);
  color: var(--white);
  border: none; border-radius: var(--rad-full);
  cursor: pointer;
  font-family: var(--font-display); font-weight: 700;
  font-size: .875rem; padding: .6rem 1.375rem;
  transition: all var(--trans);
  background-image: none; box-shadow: 0 2px 8px rgba(29,111,164,.25);
  line-height: normal;
}
button:hover, input[type="submit"]:hover, input[type="button"]:hover, input[type="reset"]:hover {
  background: var(--blue-dark); color: var(--white);
  transform: translateY(-1px); box-shadow: 0 4px 16px rgba(29,111,164,.3);
  background-image: none; border-radius: var(--rad-full);
  font-size: .875rem;
}
button:active, input[type="submit"]:active {
  transform: none; background: var(--blue-dark);
  background-image: none; box-shadow: none;
}
button[disabled], input[disabled] { opacity: .5; cursor: default; }

/* Recherche */
.search-form { display: flex; gap: .5rem; }
.search-field { flex: 1; }
.search-submit { flex-shrink: 0; }

/* ============================================================
   COMMENTAIRES
   ============================================================ */
.comments-area { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.comments-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--blue-dark); margin-bottom: 1.25rem; }
.comment { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.comment-author .fn { font-weight: 700; color: var(--blue-dark); }
.comment-meta { font-size: .78rem; color: var(--grey); margin-bottom: .5rem; }
.comment-content { font-size: .9rem; line-height: 1.7; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination, .page-numbers-wrap {
  display: flex; justify-content: center; gap: .375rem;
  margin: 2.5rem 0; flex-wrap: wrap;
}
.page-numbers, .pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--rad-full);
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  transition: all var(--trans);
  background: rgba(255,255,255,.8);
  color: var(--blue);
  border: 1.5px solid var(--blue-mid);
}
.page-numbers:hover, .pagination a:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.page-numbers.current, .pagination .current { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ============================================================
   ARCHIVES / TITRES DE PAGE
   ============================================================ */
.archive-title, .page-title {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 3px solid var(--yellow);
  letter-spacing: -.02em;
}

/* ============================================================
   SECTION PARTENAIRES
   ============================================================ */
#partenaires {
  background: rgba(255,255,255,.85);
  padding: 2rem var(--pad);
  border-top: 1px solid rgba(29,111,164,.12);
}
.titre_partenaires {
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--grey); margin-bottom: 1.25rem; text-align: center;
}
.titre_partenaires a { color: var(--blue); }
#partenaires img {
  max-height: 56px; width: auto;
  filter: grayscale(20%); opacity: .82;
  transition: filter var(--trans), opacity var(--trans);
}
#partenaires img:hover { filter: grayscale(0); opacity: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
#colophon {
  background: linear-gradient(180deg, #0d3058 0%, #072040 100%);
  color: var(--white);
  padding-top: 2.75rem;
}

#logo_footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad) 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 2rem;
}
#logo_footer a {
  display: inline-flex; align-items: center; gap: .625rem;
  text-decoration: none; color: rgba(255,255,255,.45);
}
#logo_footer img { height: 44px; width: auto; filter: brightness(0) invert(1); }
#logo_footer span { font-size: .75rem; color: rgba(255,255,255,.45); }

.site-info {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 2rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad) 2.5rem;
}
.colfooter a.groslien {
  display: block;
  font-family: var(--font-display); font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--yellow);
  margin-bottom: .875rem; text-decoration: none;
}
.colfooter .titre_menu {
  font-family: var(--font-display); font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--yellow); margin: 1.25rem 0 .625rem;
}
.colfooter .titre_menu a { color: var(--yellow); text-decoration: none; }
.colfooter ul li { margin-bottom: .5rem; }
.colfooter ul a, .colfooter .nav-menu a {
  font-size: .8rem; color: rgba(255,255,255,.6);
  text-decoration: none; transition: color var(--trans);
}
.colfooter ul a:hover, .colfooter .nav-menu a:hover { color: var(--white); }

/* Icônes col footer */
#colfooter1 #canard a::before { content: '🦆 '; }
#colfooter1 #radio a::before  { content: '📻 '; }
#colfooter1 #presse a::before { content: '📰 '; }
#colfooter1 #image a::before  { content: '📷 '; }

/* Boutons FB + newsletter */
#push_fb, #push_nl {
  display: inline-flex; align-items: center; gap: .375rem;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--rad-full);
  padding: .375rem .875rem;
  margin: .25rem .25rem .25rem 0;
  transition: all var(--trans); text-decoration: none;
}
#push_fb::before { content: 'f '; }
#push_nl::before { content: '✉ '; }
#push_fb:hover, #push_nl:hover {
  background: var(--blue); color: var(--white); border-color: var(--blue);
}

/* Bande palette footer */
.footer-palette { display: flex; height: 5px; }
.footer-palette span { flex: 1; }

/* Bas du footer */
.footer-bottom-bar {
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--container); margin: 0 auto;
  padding: .875rem var(--pad);
  font-size: .72rem; color: rgba(255,255,255,.3);
  flex-wrap: wrap; gap: .5rem;
}
.footer-bottom-bar a { color: rgba(255,255,255,.4); text-decoration: none; }

/* ============================================================
   CLASSES UTILITAIRES CONSERVÉES
   ============================================================ */
.lien.rose { color: var(--pink); font-weight: bold; font-size: .82rem; text-decoration: none; }
.floatright { float: right; }
.clear { clear: both; }
.text-center { text-align: center; }

/* ============================================================
   RESPONSIVE — TABLETTE (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .psm-activity-grid { grid-template-columns: repeat(2, 1fr); }
  .site-info { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --pad: 1rem; }

  /* Bandeau simplifié */
  #bandeau #bandeau_conteneur #canard,
  #bandeau #bandeau_conteneur #radio,
  #bandeau #bandeau_conteneur #presse,
  #bandeau #bandeau_conteneur #img { display: none; }

  /* Header */
  .site-header { flex-wrap: wrap; min-height: 60px; padding: .5rem var(--pad); gap: .75rem; }
  .header-cta-btn { display: none; }
  .header-logo-img { height: 70px; }
  .site-header { min-height: 80px; }
  .menu-toggle { display: inline-flex; }

  /* Nav mobile */
  .main-navigation { width: 100%; order: 3; }
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(255,255,255,.96);
    border-top: 1px solid var(--border);
    padding: .75rem;
    gap: .25rem;
  }
  .nav-menu.toggled-on { display: flex; }
  .nav-menu li a { width: 100%; text-align: left; font-size: .9rem; }
  .nav-menu li ul {
    position: static; box-shadow: none; border-top: none;
    background: var(--blue-pale); border-radius: var(--rad);
    margin: .25rem .5rem;
  }

  /* Contenu */
  #main.wrapper { padding: 1rem var(--pad); }
  #primary { padding: 1.25rem; border-radius: var(--rad-sm); }
  .psm-activity-grid { grid-template-columns: 1fr; }

  /* Alignements */
  .alignleft, .alignright { float: none; margin: 1rem 0; display: block; }
  .nav-previous, .nav-next { width: 100%; float: none; text-align: left; }
  .bloc_event { width: 100%; float: none; margin-right: 0; }

  /* Footer */
  .site-info { grid-template-columns: 1fr; gap: 1.5rem; }
  #logo_footer { flex-direction: column; text-align: center; }
  .footer-bottom-bar { flex-direction: column; text-align: center; }
}

/* ============================================================
   RESPONSIVE — PETIT MOBILE (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .site-header hgroup { gap: .375rem; }
  .header-image { height: 44px; }
}

/* ============================================================
   FRONT PAGE — HERO
   ============================================================ */
.psm-hero {
  position: relative;
  padding: 60px var(--pad) 52px;
  text-align: center;
  overflow: hidden;
  background: transparent;
}
/* Nuages CSS */
.psm-clouds { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.psm-cloud {
  position: absolute;
  background: rgba(255,255,255,.72);
  border-radius: 60px;
}
.psm-cloud::before, .psm-cloud::after {
  content: ''; position: absolute;
  background: inherit; border-radius: 50%;
}
.psm-cloud-1 { width: 140px; height: 44px; top: 16px; left: 4%; opacity: .65; }
.psm-cloud-1::before { width: 64px; height: 64px; top: -32px; left: 16px; }
.psm-cloud-1::after  { width: 88px; height: 52px; top: -22px; left: 42px; }
.psm-cloud-2 { width: 180px; height: 50px; top: 12%; right: 6%; opacity: .5; }
.psm-cloud-2::before { width: 88px; height: 72px; top: -36px; left: 22px; }
.psm-cloud-2::after  { width: 110px; height: 58px; top: -26px; left: 58px; }
.psm-cloud-3 { width: 110px; height: 34px; bottom: 18%; left: 2%; opacity: .38; }
.psm-cloud-3::before { width: 58px; height: 58px; top: -29px; left: 10px; }
.psm-cloud-3::after  { width: 70px; height: 42px; top: -19px; left: 36px; }
/* Flottants scientifiques */
.psm-floaters { position: absolute; inset: 0; pointer-events: none; }
.psm-floater {
  position: absolute; font-size: 1.5rem; opacity: .16;
  animation: psm-float 6s ease-in-out infinite;
}
@keyframes psm-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
/* Contenu hero */
.psm-hero-inner { position: relative; max-width: 660px; margin: 0 auto; }
.psm-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(29,111,164,.1);
  border: 1.5px solid rgba(29,111,164,.22);
  color: var(--blue-dark);
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 14px; border-radius: var(--rad-full);
  margin-bottom: 1.125rem;
}
.psm-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; color: var(--blue-dark);
  line-height: 1.08; letter-spacing: -.03em;
  margin-bottom: .875rem;
}
.psm-hero-accent { color: var(--pink); }
.psm-hero-em     { color: var(--blue); font-style: normal; }
.psm-hero-sub {
  font-size: 1rem; color: #2a4a6a; line-height: 1.78;
  max-width: 560px; margin: 0 auto 1.75rem;
}
.psm-hero-btns {
  display: flex; gap: .875rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
/* Stats */
.psm-hero-stats {
  display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(29,111,164,.12);
}
.psm-stat { text-align: center; }
.psm-stat-n {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800;
  color: var(--blue-dark); line-height: 1; letter-spacing: -.03em;
}
.psm-stat-l { font-size: .72rem; color: #4a6a8a; margin-top: .375rem; display: block; }

/* ── Boutons partagés ── */
.psm-btn-primary {
  display: inline-flex; align-items: center;
  padding: .8rem 1.75rem;
  background: var(--blue); color: var(--white);
  border-radius: var(--rad-full);
  font-family: var(--font-display); font-size: .9rem; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(29,111,164,.28);
  transition: all var(--trans);
}
.psm-btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); color: var(--white); }
.psm-btn-outline {
  display: inline-flex; align-items: center;
  padding: .8rem 1.75rem;
  border: 2px solid var(--blue); color: var(--blue);
  background: rgba(255,255,255,.75);
  border-radius: var(--rad-full);
  font-family: var(--font-display); font-size: .9rem; font-weight: 700;
  text-decoration: none;
  transition: all var(--trans);
}
.psm-btn-outline:hover { background: var(--blue); color: var(--white); }
.psm-btn-yellow {
  display: inline-flex; align-items: center;
  padding: .875rem 1.875rem;
  background: var(--yellow); color: var(--dark);
  border-radius: var(--rad-full);
  font-family: var(--font-display); font-size: .9rem; font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(251,197,29,.35);
  transition: all var(--trans);
}
.psm-btn-yellow:hover { background: var(--yellow-dark); transform: translateY(-2px); color: var(--dark); }
.psm-btn-white {
  display: inline-flex; align-items: center;
  padding: .875rem 1.875rem;
  border: 2px solid rgba(255,255,255,.55); color: var(--white);
  background: transparent;
  border-radius: var(--rad-full);
  font-family: var(--font-display); font-size: .9rem; font-weight: 700;
  text-decoration: none;
  transition: all var(--trans);
}
.psm-btn-white:hover { border-color: var(--white); background: rgba(255,255,255,.1); color: var(--white); }

/* ============================================================
   SECTIONS COMMUNES
   ============================================================ */
.psm-section { padding: 56px 0; }
.psm-section-alt { background: rgba(255,255,255,.55); }
.psm-section-inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.psm-section-hdr { text-align: center; max-width: 580px; margin: 0 auto 2.5rem; }
.psm-eyebrow {
  display: block;
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .625rem;
}
.psm-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; color: var(--blue-dark);
  letter-spacing: -.025em; line-height: 1.1;
  margin-bottom: .625rem;
}
.psm-section-sub { font-size: .9rem; color: #4a6a8a; line-height: 1.75; }
.psm-section-more { text-align: center; margin-top: 2rem; }

/* ============================================================
   CARTES ACTIVITÉS
   ============================================================ */
.psm-act-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.125rem;
}
.psm-act-card {
  background: rgba(255,255,255,.9);
  border-radius: var(--rad);
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,.95);
  display: flex; flex-direction: column;
  transition: transform .22s, box-shadow .22s;
  cursor: pointer;
}
.psm-act-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(29,111,164,.15);
  border-color: transparent;
}
.psm-act-top {
  height: 96px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.psm-act-ico {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 3px 14px rgba(0,0,0,.15);
  position: relative; z-index: 1;
  transition: transform .22s;
}
.psm-act-card:hover .psm-act-ico { transform: scale(1.1) rotate(-5deg); }
.psm-act-wave {
  position: absolute; bottom: 0; left: 0; right: 0; height: 22px;
}
.psm-act-body {
  padding: 1rem 1.125rem 1.375rem;
  flex: 1; display: flex; flex-direction: column;
}
.psm-act-cat {
  font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: .325rem;
}
.psm-act-title {
  font-family: var(--font-display);
  font-size: .9rem; font-weight: 700;
  color: var(--dark); margin-bottom: .5rem; line-height: 1.35;
}
.psm-act-text { font-size: .8rem; color: #4a6a8a; line-height: 1.7; flex: 1; margin-bottom: .75rem; }
.psm-act-link {
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: .3rem;
  text-decoration: none; margin-top: auto;
  transition: gap var(--trans);
}
.psm-act-link:hover { gap: .55rem; text-decoration: none; }

/* ============================================================
   CARTES ACTUALITÉS
   ============================================================ */
.psm-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.125rem;
}
.psm-news-card {
  background: rgba(255,255,255,.9);
  border-radius: var(--rad);
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,.95);
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.psm-news-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(29,111,164,.12); }
.psm-nc-top {
  height: 100px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.psm-nc-thumb { width: 100%; height: 100%; object-fit: cover; }
.psm-nc-ico { font-size: 2.25rem; opacity: .75; }
.psm-nc-stripe { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; }
.psm-nc-body { padding: .875rem 1rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.psm-nc-date { font-size: .7rem; color: #7a9ab4; margin-bottom: .375rem; display: block; }
.psm-nc-title {
  font-family: var(--font-display);
  font-size: .875rem; font-weight: 700;
  line-height: 1.35; margin-bottom: .5rem;
}
.psm-nc-title a { color: var(--dark); text-decoration: none; }
.psm-nc-title a:hover { color: var(--blue); }
.psm-nc-text { font-size: .78rem; color: #4a6a8a; line-height: 1.65; flex: 1; margin-bottom: .75rem; }
.psm-nc-link { font-family: var(--font-display); font-size: .78rem; font-weight: 700; text-decoration: none; margin-top: auto; }
.psm-nc-link:hover { text-decoration: underline; }

/* ============================================================
   SECTION CTA
   ============================================================ */
.psm-cta-section {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 64px var(--pad);
  text-align: center;
  position: relative; overflow: hidden;
}
.psm-cta-bubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.psm-bubble {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.psm-b1 { width: 200px; height: 200px; top: -50px; left: -40px; }
.psm-b2 { width: 140px; height: 140px; bottom: 20px; right: 8%; }
.psm-b3 { width: 90px; height: 90px; top: 30%; left: 12%; }
.psm-b4 { width: 240px; height: 240px; bottom: -70px; right: -50px; }
.psm-cta-inner { position: relative; max-width: 600px; margin: 0 auto; }
.psm-cta-icon { font-size: 2.75rem; display: block; margin-bottom: .625rem; }
.psm-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800; color: var(--white);
  letter-spacing: -.025em; line-height: 1.1;
  margin-bottom: .875rem;
}
.psm-cta-sub {
  font-size: .95rem; color: rgba(255,255,255,.78);
  line-height: 1.75; margin-bottom: 2rem;
}
.psm-cta-btns { display: flex; gap: .875rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   ANIMATIONS SCROLL — IntersectionObserver
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ============================================================
   RESPONSIVE FRONT PAGE
   ============================================================ */
@media (max-width: 1024px) {
  .psm-act-grid  { grid-template-columns: repeat(2, 1fr); }
  .psm-news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .psm-hero { padding: 36px var(--pad) 32px; }
  .psm-hero-title { font-size: 1.875rem; }
  .psm-hero-btns { flex-direction: column; align-items: center; }
  .psm-hero-stats { gap: 1.25rem; }
  .psm-stat-n { font-size: 1.5rem; }
  .psm-act-grid  { grid-template-columns: 1fr; }
  .psm-news-grid { grid-template-columns: 1fr; }
  .psm-section { padding: 36px 0; }
  .psm-cta-section { padding: 44px var(--pad); }
  .psm-cta-btns { flex-direction: column; align-items: center; }
}

/* ============================================================
   HERO PAGE INTÉRIEURE (page.php + single.php + archive.php)
   ============================================================ */
.psm-page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 36px var(--pad) 40px;
  position: relative;
  overflow: hidden;
}
.psm-page-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}
.psm-page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.025em;
  line-height: 1.1;
  margin-bottom: .625rem;
}
.psm-page-hero-sub {
  font-size: .95rem;
  color: rgba(255,255,255,.78);
  line-height: 1.7;
  max-width: 600px;
  margin: 0;
}
.psm-page-hero-stripe {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 5px;
}
.psm-archive-icon {
  margin-right: .375rem;
}

/* ── Fil d'Ariane ── */
.psm-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .375rem;
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: .875rem;
}
.psm-breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; transition: color var(--trans); }
.psm-breadcrumb a:hover { color: var(--white); }
.psm-breadcrumb span[aria-hidden] { color: rgba(255,255,255,.4); }
.psm-breadcrumb-current { color: rgba(255,255,255,.9); }

/* ============================================================
   LAYOUT DEUX COLONNES (page + single)
   ============================================================ */
.psm-page-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem var(--pad);
}
.psm-page-content-wrap {
  min-width: 0; /* évite l'overflow grid */
}
.psm-page-thumb {
  margin-bottom: 1.5rem;
  border-radius: var(--rad);
  overflow: hidden;
}
.psm-page-thumb img { width: 100%; height: auto; display: block; }
.psm-page-content {
  background: rgba(255,255,255,.92);
  border-radius: var(--rad);
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(29,111,164,.07);
}
.psm-page-links {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
}
.psm-edit-link {
  margin-top: 1rem;
  font-size: .75rem;
  color: var(--grey);
}
.psm-edit-link a { color: var(--blue); }

/* ============================================================
   SINGLE ARTICLE
   ============================================================ */
.psm-single-hero { position: relative; }
.psm-single-hero--img .psm-page-hero-inner { position: relative; z-index: 2; }
.psm-single-hero-bg {
  position: absolute; inset: 0; overflow: hidden;
}
.psm-single-hero-img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}
.psm-single-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(12,68,123,.88) 0%, rgba(29,111,164,.78) 100%);
}
.psm-single-meta {
  display: flex; align-items: center; gap: .625rem;
  margin-bottom: .875rem;
}
.psm-single-cat {
  font-family: var(--font-display);
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 3px 10px; border-radius: var(--rad-full);
  text-decoration: none;
}
.psm-single-date { font-size: .78rem; color: rgba(255,255,255,.65); }
.psm-single-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800; color: var(--white);
  letter-spacing: -.025em; line-height: 1.1;
  margin-bottom: .75rem;
}
.psm-single-intro {
  font-size: .95rem; color: rgba(255,255,255,.8);
  line-height: 1.7; max-width: 620px;
}
.psm-article { margin: 0; }

/* Tags */
.psm-single-tags {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  margin-top: 1.5rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: .78rem;
}
.psm-single-tags-label { color: var(--grey); font-weight: 600; }
.psm-tag {
  background: var(--blue-pale);
  color: var(--blue);
  border: 1px solid var(--blue-mid);
  border-radius: var(--rad-full);
  padding: 2px 10px;
  font-size: .72rem; font-weight: 600;
  text-decoration: none;
  transition: all var(--trans);
}
.psm-tag:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* Navigation prev/next article */
.psm-single-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-top: 1.5rem;
}
.psm-single-nav a {
  display: block; padding: .875rem 1rem;
  background: rgba(255,255,255,.88);
  border: 1.5px solid var(--border);
  border-radius: var(--rad);
  font-family: var(--font-display); font-size: .82rem; font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  transition: all var(--trans);
  line-height: 1.35;
}
.psm-single-nav a:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.psm-single-nav-prev a { text-align: left; }
.psm-single-nav-next a { text-align: right; }

/* ============================================================
   ARCHIVE — Grille
   ============================================================ */
.psm-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.125rem;
  margin-bottom: 2.5rem;
}
.psm-archive-card {
  background: rgba(255,255,255,.9);
  border-radius: var(--rad);
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,.95);
  display: flex; flex-direction: column;
  transition: transform .22s, box-shadow .22s;
}
.psm-archive-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(29,111,164,.14);
}
.psm-archive-card-link { display: block; text-decoration: none; }
.psm-archive-thumb { width: 100%; height: 100%; object-fit: cover; }
.psm-archive-card .psm-act-top { height: 100px; }
.psm-archive-card h2.psm-act-title { font-size: .875rem; }
.psm-archive-card h2.psm-act-title a { color: var(--dark); text-decoration: none; }
.psm-archive-card h2.psm-act-title a:hover { color: var(--blue); }

/* Pagination */
.psm-pagination { display: flex; justify-content: center; margin-top: 2rem; }
.psm-pagination ul { display: flex; gap: .375rem; list-style: none; flex-wrap: wrap; }
.psm-pagination li a, .psm-pagination li span {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 .75rem;
  border-radius: var(--rad-full);
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  background: rgba(255,255,255,.85);
  color: var(--blue);
  border: 1.5px solid var(--blue-mid);
  text-decoration: none;
  transition: all var(--trans);
}
.psm-pagination li a:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.psm-pagination li .current { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* Vide */
.psm-archive-empty {
  text-align: center; padding: 4rem var(--pad);
  max-width: 480px; margin: 0 auto;
}
.psm-archive-empty-icon { font-size: 3.5rem; display: block; margin-bottom: 1rem; opacity: .5; }
.psm-archive-empty h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--blue-dark); margin-bottom: .75rem; }
.psm-archive-empty p { color: var(--grey); margin-bottom: 1.5rem; }

/* ============================================================
   PAGE 404
   ============================================================ */
.psm-404-wrap {
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  padding: 3rem var(--pad);
  text-align: center;
  overflow: hidden;
}
.psm-404-inner { max-width: 560px; margin: 0 auto; position: relative; }
.psm-404-number {
  display: flex; align-items: center; justify-content: center;
  gap: .25rem; margin-bottom: 1.5rem;
}
.psm-404-4, .psm-404-0 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800; line-height: 1;
}
.psm-404-4 { color: var(--blue); }
.psm-404-0 { font-size: clamp(3.5rem, 10vw, 6rem); }
.psm-404-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 800; color: var(--blue-dark);
  letter-spacing: -.02em; margin-bottom: .875rem;
}
.psm-404-sub {
  font-size: .95rem; color: #4a6a8a;
  line-height: 1.75; margin-bottom: 2rem;
}
.psm-404-search {
  max-width: 400px; margin: 0 auto 2rem;
}
.psm-404-search .search-form {
  background: rgba(255,255,255,.88);
  border-radius: var(--rad-full);
  padding: 4px 4px 4px 1rem;
  border: 1.5px solid var(--blue-mid);
  display: flex; align-items: center; gap: .5rem;
}
.psm-404-search .search-field {
  border: none; background: transparent;
  padding: .375rem 0; flex: 1;
  font-size: .9rem; outline: none;
  box-shadow: none;
}
.psm-404-search .search-submit {
  background: var(--blue); color: var(--white);
  border: none; border-radius: var(--rad-full);
  padding: .5rem 1rem;
  font-family: var(--font-display); font-size: .82rem; font-weight: 700;
  cursor: pointer; transition: background var(--trans);
  box-shadow: none;
}
.psm-404-search .search-submit:hover { background: var(--blue-dark); transform: none; }
.psm-404-links-label {
  font-size: .78rem; font-weight: 700; color: var(--grey);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: .875rem;
}
.psm-404-btns {
  display: flex; gap: .625rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.psm-404-suggest { margin-top: 0; }
.psm-404-pills { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.psm-404-pill {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .45rem 1rem;
  border-radius: var(--rad-full);
  font-family: var(--font-display); font-size: .78rem; font-weight: 700;
  text-decoration: none;
  transition: all var(--trans);
  opacity: .9;
}
.psm-404-pill:hover { opacity: 1; transform: translateY(-2px); }

/* ============================================================
   RESPONSIVE TEMPLATES INTÉRIEURS
   ============================================================ */
@media (max-width: 1024px) {
  .psm-archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .psm-page-layout { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.25rem var(--pad); }
  .psm-page-content { padding: 1.25rem; }
  .psm-archive-grid { grid-template-columns: 1fr; }
  .psm-single-nav { grid-template-columns: 1fr; }
  .psm-single-nav-next a { text-align: left; }
  .psm-404-btns { flex-direction: column; align-items: center; }
  .psm-page-hero { padding: 28px var(--pad) 32px; }
}

/* ============================================================
   FOOTER COMPACT
   ============================================================ */
#colophon {
  background: linear-gradient(180deg, #0c3259 0%, #081e37 100%);
  color: var(--white);
}
.psm-footer-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.25rem var(--pad);
  flex-wrap: wrap;
}
/* Logo */
.psm-footer-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--rad-full);
  padding: .375rem .875rem;
}
.psm-footer-logo img {
  height: 42px; width: auto;
  transition: opacity var(--trans);
}
.psm-footer-logo:hover img { opacity: .85; }

/* Liens essentiels */
.psm-footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem .125rem;
  flex: 1;
  justify-content: center;
}
.psm-footer-nav a {
  font-size: .75rem; font-weight: 600;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  padding: .25rem .625rem;
  border-radius: var(--rad-full);
  transition: all var(--trans);
  white-space: nowrap;
}
.psm-footer-nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,.1);
}

/* Réseaux sociaux */
.psm-footer-social { display: flex; gap: .5rem; flex-shrink: 0; }
.psm-footer-social-btn {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem; font-weight: 700;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: all var(--trans);
}
.psm-footer-social-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* Ligne copyright */
.psm-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: .625rem var(--pad);
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: .7rem;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: .5rem;
}
.psm-footer-bottom a {
  color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: color var(--trans);
}
.psm-footer-bottom a:hover { color: rgba(255,255,255,.75); }

/* Supprimer l'ancien footer (remplacé) */
.site-info, #logo_footer, .colfooter,
.footer-palette, .footer-bottom-bar { display: none; }

@media (max-width: 768px) {
  .psm-footer-compact { flex-direction: column; align-items: center; text-align: center; padding: 1rem var(--pad); }
  .psm-footer-nav { justify-content: center; }
  .psm-footer-bottom { flex-direction: column; text-align: center; }
}
