/* =================================================================
   MÉDIATHÈQUES — Grégory Dayon
   Page conçue dans la continuité graphique de « Territoires Narratifs »
   -----------------------------------------------------------------
   Reprise du langage : palette (pétrole / or / crème / nuit),
   typographies (Cormorant Garamond + Archivo Narrow), cartouches,
   titres serrés, boutons, scènes sombres immersives, apparitions
   douces au défilement.
   Toutes les classes sont préfixées « med- » : aucune collision
   possible avec le thème WordPress ni avec Elementor.
   ================================================================= */

/* ---------- Variables (identiques à Territoires Narratifs) ---------- */
.med-page, .med-nav, .med-footer, .med-progress, .med-grain {
  --ink:      #2c3032;
  --teal:     #176a90;
  --teal-dk:  #115472;
  --gold:     #ad8f56;
  --gold-dk:  #957734;
  --grey:     #575b5c;
  --cream:    #f6f2ed;
  --cream-dk: #ece4d6;
  --line:     #e7e0d4;
  --night:    #11171b;
  --night-2:  #161e23;
  --deep:     #0c1115;
  --on-dark:  #e9e4da;
  --on-dark-soft: #b9b3a6;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Archivo Narrow", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1240px;
  --maxw-narrow: 760px;
  --maxw-form: 860px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --pad-y: clamp(5rem, 12vw, 10.5rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base (aperçu local ; inoffensif une fois dans WordPress) ---------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Archivo Narrow", "Helvetica Neue", Arial, sans-serif;
  color: #2c3032;
  background: #f6f2ed;
  font-size: clamp(1rem, 0.55vw + 0.92rem, 1.14rem);
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.med-page *, .med-page *::before, .med-page *::after,
.med-nav *, .med-footer * { box-sizing: border-box; }
.med-page img { max-width: 100%; height: auto; display: block; }
.med-page a { color: var(--teal); text-decoration: none; transition: color .3s var(--ease); }
.med-page ul, .med-page ol { margin: 0; padding: 0; list-style: none; }
.med-page h1, .med-page h2, .med-page h3, .med-page h4 { margin: 0; font-weight: 500; line-height: 1.08; }
.med-page ::selection { background: var(--gold); color: #fff; }

/* ---------- Conteneurs / scènes ---------- */
.med-wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.med-wrap--narrow { max-width: var(--maxw-narrow); }
.med-wrap--form { max-width: var(--maxw-form); }

.med-scene { position: relative; padding-block: var(--pad-y); overflow: clip; scroll-margin-top: 72px; }
.med-intro { background: var(--cream); }
.med-experiences { background: #ffffff; }
.med-scene--dark { background: var(--night); color: var(--on-dark); }
.med-scene--offwhite { background: #fbfaf7; }
.med-expo { background: #ffffff; }
.med-infos { background: var(--cream); }

/* ---------- Typographie partagée ---------- */
.med-display {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--teal);
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  line-height: .94;
  letter-spacing: .005em;
  margin-bottom: clamp(.9rem, 1.8vw, 1.5rem);
  max-width: 22ch;
}
.med-scene--dark .med-display { color: #cfe6f1; }

.med-cartouche {
  display: inline-block;
  margin: 0 0 -.15rem -1.05em;
  padding: .42em 1.05em .38em;
  background: var(--teal);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-radius: 2px;
}
.med-cartouche--gold { background: var(--gold); }

.med-lead {
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  color: var(--grey);
  max-width: 62ch;
  margin: 1.3rem 0 0;
}
.med-scene--dark .med-lead { color: var(--on-dark-soft); }
.med-scene-head { max-width: 72ch; margin-bottom: clamp(2.4rem, 6vw, 4.6rem); }

.med-prose p { margin: 0 0 1.2rem; }
.med-prose p:last-child { margin-bottom: 0; }
.med-prose { max-width: 60ch; }
.med-prose--light { color: var(--on-dark); }

.med-eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-size: clamp(.72rem, 1.4vw, .85rem);
  color: #d9c39a;
  margin: 0 0 1.2rem;
}

/* Citation mise en valeur */
.med-quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.3;
  color: var(--ink);
  text-align: center;
  max-width: 30ch;
  margin: clamp(3rem, 7vw, 5.5rem) auto 0;
}
.med-quote em { color: var(--teal); font-style: italic; }
.med-quote--light { color: #fff; }
.med-quote--light em { color: var(--gold); }

.med-subhead {
  font-family: var(--sans); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; font-size: .95rem; color: var(--gold-dk);
  margin: 2rem 0 .8rem;
}
.med-subhead:first-child { margin-top: 0; }
.med-subhead--light { color: var(--gold); }

/* ---------- Boutons (repris de Territoires Narratifs) ---------- */
.med-btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .84rem;
  padding: 1.05em 2.2em;
  border-radius: 2px;
  border: 0;
  cursor: pointer;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.med-btn-primary { background: var(--gold); color: #fff !important; border: 1px solid var(--gold); }
.med-btn-primary:hover { background: var(--gold-dk); border-color: var(--gold-dk); transform: translateY(-3px); box-shadow: 0 16px 34px -16px rgba(173,143,86,.7); }
.med-btn-ghost { background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,.45); }
.med-btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; transform: translateY(-3px); }

/* =================================================================
   Barre de progression + grain (continuité TN)
   ================================================================= */
.med-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; }
.med-progress-bar { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold), var(--teal)); transition: width .1s linear; }
.med-grain {
  position: fixed; inset: 0; z-index: 190; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =================================================================
   NAVIGATION (aperçu local uniquement)
   ================================================================= */
.med-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .75rem var(--gutter);
  transition: background .45s var(--ease), box-shadow .45s var(--ease), padding .45s var(--ease);
}
.med-nav.scrolled { background: rgba(17,23,27,.78); backdrop-filter: blur(12px); padding-block: .5rem; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.med-nav-brand img { height: 50px; width: auto; transition: height .45s var(--ease); filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
.med-nav.scrolled .med-nav-brand img { height: 40px; }
.med-nav-menu { display: flex; align-items: center; gap: clamp(.9rem, 1.9vw, 2rem); margin: 0; padding: 0; list-style: none; }
.med-nav-menu a { font-family: var(--sans); font-weight: 500; font-size: .92rem; letter-spacing: .04em; color: #fff; position: relative; text-decoration: none; }
.med-nav-menu a::after { content:""; position:absolute; left:0; bottom:-4px; width:0; height:1.5px; background: var(--gold); transition: width .3s var(--ease); }
.med-nav-menu a:hover::after { width: 100%; }
.med-nav-cta { padding: .42em 1.1em; background: var(--gold); border-radius: 2px; }
.med-nav-cta::after { display: none; }
.med-nav-cta:hover { background: var(--gold-dk); }
.med-nav-burger { display: none; flex-direction: column; gap: 6px; width: 42px; height: 38px; padding: 9px 6px; background: none; border: 0; cursor: pointer; }
.med-nav-burger span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: transform .35s var(--ease), opacity .35s var(--ease); }
.med-nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.med-nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-8px) rotate(-45deg); }

/* =================================================================
   1. PREMIER ÉCRAN
   ================================================================= */
.med-hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 8rem var(--gutter) clamp(7rem, 14vh, 11rem);
  background: var(--deep);
  overflow: hidden;
  isolation: isolate;
}
.med-hero-bg { position: absolute; inset: -8% 0; z-index: -2; will-change: transform; }
.med-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
/* Fondu lent entre la photo de spectacle et les dessins (slider discret) */
.med-hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 2.4s var(--ease); }
.med-hero-slide.is-active { opacity: 1; }
.med-hero-slide:nth-child(n+2) img { object-position: center 30%; }
.med-hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,11,14,.32) 0%, rgba(8,11,14,.08) 34%, rgba(8,11,14,.42) 62%, rgba(8,11,14,.9) 100%),
    linear-gradient(90deg, rgba(8,11,14,.6) 0%, rgba(8,11,14,0) 58%);
}
.med-hero-content { position: relative; max-width: 980px; }
.med-hero-title {
  font-family: var(--serif); font-weight: 500; color: #fff;
  font-size: clamp(2.5rem, 7.2vw, 6rem);
  line-height: .95; letter-spacing: .01em; margin: 0;
  text-shadow: 0 8px 40px rgba(0,0,0,.45);
}
.med-hero-title .line { display: block; overflow: hidden; }
.med-hero-title .line > span { display: block; transform: translateY(110%); animation: medHeroIn 1.2s var(--ease) forwards; }
.med-hero-title .line:nth-child(2) > span { animation-delay: .14s; }
@keyframes medHeroIn { to { transform: translateY(0); } }
.med-hero-tagline { color: #e7e2d8; font-size: clamp(1.08rem, 1.9vw, 1.4rem); max-width: 52ch; margin: 1.6rem 0 0; }
.med-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

.med-scroll-cue {
  position: absolute; left: 50%; bottom: 1.8rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  color: #e7e2d8; font-family: var(--sans); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
}
.med-scroll-cue-line { width: 1px; height: 54px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.med-scroll-cue-line::after { content:""; position:absolute; top:-50%; left:0; width:100%; height:50%; background: var(--gold); animation: medCue 2s var(--ease) infinite; }
@keyframes medCue { 0%{transform:translateY(-100%)} 60%{transform:translateY(300%)} 100%{transform:translateY(300%)} }
/* écrans peu hauts : le repère chevaucherait les boutons */
@media (max-height: 740px) { .med-scroll-cue { display: none; } }

/* =================================================================
   3. LES TROIS EXPÉRIENCES — cartes
   ================================================================= */
.med-offers {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.4vw, 2rem);
}
.med-offer {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.med-offer:hover { transform: translateY(-7px); box-shadow: 0 32px 58px -34px rgba(44,48,50,.42); }
.med-offer-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--night); }
.med-offer-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.med-offer:hover .med-offer-media img { transform: scale(1.05); }
.med-offer-body { display: flex; flex-direction: column; flex: 1; padding: clamp(1.3rem, 2vw, 1.8rem); }
.med-offer-tag {
  font-family: var(--sans); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  font-size: .68rem; color: var(--gold-dk); margin: 0 0 .5rem;
}
.med-offer h3 { font-family: var(--serif); color: var(--teal); font-size: clamp(1.7rem, 2.6vw, 2.1rem); line-height: 1; margin-bottom: .35rem; }
.med-offer-sub { font-family: var(--serif); font-style: italic; color: var(--gold-dk); font-size: 1.18rem; line-height: 1.3; margin: 0 0 .8rem; }
.med-offer-text { margin: 0 0 1.4rem; color: var(--grey); font-size: .98rem; line-height: 1.55; }
.med-offer-link {
  margin-top: auto; align-self: flex-start;
  font-family: var(--sans); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  font-size: .82rem; color: var(--teal);
  border-bottom: 1px solid rgba(23,106,144,.4); padding-bottom: 3px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.med-offer-link::after { content: " ↓"; }
.med-offer-link:hover { color: var(--gold-dk); border-color: var(--gold-dk); }

/* =================================================================
   Sections détaillées — mise en page « duo » image / texte
   ================================================================= */
.med-duo {
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: start;
  gap: clamp(1.8rem, 5vw, 5rem);
}
.med-duo--text-first { grid-template-columns: 1fr 1.05fr; }
.med-duo-media { margin: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 34px 70px -40px rgba(0,0,0,.65); }
.med-duo-media > div { will-change: transform; }
.med-duo-media img { width: 100%; }

/* Listes repères : tirets or, reprise du motif TN */
.med-marks { margin-top: 1.6rem; display: grid; gap: .3rem; }
.med-marks li { position: relative; padding-left: 1.2em; color: var(--on-dark); }
.med-marks li::before { content:"—"; position:absolute; left:0; color: var(--gold); }
.med-marks--dark li { color: var(--ink); }

/* Bloc « Pour prolonger » : carte or, reprise du bloc Publics de TN */
.med-extend {
  margin-top: clamp(2.6rem, 6vw, 4.2rem);
  background: var(--gold); color: #fff; border-radius: 4px;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  max-width: 640px;
  box-shadow: 0 24px 50px -30px rgba(173,143,86,.6);
}
.med-extend h3 {
  font-family: var(--sans); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: 1rem; margin-bottom: 1rem;
}
.med-extend ul li { position: relative; padding: .42rem 0 .42rem 1.2em; border-bottom: 1px solid rgba(255,255,255,.25); }
.med-extend ul li:last-child { border-bottom: 0; }
.med-extend ul li::before { content:"•"; position:absolute; left:0; }
.med-extend--light { box-shadow: 0 24px 50px -34px rgba(173,143,86,.75); }

/* Galerie photos (Chat Racine) */
.med-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: clamp(2.4rem, 5vw, 3.6rem); }
.med-gallery figure { margin: 0; border-radius: 4px; overflow: hidden; background: #0e1316; }
.med-gallery img { width: 100%; height: 100%; max-height: 380px; object-fit: cover; transition: transform .6s var(--ease); }
.med-gallery figure:hover img { transform: scale(1.04); }

.med-more { text-align: center; margin: clamp(2.4rem, 5vw, 3.6rem) 0 0; }

/* =================================================================
   5. EXPOSITION — mur d'œuvres
   ================================================================= */
.med-artworks {
  columns: 3; column-gap: 1rem;
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
}
.med-artworks figure {
  margin: 0 0 1rem; border-radius: 4px; overflow: hidden;
  break-inside: avoid; background: var(--cream);
  box-shadow: 0 20px 44px -30px rgba(44,48,50,.5);
}
.med-artworks img { width: 100%; transition: transform .6s var(--ease); }
.med-artworks figure:hover img { transform: scale(1.03); }

/* Vulpēcula (format très vertical) : largeur contenue face au texte */
.med-expo .med-duo-media { max-width: 430px; justify-self: center; align-self: center; }

/* Emplacement « IMAGE À FOURNIR » */
.med-placeholder {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: .6rem; min-height: 220px; padding: 1.6rem;
  border: 1.5px dashed var(--gold); border-radius: 4px;
  background: rgba(173,143,86,.06) !important; box-shadow: none !important;
}
.med-placeholder-tag {
  font-family: var(--sans); font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  font-size: .74rem; color: #fff; background: var(--gold); padding: .4em 1em; border-radius: 2px;
}
.med-placeholder-desc { font-size: .94rem; color: var(--grey); line-height: 1.5; }

/* =================================================================
   5 bis. VISITE IMMERSIVE À 360° — mémoire numérique de l'exposition
   ================================================================= */
.med-memoire { background: var(--cream); }
.med-memoire-duo { grid-template-columns: 1fr 1.35fr; align-items: center; }
.med-memoire-note {
  font-family: var(--serif); font-style: italic; color: var(--gold-dk);
  font-size: 1.2rem; line-height: 1.4; margin: 1.6rem 0 0; max-width: 46ch;
}
.med-visite { position: relative; }
.med-visite-launch {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  border-radius: 6px; overflow: hidden; background: var(--night);
  box-shadow: 0 34px 70px -40px rgba(0,0,0,.55);
  aspect-ratio: 16 / 10;
}
.med-visite-launch img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .7s var(--ease); }
.med-visite-launch:hover img { transform: scale(1.03); filter: brightness(.92); }
.med-visite-launch::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,11,14,0) 45%, rgba(8,11,14,.55) 100%);
}
.med-visite-cta {
  position: absolute; left: 50%; bottom: clamp(1.2rem, 3vw, 2rem); transform: translateX(-50%);
  z-index: 1; display: inline-flex; align-items: center; gap: .7em; white-space: nowrap;
  font-family: var(--sans); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  font-size: .84rem; color: #fff; background: var(--gold);
  padding: 1.05em 1.8em; border-radius: 2px;
  transition: background .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.med-visite-launch:hover .med-visite-cta { background: var(--gold-dk); transform: translateX(-50%) translateY(-3px); box-shadow: 0 16px 34px -16px rgba(0,0,0,.6); }
.med-visite-play { font-size: .78em; }
.med-visite iframe {
  display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: 6px;
  box-shadow: 0 34px 70px -40px rgba(0,0,0,.55); background: var(--night);
}
.med-visite-legende { margin: .9rem 0 0; font-size: .9rem; color: var(--grey); line-height: 1.55; }
.med-visite-tech { color: #8b8f90; }
.med-visite-legende a { font-weight: 600; white-space: nowrap; }
.med-visite-legende a:hover { color: var(--gold-dk); }

/* =================================================================
   6. ATELIERS
   ================================================================= */
.med-atelier-grid {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.8rem, 5vw, 5rem); align-items: start;
}
.med-atelier-col .med-marks { margin-bottom: 2.2rem; }
.med-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.2rem; }
.med-chips:last-child { margin-bottom: 0; }
.med-chips li {
  font-family: var(--sans); font-weight: 600; font-size: .9rem; letter-spacing: .03em;
  color: var(--teal-dk); background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: .38em 1.05em;
}
.med-ateliers .med-chips li { background: #fff; }
.med-atelier-media { display: grid; gap: 1rem; }
.med-atelier-media figure { margin: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 26px 54px -34px rgba(44,48,50,.5); }
.med-atelier-media img { width: 100%; }
.med-atelier-media .med-placeholder { min-height: 160px; }
.med-img-legende { padding: .6rem .9rem .7rem; font-size: .88rem; color: var(--grey); background: #fff; line-height: 1.5; }

/* =================================================================
   7. SUR MESURE
   ================================================================= */
.med-mesure-note { color: var(--on-dark-soft); margin: 1.6rem 0 1.8rem; }

/* =================================================================
   8. CCQUEEN — bloc secondaire discret
   ================================================================= */
.med-ccqueen { background: var(--night-2); color: var(--on-dark); padding-block: clamp(3rem, 6vw, 4.5rem); }
.med-ccqueen-inner {
  display: grid; grid-template-columns: minmax(200px, 300px) 1fr;
  gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center;
}
.med-ccqueen-media { margin: 0; border-radius: 4px; overflow: hidden; opacity: .92; }
.med-ccqueen-body h2 {
  font-family: var(--serif); font-weight: 500; color: #cfe6f1;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .8rem;
}
.med-ccqueen-body p { margin: 0 0 .9rem; color: var(--on-dark-soft); font-size: .99rem; max-width: 72ch; }
.med-ccqueen-link {
  display: inline-block; margin-top: .4rem;
  font-family: var(--sans); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  font-size: .8rem; color: var(--gold) !important;
  border-bottom: 1px solid rgba(173,143,86,.5); padding-bottom: 3px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.med-ccqueen-link::after { content: " ↗"; }
.med-ccqueen-link:hover { color: #fff !important; border-color: #fff; }

/* =================================================================
   9. INFORMATIONS PRATIQUES — quatre repères
   ================================================================= */
.med-reperes { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.2vw, 1.8rem); }
.med-repere {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.med-repere:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -32px rgba(44,48,50,.3); }
.med-repere-ico { width: 44px; height: 44px; color: var(--gold); margin-bottom: 1rem; }
.med-repere-ico svg { width: 100%; height: 100%; display: block; }
.med-repere h3 { font-family: var(--serif); color: var(--teal); font-size: 1.5rem; margin-bottom: .3rem; }
.med-repere p { margin: 0; color: var(--grey); font-size: .98rem; line-height: 1.5; }

/* =================================================================
   10. CONTACT + FORMULAIRE
   ================================================================= */
.med-contact {
  color: var(--ink);
  background: radial-gradient(120% 120% at 50% 0%, #fbf9f5 0%, #f3ede2 100%);
}
.med-contact-mono { position: absolute; right: 2%; top: 6%; width: clamp(160px, 22vw, 320px); z-index: 0; opacity: .55; will-change: transform; filter: drop-shadow(0 18px 40px rgba(23,106,144,.28)); }
.med-contact-inner { position: relative; z-index: 1; }
.med-contact-lead { font-size: clamp(1.1rem, 1.9vw, 1.35rem); color: var(--grey); max-width: 56ch; margin: 1.2rem 0 2.4rem; }

/* Contact direct (modèle « identités culturelles ») */
.med-contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.med-btn-ghost--light { color: var(--ink) !important; border-color: rgba(44,48,50,.28); }
.med-btn-ghost--light:hover { background: rgba(44,48,50,.06); border-color: var(--ink); }
.med-contact-hint { margin: 1.6rem 0 0; color: var(--grey); max-width: 58ch; }

.med-contact-list { margin-top: 2.4rem; display: grid; gap: .2rem; max-width: 480px; }
.med-contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.med-contact-list span { font-family: var(--sans); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .74rem; color: var(--grey); }
.med-contact-list a { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--teal); }
.med-contact-list a:hover { color: var(--gold-dk); }

.med-closing { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.25; margin: 2.8rem 0 0; color: var(--ink); }
.med-closing span { display: block; }
.med-closing-em { font-style: italic; color: var(--gold-dk); }

/* =================================================================
   LIGHTBOX — agrandissement des images au clic
   ================================================================= */
.med-zoomable { cursor: zoom-in; }
.med-lb {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,11,14,.94);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.med-lb.open { opacity: 1; pointer-events: auto; }
.med-lb-figure { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.med-lb-figure img {
  max-width: 92vw; max-height: 80vh; width: auto; height: auto;
  border-radius: 3px; box-shadow: 0 40px 90px -40px rgba(0,0,0,.9);
}
.med-lb-caption { margin: 0; color: #b9b3a6; font-family: "Archivo Narrow", Arial, sans-serif; font-size: .92rem; text-align: center; max-width: 70ch; line-height: 1.5; }
.med-lb-close, .med-lb-prev, .med-lb-next {
  position: fixed; z-index: 301; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.3); border-radius: 2px;
  background: rgba(17,23,27,.6); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.med-lb-close:hover, .med-lb-prev:hover, .med-lb-next:hover { background: var(--gold); border-color: var(--gold); }
.med-lb-close { top: 1rem; right: 1rem; }
.med-lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.med-lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .med-lb-prev, .med-lb-next { top: auto; bottom: 1rem; transform: none; }
  .med-lb-prev { left: 1rem; } .med-lb-next { right: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .med-lb { transition: none; } }

/* =================================================================
   PIED DE PAGE (aperçu local uniquement)
   ================================================================= */
.med-footer { background: #0a0e11; color: #b9b3a6; padding-block: clamp(2.5rem, 5vw, 3.5rem); font-family: var(--sans); }
.med-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.med-footer-brand { font-family: var(--serif); font-size: 1.4rem; color: #fff; margin: 0; }
.med-footer-brand span { color: var(--gold); }
.med-footer-tag { margin: 0; font-size: .92rem; color: #837e74; }
.med-footer-top { color: var(--gold); font-weight: 600; font-size: .92rem; text-decoration: none; }

/* =================================================================
   ANIMATIONS au défilement — discrètes, identiques à TN
   ================================================================= */
.med-reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); will-change: opacity, transform; }
.med-reveal.in-view { opacity: 1; transform: none; }
.med-offers .med-offer:nth-child(2) { transition-delay: .07s; }
.med-offers .med-offer:nth-child(3) { transition-delay: .14s; }
.med-reperes .med-repere:nth-child(2) { transition-delay: .07s; }
.med-reperes .med-repere:nth-child(3) { transition-delay: .14s; }
.med-reperes .med-repere:nth-child(4) { transition-delay: .21s; }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1024px) {
  .med-duo, .med-duo--text-first, .med-memoire-duo { grid-template-columns: 1fr; }
  .med-memoire-duo .med-visite { order: -1; }
  .med-duo--text-first .med-duo-media { order: -1; }
  .med-atelier-grid { grid-template-columns: 1fr; }
  .med-offers { grid-template-columns: 1fr 1fr; }
  .med-reperes { grid-template-columns: repeat(2, 1fr); }
  .med-artworks { columns: 2; }
}

@media (max-width: 860px) {
  .med-nav-burger { display: flex; }
  .med-nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px);
    flex-direction: column; align-items: flex-start; gap: .3rem;
    padding: 6.5rem 2rem 2rem; background: var(--night);
    transform: translateX(100%); transition: transform .45s var(--ease);
    box-shadow: -10px 0 50px -18px rgba(0,0,0,.6);
  }
  .med-nav-menu.open { transform: none; }
  .med-nav-menu a { display: block; padding: .6rem 0; font-size: 1.15rem; }
  .med-nav-cta { margin-top: .6rem; }
  .med-ccqueen-inner { grid-template-columns: 1fr; }
  .med-ccqueen-media { max-width: 420px; }
  .med-scroll-cue { display: none; }   /* évite le chevauchement avec les boutons du hero */
}

@media (max-width: 640px) {
  .med-offers { grid-template-columns: 1fr; }
  .med-reperes { grid-template-columns: 1fr; }
  .med-artworks { columns: 1; }
  .med-gallery { grid-template-columns: 1fr; }
  .med-gallery img { max-height: none; }
  .med-visite-launch, .med-visite iframe { aspect-ratio: 4 / 3; min-height: 300px; }
  .med-visite-cta { white-space: normal; text-align: center; width: max-content; max-width: 88%; }
  .med-contact-list li { grid-template-columns: 1fr; gap: .1rem; }
  .med-contact-mono { display: none; }
  .med-hero-actions .med-btn { width: 100%; text-align: center; }
}

/* =================================================================
   Préférences de mouvement réduit + focus clavier
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .med-reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .med-hero-title .line > span { animation: none; transform: none; }
  .med-scroll-cue-line::after { animation: none; }
  [data-parallax] { transform: none !important; }
}
.med-page a:focus-visible, .med-page button:focus-visible,
.med-page input:focus-visible, .med-page select:focus-visible, .med-page textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px;
}
