/*
Theme Name: Spyros Halaris
Author: Franck
Description: Refonte épurée — fond blanc, Open Sans, touche de bleu.
Version: 1.0.43
License: GNU General Public License v2 or later
Text Domain: spyros-halaris
*/

:root {
  --bg: #ffffff;
  --ink: #2f3437;
  --ink-soft: #6a7074;
  --heading: #1b1e21;
  --blue: #577388;
  --blue-strong: #3f5869;
  --line: #eceff1;
  --max: 1080px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--blue-strong); }

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

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 .6em;
}

h1 { font-size: 34px; font-weight: 300; letter-spacing: .3px; }
h2 { font-size: 24px; font-weight: 400; letter-spacing: .4px; color: var(--blue); }
h3 { font-size: 16px; font-weight: 600; }
h4 { font-size: 15px; font-weight: 600; }

p { margin: 0 0 1.25em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  padding-top: 26px; padding-bottom: 26px;
}
.site-branding { line-height: 1.2; }
.site-title {
  font-size: 26px; font-weight: 300; letter-spacing: 1.5px; margin: 0;
  text-transform: uppercase;
}
.site-title a { color: var(--heading); }
.site-description { font-size: 12px; color: var(--ink-soft); margin: 3px 0 0; letter-spacing: .3px; }

/* ---------- Nav ---------- */
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; align-items: center; }
.main-nav li { position: relative; }
.main-nav a {
  display: block; font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-soft); padding: 6px 0;
}
.main-nav a:hover { color: var(--blue); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a { color: var(--blue); }

.main-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 210px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
  padding: 8px 0; display: none; z-index: 30;
}
.main-nav li:hover > .sub-menu { display: block; }
.main-nav .sub-menu a { padding: 9px 20px; letter-spacing: 1px; font-size: 11px; white-space: nowrap; }
.main-nav .sub-menu li { width: 100%; }

/* Nav toggle (mobile) */
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  padding: 9px 12px; cursor: pointer; font-size: 12px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ink-soft);
}

/* ---------- Main ---------- */
.site-main { padding: 52px 0 64px; }

.entry-header { margin-bottom: 34px; }
.entry-title {
  font-size: 34px; font-weight: 300; letter-spacing: .3px;
  margin: 0 0 10px; color: var(--heading);
}
.entry-meta {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 22px;
}
.entry-content { max-width: 780px; }

.entry-content p.has-text-align-left { text-align: left; }
.entry-content img { margin: 1.5em 0; }

/* Gutenberg align */
.entry-content .alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }
.entry-content .alignfull { margin-left: -24px; margin-right: -24px; max-width: none; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }

/* Audio player */
.wp-audio-shortcode { margin: 1.2em 0; max-width: 100%; }
.mejs-container { background: #f7f8f9 !important; }
.mejs-controls { background: #f7f8f9 !important; }
.mejs-time, .mejs-duration { color: var(--ink-soft) !important; }

/* ---------- Posts list (home) ---------- */
.posts-list { display: grid; gap: 56px; }
.post-card { padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.post-card:last-child { border-bottom: 0; }
.post-card .entry-title { font-size: 28px; }
.post-card .entry-title a { color: var(--heading); }
.post-card .entry-title a:hover { color: var(--blue); }
.entry-thumb { display: block; margin: 18px 0; }
.entry-summary { max-width: 780px; }
.read-more { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }

.pagination { margin-top: 48px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-block; padding: 7px 14px; border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-soft);
}
.pagination .page-numbers.current { border-color: var(--blue); color: var(--blue); }
.pagination .page-numbers:hover { color: var(--blue); }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="url"], textarea, select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line);
  font: inherit; color: var(--ink); background: #fff; border-radius: 0;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); }
button, input[type="submit"], .button {
  background: var(--blue); color: #fff; border: 0; padding: 12px 26px;
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600;
  cursor: pointer; transition: background .15s ease;
}
button:hover, input[type="submit"]:hover { background: var(--blue-strong); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; }
.site-footer .container {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--ink-soft); letter-spacing: .5px;
}
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--blue); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .main-nav { flex-basis: 100%; display: none; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 0 16px; }
  .main-nav .sub-menu { position: static; display: none; border: 0; box-shadow: none; padding-left: 16px; }
  .main-nav li:hover > .sub-menu { display: none; }
  .main-nav .sub-menu.is-open { display: block; }
  .entry-content .alignwide { margin-left: 0; margin-right: 0; }
  .entry-content .alignfull { margin-left: -24px; margin-right: -24px; }
  h1, .entry-title { font-size: 27px; }
  h2 { font-size: 21px; }
}

/* ---------- Front page (hero + nom + rubriques) ---------- */
body.home .site-branding { display: none; }
body.home .site-header .container { justify-content: center; }

.hero { line-height: 0; background: #dbe2e8; }
.hero img {
  width: 100%;
  max-height: 62vh;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.front-name {
  text-align: center;
  padding: 54px 24px 0;
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 300;
  letter-spacing: .5px;
  margin: 0;
  color: var(--heading);
}

.sections-index {
  max-width: 560px;
  margin: 44px auto 0;
  padding: 0 24px 72px;
}
.sections-index a {
  display: block;
  text-align: center;
  padding: 20px 0;
  font-size: 19px;
  font-weight: 300;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.sections-index a:first-child { border-top: 1px solid var(--line); }
.sections-index a:hover { color: var(--blue); }

@media (max-width: 600px) {
  .sections-index a { font-size: 16px; letter-spacing: .18em; }
  .front-name { padding-top: 40px; }
}

/* ---------- Front page v2 : rubriques en cartes ---------- */
body.home .site-branding { display: block; }

.sections {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 32px;
}
.section-card { display: flex; flex-direction: column; }
.section-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef1f4;
  margin-bottom: 16px;
}
.section-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.section-card:hover .section-thumb img { transform: scale(1.04); }
.section-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 8px;
}
.section-card:hover .section-title { color: var(--blue); }
.section-excerpt {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .sections { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}
@media (max-width: 560px) {
  .sections { grid-template-columns: 1fr; }
}

/* ---------- Galerie masonry (page Photos) ---------- */
.entry-content .wp-block-gallery {
  display: block;
  column-count: 3;
  column-gap: 16px;
}
.entry-content .wp-block-gallery > figure {
  break-inside: avoid;
  margin: 0 0 16px;
  width: 100%;
}
.entry-content .wp-block-gallery figure img {
  width: 100%;
  height: auto;
}

@media (max-width: 860px) {
  .entry-content .wp-block-gallery { column-count: 2; }
}
@media (max-width: 560px) {
  .entry-content .wp-block-gallery { column-count: 1; }
}

/* ---------- Galerie masonry (page Photos) ---------- */
.entry-content .wp-block-gallery {
  display: block;
  column-count: 3;
  column-gap: 16px;
}
.entry-content .wp-block-gallery > figure {
  break-inside: avoid;
  margin: 0 0 16px;
  width: 100%;
}
.entry-content .wp-block-gallery figure img {
  width: 100%;
  height: auto;
}

@media (max-width: 860px) {
  .entry-content .wp-block-gallery { column-count: 2; }
}
@media (max-width: 560px) {
  .entry-content .wp-block-gallery { column-count: 1; }
}

/* ---------- Galerie masonry (shortcode [gallery]) ---------- */
.entry-content .gallery {
  display: block;
  column-count: 3;
  column-gap: 16px;
}
.entry-content .gallery-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 16px;
  width: 100%;
}
.entry-content .gallery-item img {
  width: 100%;
  height: auto;
}
.entry-content .gallery-icon {
  line-height: 0;
}

@media (max-width: 860px) {
  .entry-content .gallery { column-count: 2; }
}
@media (max-width: 560px) {
  .entry-content .gallery { column-count: 1; }
}

/* ===== Header : titre à gauche, menu centré, texte bleu ===== */
.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}
.site-branding { grid-column: 1; justify-self: start; }
.main-nav { grid-column: 2; justify-self: center; }
.nav-toggle { grid-column: 3; justify-self: end; display: none; }

.site-title a { color: var(--blue); }
.site-title a:hover { color: var(--blue-strong); }
.main-nav a { color: var(--blue); }
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a { color: var(--blue-strong); }

/* ===== Hero plein écran ===== */
.hero img {
  height: 100vh;
  max-height: none;
}

/* ===== Header responsive ===== */
@media (max-width: 860px) {
  .site-header .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .site-branding { justify-self: auto; }
  .nav-toggle { display: inline-block; }
  .main-nav { flex-basis: 100%; order: 3; justify-self: auto; }
}

/* ===== Header transparent posé sur la photo (page d'accueil) ===== */
body.home .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: none;
  z-index: 30;
}
body.home .hero img {
  height: 100vh;
}

/* menu mobile ouvert : fond blanc pour la lisibilité */
@media (max-width: 860px) {
  body.home .main-nav.is-open {
    background: #fff;
    padding: 8px 16px 12px;
  }
}

/* ===== Ajustements header sur photo ===== */
body.home .main-nav a { color: #ffffff; }
body.home .main-nav a:hover,
body.home .main-nav .current-menu-item > a,
body.home .main-nav .current_page_item > a,
body.home .main-nav .current-menu-ancestor > a { color: rgba(255,255,255,.72); }

body.home .site-title {
  text-transform: uppercase;
  white-space: nowrap;
}

/* ===== Header : titre plus à gauche, menu un peu plus bas ===== */
body.home .site-header .container {
  max-width: none;
  padding-left: 48px;
  padding-right: 48px;
  padding-top: 56px;
}

/* ===== Header v3 ===== */

/* Titre : blanc, semi-gras, un peu plus gros, sans hover */
body.home .site-title a,
body.home .site-title a:hover {
  color: #ffffff;
  font-weight: 600;
  font-size: 28px;
}

/* Menu : hover bleu #4A6FA5 */
body.home .main-nav a:hover,
body.home .main-nav .current-menu-item > a,
body.home .main-nav .current_page_item > a,
body.home .main-nav .current-menu-ancestor > a {
  color: #4A6FA5;
}

/* Sous-menu : fond blanc, liens lisibles */
body.home .main-nav .sub-menu {
  background: #ffffff;
}
body.home .main-nav .sub-menu a {
  color: #577388;
}
body.home .main-nav .sub-menu a:hover {
  color: #4A6FA5;
}

/* Éléments parents (Projects) : non cliquables, hover uniquement */
body.home .main-nav li.menu-item-has-children > a {
  pointer-events: none;
}
@media (max-width: 860px) {
  body.home .main-nav li.menu-item-has-children > a {
    pointer-events: auto;
  }
}

/* ===== Accueil : rubriques en liste (une ligne par page) ===== */
.sections-list {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 24px 96px;
}
.section-row {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.section-row:first-child { border-top: 1px solid var(--line); }
.section-row__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section-row__title {
  margin: 0;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: .04em;
  color: var(--heading);
  transition: color .3s ease;
}
.section-row:hover .section-row__title { color: var(--blue); }
.section-row__excerpt {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 620px;
}
.section-row__thumb {
  flex: 0 0 250px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef1f4;
}
.section-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.section-row:hover .section-row__thumb img { transform: scale(1.05); }

@media (max-width: 720px) {
  .section-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 32px 0;
  }
  .section-row__thumb {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}

/* ===== Header global : cohérent partout (titre gauche, menu centré) ===== */
.site-title a,
.site-title a:hover {
  color: var(--blue);
  font-weight: 600;
  font-size: 28px;
}
.main-nav a { color: var(--blue); }
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a { color: #4A6FA5; }

/* Sous-menu : fond blanc, liens bleus (partout) */
.main-nav .sub-menu { background: #ffffff; }
.main-nav .sub-menu a { color: #577388; }
.main-nav .sub-menu a:hover { color: #4A6FA5; }

/* Parents (Projects) : non cliquables, hover uniquement (partout) */
.main-nav li.menu-item-has-children > a { pointer-events: none; }
@media (max-width: 860px) {
  .main-nav li.menu-item-has-children > a { pointer-events: auto; }
}

/* Accueil : blanc sur la photo */
body.home .site-title a,
body.home .site-title a:hover { color: #ffffff; }
body.home .main-nav a { color: #ffffff; }

/* ===== Header global : cohérent partout (titre gauche, menu centré) ===== */
.site-title a,
.site-title a:hover {
  color: var(--blue);
  font-weight: 600;
  font-size: 28px;
}
.main-nav a { color: var(--blue); }
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a { color: #4A6FA5; }

/* Sous-menu : fond blanc, liens bleus (partout) */
.main-nav .sub-menu { background: #ffffff; }
.main-nav .sub-menu a { color: #577388; }
.main-nav .sub-menu a:hover { color: #4A6FA5; }

/* Parents (Projects) : non cliquables, hover uniquement (partout) */
.main-nav li.menu-item-has-children > a { pointer-events: none; }
@media (max-width: 860px) {
  .main-nav li.menu-item-has-children > a { pointer-events: auto; }
}

/* Accueil : blanc sur la photo */
body.home .site-title a,
body.home .site-title a:hover { color: #ffffff; }
body.home .main-nav a { color: #ffffff; }

/* ===== Bouton langue ENG/FR (page Biography) ===== */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 0 36px;
}
.lang-btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color .3s ease, border-color .3s ease;
}
.lang-btn:hover { color: var(--blue); }
.lang-btn.is-active { color: var(--blue); border-bottom-color: var(--blue); }

/* ===== Ajustements finaux : titre + boutons ===== */

/* Titre plus à gauche (toutes pages) */
.site-header .container {
  max-width: none;
  padding-left: 24px;
  padding-right: 24px;
}

/* Titre pas en gras */
.site-title a,
.site-title a:hover,
body.home .site-title a,
body.home .site-title a:hover {
  font-weight: 400;
}

/* Boutons langue : pas de fond bleu au survol */
.lang-btn:hover,
.lang-btn:focus,
.lang-btn:active {
  background: transparent;
}

/* ===== Lecteur audio élégant ===== */
.music-player {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f9fa;
}
.music-player__btn {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .1s ease;
}
.music-player__btn:hover { background: var(--blue-strong); }
.music-player__btn:active { transform: scale(.96); }
.music-player__track {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #e2e7eb;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.music-player__progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--blue);
  border-radius: 3px;
  transition: width .1s linear;
}
.music-player__time {
  font-size: 13px;
  color: var(--ink-soft);
  min-width: 72px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Correction icône (largeur forcée, non écrasée par les règles globales) */
.music-player__btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: block;
}

/* Masquer les anciens lecteurs mediaelement (audio) */
.mejs-container.wp-audio-shortcode {
  display: none !important;
}

/* ===== Page Vidéos : grille 2 colonnes + lecteur épuré ===== */
.videos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  margin-top: 8px;
}
.video-card {
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--line);
}
.video-card:nth-last-child(-n+2) { border-bottom: none; }
.video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: #eef1f4;
  cursor: pointer;
}
.video-card__thumb img,
.video-card__thumb iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}
.video-card__thumb img { transition: transform .5s ease; }
.video-card__thumb:hover img { transform: scale(1.03); }
.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: rgba(87, 115, 136, .92);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.video-card__play:hover {
  background: var(--blue);
  transform: translate(-50%, -50%) scale(1.08);
}
.video-card__play svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: block;
  margin-left: 3px;
}
.video-card__caption {
  margin: 14px 0 0;
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
}
@media (max-width: 720px) {
  .videos-grid { grid-template-columns: 1fr; column-gap: 0; }
  .video-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .video-card:last-child { border-bottom: none; }
}


/* Centrer uniquement la page Vidéos */
body.page-id-57 .entry-content {
  margin: 0 auto;
}

/* Justifier les blocs de texte */
.entry-content p {
  text-align: justify;
  hyphens: auto;
}
.entry-content p.has-text-align-center { text-align: center; }
.entry-content p.has-text-align-left { text-align: left; }
.entry-content p.has-text-align-right { text-align: right; }
.entry-content p.video-card__caption { text-align: center; }

/* Centrer la galerie de la page Photos */
body.page-id-59 .entry-content {
  margin: 0 auto;
}

/* ===== Phemios : logos streaming sur une ligne ===== */
.stream-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 12px 0 26px;
}
.stream-logo {
  display: inline-block;
  line-height: 0;
}
.stream-logo img {
  height: 30px;
  width: auto;
  display: block;
}
.stream-dl {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 2px 0 6px;
}

/* ===== Header : « Spyros Halaris » centré au-dessus du menu ===== */
.site-title { font-size: 30px; letter-spacing: 2px; }
.site-title a,
.site-title a:hover,
body.home .site-title a,
body.home .site-title a:hover { font-weight: 300; }

@media (min-width: 861px) {
  .site-header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
}

/* ===== Page Projets : 3 projets en grille ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 8px;
}
.project-card {
  display: block;
  text-decoration: none;
}
.project-card__thumb {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #eef1f4;
}
.project-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.project-card:hover .project-card__thumb img { transform: scale(1.04); }
.project-card__title {
  display: block;
  margin-top: 14px;
  font-size: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--heading);
  text-align: center;
}
.project-card:hover .project-card__title { color: var(--blue); }
@media (max-width: 720px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* Légende bilingue */
.lang-caption {
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 10px;
}

/* ===== Calendrier Upcoming / Past ===== */
.calendar__heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin: 28px 0 10px;
}
.calendar__heading:first-child { margin-top: 0; }
.cal-event {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
.cal-date {
  font-weight: 600;
  color: var(--heading);
  margin-right: 4px;
}

/* ===== Albums Spotify ===== */
.albums-heading { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); margin: 28px 0 16px; }
.albums-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 20px; }
.album-card { display: block; text-decoration: none; }
.album-card__cover { display: block; aspect-ratio: 1; overflow: hidden; background: #eef1f4; }
.album-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.album-card:hover .album-card__cover img { transform: scale(1.05); }
.album-card__title { display: block; margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--ink); text-align: center; }
@media (max-width: 720px) { .albums-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Projets : centrer + pas de hover ===== */
body.page-id-1168 .entry-content { margin: 0 auto; }
.project-card:hover .project-card__thumb img { transform: none; }
.project-card:hover .project-card__title { color: var(--heading); }

/* Titre Albums comme le titre de page */
.albums-heading {
  font-size: 34px;
  font-weight: 300;
  letter-spacing: .3px;
  text-transform: none;
  color: var(--heading);
  margin: 48px 0 24px;
}

/* ===== Footer : réseaux à droite ===== */
.site-footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-social { display: flex; gap: 22px; }
.footer-social a { color: var(--ink-soft); text-decoration: none; font-size: 13px; letter-spacing: .5px; }
.footer-social a:hover { color: var(--blue); }

/* ===== Header v4 : titre bleu, menu noir fin minuscules, page active bleue ===== */
.main-nav a {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: none;
  color: #1b1e21;
}
.main-nav a:hover { color: var(--blue); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a { color: var(--blue); }
.main-nav .sub-menu a { color: #1b1e21; }
.main-nav .sub-menu a:hover { color: var(--blue); }

/* Accueil : header blanc sur la photo sombre (lisible) */
body.home .site-title a,
body.home .site-title a:hover { color: #ffffff; }
body.home .main-nav a { color: #ffffff; }
body.home .main-nav a:hover { color: rgba(255,255,255,.72); }
body.home .main-nav .current-menu-item > a,
body.home .main-nav .current_page_item > a { color: rgba(255,255,255,.85); }

/* ===== Accueil : © + logos ===== */
.home-footer {
  text-align: center;
  padding: 46px 24px 76px;
}
.home-copyright {
  margin: 0 0 22px;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--ink);
}

/* ===== Logos réseaux sociaux (commun) ===== */
.social-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.social-logos a {
  color: var(--blue);
  display: inline-flex;
  line-height: 0;
}
.social-logos a:hover { color: var(--blue-strong); }
.social-logos svg {
  width: 22px;
  height: 22px;
  display: block;
}
.footer-social { display: flex; gap: 18px; }
.footer-social a { color: var(--blue); line-height: 0; }
.footer-social a:hover { color: var(--blue-strong); }
.footer-social svg { width: 18px; height: 18px; display: block; }

/* ===== Projets : photos en entier (pas de recadrage) ===== */
.projects-grid { align-items: start; }
.project-card__thumb { aspect-ratio: auto; }
.project-card__thumb img { height: auto; }

/* ===== Canticum : légende centrée + espace + vidéo = photo ===== */
.entry-content .lang-caption {
  text-align: center;
  margin: 0 0 28px;
}
body.page-id-1171 .video-card__thumb {
  aspect-ratio: 580 / 386;
  max-width: 580px;
  margin: 0 auto;
}

/* ===== Contact : champs réduits d'environ un tiers ===== */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 66.6%;
  padding: 8px 10px;
  font-size: 14px;
}

/* Champs formulaire : pleine largeur sur mobile */
@media (max-width: 600px) {
  .wpcf7-form input[type="text"],
  .wpcf7-form input[type="email"],
  .wpcf7-form textarea { width: 100%; }
}

/* Menu : tout en minuscules (pas de majuscule initiale) */
.main-nav a { text-transform: lowercase; }

/* Pas de footer sur la page d'accueil (déjà © + logos) */
body.home .site-footer { display: none; }

/* Page active : bleu vif (plus voyant) */
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a { color: #2563EB; }
.main-nav .sub-menu a:hover { color: #2563EB; }

/* ===== Correctif mobile : padding horizontal du contenu (texte collé aux bords) ===== */
.site-main { padding-left: 24px; padding-right: 24px; }

/* ===== Menu mobile accueil : liens lisibles sur fond blanc ===== */
@media (max-width: 860px) {
  body.home .main-nav.is-open a { color: #1b1e21; }
  body.home .main-nav.is-open a:hover { color: #2563EB; }
  body.home .main-nav.is-open .current-menu-item > a,
  body.home .main-nav.is-open .current_page_item > a { color: #2563EB; }
}

/* Menu : police un peu plus petite */
.main-nav a { font-size: 12px; }

/* Projets : photos de même taille (carré, image entière sans recadrage) */
.project-card__thumb { aspect-ratio: 1 / 1; }
.project-card__thumb img { height: 100%; object-fit: contain; }

.bio-len-toggle { margin-top: -22px; }

/* Titre de page : minuscule, plus petit, bleu */
.entry-title { font-size: 22px; text-transform: lowercase; color: #2563EB; }

/* Éviter les césures (coupures de mots) */
.entry-content p, .entry-content li, .entry-content h1, .entry-content h2, .entry-content h3 { hyphens: none; -webkit-hyphens: none; }

/* Supprimer les fonds gris autour des photos projets et des vidéos */
.project-card__thumb { background: transparent; }
.video-card__thumb { background: transparent; }

/* Pochettes discographie : fond transparent (plus d'encart gris) */
.album-card__cover { background: transparent; }

/* Aucune césure (coupure de mot) nulle part */
html, body, body * { hyphens: none !important; -webkit-hyphens: none !important; -ms-hyphens: none !important; }

/* Galerie masonry : 2 colonnes sur mobile */
@media (max-width: 860px) { .mgl-masonry { column-count: 2 !important; } }

/* Galerie masonry : annuler la marge verticale des images (écarts = padding 2.5px comme horizontal) */
.mgl-masonry img { margin: 0 !important; }

/* Projets : contraindre l image au cadre carré (évite le débordement bas) */
.project-card__thumb { position: relative; }
.project-card__thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; }

/* Évros (3e carte) : remplir le cadre, cadrage décalé vers le bas (pied visible, air du haut recadré) */
.projects-grid .project-card:nth-child(3) .project-card__thumb img { object-fit: cover; object-position: center 65%; }

/* Évros (3e carte) : taille normale (contain) + léger décalage vers le haut */
.projects-grid .project-card:nth-child(3) .project-card__thumb img {
  object-fit: contain;
  object-position: 50% 50%;
  top: -15px;
}

/* Masquer la tagline du header (gardée pour le SEO via title/meta) */
.site-description { display: none !important; }
