/* Sylvie Menez — site d'atelier
   Mise en page : une œuvre à la fois, posée sur une ligne d'horizon ;
   fonds alternés ciel (perle) / estran (sable), pied de page ardoise. */
:root {
  --ciel: #e9ebea;        /* fond principal, gris perle */
  --estran: #e5e1d8;      /* fond alterné, gris sablé */
  --ardoise: #2b3238;     /* texte et pied de page */
  --galet: #545d63;       /* texte secondaire */
  --horizon: #9aa3a5;     /* traits fins */
  --ocre: #b07a2a;        /* accent, rochers du Finistère */
  --ocre-texte: #8a5a14;  /* accent lisible sur fond clair */
  --ecume: #f4f5f4;
  --gommette: #c8362b;   /* pastille rouge : œuvre vendue */       /* fond du visualiseur */

  --f-titre: "Jost", "Futura", "Century Gothic", sans-serif;
  --f-texte: "Newsreader", "Iowan Old Style", "Georgia", serif;
  --f-nom: "Cormorant Garamond", "Cormorant", "Garamond", "Georgia", serif;

  --gouttiere: clamp(16px, 5vw, 72px);
  --ombre: 0 1px 2px rgba(43, 50, 56, .08), 0 14px 22px -12px rgba(43, 50, 56, .38);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ciel);
  color: var(--ardoise);
  font-family: var(--f-titre);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* grain de papier très léger */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .06;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--ocre-texte); }
:focus-visible { outline: 2px solid var(--ocre); outline-offset: 4px; }
h1, h2, h3 { text-wrap: balance; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- petites capitales ---------- */
.etiquette {
  font-family: var(--f-titre);
  font-size: 12px; font-weight: 400;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--ocre-texte);
}
.lien-fleche {
  font-size: 15px; font-weight: 400; text-decoration: none;
  border-bottom: 1px solid var(--ocre);
  padding-bottom: 2px; align-self: flex-start;
}
.trait { width: 64px; height: 2px; background: var(--ocre); border: 0; margin: 0; }
.ligne { height: 1px; background: var(--horizon); border: 0; margin: 0 var(--gouttiere); }

/* ---------- en-tête ---------- */
.entete {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px 32px;
  padding: 24px var(--gouttiere);
}
.marque {
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; padding: 6px 0;
}
.menu { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.menu a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.menu a[aria-current="page"] { border-bottom-color: var(--ocre); }
.bouton-menu { display: none; }

@media (max-width: 900px) {
  .bouton-menu {
    display: inline-flex; align-items: center; gap: 10px;
    background: none; border: 1px solid var(--horizon); color: var(--ardoise);
    font: 400 12px var(--f-titre); letter-spacing: .22em; text-transform: uppercase;
    padding: 12px 16px; cursor: pointer;
  }
  .menu { display: none; order: 3; width: 100%; flex-direction: column; gap: 0; border-top: 1px solid var(--horizon); }
  .menu.ouvert { display: flex; }
  .menu a { padding: 14px 0; border-bottom: 1px solid rgba(154, 163, 165, .5); }
  .menu a[aria-current="page"] { color: var(--ocre-texte); border-bottom-color: rgba(154, 163, 165, .5); }
}

/* ---------- accueil ---------- */
.une {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 36px var(--gouttiere) 0;
}
.une figure { position: relative; margin: 0; max-width: 100%; }
.une figure::before {
  /* la ligne d'horizon traverse la page à hauteur de la mer du tableau */
  content: ""; position: absolute; z-index: -1;
  top: var(--hauteur-horizon, 55%); left: -100vw; right: -100vw;
  height: 1px; background: var(--horizon);
}
/* l'œuvre entière tient dans l'écran, jamais recadrée */
.une img {
  width: auto; max-width: 100%;
  max-height: calc(100vh - 330px); max-height: calc(100svh - 330px);
  min-height: 280px; object-fit: contain;
  box-shadow: var(--ombre);
}
.cartel-court { margin: 0; font-size: 14px; color: var(--galet); text-align: center; }
.cartel-court .titre { font-family: var(--f-texte); font-style: italic; font-size: 17px; color: var(--ardoise); }

.titre-artiste { padding: 24px var(--gouttiere) 0; text-align: center; }
.titre-artiste h1 {
  margin: 0; font-family: var(--f-nom); font-style: italic; font-weight: 300;
  font-size: clamp(38px, 4vw, 56px); line-height: 1;
}
.titre-artiste p { margin: 10px 0 0; font-family: var(--f-nom); font-size: clamp(19px, 1.8vw, 22px); color: var(--galet); letter-spacing: .04em; }

.chapeau { max-width: 760px; margin: 0 auto; padding: 80px var(--gouttiere) 112px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.chapeau p { margin: 0; font-family: var(--f-texte); font-size: clamp(22px, 2.4vw, 31px); line-height: 1.45; }

/* la frise qui suit la marée */
.rivage { background: var(--estran); padding-block: 88px 96px; }
.rivage-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 var(--gouttiere) 40px; }
.rivage-tete h2 { margin: 0; font-size: 14px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; }
.frise-cadre { overflow-x: auto; scrollbar-width: none; }
.frise-cadre::-webkit-scrollbar { display: none; }
.frise { display: inline-flex; align-items: flex-end; gap: 56px; padding: 0 var(--gouttiere) 8px; }
.frise button { all: unset; cursor: zoom-in; display: flex; flex-direction: column; gap: 12px; }
.frise img { height: 300px; width: auto; max-width: none; box-shadow: var(--ombre); }
.frise .petit img { height: 210px; }
.frise span { font-family: var(--f-texte); font-size: 18px; }
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .frise-cadre { overflow: hidden; }
  .frise { animation: maree 80s ease-in-out infinite alternate; }
  .frise-cadre:hover .frise, .frise-cadre:focus-within .frise { animation-play-state: paused; }
}
@keyframes maree { from { transform: translateX(0); } to { transform: translateX(calc(100vw - 100%)); } }
@media (max-width: 760px) { .frise img { height: 220px; } .frise .petit img { height: 150px; } .frise { gap: 32px; } }

.regards-tete { padding: 120px var(--gouttiere) 24px; text-align: center; }
.regards-tete h2 { margin: 0; font-size: 14px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; }
.regard {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 40px 80px; padding: 112px var(--gouttiere);
}
.regard.inverse { flex-direction: row-reverse; }
.regard img { box-shadow: var(--ombre); }
.regard .visuel { flex: 0 1 var(--largeur, 560px); min-width: 0; }
.regard .texte { flex: 0 1 340px; display: flex; flex-direction: column; gap: 12px; }
.regard .texte h3 { margin: 0; font-family: var(--f-texte); font-weight: 400; font-size: 38px; line-height: 1.15; }
.regard .texte p { margin: 0; color: var(--galet); }
.regard .lien-fleche { margin-top: 8px; }

/* ---------- page série ---------- */
.serie-tete { max-width: 840px; margin: 0 auto; padding: 88px var(--gouttiere) 56px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.serie-tete h1 { margin: 0; font-weight: 300; font-size: clamp(32px, 4.8vw, 64px); letter-spacing: .18em; text-transform: uppercase; line-height: 1.15; }
.serie-tete p { margin: 0; font-family: var(--f-texte); font-size: clamp(19px, 2vw, 22px); line-height: 1.55; color: #3d454b; max-width: 62ch; }
.compte { font-size: 14px; color: var(--galet); letter-spacing: .08em; }

.salle { background: var(--estran); padding-block: 112px 128px; }
.accrochage {
  max-width: 1200px; margin: 0 auto; padding: 0 var(--gouttiere);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: 112px 96px;
}
.oeuvre { margin: 0; }
.oeuvre button {
  all: unset; box-sizing: border-box; cursor: zoom-in; width: 100%;
  display: flex; flex-direction: column; gap: 20px;
}
.oeuvre button:focus-visible { outline: 2px solid var(--ocre); outline-offset: 10px; }
.oeuvre .mur { height: 440px; display: flex; align-items: flex-end; justify-content: center; }
.oeuvre img { max-height: 440px; width: auto; box-shadow: var(--ombre); transition: transform .5s ease; }
.oeuvre button:hover img { transform: translateY(-4px); }
.oeuvre figcaption, .oeuvre .legende { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.legende .titre { font-family: var(--f-texte); font-size: 22px; }
.legende .details { font-size: 14px; color: var(--galet); }
/* les triptyques photographiés sur fond blanc se fondent dans le mur */
img.sur-blanc { box-shadow: none !important; mix-blend-mode: multiply; }
@media (max-width: 600px) { .oeuvre .mur { height: auto; } .oeuvre img { max-height: 70vh; } .accrochage { gap: 72px; } }

.suite { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 56px var(--gouttiere); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; }
.suite a { text-decoration: none; }

/* ---------- démarche ---------- */
.demarche { display: flex; flex-wrap: wrap; gap: 56px 96px; justify-content: center; align-items: flex-start; padding: 72px var(--gouttiere) 120px; }
.demarche figure { margin: 0; flex: 0 1 460px; min-width: 0; }
.demarche figure img { box-shadow: var(--ombre); }
.demarche figcaption { margin-top: 14px; font-family: var(--f-texte); font-style: italic; color: var(--galet); }
.demarche .texte { flex: 1 1 420px; max-width: 620px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.demarche .texte h1 { margin: 0 0 8px; font-weight: 300; font-size: clamp(32px, 4vw, 52px); letter-spacing: .18em; text-transform: uppercase; line-height: 1.15; }
.demarche .texte p { margin: 0; font-family: var(--f-texte); font-size: 21px; line-height: 1.65; }
.demarche .texte .lettrine::first-letter { font-family: var(--f-titre); font-weight: 300; float: left; font-size: 72px; line-height: .9; padding: 6px 12px 0 0; color: var(--ocre-texte); }
.signature { font-family: var(--f-nom); font-style: italic; font-size: 30px; color: var(--galet); }

/* ---------- contact ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 56px 96px; justify-content: center; align-items: center; padding: 72px var(--gouttiere) 120px; }
.contact .texte { flex: 1 1 380px; max-width: 520px; display: flex; flex-direction: column; gap: 22px; }
.contact h1 { margin: 0; font-weight: 300; font-size: clamp(32px, 4vw, 52px); letter-spacing: .18em; text-transform: uppercase; line-height: 1.15; }
.contact .texte p { margin: 0; font-family: var(--f-texte); font-size: 21px; line-height: 1.6; }
.coordonnees { display: grid; grid-template-columns: max-content 1fr; gap: 14px 28px; margin: 12px 0 0; padding-top: 24px; border-top: 1px solid var(--horizon); }
.coordonnees dt { font-size: 12px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--ocre-texte); padding-top: 4px; }
.coordonnees dd { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.contact figure { margin: 0; flex: 0 1 440px; min-width: 0; }
.contact figure img { box-shadow: var(--ombre); }

/* ---------- pied de page ---------- */
.pied {
  background: var(--ardoise); color: var(--ciel);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 28px; padding: 64px var(--gouttiere);
}
.pied p { margin: 0; }
.pied .adieu { font-family: var(--f-texte); font-style: italic; font-size: 26px; }
.pied .lieu { font-size: 14px; letter-spacing: .08em; color: #c4cacc; margin-top: 4px; }
.pied a.bouton { color: var(--ciel); text-decoration: none; font-size: 13px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; border: 1px solid var(--ciel); padding: 16px 28px; }
.pied a.bouton:hover { background: var(--ciel); color: var(--ardoise); }
.mentions { background: var(--ardoise); color: #9aa3a5; font-size: 13px; padding: 0 var(--gouttiere) 32px; }

/* ---------- visualiseur (une œuvre en grand) ---------- */
.visionneuse {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ecume);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}
.visionneuse[hidden] { display: none; }
.visionneuse .barre { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px var(--gouttiere); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--galet); }
.visionneuse .scene { min-height: 0; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 clamp(8px, 2vw, 32px); }
.visionneuse .scene img { max-height: calc(100vh - 230px); max-height: calc(100dvh - 230px); max-width: min(100%, 1400px); width: auto; box-shadow: var(--ombre); transition: opacity .35s ease; }
.visionneuse .scene img.charge { opacity: 0; }
.visionneuse .cadre-image { min-width: 0; flex: 1 1 auto; display: flex; justify-content: center; }
.visionneuse .pied-cartel { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 24px; padding: 22px var(--gouttiere) 28px; text-align: center; }
.visionneuse .pied-cartel .titre { font-family: var(--f-texte); font-size: 26px; }
.visionneuse .pied-cartel .details { color: var(--galet); font-size: 15px; }
.rond {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--horizon); color: var(--ardoise); cursor: pointer;
}
.rond:hover { border-color: var(--ardoise); }
.rond svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
@media (max-width: 600px) {
  .visionneuse .scene .rond { display: none; } /* balayage du doigt sur téléphone */
  .visionneuse .scene img { max-height: calc(100dvh - 200px); }
}

/* toutes les œuvres cliquables : pas d'habillage de bouton */
button[data-grand] { all: unset; box-sizing: border-box; display: block; cursor: zoom-in; max-width: 100%; }
button[data-grand]:focus-visible { outline: 2px solid var(--ocre); outline-offset: 6px; }
.frise button[data-grand] { display: flex; flex-direction: column; gap: 12px; max-width: none; }
.oeuvre button[data-grand] { display: flex; flex-direction: column; gap: 20px; width: 100%; }

/* ---------- téléphone : rythme resserré ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .entete { padding-block: 18px; }
  .titre-artiste { padding-top: 16px; }
  .une { padding-top: 28px; }
  .chapeau { padding-top: 40px; }
  .une img { max-height: calc(100svh - 300px); min-height: 0; }
  .chapeau { padding-bottom: 64px; gap: 28px; }
  .rivage { padding-block: 56px 64px; }
  .rivage-tete { padding-bottom: 28px; }
  .regards-tete { padding-top: 72px; }
  .regard { padding-block: 64px; gap: 28px; }
  .regard .texte h3 { font-size: 30px; }
  .serie-tete { padding-block: 48px 40px; gap: 16px; }
  .salle { padding-block: 64px 72px; }
  .accrochage { gap: 64px; }
  .legende .titre { font-size: 20px; }
  .demarche, .contact { padding-block: 40px 72px; gap: 40px; }
  .demarche .texte p, .contact .texte p { font-size: 19px; }
  .coordonnees { grid-template-columns: 1fr; gap: 4px; }
  .coordonnees dd { margin-bottom: 14px; }
  .pied { padding-block: 48px; }
  .pied .adieu { font-size: 22px; }
  .visionneuse .pied-cartel { flex-direction: column; align-items: center; gap: 2px; }
  .visionneuse .scene img { max-height: calc(100dvh - 190px); }
}

/* pages à venir */
.bientot { padding-block: 120px 160px; }
.bientot .compte { letter-spacing: .24em; text-transform: uppercase; font-size: 12px; }

/* accueil : le nom est déjà dans la page, on le retire de l'en-tête */
.entete.accueil .marque { visibility: hidden; }

/* gommette rouge des œuvres vendues, comme en galerie */
.gommette {
  display: inline-block; width: .5em; height: .5em; min-width: 8px; min-height: 8px;
  margin-left: .45em; vertical-align: .14em;
  border-radius: 50%; background: var(--gommette);
}

/* titres de pages : même typographie que le nom de l'artiste */
.serie-tete h1, .demarche .texte h1, .contact h1 {
  font-family: var(--f-nom); font-style: italic; font-weight: 300;
  text-transform: none; letter-spacing: 0;
  font-size: clamp(42px, 4.8vw, 64px); line-height: 1.05;
}
.contact .courriel { overflow-wrap: anywhere; text-decoration-color: var(--ocre); text-underline-offset: 4px; }

/* --- corrections du 10 octobre --- */
/* titres de sections de l'accueil, même italique que le nom */
.rivage-tete h2, .regards-tete h2 {
  font-family: var(--f-nom); font-style: italic; font-weight: 300;
  text-transform: none; letter-spacing: 0; font-size: clamp(30px, 3vw, 40px); line-height: 1.1;
}
/* séries de l'accueil : nom de série en grand, œuvre en légende */
.regard .texte h3 { font-family: var(--f-nom); font-style: italic; font-weight: 300; font-size: clamp(40px, 4vw, 56px); line-height: 1.05; }
.regard .legende-oeuvre { margin: 0; font-size: 14px; color: var(--galet); }
.regard .legende-oeuvre .titre { font-family: var(--f-texte); font-style: italic; font-size: 17px; color: var(--ardoise); }
.regard .legende-oeuvre .indispo { display: block; margin-top: 4px; }
/* titres d'œuvres en italique */
.legende .titre, .frise .titre, .visionneuse .pied-cartel .titre { font-family: var(--f-texte); font-style: italic; }
.frise button[data-grand] { gap: 6px; }
.frise .titre { margin-top: 6px; }
/* mention « Œuvre non disponible » */
.indispo { font-family: var(--f-titre); font-size: 11px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--galet); }
.legende .indispo { margin-top: 4px; }
.visionneuse .pied-cartel .indispo { flex-basis: 100%; }
.visionneuse .pied-cartel .indispo[hidden] { display: none; }
.frise .indispo { font-family: var(--f-titre); font-size: 11px; }

/* page Expositions */
.expos { max-width: 860px; margin: 0 auto; padding: 24px var(--gouttiere) 120px; display: flex; flex-direction: column; gap: 80px; }
.expos-bloc h2 { margin: 0 0 8px; font-family: var(--f-nom); font-style: italic; font-weight: 300; font-size: clamp(30px, 3vw, 40px); }
.expos .annee { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 32px; padding: 22px 0; border-top: 1px solid var(--horizon); }
.expos .annee h3 { margin: 0; font-family: var(--f-nom); font-style: italic; font-weight: 300; font-size: 30px; line-height: 1; }
.expos ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.expos li { display: flex; flex-direction: column; gap: 1px; }
.expos .type { font-size: 11px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--ocre-texte); }
.expos .lieu { font-family: var(--f-texte); font-size: 19px; line-height: 1.35; }
@media (max-width: 600px) { .expos .annee { grid-template-columns: 1fr; } .expos { gap: 56px; } }
.expos .detail { font-size: 14px; color: var(--galet); }
.expos-bloc.prix { background: var(--estran); padding: 40px clamp(20px, 4vw, 48px) 24px; }
.expos-bloc.prix .annee:first-of-type { border-top-color: transparent; }
