/* Mégane Lazou — accueil « table d'atelier » (inspiré du plateau de Palmer) */

:root {
  --papier: #EEECE7;
  --blanc: #F8F7F3;
  --encre: #1C1B19;
  --gris: #5E5B55;
  --filet: #CFCBC2;
  --ton: #FF3100;
  --titre: "Syne", "Helvetica Neue", Arial, sans-serif;
  --labeur: "Spectral", Georgia, serif;
  --tw: 0px;
}
@media (min-width: 900px) { :root { --tw: clamp(84px, 14.5vh, 140px); } }

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; overflow: hidden; overscroll-behavior: none;
  background: var(--papier); color: var(--encre);
  font: 400 17px/1.55 var(--labeur);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: var(--ton); }
:focus-visible { outline: 2px solid var(--ton); outline-offset: 3px; }
button { font: inherit; color: inherit; }

/* ---------- Le nom en tranche ---------- */
.tranche { display: none; }
@media (min-width: 900px) {
  .tranche {
    display: flex; align-items: center; position: fixed; z-index: 30; inset: 0 auto 0 0; width: var(--tw);
    padding: 0 calc(var(--tw) * .14); background: var(--papier);
    border-right: 1px solid var(--filet);
  }
  .tranche img { width: 100%; height: auto; }
}

/* ---------- Haut de page ---------- */
.haut {
  position: fixed; z-index: 20; top: 0; left: var(--tw); right: 0;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 32px;
  padding: 18px clamp(16px, 3vw, 40px) 40px;
  background: linear-gradient(var(--papier) 55%, rgba(238, 236, 231, 0));
  pointer-events: none;
}
.haut > * { pointer-events: auto; }
.accroche { margin: 0; max-width: 21em; font: 600 clamp(17px, 1.5vw, 21px)/1.2 var(--titre); letter-spacing: -.01em; }
.accroche span { display: block; font: italic 400 16px/1.4 var(--labeur); color: var(--gris); margin-top: 4px; letter-spacing: 0; }
.haut ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 22px; font-size: 16px; }
.haut nav a { text-decoration: none; }
@media (max-width: 899px) {
  .haut { flex-direction: column; padding-bottom: 28px; }
  .haut nav { display: none; }
}
.marque-gif { display: none; }
@media (max-width: 899px) {
  .marque-gif { display: block; position: relative; width: 176px; height: 37px; }
  .marque-gif img { position: absolute; left: 50%; top: 50%; width: 37px; max-width: none; translate: -50% -50%; rotate: -90deg; }
}

/* ---------- Le plateau ---------- */
.scene {
  position: fixed; inset: 0 0 0 var(--tw); overflow: hidden;
  cursor: grab; touch-action: none; outline: none;
  transition: translate .8s cubic-bezier(.65, 0, .35, 1);
}
.scene.saisie { cursor: grabbing; }
.plateau { position: absolute; inset: 0; transform-origin: 50% 50%; }
.objet {
  position: absolute; left: 0; top: 0;
  width: var(--cell); height: var(--cell-h);
  display: flex; align-items: center; justify-content: center;
  will-change: transform; user-select: none; -webkit-user-drag: none;
  opacity: 0; transition: opacity .9s ease;
}
.objet.vu { opacity: 1; }
.objet.ecarte { opacity: .12; }
.objet .pose { display: block; rotate: var(--r, 0deg); transition: scale .6s cubic-bezier(.2, .8, .2, 1); }
.objet img {
  max-width: 220px; max-height: 220px; width: auto; height: auto; pointer-events: none;
  box-shadow:
    0 1px 1px rgba(28, 27, 25, .14),
    0 6px 10px -4px rgba(28, 27, 25, .16),
    0 24px 34px -16px rgba(28, 27, 25, .34),
    0 50px 70px -36px rgba(28, 27, 25, .2);
}
.carte, .specimen {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--blanc);
  box-shadow: 0 1px 1px rgba(28, 27, 25, .12), 0 6px 10px -4px rgba(28, 27, 25, .14), 0 24px 34px -16px rgba(28, 27, 25, .3);
}
.carte { width: 170px; height: 104px; padding: 12px; font: 700 17px/1.05 var(--titre); }
.carte img { max-width: 120px; max-height: 70px; box-shadow: none; }
.specimen { width: 210px; height: 150px; font: 400 56px/1 "Genuine", var(--titre); text-transform: lowercase; }
.objet.ouvrable { cursor: pointer; }
.objet .pose { position: relative; }
.objet.ouvrable .pose::after {
  content: ""; position: absolute; top: -7px; right: -7px;
  width: 14px; height: 14px; border-radius: 50%; background: var(--ton);
  box-shadow: 0 0 0 6px rgba(255, 49, 0, .18);
}

/* Légende qui suit le pointeur */
.bulle {
  position: fixed; z-index: 25; left: 0; top: 0; margin: 0; pointer-events: none;
  font: italic 400 16px/1.2 var(--labeur); color: var(--encre);
  background: var(--papier); padding: 5px 9px; white-space: nowrap;
  opacity: 0; transition: opacity .2s;
}
.bulle.visible { opacity: 1; }
.bulle b { font: 600 15px/1 var(--titre); font-style: normal; color: var(--ton); margin-left: 8px; }

/* ---------- Commandes ---------- */
.commandes {
  position: fixed; z-index: 20; left: var(--tw); right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 36px clamp(16px, 3vw, 40px) 18px;
  background: linear-gradient(rgba(238, 236, 231, 0), var(--papier) 55%);
  pointer-events: none;
}
.commandes > * { pointer-events: auto; }
.filtres { display: flex; gap: 0; background: var(--blanc); box-shadow: 0 1px 2px rgba(28, 27, 25, .12), 0 8px 18px -10px rgba(28, 27, 25, .3); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.filtres::-webkit-scrollbar { display: none; }
.filtres button { flex: none; background: none; border: 0; padding: 10px 14px; font: 600 14px/1 var(--titre); cursor: pointer; }
.filtres button:hover { color: var(--ton); }
.filtres button[aria-pressed="true"] { background: var(--encre); color: var(--papier); }
.aide { display: flex; align-items: center; gap: 8px; margin: 0 0 0 auto; font-style: italic; color: var(--gris); font-size: 15px; transition: opacity .6s; }
.aide.efface { opacity: 0; }
.aide-icone { width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; }
.aide-icone::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: currentColor; }
.zoom { display: flex; gap: 6px; }
.zoom button { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--encre); background: var(--blanc); font: 500 20px/1 var(--titre); cursor: pointer; }
.zoom button:hover { background: var(--encre); color: var(--papier); }
.zoom button:disabled { opacity: .3; cursor: default; background: var(--blanc); color: var(--encre); }
@media (max-width: 699px) {
  .commandes { flex-wrap: wrap; justify-content: center; }
  .aide { display: none; }
  .filtres { order: 2; width: 100%; }
  .zoom { position: absolute; right: 16px; bottom: 72px; }
}

/* ---------- Volet projet (écran partagé) ---------- */
.volet {
  position: fixed; z-index: 28; top: 0; bottom: 0; left: var(--tw);
  width: calc((100vw - var(--tw)) * .5); min-width: min(100vw, 420px);
  background: var(--papier); border-right: 1px solid var(--encre);
  translate: -101% 0; transition: translate .8s cubic-bezier(.65, 0, .35, 1);
}
.volet[hidden] { display: block; visibility: hidden; }
.volet.ouvert { translate: 0 0; visibility: visible; }
.volet-defile { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 96px clamp(20px, 4vw, 64px) 80px; }
.volet-cat { font-style: italic; color: var(--gris); margin: 0 0 8px; }
.volet h2 { font: 700 clamp(44px, 6vw, 88px)/1 var(--titre); letter-spacing: -.02em; margin: 0; }
.volet-sub { font-style: italic; color: var(--gris); font-size: 20px; margin: 10px 0 32px; }
.volet-une { margin: 0 0 32px; }
.volet-une img, .volet-galerie img { box-shadow: 0 1px 1px rgba(28,27,25,.12), 0 18px 30px -16px rgba(28,27,25,.35); }
.volet-texte { max-width: 34em; }
.volet-galerie { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 40px 0; }
.volet-galerie figure { margin: 0; }
.volet-extrait { background: var(--blanc); padding: clamp(24px, 4vw, 48px); font: 500 17px/1.55 var(--titre); max-width: 34em; }
.volet-source, .volet-suite { font: italic 400 15px/1.4 var(--labeur); color: var(--gris); }
.volet-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.bouton { display: inline-block; font: 700 15px/1 var(--titre); padding: 14px 20px; background: var(--encre); color: var(--papier); text-decoration: none; }
.bouton:hover { background: var(--ton); color: var(--encre); }
.volet-fermer {
  position: absolute; top: 50%; right: 0; translate: 50% -50%;
  width: 42px; height: 42px; background: var(--papier); border: 1px solid var(--encre);
  font: 400 26px/1 var(--titre); cursor: pointer;
}
.volet-fermer:hover { background: var(--encre); color: var(--papier); }
body.volet-ouvert .scene { translate: calc((100vw - var(--tw)) * .25) 0; }
@media (max-width: 699px) {
  .volet { width: 100vw; left: 0; border-right: 0; }
  .volet-fermer { top: 14px; right: 14px; translate: none; }
  .volet-galerie { grid-template-columns: 1fr; }
}

.sans-js { position: fixed; inset: auto 0 0 0; padding: 16px; background: var(--papier); z-index: 50; }

@media (prefers-reduced-motion: reduce) {
  .scene, .volet, .objet, .objet .pose { transition: none !important; }
}

/* =====================================================================
   v2 : tous les projets s'ouvrent dans le volet
   ===================================================================== */
.scene.pointe { cursor: pointer; }
.scene.saisie { cursor: grabbing; }
.bulle-rub { font-style: normal; color: var(--gris); margin-left: 8px; font-size: 14px; }

/* Cartes de logo : le nom tant que le fichier n'est pas déposé */
.carte { position: relative; }
.carte img { display: none; }
.carte.avec-logo img { display: block; }
.carte.avec-logo > span { display: none; }

/* Contenu du volet */
.volet-projet[hidden], .volet-contact[hidden] { display: none; }
.volet .liens { list-style: none; padding: 0; margin: 20px 0 0; }
.volet .liens li { position: relative; padding-left: 20px; margin: 6px 0; }
.volet .liens li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--ton); }
.volet .quote { display: block; font-style: italic; quotes: "« " " »"; }
.volet .quote-author { display: block; font-size: 15px; color: var(--gris); margin-top: 4px; }
.volet-une img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; object-position: left center; box-shadow: none; filter: drop-shadow(0 18px 24px rgba(28, 27, 25, .28)); }
.volet-galerie figcaption { font-style: italic; font-size: 15px; color: var(--gris); margin-top: 6px; }
.volet-galerie img { width: 100%; }
.volet-sub.petit { font-size: 16px; margin: 4px 0 12px; }
.volet h3 { font: 700 24px/1.1 var(--titre); margin: 18px 0 0; }
.volet-videos { display: grid; gap: 48px; margin-top: 32px; }
.volet .video { position: relative; aspect-ratio: 16 / 9; background: var(--encre); }
.volet .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.volet-logos { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.carte.grande { width: 100%; height: auto; aspect-ratio: 1.6; font-size: 20px; }
.carte.grande img { max-width: 70%; max-height: 70%; }
.volet-suivant { display: block; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--filet); text-decoration: none; font: 700 clamp(26px, 3vw, 40px)/1.05 var(--titre); letter-spacing: -.02em; }
.volet-suivant small { display: block; font: italic 400 15px/1.3 var(--labeur); color: var(--gris); margin-bottom: 6px; letter-spacing: 0; }
.volet-suivant:hover, .volet-suivant:hover small { color: var(--ton); }
.lien { text-decoration-thickness: 1px; text-underline-offset: .2em; }

/* Les images se posent en zoomant */
.volet-une, .revele { opacity: 0; transform: scale(1.06) translateY(18px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .8, .2, 1); transform-origin: 50% 70%; }
.volet-une.vu, .revele.vu { opacity: 1; transform: none; }

/* Volet contact */
.volet-contact h2 { font-size: clamp(36px, 4.6vw, 64px); max-width: 11em; }
.identite-fiche { margin: 0 0 28px; display: grid; gap: 8px; }
.identite-fiche div { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; }
.identite-fiche dt { font-style: italic; color: var(--gris); }
.identite-fiche dd { margin: 0; }
.volet-h3 { margin-top: 48px !important; margin-bottom: 14px !important; }
.volet-atelier .colonnes { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.volet-atelier h3 { font-size: 18px; margin: 0 0 8px; }
.volet-atelier ul { list-style: none; margin: 0; padding: 0; font-size: 16px; }
.volet-atelier li { padding: 6px 0 6px 18px; border-top: 1px solid var(--filet); position: relative; }
.volet-atelier li::before { content: ""; position: absolute; left: 0; top: 1em; width: 8px; height: 8px; border-radius: 50%; background: var(--ton); }
.formulaire { display: grid; gap: 4px; max-width: 34em; }
.formulaire label { font-style: italic; color: var(--gris); margin-top: 12px; }
.formulaire input, .formulaire textarea { font: 18px/1.5 var(--labeur); color: var(--encre); background: transparent; border: 0; border-bottom: 1.5px solid var(--encre); border-radius: 0; padding: 8px 0; width: 100%; }
.formulaire textarea { border: 1.5px solid var(--encre); padding: 10px 12px; margin-top: 6px; }
.formulaire input:focus, .formulaire textarea:focus { outline: none; border-color: var(--ton); }
.formulaire .bouton { justify-self: start; margin-top: 20px; border: 0; cursor: pointer; }
.formulaire .bouton[disabled] { opacity: .5; }
.statut { min-height: 1.5em; margin: 8px 0 0; }

/* Liste texte des projets : pour les lecteurs d'écran et les moteurs de recherche */
.index-texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .volet-une, .revele { opacity: 1; transform: none; transition: none; }
}

/* =====================================================================
   v3 : volet plus grand, scènes colorées, textes originaux en rouge
   ===================================================================== */
.volet { width: calc((100vw - var(--tw)) * .66); }
body.volet-ouvert .scene { translate: calc((100vw - var(--tw)) * .33) 0; }
.volet-defile { padding: 88px clamp(24px, 4.5vw, 80px) 96px; }

/* Croix dans un carré, au milieu de la hauteur, sur le bord du volet */
.volet-fermer {
  width: 56px; height: 56px; background: var(--papier); border: 1.5px solid var(--encre);
  font-size: 0; color: var(--encre); cursor: pointer;
}
.volet-fermer::before, .volet-fermer::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 24px; height: 2px; background: currentColor;
  translate: -50% -50%; rotate: 45deg;
}
.volet-fermer::after { rotate: -45deg; }
.volet-fermer:hover { background: var(--encre); color: var(--papier); }

.v-tete { margin-bottom: 28px; }
.v-tete h2 { margin: 0; }
.masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Scènes colorées : les images posées sur la couleur du projet, d'un bord à l'autre du volet */
.v-scene {
  background: var(--fond, var(--blanc));
  margin: 0 calc(-1 * clamp(24px, 4.5vw, 80px)) 40px;
  padding: clamp(28px, 5vw, 80px);
  display: grid; place-items: center;
}
.volet-une { margin: 0; opacity: 1; transform: none; }
.volet-une img { width: auto; max-width: 100%; max-height: 68vh; object-fit: contain; filter: none;
  box-shadow: 0 1px 2px rgba(28, 27, 25, .12), 0 26px 44px -24px rgba(28, 27, 25, .5); }
.v-galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); align-items: center; }
.v-galerie figure { margin: 0; display: grid; place-items: center; }
.v-galerie img { width: auto; max-width: 100%; box-shadow: 0 1px 2px rgba(28, 27, 25, .12), 0 22px 36px -22px rgba(28, 27, 25, .45); }
.multiplie img { mix-blend-mode: multiply; box-shadow: none !important; }
.volet-texte { margin-bottom: 40px; }
.volet .video { width: 100%; }
.volet-video .v-scene { margin-bottom: 16px; }

/* Textes originaux des éditions : dans le rouge du nom */
.volet-extrait { background: none; padding: 0; margin: 8px 0 48px; color: var(--ton); font: 500 clamp(17px, 1.5vw, 20px)/1.55 var(--titre); max-width: 34em; }

/* Logofolio dans le volet */
.volet-logos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.tuile { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: var(--fond); padding: 16%; text-decoration: none; overflow: hidden; }
.tuile img { max-width: 100%; max-height: 100%; width: auto; height: auto; mix-blend-mode: multiply; }
.tuile.pleine { padding: 0; }
.tuile.pleine img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.tuile .nom { font: 700 20px/1.1 var(--titre); text-align: center; }
.tuile .legende { position: absolute; left: 10px; bottom: 8px; font: italic 400 14px/1.2 var(--labeur); color: var(--encre); opacity: 0; transition: opacity .2s; background: var(--papier); padding: 2px 6px; }
.tuile:hover .legende, .tuile:focus-visible .legende { opacity: 1; }
a.tuile:hover { outline: 2px solid var(--ton); outline-offset: -2px; }

/* Cartes de logo sur la table */
.carte.avec-logo { width: 190px; height: 124px; padding: 16px; }
.carte.avec-logo img { display: block; max-width: 100%; max-height: 100%; box-shadow: none; }

/* La vignette en vol */
.envol { position: fixed; left: 0; top: 0; z-index: 35; margin: 0; transform-origin: 0 0; pointer-events: none; rotate: none;
  box-shadow: 0 1px 2px rgba(28, 27, 25, .12), 0 26px 44px -24px rgba(28, 27, 25, .5); object-fit: contain; }

@media (max-width: 699px) {
  .volet { width: 100vw; }
  .volet-fermer { top: 14px; right: 14px; translate: none; width: 48px; height: 48px; }
  .v-scene { margin-inline: -24px; }
  .v-galerie { grid-template-columns: 1fr; }
}
.tuile.pleine img { object-fit: contain; }

/* =====================================================================
   v4 : objets posés sur la table, plus de fonds colorés, curseur point rouge
   ===================================================================== */
.haut { justify-content: flex-end; }
.haut nav a.actif { color: var(--ton); }
.cache-visuel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Logos : l'encre seule, sans support */
.objet.logo-nu img { max-width: 210px; max-height: 150px; box-shadow: none; }
/* Photos détourées : l'objet et son ombre portée, comme une assiette sur la table */
.objet.detoure img { max-width: 250px; max-height: 250px; box-shadow: none;
  filter: drop-shadow(0 2px 2px rgba(28, 27, 25, .18)) drop-shadow(0 22px 22px rgba(28, 27, 25, .22)); }
.envol.logo-nu, .envol.detoure { box-shadow: none; }

/* Le volet n'a plus de fond coloré : les images se posent sur le papier */
.v-scene { background: none; margin: 0 0 40px; padding: 0; justify-items: start; }
.v-galerie { justify-items: center; }
.tuile { background: none; padding: 12%; border: 1px solid var(--filet); }
.tuile img { mix-blend-mode: normal; }
.volet img[src$=".gif"] { mix-blend-mode: multiply; box-shadow: none !important; }

/* Portrait dans le volet contact */
.portrait { margin: 0 0 28px; max-width: 260px; }
.portrait img { width: 100%; height: auto; }

/* Le curseur : un petit point rouge orangé, qui grossit sur les projets */
html.avec-point, html.avec-point * { cursor: none !important; }
.point { position: fixed; left: 0; top: 0; z-index: 100; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .2s; }
.point.la { opacity: 1; }
.point::before {
  content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--ton); transition: scale .3s cubic-bezier(.2, .8, .2, 1);
}
.point.lien::before { scale: 1.5; }
.point.gros::before { scale: 2.4; }
@media (prefers-reduced-motion: reduce) { .point::before { transition: none; } }
.volet-une.detoure img { box-shadow: none; filter: drop-shadow(0 2px 2px rgba(28, 27, 25, .18)) drop-shadow(0 26px 26px rgba(28, 27, 25, .22)); }

/* Logo et son fond : le fond dessous, le logo détouré posé exactement dessus */
.volet-une.duo { position: relative; display: block; width: 100%; }
.volet-une.duo img { width: 100%; height: auto; max-height: none; box-shadow: none; }
.volet-une.duo .d-transp { position: absolute; inset: 0; height: 100%; }
.volet-une.duo .d-fond { animation: fond-arrive .7s .25s both ease; }
@keyframes fond-arrive { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .volet-une.duo .d-fond { animation: none; } }
/* Deux images qui fonctionnent ensemble : sur toute la largeur de la galerie */
.v-galerie .paire { grid-column: 1 / -1; }
/* Grande image sur toute la largeur du volet, et planches qui vont ensemble */
.v-galerie .large { grid-column: 1 / -1; }
.v-galerie .large img { width: 100%; max-height: none; }
.trio { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); align-items: center; }
.trio img { width: 100%; height: auto; box-shadow: 0 1px 2px rgba(28, 27, 25, .12), 0 22px 36px -22px rgba(28, 27, 25, .45); }
/* Accueil : seul le lien Contact, dans le coin */
@media (max-width: 899px) { .haut nav { display: block; position: absolute; top: 18px; right: clamp(16px, 3vw, 40px); } }
.v-galerie .large, .v-galerie .trio { justify-self: stretch; width: 100%; }

/* Contact : la question sur deux lignes, la seconde d'un seul tenant */
.volet-defile { container-type: inline-size; }
.volet-contact h2.accroche-contact { max-width: none; font-size: clamp(20px, 7.4cqi, 72px); }
.accroche-contact span { white-space: nowrap; }

/* Emmaüs : trois planches de même hauteur, la largeur s'adapte */
.trio { display: flex; align-items: flex-start; }
.trio img { flex: 1 1 0; min-width: 0; width: auto; }

/* Téléphone : les galeries de photos et d'affiches se feuillettent */
@media (max-width: 699px) {
  .v-galerie.defile { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -24px; padding: 0 24px 8px;
    overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .v-galerie.defile::-webkit-scrollbar { display: none; }
  .v-galerie.defile > * { flex: 0 0 86%; scroll-snap-align: center; opacity: 1; transform: none; }
  .v-galerie.defile img { width: 100%; max-height: 70vh; object-fit: contain; }
}

/* Videofolio : vignettes YouTube recadrées, lecture au clic */
.recadre { position: relative; display: block; overflow: hidden; }
.recadre img, .objet .recadre img { position: absolute; max-width: none; max-height: none; height: auto; box-shadow: none; }
.objet.tirage .recadre, .volet-une .recadre {
  box-shadow: 0 1px 1px rgba(28, 27, 25, .14), 0 6px 10px -4px rgba(28, 27, 25, .16), 0 24px 34px -16px rgba(28, 27, 25, .34);
}
.envol.recadre { box-shadow: none; }
.video-une { position: relative; cursor: pointer; }
.video-une .recadre { width: 100%; }
.video-une .lire {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; border: 0; border-radius: 50%;
  width: 84px; height: 84px; font-size: 0; background: var(--ton); cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(28, 27, 25, .5); transition: scale .25s;
}
.video-une .lire::after { content: ""; position: absolute; left: 34px; top: 26px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent var(--papier); }
.video-une:hover .lire { scale: 1.08; }
.video-une.joue { cursor: auto; }
.video-une iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.video-une.court.joue { width: min(100%, calc(74vh * 9 / 16)) !important; }
.video-une.court iframe { aspect-ratio: 9 / 16; }
.volet-vignettes { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.tuile-video { padding: 10%; }
.tuile-video .recadre { width: 100%; max-height: 100%; }
.tuile-video.detoure img { filter: drop-shadow(0 10px 12px rgba(28, 27, 25, .25)); }
