/* ==========================================================================
   M.A.K. GALERIE — FEUILLE DE STYLES PRINCIPALE (OPTIMISÉE)
   ==========================================================================
   
   TABLE DES MATIÈRES :
   
   0. POLICES (@font-face)
   1. VARIABLES CSS (:root)
   2. RESET & BASE
   3. TYPOGRAPHIE GLOBALE
   4. LAYOUT PRINCIPAL (site-main, grilles)
   5. HEADER DU SITE
   6. CARTES ŒUVRES (publiques)
   7. TICKER PRIVÉ (défilement horizontal)
   8. PAGE ŒUVRE SINGLE (stage, lame, cartel)
   9. BLOC OEUVRE-BELOW (provenance, expositions, littérature)
   10. MODAL MAK (contact, général)
   11. FORMULAIRE CF7 (Contact Form 7)
   12. SÉLECTEUR DE LANGUE
   13. BOUTONS CTA
   14. PAGE DAMOCLÈS (duel, citations)
   15. PAGE HUMBLOT
   16. FOOTER
   17. UTILITAIRES & MASQUAGES
   18. RESPONSIVE (breakpoints globaux)
   19. ACCESSIBILITÉ (reduced motion)
   
   ========================================================================== */


/* ==========================================================================
   0. POLICES (@font-face)
   ========================================================================== */

@font-face {
  font-family: 'NunitoChiffragelarge';
  src: url('../fonts/NunitoSans-Chiffragelarge.eot');
  src: url('../fonts/NunitoSans-Chiffragelarge.eot?#iefix') format('embedded-opentype'),
       url('../fonts/NunitoSans-Chiffragelarge.woff2') format('woff2'),
       url('../fonts/NunitoSans-Chiffragelarge.woff') format('woff'),
       url('../fonts/NunitoSans-Chiffragelarge.ttf') format('truetype'),
       url('../fonts/NunitoSans-Chiffragelarge.svg#NunitoSans-Chiffragelarge') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NunitoChiffrage';
  src: url('../fonts/NunitoSans-chiffrage.eot');
  src: url('../fonts/NunitoSans-chiffrage.eot?#iefix') format('embedded-opentype'),
       url('../fonts/NunitoSans-chiffrage.woff2') format('woff2'),
       url('../fonts/NunitoSans-chiffrage.woff') format('woff'),
       url('../fonts/NunitoSans-chiffrage.ttf') format('truetype'),
       url('../fonts/NunitoSans-chiffrage.svg#NunitoSans-chiffrage') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NunitoTitrage';
  src: url('../fonts/NunitoSans-Titrage.eot');
  src: url('../fonts/NunitoSans-Titrage.eot?#iefix') format('embedded-opentype'),
       url('../fonts/NunitoSans-Titrage.woff2') format('woff2'),
       url('../fonts/NunitoSans-Titrage.woff') format('woff'),
       url('../fonts/NunitoSans-Titrage.ttf') format('truetype'),
       url('../fonts/NunitoSans-Titrage.svg#NunitoSans-Titrage') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NunitoLabeur';
  src: url('../fonts/NunitoSans-Labeur.eot');
  src: url('../fonts/NunitoSans-Labeur.eot?#iefix') format('embedded-opentype'),
       url('../fonts/NunitoSans-Labeur.woff2') format('woff2'),
       url('../fonts/NunitoSans-Labeur.woff') format('woff'),
       url('../fonts/NunitoSans-Labeur.ttf') format('truetype'),
       url('../fonts/NunitoSans-Labeur.svg#NunitoSans-Labeur') format('svg');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NunitoBold';
  src: url('../fonts/NunitoSans-Bold.eot');
  src: url('../fonts/NunitoSans-Bold.eot?#iefix') format('embedded-opentype'),
       url('../fonts/NunitoSans-Bold.woff2') format('woff2'),
       url('../fonts/NunitoSans-Bold.woff') format('woff'),
       url('../fonts/NunitoSans-Bold.ttf') format('truetype'),
       url('../fonts/NunitoSans-Bold.svg#NunitoSans-Bold') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


/* ==========================================================================
   1. VARIABLES CSS (:root)
   ========================================================================== */

:root {
  /* Couleurs principales */
  --ink: #172033;
  --blue: #2646b4;
  --paper: #fff;
  --beige: #ffffff;
  --line: #d7d7d7;
  --muted: #666;
  
  /* Layout */
  --wrap: 1200px;
  --gap: clamp(10px, 2.2vw, 24px);
  --pad-x: 1rem;
  --pad-y: 0.85rem;
  --radius: 0px;
  
  /* Composants */
  --icon-w: 2.2rem;
  --shadow-focus: 0 0 0 3px rgba(38, 70, 180, 0.12);
  --focus: 2px solid #0a66c2;
  
  /* Icônes (ForkAwesome) */
  --fa: "ForkAwesome";
}


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

/* Reset marge body */
body {
  margin: 0;
}

/* Force font-weight normal partout (évite faux bold) */
html,
body,
*,
*::before,
*::after {
  font-weight: normal !important;
  font-synthesis: none;
}

/* Garde l'italique pour em/i */
em, i {
  font-style: italic;
}

/* Supprime soulignement des liens */
a {
  text-decoration: none;
}

a:hover,
a:focus,
a:active {
  text-decoration: none;
}


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

/* --- Paragraphes avec justification fine --- */
p {
  text-align: justify;
  text-justify: inter-word;
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  font-kerning: normal;
  font-optical-sizing: auto;
  font-variant-ligatures: common-ligatures contextual;
  hanging-punctuation: first allow-end;
  word-spacing: 0em;
  letter-spacing: 0em;
  widows: 2;
  orphans: 2;
  
  /* Contrôle césure WebKit */
  -webkit-hyphenate-limit-before: 3;
  -webkit-hyphenate-limit-after: 3;
  -webkit-hyphenate-limit-lines: 3;
}

/* CJK : justification inter-caractères */
:lang(zh) p,
:lang(ja) p,
:lang(ko) p {
  text-justify: inter-character;
  text-autospace: ideograph-alpha ideograph-numeric;
}

/* Hérite letterspacing sur strong/em */
p strong,
p em {
  letter-spacing: inherit;
  word-spacing: inherit;
}

/* --- Classes utilitaires typographie --- */

/* Word spacing */
p.ws-min { word-spacing: -0.05em; }
p.ws-100 { word-spacing: 0em; }
p.ws-max { word-spacing: 0.10em; }

/* Letter spacing */
p.ls-min { letter-spacing: -0.03em; }
p.ls-0   { letter-spacing: 0em; }
p.ls-max { letter-spacing: 0.03em; }

/* Glyph width (variable fonts) */
@supports (font-variation-settings: "wdth" 100) {
  p { font-variation-settings: "wdth" 100; }
  p.wdth-min { font-variation-settings: "wdth" 97; }
  p.wdth-max { font-variation-settings: "wdth" 103; }
}

@supports (font-stretch: 100%) {
  p { font-stretch: 100%; }
  p.stretch-min { font-stretch: 97%; }
  p.stretch-max { font-stretch: 103%; }
}

/* --- Familles de polices par usage --- */

/* Titres (h2, intro) */
h2,
.intro-home {
  font-family: 'NunitoTitrage', system-ui, sans-serif;
  text-transform: uppercase;
  font-size: 22.5px;
  text-align: center;
}

.intro-home {
  padding-top: 140px;
}

/* Corps de texte */
p,
.title__text,
.dims__text {
  font-family: 'NunitoLabeur', system-ui, sans-serif;
  font-size: 22.5px;
}

p strong {
  font-family: 'NunitoBold', system-ui, sans-serif;
}

/* Chiffres */
.date__text,
p .chiffre,
a .chiffre {
  font-family: 'NunitoChiffrage', system-ui, sans-serif;
  font-size: 15.7px;
  text-transform: uppercase;
}

.date__approx {
  font-family: 'NunitoLabeur', system-ui, sans-serif;
  font-size: 22.5px;
}

/* Medium / détails (gras léger) */
.medium__text,
.details__text {
  font-family: 'NunitoBold', system-ui, sans-serif;
  font-weight: lighter;
  font-synthesis: unset;
  text-rendering: geometricprecision;
  font-size: 0.95em;
}

/* Dimensions avec nombres */
.dims__text .nombre {
  font-family: 'NunitoChiffrage', system-ui, sans-serif;
  text-transform: uppercase;
  font-size: 15.7px;
}

/* Intro home variante 2 */
.intro-home-2 {
  font-family: 'NunitoLabeur', system-ui, sans-serif;
  font-size: 22.5px;
}

.intro-home-2 .years {
  font-family: 'NunitoChiffragelarge', system-ui, sans-serif;
  font-size: 52px;
}

.intro-home-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Artiste (nom en grand) */
.artist {
  font-size: 2.618em;
}

.artist .first .initial {
  font-size: 0.7em;
}

.artist .last .initial {
  font-size: 1em;
}

/* Prénom artiste carte */
.artist__first,
.intro-home-2 {
  font-family: 'NunitoLabeur', system-ui, sans-serif;
  font-size: 22.5px;
}

.artist__first .initial {
  font-family: 'NunitoChiffrage', system-ui, sans-serif;
  font-size: 15.7px;
}

/* Nom artiste carte */
.artist__last {
  font-family: 'NunitoLabeur', system-ui, sans-serif;
  text-transform: uppercase;
  font-size: 22.5px;
}

.artist__last .initial {
  font-family: 'NunitoTitrage', system-ui, sans-serif;
  text-transform: uppercase;
  font-size: 22.5px;
}


/* ==========================================================================
   4. LAYOUT PRINCIPAL
   ========================================================================== */

/* Conteneur principal */
.site-main {
  max-width: var(--wrap);
  margin: 0 auto;
}

/* Grille archive (auto-fill responsive) */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--gap);
}


/* ==========================================================================
   5. HEADER DU SITE
   ========================================================================== */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: clamp(8px, 2vw, 16px) clamp(12px, 3vw, 32px);
}

#header .mak-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
  position: relative;
}

#header .mak-header__col--logo {
  position: relative;
  min-height: clamp(56px, 10vw, 100px);
}

#header .site-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: auto;
  max-width: clamp(120px, 18vw, 200px);
  display: block;
}

#header .site-logo-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}

#header .logo-back {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(-1rem, calc(-1 * clamp(8px, 2vw, 14px)));
  font-size: clamp(11px, 2vw, 13px);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

#header .mak-header__col--meta {
  justify-self: end;
  text-align: right;
}

/* Logo back — version globale */
.site-logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 0.8rem;
}

.logo-back {
  font-family: 'NunitoTitrage', system-ui, sans-serif;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--blue);
  text-decoration: none !important;
  padding: 0.5em 1em;
  border: 1px solid var(--blue);
  position: relative;
  overflow: hidden;
  height: 1em;
  transition: color 0.25s ease, background 0.25s ease;
}

.logo-back::before {
  content: "←";
  margin-right: 0.4em;
}

.site-logo-link:hover .logo-back,
.site-logo-link:focus-visible .logo-back {
  background: var(--blue);
  color: #fff;
}

/* Header responsive */
@media (max-width: 560px) {
  #header .mak-header {
    grid-template-columns: 1fr;
  }
  
  #header .mak-header__col--meta {
    justify-self: start;
    text-align: left;
    margin-top: 48px;
  }
  
  #header .site-logo {
    max-width: clamp(120px, 40vw, 180px);
  }
  
  .logo-back {
    font-size: 11px;
    padding: 0.4em 0.8em;
  }
}


/* ==========================================================================
   6. CARTES ŒUVRES (publiques)
   ========================================================================== */

/* --- Variables locales --- */
.mak-oeuvres-public {
  --gap: clamp(12px, 2vw, 24px);
  --radius: 0px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --meta-size: clamp(14px, 1.6vw, 18px);
  --meta-lh: 1.25;
  --meta-lines: 2;
  --focus: 2px solid #0a66c2;
}

/* --- Grille 3 colonnes --- */
.oeuvres-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0 15%;
}

/* Cas spécial : 5 items → centre la 2e ligne */
.oeuvres-grid:has(> .oeuvres-grid__item:nth-child(5):last-child)
  > .oeuvres-grid__item:nth-child(4) {
  grid-column: 2;
}

.oeuvres-grid:has(> .oeuvres-grid__item:nth-child(5):last-child)
  > .oeuvres-grid__item:nth-child(5) {
  grid-column: 3;
}

/* --- Item de grille --- */
.oeuvres-grid__item {
  min-width: 0;
}

/* --- Carte œuvre --- */
.oeuvre-card {
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100%;
  background: #fff;
  color: #111;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  outline: none;
}

.oeuvre-card:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}

/* --- Figure / Image --- */
.oeuvre-card__figure {
  margin: 0;
  aspect-ratio: 1 / 1;
  background: #f4f4f4;
  overflow: hidden;
}

.oeuvre-card__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Aussi pour archive grid */
.archive-grid .oeuvre-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.oeuvre-card:hover .oeuvre-card__img {
  transform: scale(1.02);
}

/* --- Meta (nom artiste) --- */
.oeuvre-card__meta {
  padding: clamp(8px, 1.2vw, 14px) clamp(8px, 1.2vw, 14px) clamp(12px, 1.6vw, 16px);
  display: flex;
  align-items: center;
  min-height: calc(var(--meta-size) * var(--meta-lh) * var(--meta-lines));
}

/* --- Artiste (prénom + nom) --- */
.oeuvre-card__artist {
  font-size: var(--meta-size);
  line-height: var(--meta-lh);
  display: grid;
  grid-template-rows: auto auto;
  gap: 2px;
  width: 100%;
  text-align: center;
}

.oeuvre-card__artist .artist__first,
.oeuvre-card__artist .artist__last {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oeuvre-card__artist .artist__first .initial {
   font-size: calc(0.7em + 0.02em);	
	
}
.oeuvre-card__artist .initial {
  display: inline-block;
  font-size: calc(1em + 0.02em);
  letter-spacing: 0.01em;
}

/* --- Image hero (page single) --- */
.oeuvre-hero__img {
  width: 100%;
  display: block;
  border-radius: 0px;
}

/* --- Responsive grille --- */
@media (max-width: 1024px) {
  .oeuvres-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .oeuvres-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   7. TICKER PRIVÉ (défilement horizontal)
   ========================================================================== */

.mak-oeuvres-private {
  --gap: clamp(10px, 1.6vw, 18px);
  --cols: 3;
  --card-pad-y: 6px;
  --card-pad-x: 10px;
  --card-radius: 0px;
  --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  --bg: #fff;
  --text: #111;
  --muted: #666;
}

.private-ticker {
  width: 100%;
}

.private-ticker__viewport {
  overflow: hidden;
  position: relative;
}

.private-ticker__track {
  display: flex;
  align-items: stretch;
  gap: var(--gap);
  will-change: transform;
}

/* Cartes : largeur = (100% - gaps) / nb colonnes */
.private-card {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  display: block;
}

.private-card__artist {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 2px;
  background: var(--bg);
  color: var(--text);
  padding: var(--card-pad-y) var(--card-pad-x);
  min-height: 72px;
  text-align: center;
}

.private-card__artist .artist__first,
.private-card__artist .artist__last,
.private-card__date {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.private-card__artist .initial {
  display: inline-block;
}

.private-card__date {
  font-family: 'NunitoChiffrage', system-ui, sans-serif;
  text-transform: uppercase;
  font-size: 15.7px;
}


/* ==========================================================================
   8. PAGE ŒUVRE SINGLE (stage, lame, cartel)
   ========================================================================== */

/* --- Stage (fond flou) --- */
.oeuvre-stage {
  position: relative;
  isolation: isolate;
}

.oeuvre-stage__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(18px);
  transform: scale(1.06);
  opacity: 0.25;
  z-index: -1;
}

/* Masquer stage pour certains posts */
.post-156 .oeuvre-stage,
.post-173 .oeuvre-stage,
.post-2108 .oeuvre-stage,
.post-182 .oeuvre-stage {
  display: none;
}

/* --- Lame (grille cartel + image) --- */
.oeuvre-lame {
  display: grid;
  grid-template-columns: minmax(320px, 560px) 1fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: end;
  padding: clamp(16px, 3vw, 32px) var(--pad, clamp(12px, 3vw, 32px));
  max-width: var(--wrap, 1200px);
  margin: 0 auto;
}

.oeuvre-lame__left { }
.oeuvre-lame__right {
  min-height: 1px;
  img{
    max-height: 90vh;
    object-fit: contain;}
}

/* --- Media (image principale) --- */
.oeuvre-media {
  margin: 0 0 14px;
  border-radius: 14px;
  overflow: hidden;
}

.oeuvre-media__img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Cartel --- */
.cartel {
  display: grid;
  gap: 0.25rem;
  background: rgba(255, 255, 255);
  text-align: center;
  padding: 5em 4em 6em;
}

.cartel .line {
  display: block;
}

.cartel .artist {
  line-height: 0.75;
  margin-bottom: 0.25rem;
}

.cartel .artist .first,
.cartel .artist .last {
  display: block;
}

.cartel .artist .initial {
  font-weight: 600;
}

.cartel .title {
  font-weight: 600;
}

.cartel .date,
.cartel .medium,
.cartel .dims,
.cartel .details {
  opacity: 0.9;
}

.cartel .dims .nombre {
  font-variant-numeric: tabular-nums;
}

/* --- CTA œuvre --- */
.oeuvre-cta {
  text-align: center;
}

/* --- Responsive lame --- */
@media (max-width: 860px) {
  .oeuvre-lame {
    grid-template-columns: 1fr;
  }
  
  .oeuvre-lame__left {
    position: relative;
    top: 0;
    order: 2;
  }
  
  .oeuvre-lame__right {
    order: 1;
    padding-top: 141px;
  }
}

/* Masquer header sur template oeuvres */
.oeuvres-template-oeuvres-mode-page .oeuvre header {
  display: none !important;
}


/* ==========================================================================
   9. BLOC OEUVRE-BELOW (provenance, expositions, littérature)
   ========================================================================== */

.oeuvre-below {
  padding: clamp(10px, 2.5vw, 24px) var(--pad, clamp(12px, 3vw, 32px)) clamp(32px, 6vw, 56px);
  max-width: var(--wrap, 1200px);
  margin: 0 auto;
}

/* Bloc section */
.oeuvre-block {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.oeuvre-block h2 {
  text-align: center;
}

/* Liste reset */
.oeuvre-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Item */
.oeuvre-li {
  margin-bottom: 1em;
}

.oeuvre-li:last-child {
  margin-bottom: 0;
}

.oeuvre-li__text {
  font-family: 'NunitoLabeur', system-ui, sans-serif;
  font-size: 22.5px;
  line-height: 1.6;
  color: var(--ink);
  text-align: center;
}

.oeuvre-li__text em {
  font-style: italic;
}

/* Figures dans items */
.oeuvre-li__figs {
  margin-top: 1.5rem;
  text-align: center;
}

.oeuvre-figure {
  margin: 0 auto;
  display: inline-block;
}

.oeuvre-figure img {
  display: block;
  max-width: 200px;
  height: auto;
  margin: 0 auto;
}

/* CTA wrap */
.oeuvre-cta.wrap {
  text-align: center;
  margin-top: clamp(2rem, 5vw, 4rem);
}


/* ==========================================================================
   10. MODAL MAK (contact, général)
   ========================================================================== */

/* Masquer quand hidden */
.mak-modal[hidden] {
  display: none !important;
}

/* Overlay plein écran */
.mak-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  overflow-x: hidden;
}

/* Backdrop */
.mak-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: saturate(120%) blur(2px);
}

/* Dialog */
.mak-modal__dialog {
  position: relative;
  box-sizing: border-box;
  width: min(880px, 100%);
  max-height: min(92vh, 760px);
  background: var(--paper, #fff);
  color: var(--ink);
  border-radius: 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  padding: clamp(18px, 2.4vw, 26px);
  
  /* Grille interne */
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "header header"
    "media  body"
    "footer footer";
  column-gap: clamp(18px, 2vw, 28px);
  row-gap: clamp(10px, 1.4vw, 16px);
  
  overflow: hidden;
  overflow-x: hidden;
  transform: translateY(14px);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.mak-modal.is-open .mak-modal__dialog {
  opacity: 1;
  transform: translateY(0);
}

/* Bouton close */
.mak-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mak-modal__close:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Header */
.mak-modal__header {
  grid-area: header;
  margin: 0 40px 6px 0;
}

.mak-modal__title {
  margin: 0;
  font-family: 'NunitoTitrage', system-ui, sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 1.1rem + 0.7vw, 1.6rem);
  text-align: left;
}

.mak-modal__subtitle {
  margin: 0.25rem 0 0;
  opacity: 0.75;
  font-size: 0.95rem;
}

/* Media (image gauche) */
.mak-modal__media {
  grid-area: media;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 100%;
  overflow: hidden;
}

.mak-modal__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Body (formulaire) */
.mak-modal__body {
  grid-area: body;
  min-height: 0;
  overflow: auto;
  overflow-x: hidden;
  padding-right: 4px;
  display: block;
  margin-top: 0;
}

/* Footer */
.mak-modal__footer {
  grid-area: footer;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  opacity: 0.7;
  font-size: 0.85rem;
}

/* --- Modal responsive mobile (fullscreen) --- */
@media (max-width: 860px) {
  .mak-modal {
    padding: 0;
    align-items: stretch;
  }
  
  .mak-modal__dialog {
    width: 100%;
    max-height: none;
    height: 100vh;
    height: 100svh;
    border-radius: 0;
    box-shadow: none;
    padding: clamp(16px, 4vw, 22px);
    display: block;
    overflow: auto;
  }
  
  .mak-modal__header,
  .mak-modal__media,
  .mak-modal__body,
  .mak-modal__footer {
    margin-inline: 0;
  }
  
  .mak-modal__header {
    margin-right: 48px;
    margin-bottom: clamp(8px, 1.5vh, 14px);
  }
  
  .mak-modal__media {
    margin-top: clamp(6px, 1.5vh, 12px);
    max-height: 45vh;
    overflow: hidden;
  }
  
  .mak-modal__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .mak-modal__body {
    margin-top: clamp(10px, 2vh, 16px);
    padding-right: 0;
  }
  
  .mak-modal__footer {
    margin-top: clamp(10px, 2vh, 16px);
    padding-top: 10px;
  }
}


/* ==========================================================================
   11. FORMULAIRE CF7 (Contact Form 7)
   ========================================================================== */

/* --- Variables locales formulaire --- */
.mak-contact-form {
  --iconw: 1.9rem;
  --gap: clamp(12px, 2vw, 20px);
  --padx: 1rem;
  --pady: 0.85rem;
  --focus: 0 0 0 3px rgba(38, 70, 180, 0.15);
}

/* --- Grille générale --- */
.mak-contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  color: var(--ink);
}

.mak-contact-form .cf7-title,
.mak-contact-form .cf7-sub {
  grid-column: 1 / -1;
  margin: 0;
}

.mak-contact-form .cf7-sub {
  opacity: 0.75;
}

/* --- Cellule de champ --- */
.mak-contact-form .field {
  grid-column: auto;
}

.mak-contact-form .field fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

/* Le <p> interne = grille locale [icône][champ] */
.mak-contact-form .field > p {
  margin: 0;
  display: grid;
  grid-template-columns: var(--iconw) 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.65rem;
  row-gap: 0.4rem;
}

.mak-contact-form .field > p > br {
  display: none;
}

/* Icône */
.mak-contact-form .ico {
  grid-column: 1;
  grid-row: 1;
  width: var(--iconw);
  text-align: center;
  color: var(--blue);
  line-height: 1;
  font-family: "ForkAwesome", "FontAwesome", system-ui;
  font-style: normal;
  font-size: 1.05rem;
}

/* Wrap CF7 = contents */
.mak-contact-form .field > p > .wpcf7-form-control-wrap {
  display: contents;
}

/* Inputs / textarea */
.mak-contact-form input[type="text"],
.mak-contact-form input[type="email"],
.mak-contact-form input[type="tel"],
.mak-contact-form textarea {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--line);
  padding: var(--pady) var(--padx);
  border-radius: 0px;
  outline: 0;
  font-size: 1rem;
  line-height: 1.4;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.mak-contact-form input:focus,
.mak-contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: var(--focus);
  background: color-mix(in srgb, var(--blue) 3%, transparent);
}

/* Textarea */
.mak-contact-form .field--textarea .ico {
  align-self: start;
  margin-top: 0.4rem;
}

.mak-contact-form textarea {
  min-height: 11rem;
  resize: vertical;
}

/* Champ pleine largeur */
.mak-contact-form .field--full {
  grid-column: 1 / -1;
}

/* Erreurs CF7 */
.mak-contact-form .wpcf7-not-valid-tip {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  color: #b72222;
}

/* Hint global email/tel */
.mak-contact-form .cf7-hint {
  grid-column: 1 / -1;
  margin: -0.2rem 0 0;
  padding: 0.8rem 1rem;
  border: 1px solid #f1c0c0;
  background: #feecec;
  color: #b72222;
  border-radius: 0px;
  font-size: 0.95rem;
  display: none;
}

/* Masquer tips si global hint */
.mak-contact-form.has-global-hint [data-name="your-email"] .wpcf7-not-valid-tip,
.mak-contact-form.has-global-hint [data-name="your-phone"] .wpcf7-not-valid-tip {
  display: none !important;
}

/* Actions */
.mak-contact-form .field--actions {
  grid-column: 2;
  justify-self: end;
}

.mak-contact-form .button,
.mak-contact-form input[type="submit"] {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 0.75rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.mak-contact-form input[type="submit"]:hover {
  background: color-mix(in srgb, var(--blue) 88%, black 10%);
}

.mak-contact-form input[type="submit"]:active {
  transform: translateY(1px);
}

/* Alt contact */
.mak-contact-form .cf7-alt {
  grid-column: 1 / -1;
  opacity: 0.75;
}

.mak-contact-form .cf7-alt a {
  color: var(--blue);
  text-decoration: none;
}

/* --- Formulaire responsive --- */
@media (max-width: 720px) {
  .mak-contact-form {
    grid-template-columns: 1fr;
  }
  
  .mak-contact-form .field--actions {
    grid-column: 1;
    justify-self: stretch;
  }
  
  .mak-contact-form input[type="submit"] {
    width: 100%;
    text-align: center;
  }
  
  .mak-contact-form .cf7-hint {
    grid-column: 1;
  }
}

/* --- Formulaire dans modal --- */
.mak-modal .mak-contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 1.6vw, 18px);
  color: var(--ink);
  font-family: 'NunitoLabeur', system-ui, sans-serif;
}

.mak-modal .mak-contact-form .field--full {
  grid-column: 1 / -1;
}

.mak-modal .mak-contact-form .field > p {
  margin: 0;
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.6rem;
  row-gap: 0.35rem;
  align-items: center;
}

.mak-modal .mak-contact-form .field > p > br {
  display: none;
}

.mak-modal .mak-contact-form .ico {
  grid-column: 1;
  grid-row: 1;
  width: 2.1rem;
  text-align: center;
  color: var(--blue);
  font-family: "ForkAwesome", "FontAwesome", system-ui;
  font-size: 1.05rem;
  line-height: 1;
}

.mak-modal .mak-contact-form .field > p > .wpcf7-form-control-wrap {
  display: contents;
}

.mak-modal .mak-contact-form input[type="text"],
.mak-modal .mak-contact-form input[type="email"],
.mak-modal .mak-contact-form input[type="tel"],
.mak-modal .mak-contact-form textarea {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-bottom: 2px solid var(--line, #e2e2e6);
  padding: 0.75rem 0.25rem 0.55rem;
  background: transparent;
  outline: 0;
  font-size: 1rem;
  font-family: 'NunitoLabeur', system-ui, sans-serif;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.mak-modal .mak-contact-form input:focus,
.mak-modal .mak-contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(38, 70, 180, 0.15);
  background: color-mix(in srgb, var(--blue) 4%, transparent);
}

.mak-modal .mak-contact-form .field--textarea .ico {
  align-self: start;
  margin-top: 0.4rem;
}

.mak-modal .mak-contact-form textarea {
  min-height: 6rem;
  max-height: 18rem;
  resize: vertical;
}

.mak-modal .mak-contact-form .wpcf7-not-valid-tip {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
  color: #b72222;
}

.mak-modal .mak-contact-form .cf7-hint {
  grid-column: 1 / -1;
  margin: 0.1rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: 0;
  border: 1px solid #f1c0c0;
  background: #feecec;
  color: #b72222;
  font-size: 0.9rem;
}

.mak-modal .mak-contact-form.has-global-hint [data-name="your-email"] .wpcf7-not-valid-tip,
.mak-modal .mak-contact-form.has-global-hint [data-name="your-phone"] .wpcf7-not-valid-tip {
  display: none !important;
}

/* CTA submit dans modal */
.mak-modal .mak-contact-form .field--actions {
  grid-column: 2;
  justify-self: end;
  margin-top: 0.5rem;
}

.mak-modal .mak-contact-form .field--actions > p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mak-modal .mak-contact-form input[type="submit"] {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.9rem;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-family: 'NunitoBold', system-ui, sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.16s ease, transform 0.06s ease, box-shadow 0.16s ease;
}

.mak-modal .mak-contact-form input[type="submit"]:hover {
  background: color-mix(in srgb, var(--blue) 88%, #000 12%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.mak-modal .mak-contact-form input[type="submit"]:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.mak-modal .wpcf7-spinner {
  margin-left: 0.5rem;
}

/* Modal form responsive */
@media (max-width: 860px) {
  .mak-modal .mak-contact-form {
    grid-template-columns: 1fr;
  }
  
  .mak-modal .mak-contact-form textarea {
    min-height: 5rem;
    max-height: 14rem;
  }
  
  .mak-modal .mak-contact-form .field--actions {
    grid-column: 1;
    justify-self: stretch;
  }
  
  .mak-modal .mak-contact-form input[type="submit"] {
    width: 100%;
    text-align: center;
  }
}


/* ==========================================================================
   12. SÉLECTEUR DE LANGUE
   ========================================================================== */

.mak-lang-switcher {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 10060;
  font: 600 13px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  pointer-events: none;
}

.mak-lang {
  position: relative;
  display: inline-block;
  pointer-events: auto;
  --radius: 0px;
  --bg: color-mix(in srgb, var(--paper) 88%, transparent);
  --bd: color-mix(in srgb, var(--ink) 10%, transparent);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.08);
  -webkit-backdrop-filter: saturate(1.08) blur(10px);
  backdrop-filter: saturate(1.08) blur(10px);
}

.mak-lang__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--bd);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.mak-lang__button:hover {
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}

.mak-lang__icon {
  width: 16px;
  height: 16px;
  display: block;
}

.mak-lang__chev {
  font-size: 12px;
  transform: translateY(1px);
  transition: transform 0.16s ease;
}

/* Liste déroulante */
.mak-lang__list {
  position: absolute;
  right: 14px;
  top: calc(100% + 8px);
  min-width: 0px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 2px;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  will-change: transform, opacity;
}

.mak-lang[data-open="true"] .mak-lang__list,
.mak-lang:hover .mak-lang__list,
.mak-lang:focus-within .mak-lang__list {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mak-lang[data-open="true"] .mak-lang__chev {
  transform: rotate(180deg);
}

.mak-lang__list a[aria-selected="true"] {
  display: none;
}

.mak-lang__list a {
  display: block;
  padding: 10px 12px;
  border-radius: 0px;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  outline: none;
  transition: background 0.12s ease, transform 0.06s ease;
}

.mak-lang__list a:hover,
.mak-lang__list a:focus {
  background: color-mix(in srgb, var(--blue) 12%, transparent);
}

/* Bridge anti-flicker */
.mak-lang::before {
  content: "";
  position: absolute;
  right: 0;
  top: 100%;
  width: 160px;
  height: 10px;
  transform: translateY(0);
}

/* Lang switcher responsive (mobile : bottom-left) */
@media (pointer: coarse), (max-width: 768px) {
  .mak-lang-switcher {
    top: auto;
    right: auto;
    bottom: 14px;
    left: 14px;
  }
  
  .mak-lang__list {
    right: auto;
    left: 0;
    top: auto;
    bottom: calc(100% + 8px);
    transform: translateY(6px) scale(0.98);
  }
  
  .mak-lang[data-open="true"] .mak-lang__list,
  .mak-lang:hover .mak-lang__list,
  .mak-lang:focus-within .mak-lang__list {
    transform: translateY(0) scale(1);
  }
  
  .mak-lang::before {
    right: auto;
    left: 0;
    top: auto;
    bottom: 100%;
    height: 10px;
    width: 160px;
  }
}


/* ==========================================================================
   13. BOUTONS CTA
   ========================================================================== */

.btn--contact {
  --bg: var(--blue);
  --fg: #fff;
  --stroke: #fff;
  --stroke-w: 3px;
  --gap: 10px;
  
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
  padding: 1.3em 2.2em;
  background: var(--bg);
  color: var(--fg);
  border: none;
  outline-offset: 4px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-family: 'NunitoTitrage', system-ui, sans-serif;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.04em;
  line-height: 1.35;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

/* Bordure intérieure */
.btn--contact::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% - var(--gap));
  height: calc(100% - var(--gap));
  transform: translate(-50%, -50%);
  border: var(--stroke-w) solid var(--stroke);
  pointer-events: none;
  transition: width 0.25s ease, height 0.25s ease, border-color 0.2s ease, border-width 0.2s ease;
}

/* Hover */
.btn--contact:hover,
.btn--contact:focus-visible {
  --bg: var(--paper);
  --fg: var(--blue);
  --stroke: var(--blue);
  --gap: 0px;
  --stroke-w: 4px;
  transform: scale(1.04);
}

.btn--contact:active {
  transform: translateY(2px);
}

/* Centrage CTA */
.entry-content > p:has(.btn--contact) {
  text-align: center;
  margin: clamp(2rem, 5vw, 3rem) auto;
}


/* ==========================================================================
   14. PAGE DAMOCLÈS (duel, citations)
   ========================================================================== */

/* Reset page no-title */
.page-no-title {
  padding-top: 0;
}

/* --- Duel Title (hero cartouche) --- */
.duel-title {
  background: var(--paper);
  border: 3px solid var(--blue);
  max-width: 700px;
  margin: clamp(140px, 18vw, 200px) auto clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.4;
  font-family: 'NunitoTitrage', system-ui, sans-serif;
  text-transform: uppercase;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  letter-spacing: 0.04em;
  color: var(--ink);
}

.duel-title > br {
  display: none;
}

/* "et" entre artistes */
.duel-and {
  display: block;
  font-family: 'NunitoLabeur', system-ui, sans-serif;
  font-size: 1rem;
  font-style: italic;
  text-transform: lowercase;
  letter-spacing: 0;
  color: var(--ink);
  margin: 1em 0;
}

/* Bloc artiste */
.duel-pair {
  display: block;
  margin: 1.5em 0;
}

.duel-pair .name {
  display: block;
  font-family: 'NunitoTitrage', system-ui, sans-serif;
  font-weight: normal;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.04em;
  color: var(--blue);
  margin-bottom: 0.2em;
}

.duel-pair .meta {
  display: block;
}

.duel-pair .meta > br {
  display: none;
}

.duel-pair .years {
  display: block;
  font-family: 'NunitoChiffrage', system-ui, sans-serif;
  font-size: 15.7px;
  text-transform: none;
  letter-spacing: 0;
  color: #667389;
  margin-bottom: 0.5em;
}

.duel-pair .note {
  display: block;
  font-family: 'NunitoLabeur', system-ui, sans-serif;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  line-height: 1.4;
  max-width: 400px;
  margin: 0 auto;
}

/* --- Citation (quote block) --- */
h2.wp-block-heading:has(.quote) {
  all: unset;
  display: block;
  margin: clamp(2rem, 5vw, 4rem) auto;
  max-width: 750px;
  text-align: center;
}

.quote {
  margin: 0;
  padding: 0 1rem;
}

.quote-author {
  display: block;
  font-family: 'NunitoTitrage', system-ui, sans-serif;
  text-transform: uppercase;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  letter-spacing: 0.05em;
  color: var(--blue);
  margin-bottom: 0.6em;
}

.quote-text {
  margin: 0;
  padding: 0;
}

.quote-text p {
  font-family: 'NunitoTitrage', system-ui, sans-serif;
  text-transform: uppercase;
  font-size: clamp(0.85rem, 2vw, 1rem);
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--ink);
  text-align: center;
  margin: 0;
}

/* --- H2 sections (titres bleus) --- */
h2.wp-block-heading {
  font-family: 'NunitoTitrage', system-ui, sans-serif;
  font-weight: normal;
  text-transform: uppercase;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  letter-spacing: 0.05em;
  color: var(--blue);
  text-align: center;
  margin: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.2rem, 3vw, 2rem);
  line-height: 1.4;
}

/* --- Images & figures --- */
.wp-block-image {
  margin: 1.5rem 0;
}

.wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
}

figcaption.wp-element-caption {
  font-family: 'NunitoLabeur', system-ui, sans-serif;
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
  font-style: italic;
  color: var(--ink);
  opacity: 0.7;
  text-align: center;
  margin-top: 0.6em;
  line-height: 1.35;
}

figcaption.wp-element-caption em {
  font-style: normal;
}

/* --- Colonnes WP --- */
.wp-block-columns {
  gap: clamp(0.8rem, 2vw, 1.5rem);
  margin: clamp(1.5rem, 4vw, 2.5rem) 0;
  align-items: center;
}

.wp-block-column {
  margin: 0;
}

.wp-block-column figure.wp-block-image {
  margin: 0;
}

.wp-block-column.is-vertically-aligned-stretch {
  align-self: center;
}

/* Catalogues (1/3 + 2/3) */
.wp-block-columns:has([style*="33.33%"]) {
  align-items: flex-end;
}

.wp-block-columns:has([style*="33.33%"]) figcaption {
  font-size: clamp(0.75rem, 1.6vw, 0.85rem);
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Paragraphes entry-content --- */
.entry-content > p {
  font-family: 'NunitoLabeur', system-ui, sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.55;
  color: var(--ink);
  text-align: justify;
  text-wrap: pretty;
  hyphens: auto;
  max-width: 680px;
  margin: 1.2em auto;
  padding: 0 1rem;
}

.entry-content > p em {
  font-style: italic;
}

/* Logo inline */
.logo-inline {
  display: inline-block;
  height: 1.1em;
  width: auto;
  vertical-align: middle;
  margin: 0 0.15em;
  position: relative;
  top: -0.05em;
}

/* --- Damoclès responsive --- */
@media (max-width: 860px) {
  .duel-title {
    padding: 2rem 1.2rem;
  }
  
  .duel-pair .name {
    font-size: 1.4rem;
  }
  
  .duel-pair .note {
    max-width: 100%;
    padding: 0 0.5rem;
  }
  
  .entry-content > p {
    padding: 0 1.2rem;
  }
}

@media (max-width: 600px) {
  .duel-title {
    margin-top: clamp(100px, 14vw, 140px);
    padding: 1.5rem 1rem;
  }
  
  .duel-pair .name {
    font-size: 1.4rem;
  }
  
  .duel-pair .note {
    max-width: 100%;
  }
  
  .wp-block-columns {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .wp-block-column[style*="33.33%"],
  .wp-block-column[style*="66.66%"] {
    flex-basis: 100% !important;
  }
  
  .btn--contact {
    padding: 1.1em 1.8em;
    font-size: 14px;
  }
  
  h2.wp-block-heading {
    padding: 0 1rem;
  }
}


/* ==========================================================================
   15. PAGE HUMBLOT
   ========================================================================== */

.page-humblot {
  --blue: #2646b4;
  --ink: #172033;
  --paper: #fff;
  padding-top: clamp(120px, 16vw, 180px);
}

/* Cartouche Humblot */
.page-humblot .cartouche {
  background: var(--paper);
  border: 3px solid var(--blue);
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.page-humblot .marquee {
  font-family: 'NunitoTitrage', system-ui, sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--blue);
  margin: 0 0 0.4em;
  line-height: 1.1;
}

.page-humblot .small.muted {
  font-family: 'NunitoChiffrage', system-ui, sans-serif;
  font-size: 15.7px;
  color: #667389;
  margin: 0 0 1.5em;
}

.page-humblot .lead {
  font-family: 'NunitoTitrage', system-ui, sans-serif;
  text-transform: uppercase;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  text-align: center;
}

/* Wrap */
.humblot-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.humblot-wrap > p {
  font-family: 'NunitoLabeur', system-ui, sans-serif;
  font-size: 22.5px;
  line-height: 1.6;
  text-align: justify;
  margin: 0 0 1.5rem;
}

/* Figures */
.humblot-fig {
  margin: 0 0 2rem;
}

.humblot-fig img {
  display: block;
  width: 100%;
  height: auto;
}

.humblot-fig figcaption {
  font-family: 'NunitoLabeur', system-ui, sans-serif;
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.75;
  text-align: center;
  margin-top: 0.6rem;
}

/* Row (grille image + texte) */
.humblot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.humblot-row--reverse {
  direction: rtl;
}

.humblot-row--reverse > * {
  direction: ltr;
}

/* Quote */
.humblot-quote {
  display: flex;
  align-items: center;
  margin: 0;
  font-family: 'NunitoTitrage', system-ui, sans-serif;
  text-transform: uppercase;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: var(--ink);
  text-align: center;
}

/* Œuvres Humblot */
.humblot-oeuvres {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.humblot-oeuvre {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

.humblot-oeuvre--reverse {
  grid-template-columns: 1fr 320px;
}

.humblot-oeuvres .humblot-fig {
  margin: 0;
}

.humblot-oeuvres .humblot-fig img {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Cartel Humblot */
.humblot-cartel {
  background: var(--paper);
  border: 3px solid var(--blue);
  padding: 2rem 1.5rem;
  text-align: center;
}

.humblot-cartel .artist__first,
.humblot-cartel .artist__last {
  font-size: 22.5px;
  line-height: 1.1;
  margin: 0;
}

.humblot-cartel p {
  margin: 0.15em 0;
  text-align: center;
}

.cartel-title {
  font-family: 'NunitoLabeur', system-ui, sans-serif;
  font-style: italic;
  font-size: 22.5px;
  margin-top: 0.5em;
}

.cartel-date,
.cartel-medium,
.cartel-dims {
  font-family: 'NunitoLabeur', system-ui, sans-serif;
  font-size: 22.5px;
  opacity: 0.85;
}

/* Humblot responsive */
@media (max-width: 800px) {
  .humblot-oeuvre,
  .humblot-oeuvre--reverse {
    grid-template-columns: 1fr;
  }
  
  .humblot-oeuvre--reverse .humblot-fig {
    order: -1;
  }
}

@media (max-width: 700px) {
  .humblot-row,
  .humblot-row--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  
  .humblot-row .humblot-fig {
    order: -1;
  }
}


/* ==========================================================================
   16. FOOTER
   ========================================================================== */

.mak-footer {
  background: var(--paper);
  border-top: 3px solid var(--blue);
  margin-top: clamp(4rem, 10vw, 8rem);
  padding: clamp(2rem, 5vw, 4rem) 0 0;
}

.mak-footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  align-items: center;
}

/* Colonne Image */
.mak-footer__col--img {
  margin: 0;
}

.mak-footer__col--img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* Colonne Adresse */
.mak-footer__col--addr {
  font-style: normal;
  text-align: center;
}

.mak-footer__col--addr p {
  margin: 0.4rem 0;
  font-family: 'NunitoLabeur', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: var(--ink);
  line-height: 1.5;
}

.mak-footer__col--addr a {
  color: var(--ink);
  transition: color 0.2s ease;
}

.mak-footer__col--addr a:hover {
  color: var(--blue);
}

.mak-footer__phone .nombre,
.mak-footer__contact .nombre {
  font-family: 'NunitoChiffrage', sans-serif;
  font-size: 15.7px;
}

.mak-footer__street .nombre {
  font-family: 'NunitoChiffrage', sans-serif;
}

.mak-footer__contact {
  margin-top: 1rem !important;
  font-family: 'NunitoTitrage', sans-serif;
  text-transform: uppercase;
  font-size: clamp(0.75rem, 1.8vw, 0.85rem) !important;
  letter-spacing: 0.04em;
}

/* Colonne Map */
.mak-footer__col--map {
  width: 100%;
  height: clamp(180px, 20vw, 250px);
  background: #f5f5f5;
}

/* Bottom bar */
.mak-footer__bottom {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1rem 0;
  border-top: 1px solid rgba(23, 32, 51, 0.1);
  text-align: center;
}

.mak-footer__bottom p {
  margin: 0;
  font-family: 'NunitoLabeur', sans-serif;
  font-size: 0.8rem;
  color: var(--ink);
  opacity: 0.6;
}

/* Footer responsive */
@media (max-width: 900px) {
  .mak-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  
  .mak-footer__col--img {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .mak-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .mak-footer__col--img {
    max-width: 300px;
  }
  
  .mak-footer__col--map {
    height: 200px;
  }
}


/* ==========================================================================
   17. UTILITAIRES & MASQUAGES
   ========================================================================== */

/* Masquer crédit WordPress */
.site-info,
.powered-by,
.footer-credits,
.site-credits,
#colophon .site-info,
.wp-block-site-generator,
#footer[role="contentinfo"] {
  display: none !important;
}


/* ==========================================================================
   18. RESPONSIVE (breakpoints globaux regroupés)
   ========================================================================== */

/* Note : Les media queries spécifiques sont incluses dans chaque section.
   Cette section peut contenir des overrides globaux si nécessaire. */


/* ==========================================================================
   19. ACCESSIBILITÉ (reduced motion)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  /* Désactiver animations ticker */
  .private-ticker__track {
    transform: none !important;
  }
  
  /* Désactiver transitions lang switcher */
  .mak-lang__list,
  .mak-lang__chev,
  .mak-lang__button {
    transition: none;
  }
  
  /* Désactiver transitions modal */
  .mak-modal__dialog,
  .mak-modal .mak-contact-form input[type="submit"] {
    transition: none;
  }
  
  /* Désactiver transitions boutons */
  .btn--contact,
  .btn--contact::after {
    transition: none;
  }
}

/* ==========================================================================
   NOTES DE BAS DE PAGE (Footnotes) — Version multilingue
   ========================================================================== */

/* --- Reset typographique complet pour les notes --- */
.footnotes,
.footnotes *,
.footnotes *::before,
.footnotes *::after {
  font-family: 'NunitoLabeur', system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: normal !important;
}

/* --- Appels de notes (dans le texte) — Version discrète --- */
.footnote-ref {
  font-family: 'NunitoChiffrage', system-ui, sans-serif !important;
  font-size: 0.7em;
  vertical-align: baseline;
  position: relative;
  top: -0.4em;
  line-height: 0;
  margin-left: 0.05em;
}

.footnote-ref a {
  color: var(--blue);
  text-decoration: none;
  font-family: 'NunitoChiffrage', system-ui, sans-serif !important;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.footnote-ref a:hover,
.footnote-ref a:focus {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Bloc des notes --- */
.footnotes {
  margin-top: 3rem;
  padding-top: 0;
  border-top: 2px solid var(--blue);
  position: relative;
}

/* --- Titre traduisible --- */
.footnotes__title {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0 1em;
  background: var(--paper, #fff);
  font-family: 'NunitoTitrage', system-ui, sans-serif !important;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--blue);
  white-space: nowrap;
}

/* --- Liste des notes --- */
.footnotes ol {
  list-style: none;
  margin: 0;
  padding: 2rem 0 0 0;
  counter-reset: footnote;
  font-family: 'NunitoLabeur', system-ui, sans-serif !important;
}

.footnotes ol li {
  position: relative;
  padding-left: 2.5em;
  margin-bottom: 1.2em;
  font-family: 'NunitoLabeur', system-ui, sans-serif !important;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  counter-increment: footnote;
  text-align: left;
}

.footnotes ol li:last-child {
  margin-bottom: 0;
}

/* Numéro de la note (pastille) */
.footnotes ol li::before {
  content: counter(footnote);
  position: absolute;
  left: 0;
  top: 0.15em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  height: 1.6em;
  background: var(--blue);
  color: var(--paper);
  font-family: 'NunitoChiffrage', system-ui, sans-serif !important;
  font-size: 0.8em;
  border-radius: 50%;
}

/* --- Tous les éléments texte dans les notes --- */
.footnotes ol li,
.footnotes ol li *,
.footnotes ol li a,
.footnotes ol li em,
.footnotes ol li i,
.footnotes ol li strong,
.footnotes ol li b,
.footnotes ol li span,
.footnotes ol li cite,
.footnotes ol li q {
  font-family: 'NunitoLabeur', system-ui, sans-serif !important;
}

/* Italiques */
.footnotes ol li em,
.footnotes ol li i,
.footnotes ol li cite {
  font-style: italic;
}

/* Gras */
.footnotes ol li strong,
.footnotes ol li b {
  font-family: 'NunitoBold', system-ui, sans-serif !important;
}

/* Chiffres dans les notes */
.footnotes ol li .chiffre,
.footnotes ol li .nombre {
  font-family: 'NunitoChiffrage', system-ui, sans-serif !important;
  font-size: 0.9em;
}

/* --- Lien de retour ↩ --- */
.footnotes ol li a[aria-label],
.footnotes ol li a[href^="#fnref"],
.footnotes ol li > a:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.6em;
  width: 1.5em;
  height: 1.5em;
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  color: var(--blue);
  border-radius: 50%;
  text-decoration: none;
  font-size: 0.85em;
  font-family: system-ui, sans-serif !important;
  vertical-align: middle;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footnotes ol li a[aria-label]:hover,
.footnotes ol li a[href^="#fnref"]:hover,
.footnotes ol li > a:last-child:hover {
  background: var(--blue);
  color: var(--paper);
  transform: translateX(-3px);
}

/* --- Cible active (highlight au clic) --- */
.footnotes ol li:target {
  animation: footnote-highlight 2s ease-out;
}

@keyframes footnote-highlight {
  0% {
    background: color-mix(in srgb, var(--blue) 20%, transparent);
    border-radius: 4px;
    margin-left: -0.5em;
    padding-left: 3em;
  }
  100% {
    background: transparent;
    margin-left: 0;
    padding-left: 2.5em;
  }
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .footnotes ol li {
    padding-left: 2.2em;
    font-size: 16px;
  }
  
  .footnotes ol li::before {
    width: 1.5em;
    height: 1.5em;
    font-size: 0.75em;
  }
  
  .footnotes__title {
    font-size: 11px;
  }
}

/* --- Accessibilité --- */
@media (prefers-reduced-motion: reduce) {
  .footnotes ol li:target {
    animation: none;
    background: color-mix(in srgb, var(--blue) 15%, transparent);
    border-radius: 4px;
  }
}

.entry-content > p em {
    font-style: italic;
    font-synthesis: initial;
}


/* ==========================================================================
   FIN DU FICHIER
   ========================================================================== */