/* ==========================================================
   Sofia Richer Illustrations — feuille de style
   Les couleurs et les polices sont réglées ici, en haut.
   ========================================================== */

:root {
  --fond: #ECE8E6;          /* gris chaud du site */
  --fond-menu: #F4F1EF;     /* menu latéral, champs */
  --encre: #1F1F1F;         /* texte principal */
  --violet: #47264F;        /* logo et nom, tiré d'« Œil 01 » */
  --texte: #3F3A37;         /* texte secondaire */
  --discret: #5C5754;       /* liens inactifs */
  --separateur: #8A837D;
  --ligne: #CFC7BF;
  --survol: #6B635D;
  --carte-peinture: #D8D0C8;
  --carte-dessin: #E3DDD6;
  --carte-animation: #2B2926;
  --clair-sur-fonce: #F4F1EF;
  --discret-sur-fonce: #CFC8C2;
  --visionneuse: #1A1917;

  --police-titre: 'Cormorant Garamond', Georgia, serif;
  --police-texte: 'Inter', system-ui, -apple-system, sans-serif;

  --largeur-menu: 280px;
  --ecart: 32px;
  --douceur: cubic-bezier(.2, .7, .2, 1);
}

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

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

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--police-texte);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }

a { color: var(--encre); text-decoration: none; transition: color .2s; }
a:hover { color: var(--survol); }

button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }

.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.lien-evitement {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--encre); color: var(--clair-sur-fonce); padding: 10px 16px;
}
.lien-evitement:focus { top: 16px; color: var(--clair-sur-fonce); }

/* ---------- Mise en page générale ---------- */

.site {
  display: grid;
  grid-template-columns: var(--largeur-menu) minmax(0, 1fr);
  min-height: 100vh;
}

/* ---------- Menu latéral (ordinateur) ---------- */

.menu-lateral {
  position: sticky; top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--fond-menu);
  padding: 40px 32px 28px;
  display: flex; flex-direction: column; gap: 36px;
}

.marque {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
}
.marque:hover { color: var(--encre); }
.marque__logo {
  width: 104px; height: auto;
  transform-origin: 50% 90%;
  transition: transform .6s var(--douceur);
}
.marque:hover .marque__logo { transform: rotate(-4deg) scale(1.03); }
.marque__textes { display: flex; flex-direction: column; gap: 6px; }
.marque__nom {
  font-family: var(--police-titre); font-weight: 300;
  font-size: 32px; line-height: 1;
  color: var(--violet);
}
.marque__sous-titre {
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--discret);
}

.navigation { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.navigation a {
  display: flex; align-items: center;
  min-height: 44px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
}
.navigation a span {
  position: relative; padding-bottom: 2px;
}
/* trait qui se dessine au survol */
.navigation a span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--douceur);
}
.navigation a:hover span::after,
.navigation a[aria-current="page"] span::after { transform: scaleX(1); }
.navigation a[aria-current="page"] { color: var(--encre); }

.menu-pied {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
}

.icone-lien {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  transition: transform .3s var(--douceur);
}
.icone-lien:hover { transform: translateY(-2px); }
.icone-lien svg { stroke: currentColor; }

/* ---------- En-tête mobile ---------- */

.entete-mobile { display: none; }

.bouton-menu {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: none; border: 0; cursor: pointer; color: var(--encre);
}

/* ---------- Contenu ---------- */

.contenu {
  min-width: 0;
  padding: 40px 48px 64px;
}

.titre-page {
  margin: 0 0 8px;
  text-align: center;
  font-family: var(--police-titre); font-weight: 300;
  font-size: 34px; letter-spacing: .04em; line-height: 1.2;
}

.chapeau {
  margin: 0 auto; max-width: 560px;
  text-align: center; font-size: 14px; line-height: 1.5; color: var(--texte);
}

/* ---------- Filtres ---------- */

.filtres {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0 12px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.filtres:empty { display: none; }
.filtres__separateur { color: var(--separateur); }
.filtre {
  min-height: 44px; padding: 0 4px;
  background: none; border: 0;
  border-bottom: 1px solid transparent;
  color: var(--discret); cursor: pointer;
  letter-spacing: inherit; text-transform: inherit;
  transition: color .2s, border-color .2s;
}
.filtre:hover { color: var(--encre); }
.filtre[aria-pressed="true"] { color: var(--encre); border-bottom-color: var(--encre); }

/* ---------- Galerie en colonnes (style « mosaïque ») ---------- */

.galerie {
  columns: 3 240px;
  column-gap: var(--ecart);
  margin-top: 32px;
}

.oeuvre {
  break-inside: avoid;
  margin: 0 0 var(--ecart);
  animation: apparition .6s var(--douceur) both;
}
.oeuvre[hidden] { display: none; }

@keyframes apparition {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.oeuvre__bouton {
  display: block; width: 100%;
  padding: 0; margin: 0;
  background: none; border: 0; cursor: pointer; text-align: left;
  color: inherit;
}

.oeuvre__cadre {
  position: relative; overflow: hidden;
  transition: transform .45s var(--douceur), box-shadow .45s var(--douceur);
}
.oeuvre__bouton:hover .oeuvre__cadre,
.oeuvre__bouton:focus-visible .oeuvre__cadre {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px -20px rgba(31, 31, 31, .45);
}

.oeuvre__image {
  width: 100%; height: auto;
  transition: transform .9s var(--douceur);
}
.oeuvre__bouton:hover .oeuvre__image { transform: scale(1.035); }

/* Diptyques et triptyques : panneaux côte à côte */
.panneaux { display: flex; gap: 4%; align-items: flex-start; }
.panneaux img { flex: 1 1 0; min-width: 0; height: auto; }

.visionneuse__image.panneaux {
  height: 68vh; max-width: 100%; gap: 24px; justify-content: center;
}
.visionneuse__image.panneaux img {
  flex: 0 1 auto; height: 100%; width: auto; object-fit: contain;
}
.visionneuse__image:not(.panneaux) { max-height: 68vh; width: auto; }

.produit__image.panneaux {
  height: 100%; justify-content: center; gap: 4%;
}
.produit__image.panneaux img { flex: 0 1 auto; flex-grow: 0 !important; height: 100%; width: auto; object-fit: contain; }

/* Survol : deux vagues souples, en dégradé dans les teintes de l'œuvre,
   se déploient depuis le coin inférieur gauche ; le titre glisse avec un trait qui se dessine */
.oeuvre__vague, .oeuvre__voile {
  position: absolute; inset: 0;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  transform: scale(0); transform-origin: 0 100%;
  transition: transform .6s var(--douceur);
  pointer-events: none;
}
.oeuvre__vague {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 54 C18 46 33 62 52 61 C70 60 82 67 100 71 L100 100 L0 100 Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 54 C18 46 33 62 52 61 C70 60 82 67 100 71 L100 100 L0 100 Z'/%3E%3C/svg%3E");
  background: linear-gradient(105deg, var(--teinte-2, #6B635D), var(--teinte-3, #A69B92));
  opacity: .55;
}
.oeuvre__voile {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 67 C15 61 31 76 52 74 C72 71 85 80 100 83 L100 100 L0 100 Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 67 C15 61 31 76 52 74 C72 71 85 80 100 83 L100 100 L0 100 Z'/%3E%3C/svg%3E");
  background: linear-gradient(100deg, var(--teinte, #3A3733) 25%, var(--teinte-2, #6B635D) 100%);
  opacity: .92;
  transition-delay: .06s;
}
.oeuvre__titre {
  position: absolute; left: 20px; right: 20px; bottom: 18px;
  padding-bottom: 10px;
  font-family: var(--police-titre); font-style: italic; font-weight: 600; font-size: 27px; line-height: 1.15;
  color: var(--clair-sur-fonce);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
  opacity: 0; transform: translateX(-14px);
  transition: opacity .3s, transform .45s var(--douceur);
  pointer-events: none;
}
.oeuvre__titre::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 56px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--douceur);
}
.oeuvre__bouton:hover .oeuvre__vague, .oeuvre__bouton:focus-visible .oeuvre__vague,
.oeuvre__bouton:hover .oeuvre__voile, .oeuvre__bouton:focus-visible .oeuvre__voile { transform: scale(1); }
.oeuvre__bouton:hover .oeuvre__titre,
.oeuvre__bouton:focus-visible .oeuvre__titre { opacity: 1; transform: none; transition-delay: .22s; }
.oeuvre__bouton:hover .oeuvre__titre::after,
.oeuvre__bouton:focus-visible .oeuvre__titre::after { transform: scaleX(1); transition-delay: .36s; }

/* Écran tactile : pas de survol, une vague plus discrète reste visible */
@media (hover: none) {
  .oeuvre__vague { display: none; }
  .oeuvre__voile { transform: none; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 80 C20 75 38 87 58 84 C76 81 89 88 100 90 L100 100 L0 100 Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 80 C20 75 38 87 58 84 C76 81 89 88 100 90 L100 100 L0 100 Z'/%3E%3C/svg%3E"); }
  .oeuvre__titre { opacity: 1; transform: none; font-size: 21px; bottom: 9px; padding-bottom: 0; }
  .oeuvre__titre::after { display: none; }
}


/* Vague plus basse (œuvres avec  vague: "violet") */
.oeuvre__cadre--basse .oeuvre__vague { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 66 C18 59 33 73 52 72 C70 71 82 77 100 80 L100 100 L0 100 Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 66 C18 59 33 73 52 72 C70 71 82 77 100 80 L100 100 L0 100 Z'/%3E%3C/svg%3E"); }
.oeuvre__cadre--basse .oeuvre__voile { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 76 C15 71 31 84 52 82 C72 80 85 87 100 89 L100 100 L0 100 Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 76 C15 71 31 84 52 82 C72 80 85 87 100 89 L100 100 L0 100 Z'/%3E%3C/svg%3E"); }
@media (hover: none) {
  .oeuvre__cadre--basse .oeuvre__voile { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 85 C20 81 38 90 58 88 C76 86 89 91 100 92 L100 100 L0 100 Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 85 C20 81 38 90 58 88 C76 86 89 91 100 92 L100 100 L0 100 Z'/%3E%3C/svg%3E"); }
}

/* Aperçu vidéo des animations */
.oeuvre__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .4s;
}
.oeuvre--lecture .oeuvre__video { opacity: 1; }

/* Icône lecture sur les vignettes d'animation */
.oeuvre__lecture {
  position: absolute; top: 50%; left: 50%;
  width: 56px; height: 56px; margin: -28px 0 0 -28px;
  transition: opacity .3s, transform .4s var(--douceur);
  pointer-events: none;
}
.oeuvre--lecture .oeuvre__lecture { opacity: 0; transform: scale(.8); }

/* Barre de progression de l'aperçu */
.oeuvre__progression {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--survol); opacity: 0; transition: opacity .3s;
}
.oeuvre__progression span {
  display: block; height: 100%; width: 0; background: var(--clair-sur-fonce);
}
.oeuvre--lecture .oeuvre__progression { opacity: 1; }
.oeuvre--lecture .oeuvre__progression span { animation: progression 6s linear infinite; }
@keyframes progression { from { width: 0; } to { width: 100%; } }

/* ---------- Emplacements vides (œuvre sans photo) ---------- */

.emplacement {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 24px; text-align: center;
  background: var(--carte-peinture); color: var(--encre);
}
.emplacement--dessin { background: var(--carte-dessin); box-shadow: inset 0 0 0 1px var(--ligne); }
.emplacement--animation { background: var(--carte-animation); color: var(--clair-sur-fonce); }
.emplacement--portrait { aspect-ratio: 4 / 5; }
.emplacement--paysage  { aspect-ratio: 4 / 3; }
.emplacement--carre    { aspect-ratio: 1 / 1; }
.emplacement--haut     { aspect-ratio: 3 / 5; }
.emplacement--video    { aspect-ratio: 16 / 9; }

.etiquette {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--texte);
}
.emplacement--animation .etiquette,
.emplacement--animation .petit { color: var(--discret-sur-fonce); }
.emplacement__titre { font-family: var(--police-titre); font-size: 24px; line-height: 1.2; }
.petit { font-size: 12px; color: var(--texte); }

.pastille {
  display: inline-block;
  padding: 2px 10px; border: 1px solid var(--texte);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--texte);
}
.oeuvre__pastille {
  position: absolute; top: 12px; left: 12px;
  background: var(--fond-menu);
}

.galerie-vide {
  margin: 48px auto; text-align: center; color: var(--texte);
}

/* ---------- Boutons ---------- */

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 22px;
  border: 1px solid var(--encre); background: transparent; color: var(--encre);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.bouton:hover { background: var(--encre); color: var(--clair-sur-fonce); }
.bouton svg { stroke: currentColor; transition: transform .3s var(--douceur); }
.bouton:hover svg { transform: translate(2px, -2px); }

.bouton--plein { background: var(--encre); color: var(--clair-sur-fonce); border-color: var(--encre); min-height: 48px; padding: 0 36px; }
.bouton--plein:hover { background: var(--survol); border-color: var(--survol); color: var(--clair-sur-fonce); }
.bouton[disabled] { opacity: .6; cursor: default; }

/* ---------- Démo d'animation ---------- */

.demo { margin: 32px auto 0; max-width: 1100px; display: flex; flex-direction: column; gap: 14px; }
.demo__video {
  position: relative; aspect-ratio: 16 / 9; max-width: 100%;
  background: var(--carte-animation);
  box-shadow: 0 24px 48px -30px rgba(31, 31, 31, .5);
}
.demo__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo__legende { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.demo__titre { margin: 0; font-family: var(--police-titre); font-weight: 400; font-size: 28px; line-height: 1.2; }
.demo__description { margin: 0; flex-basis: 100%; color: var(--texte); }
.demo__lien { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--texte); }

/* ---------- Boutique ---------- */

.section-boutique { margin-top: 32px; }
.section-boutique + .section-boutique {
  margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--ligne);
}
.titre-section {
  margin: 0 0 6px;
  font-family: var(--police-titre); font-weight: 400; font-size: 30px; line-height: 1.2;
}
.intro-section { margin: 0 0 28px; font-size: 14px; line-height: 1.5; color: var(--texte); }

.grille-originaux {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 40px 32px; align-items: start;
}
.grille-imprimes {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px; align-items: start;
}

.produit { display: flex; flex-direction: column; gap: 14px; }
.produit__visuel {
  aspect-ratio: 1 / 1; overflow: hidden; position: relative;
}
.produit__visuel img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .9s var(--douceur);
}
.produit:hover .produit__visuel img { transform: scale(1.04); }
.produit__infos { display: flex; flex-direction: column; gap: 6px; }
.produit__titre {
  margin: 0; font-family: var(--police-titre); font-weight: 400; font-size: 24px; line-height: 1.2;
}
.produit__details { margin: 0; font-size: 13px; color: var(--texte); }
.produit__ligne {
  display: flex; align-items: center; justify-content: space-between; margin-top: 2px;
}
.produit__prix { font-size: 15px; }
.produit--vendue .produit__prix { color: var(--texte); }
.produit--vendue .produit__visuel { filter: grayscale(.35); }
.statut {
  padding: 3px 10px; border: 1px solid var(--encre);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.statut--vendue { border-color: transparent; background: var(--carte-peinture); color: var(--texte); }
.produit .bouton { align-self: flex-start; }

.imprime { display: flex; flex-direction: column; gap: 10px; }
.imprime .produit__visuel { box-shadow: inset 0 0 0 1px var(--ligne); }
.imprime__nom { font-size: 14px; }
.imprime__prix { font-size: 13px; color: var(--texte); }

.note-boutique { margin-top: 40px; }
.note-boutique h3 {
  margin: 0 0 8px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.note-boutique p { margin: 0; max-width: 640px; font-size: 13px; line-height: 1.6; color: var(--texte); }

/* ---------- À propos ---------- */

.a-propos {
  display: flex; flex-wrap: wrap; gap: 40px 56px; margin-top: 40px; align-items: flex-start;
}
.a-propos__texte { flex: 1 1 420px; min-width: 0; max-width: 640px; display: flex; flex-direction: column; gap: 36px; }
.a-propos .a-propos__intro {
  margin: 0; font-family: var(--police-titre); font-weight: 400; font-size: 34px; line-height: 1.3; color: var(--encre);
}
.a-propos h2 {
  margin: 0 0 10px; font-family: var(--police-titre); font-weight: 500; font-size: 30px;
}
.a-propos p { margin: 0; color: var(--texte); }
.a-propos__paragraphes { display: flex; flex-direction: column; gap: 16px; }
.a-propos p { font-size: 17px; line-height: 1.7; }
.a-propos__citation {
  margin: 0; padding: 4px 0 4px 24px;
  border-left: 1px solid var(--encre);
}
.a-propos .a-propos__citation p {
  font-family: var(--police-titre); font-style: italic; font-weight: 400;
  font-size: 27px; line-height: 1.4; color: var(--encre);
}
.a-propos__photo { flex: 1 1 380px; max-width: 520px; }
@media (min-width: 901px) { .a-propos__photo { position: sticky; top: 40px; } }
.a-propos__photo img { width: 100%; height: auto; }
.rangee-liens { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.lien-icone {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.lien-icone svg { stroke: currentColor; }

/* ---------- Contact ---------- */

.contact {
  display: flex; flex-wrap: wrap; gap: 48px; margin-top: 40px; align-items: flex-start;
}
.formulaire {
  flex: 1 1 400px; min-width: 0; max-width: 640px;
  display: flex; flex-direction: column; gap: 20px;
}
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--texte);
}
.champ input, .champ textarea {
  min-height: 48px; padding: 0 14px;
  background: var(--fond-menu); border: 1px solid var(--separateur); border-radius: 0;
  font: inherit; font-size: 15px; color: var(--encre);
  transition: border-color .2s, background .2s;
}
.champ textarea { min-height: 160px; padding: 12px 14px; resize: vertical; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--encre); background: #fff; }
.champ__aide { font-size: 12px; color: var(--texte); }
.champ--piege { position: absolute; left: -9999px; }
.formulaire .bouton { align-self: flex-start; margin-top: 8px; }
.message-envoi { margin: 0; font-size: 14px; }
.message-envoi--erreur { color: #8A2B1F; }

.coordonnees { flex: 0 1 280px; display: flex; flex-direction: column; gap: 28px; }
.coordonnees h2 {
  margin: 0 0 6px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.coordonnees a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; }
.coordonnees a svg { stroke: currentColor; }
.coordonnees p { margin: 0; font-size: 13px; color: var(--texte); }

/* ---------- Visionneuse (lecture complète / grande image) ---------- */

.visionneuse {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--visionneuse); color: var(--clair-sur-fonce);
}
.visionneuse::backdrop { background: rgba(26, 25, 23, .9); }
.visionneuse[open] { display: flex; flex-direction: column; animation: fondu .35s ease both; }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }

.visionneuse__entete {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 48px; padding: 24px 40px 0;
}
.visionneuse a, .visionneuse button { color: var(--clair-sur-fonce); }
.visionneuse__fermer {
  display: flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 8px;
  background: none; border: 0; cursor: pointer;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.visionneuse__fermer svg, .visionneuse__fleche svg { stroke: currentColor; }
.visionneuse__etiquette { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--discret-sur-fonce); }

.visionneuse__scene {
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center; gap: 32px;
  padding: 16px 40px 32px;
}
.visionneuse__fleche {
  flex: none;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: none; border: 1px solid var(--discret-sur-fonce); border-radius: 50%;
  cursor: pointer; transition: background .25s, border-color .25s;
}
.visionneuse__fleche:hover { background: rgba(244, 241, 239, .1); border-color: var(--clair-sur-fonce); }
.visionneuse__fleche[hidden] { visibility: hidden; display: flex; }

.visionneuse__corps {
  width: min(1000px, 100%); max-height: 100%;
  display: flex; flex-direction: column; gap: 16px;
  overflow-y: auto;
}
.visionneuse__media { display: flex; justify-content: center; }
.visionneuse__media video { width: 100%; aspect-ratio: 16 / 9; background: var(--carte-animation); }
.visionneuse__media img { max-height: 68vh; width: auto; }
.visionneuse__media .emplacement { width: 100%; }
.visionneuse__titre {
  margin: 0; font-family: var(--police-titre); font-weight: 300; font-size: 34px; line-height: 1.1;
}
.visionneuse__details { margin: 0; font-size: 13px; color: var(--discret-sur-fonce); }
.visionneuse__description { margin: 0; max-width: 720px; line-height: 1.6; color: var(--discret-sur-fonce); }
.visionneuse__lien {
  align-self: flex-start; font-size: 14px; color: var(--clair-sur-fonce);
  border-bottom: 1px solid var(--discret-sur-fonce); padding-bottom: 2px;
}
.visionneuse__lien:hover { color: var(--discret-sur-fonce); }
.visionneuse__boutique {
  align-self: flex-start;
  border-color: var(--clair-sur-fonce); color: var(--clair-sur-fonce);
}
.visionneuse__boutique:hover { background: var(--clair-sur-fonce); color: var(--encre); }

body.verrouille { overflow: hidden; }

/* ==========================================================
   Téléphone et petite tablette
   ========================================================== */

@media (max-width: 900px) {
  .site { display: block; }

  .menu-lateral { display: none; }

  .entete-mobile {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between;
    height: 72px; padding: 0 8px 0 16px;
    background: var(--fond-menu);
  }
  .entete-mobile .marque { flex-direction: row; gap: 12px; text-align: left; min-height: 44px; }
  .entete-mobile .marque__logo { width: 36px; }
  .entete-mobile .marque__textes { gap: 4px; }
  .entete-mobile .marque__nom { font-size: 24px; }
  .entete-mobile .marque__sous-titre { font-size: 9px; }

  /* Menu plein écran */
  .menu-mobile {
    position: fixed; inset: 0; z-index: 30;
    display: flex; flex-direction: column;
    background: var(--fond-menu);
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility 0s linear .3s;
  }
  .menu-mobile.ouvert { opacity: 1; visibility: visible; transition: opacity .3s; }
  .menu-mobile .entete-mobile { position: static; }
  .menu-mobile nav {
    flex: 1; padding: 24px 24px 32px;
    display: flex; flex-direction: column;
  }
  .menu-mobile .navigation li {
    opacity: 0; transform: translateY(10px);
    transition: opacity .4s, transform .4s var(--douceur);
  }
  .menu-mobile.ouvert .navigation li { opacity: 1; transform: none; }
  .menu-mobile.ouvert .navigation li:nth-child(2) { transition-delay: .04s; }
  .menu-mobile.ouvert .navigation li:nth-child(3) { transition-delay: .08s; }
  .menu-mobile.ouvert .navigation li:nth-child(4) { transition-delay: .12s; }
  .menu-mobile.ouvert .navigation li:nth-child(5) { transition-delay: .16s; }
  .menu-mobile.ouvert .navigation li:nth-child(6) { transition-delay: .2s; }
  .menu-mobile .navigation a { min-height: 56px; font-size: 14px; }
  .menu-mobile .menu-pied { margin-top: auto; }

  .contenu { padding: 24px 16px 40px; }
  .titre-page { font-size: 28px; margin-bottom: 4px; }
  .filtres { gap: 0 4px; font-size: 11px; letter-spacing: .1em; }
  .galerie { columns: 1; margin-top: 20px; }
  .oeuvre { margin-bottom: 20px; }

  .visionneuse__entete { padding: 12px 16px 0; }
  .visionneuse__scene { padding: 8px 16px 24px; gap: 0; flex-direction: column; align-items: stretch; }
  .visionneuse__fleche { display: none; }
  .visionneuse__navigation-mobile { display: flex; }
  .visionneuse__titre { font-size: 28px; }
  .visionneuse__media img { max-height: 60vh; }
  .visionneuse__image.panneaux { height: auto; max-height: 60vh; gap: 12px; }
  .visionneuse__image.panneaux img { flex: 1 1 0; width: auto; height: auto; min-width: 0; }
}

@media (min-width: 901px) {
  .menu-mobile { display: none; }
  .visionneuse__navigation-mobile { display: none; }
}

.visionneuse__navigation-mobile {
  justify-content: space-between; gap: 12px; margin-top: 8px;
}
.visionneuse__navigation-mobile button {
  flex: 1; min-height: 48px;
  background: none; border: 1px solid var(--discret-sur-fonce); cursor: pointer;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}

/* Consigne différente souris / écran tactile */
.texte-tactile { display: none; }
@media (hover: none) {
  .texte-souris { display: none; }
  .texte-tactile { display: inline; }
}

/* Les personnes qui préfèrent moins de mouvement */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
