/* =====================================================================
   GALERIE ARC — feuille de style partagée
   Papier #FAF9F5 · Encre #16150F · Pierre #8C8776
   Mousse #35473A (accent) · Plâtre #ECE8DE · Terre cuite #A8562F
   Typo : Fraunces (display) · Work Sans (texte) · JetBrains Mono (cartels)
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;1,9..144,400&family=Work+Sans:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

@font-face{
  font-family:'Sadisco';
  src:url('assets/fonts/Sadisco-Demo.otf') format('opentype');
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

:root{
  --paper: #FFFFFF;
  --ink: #16150F;
  --stone: #8C8776;
  --moss: #35473A;
  --moss-soft: #4C6350;
  --plaster: #FAFAFA;
  --rust: #A8562F;
  --line: rgba(22,21,15,0.12);
  --max: 1180px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Work Sans', sans-serif;
  font-weight:400;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{
  font-family:'Sadisco', 'Fraunces', serif;
  font-weight:400;
  letter-spacing:-0.01em;
  margin:0;
}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
:focus-visible{outline:2px solid var(--moss); outline-offset:3px;}
.wrap{max-width:var(--max); margin:0 auto; padding:0 32px;}
@media (max-width:640px){ .wrap{padding:0 20px;} }

/* ---------- En-tête : logo centré au-dessus de la navigation ---------- */
.site-header{
  position:sticky; top:0; z-index:40;
  background:var(--paper);
  border-bottom:1px solid var(--line);
  padding:22px 20px 0;
}
.header-inner{
  max-width:var(--max); margin:0 auto;
  display:flex; flex-direction:column; align-items:center;
  position:relative;
  padding-bottom:16px;
}
.wordmark{
  font-family:'Sadisco', 'Fraunces', serif;
  font-size:68px;
  font-size:clamp(50px, 8vw, 84px);
  letter-spacing:0.03em;
  text-transform:uppercase;
  margin-bottom:6px;
}
.main-nav{
  display:flex; gap:28px; flex-wrap:wrap; justify-content:center;
}
.main-nav a{
  font-size:13px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--stone);
  padding:4px 2px;
  border-bottom:1px solid transparent;
  transition:color .15s, border-color .15s;
}
.main-nav a:hover, .main-nav a.active{
  color:var(--ink);
  border-bottom-color:var(--rust);
}
.nav-toggle{
  display:none;
  position:absolute; top:0; right:8px;
  background:none; border:none; cursor:pointer;
  font-family:'Work Sans', sans-serif; font-size:13px; letter-spacing:.04em;
  color:var(--ink);
}
@media (max-width:720px){
  .main-nav{
    display:none; flex-direction:column; gap:16px; align-items:center;
    padding-bottom:22px; width:100%;
  }
  .main-nav.open{display:flex;}
  .nav-toggle{display:block;}
}

/* Empile les grilles texte + photo à deux colonnes (About, Contact) sur mobile */
@media (max-width:760px){
  .two-col-stack{
    grid-template-columns:1fr !important;
    gap:32px !important;
  }
}

/* ---------- Sections génériques ---------- */
.section-tight{ padding:56px 0; }
.section-alt{ background:var(--paper); }
.eyebrow{
  font-size:12px; letter-spacing:.06em; color:var(--rust);
  font-family:'JetBrains Mono', monospace;
}
.section-head{
  display:flex; justify-content:space-between; align-items:baseline;
  gap:24px; margin-bottom:28px; flex-wrap:wrap;
}
.section-head h2{ font-size:clamp(24px,3vw,32px); }
.lede{ max-width:60ch; font-size:14px; line-height:1.35; color:#3a382e; }

/* ---------- Grille d'oeuvres / artistes ---------- */
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:28px 24px;
  max-width:var(--max);
  margin:0 auto;
  padding:0 32px;
  box-sizing:border-box;
}
@media (max-width:900px){ .gallery-grid{grid-template-columns:repeat(3,1fr); gap:24px 18px;} }
@media (max-width:640px){ .gallery-grid{padding:0 20px;} }
@media (max-width:560px){ .gallery-grid{grid-template-columns:repeat(2,1fr); gap:20px 14px;} }

.artwork{
  position:relative;
  background:var(--plaster);
  height:0;
  padding-bottom:100%; /* format carré */
  overflow:hidden;
  display:block;
  cursor:pointer;
}
.artwork.ratio-wide{ padding-bottom:50%; }   /* ratio 16:8, bannière d'accueil */
.artwork.ratio-banner{ padding-bottom:43.75%; } /* ratio 16:7, bannière exposition */
.art-surface{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:contain; /* l'œuvre entière reste visible, jamais recadrée */
  transition:transform .5s cubic-bezier(.2,.7,.2,1);
}
.artwork:hover .art-surface{ transform:scale(1.04); }

.static-caption{
  position:absolute; left:0; right:0; bottom:0;
  padding:14px 16px;
  font-size:13px; letter-spacing:.03em;
  background:linear-gradient(0deg, rgba(0,0,0,.35), transparent);
  color:#fff;
}
@media (min-width:561px){
  .static-caption{ display:none; }
}

/* Légende permanente sous chaque visuel (home page), comme sur Prima */
.artwork-item{ display:block; }
.tile-caption{
  margin-top:12px;
  font-size:14px;
  color:var(--ink);
  font-family:'Work Sans', sans-serif;
}

/* Cartel mural qui suit le curseur (élément signature) */
.wall-label{
  position:fixed;
  pointer-events:none;
  z-index:60;
  background:var(--ink);
  color:var(--paper);
  padding:10px 14px;
  font-family:'JetBrains Mono', monospace;
  font-size:11.5px;
  line-height:1.5;
  max-width:240px;
  opacity:0;
  transform:translate(-50%, 12px);
  transition:opacity .12s ease;
  border:1px solid rgba(255,255,255,.12);
}
.wall-label.visible{ opacity:1; }
.wall-label .wl-artist{ color:var(--paper); font-weight:500; }
.wall-label .wl-meta{ color:var(--stone); }
@media (max-width:560px){ .wall-label{ display:none; } }

/* ---------- Pied de page ---------- */
.site-footer{
  border-top:1px solid var(--line);
  padding:48px 0 28px;
  font-size:13px;
  color:var(--stone);
}
.footer-grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:32px;
  margin-bottom:36px;
}
@media (max-width:720px){ .footer-grid{ grid-template-columns:1fr; gap:24px; } }
.footer-grid h3{
  font-family:'Work Sans', sans-serif; font-size:12px; letter-spacing:.06em;
  color:var(--ink); margin-bottom:10px; font-weight:500;
}
.footer-grid a{ display:block; padding:3px 0; }
.footer-grid a:hover{ color:var(--ink); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:12px;
  border-top:1px solid var(--line); padding-top:20px;
}
.footer-legal a{ margin-right:16px; }
.footer-legal a:hover{ color:var(--ink); }

/* ---------- Bandeau cookies ---------- */
.cookie-banner{
  position:fixed; left:20px; right:20px; bottom:20px; z-index:80;
  max-width:560px; margin:0 auto;
  background:var(--ink); color:var(--paper);
  padding:18px 20px; font-size:13px;
  display:flex; flex-wrap:wrap; align-items:center; gap:14px;
  transform:translateY(140%);
  transition:transform .4s ease;
}
.cookie-banner.visible{ transform:translateY(0); }
.cookie-banner p{ flex:1 1 260px; margin:0; color:#D9D6C9; }
.cookie-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.btn{
  font-family:'Work Sans', sans-serif; font-size:12.5px; letter-spacing:.03em;
  padding:8px 14px; border:1px solid currentColor; cursor:pointer;
  background:none; color:inherit;
}
.cookie-banner .btn-accept{ background:var(--paper); color:var(--ink); border-color:var(--paper); }
.cookie-banner .btn-text{ border:none; text-decoration:underline; padding:8px 4px; }

/* ---------- Fenêtres modales (cookies détaillés / newsletter) ---------- */
.modal-overlay{
  position:fixed; inset:0; background:rgba(22,21,15,.55); z-index:90;
  display:none; align-items:center; justify-content:center; padding:20px;
}
.modal-overlay.open{ display:flex; }
.modal{
  background:var(--paper); max-width:420px; width:100%;
  padding:32px; position:relative; max-height:86vh; overflow:auto;
}
.modal h2{ font-size:22px; margin-bottom:16px; }
.modal-close{
  position:absolute; top:14px; right:14px; background:none; border:none;
  font-size:18px; cursor:pointer; color:var(--stone);
}
.field{ margin-bottom:14px; }
.field label{ display:block; font-size:12px; color:var(--stone); margin-bottom:5px; }
.field input, .field textarea{
  width:100%; padding:10px 12px; border:1px solid var(--line);
  background:var(--paper); font-family:'Work Sans', sans-serif; font-size:14px;
}
.field textarea{ resize:vertical; min-height:110px; }
.cookie-option{
  display:flex; justify-content:space-between; align-items:flex-start;
  gap:16px; padding:12px 0; border-bottom:1px solid var(--line);
}
.cookie-option:last-of-type{ border-bottom:none; }
.cookie-option h3{ font-size:13px; margin-bottom:3px; }
.cookie-option p{ font-size:12.5px; color:var(--stone); margin:0; }

/* ---------- Boutons génériques ---------- */
.btn-primary{
  display:inline-block; background:var(--moss); color:var(--paper);
  padding:12px 22px; font-size:13px; letter-spacing:.03em; border:none; cursor:pointer;
  font-family:'Work Sans', sans-serif;
}
.btn-primary:hover{ background:var(--moss-soft); }
.btn-outline{
  display:inline-block; border:1px solid var(--ink); color:var(--ink);
  padding:11px 22px; font-size:13px; letter-spacing:.03em; background:none; cursor:pointer;
  font-family:'Work Sans', sans-serif;
}

/* ---------- Print shop ---------- */
.shop-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:36px 24px;
}
@media (max-width:900px){ .shop-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .shop-grid{ grid-template-columns:1fr; } }
.shop-card .frame{
  position:relative; width:100%; padding-bottom:100%;
  background:var(--plaster); overflow:hidden;
}
.shop-card .frame img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:contain;
}
.shop-title{
  font-size:16px; margin-top:14px; font-weight:400;
}
.shop-technique{ color:var(--stone); font-weight:400; }
.shop-artist{ margin:4px 0 0; font-size:14px; color:var(--ink); }
.shop-meta{ margin:2px 0 0; font-size:12.5px; color:var(--stone); }
.shop-buy{
  display:flex; align-items:center; justify-content:space-between;
  margin-top:14px; gap:12px;
}
.shop-price{ font-family:'JetBrains Mono', monospace; font-size:14px; }
.shop-buy .btn-primary{ padding:9px 16px; font-size:12.5px; }
.cart-link{ font-size:13px !important; letter-spacing:.06em; text-transform:uppercase; color:var(--stone); }
.cart-link:hover{ color:var(--ink); }
.see-more-btn{ display:block; margin-left:auto; margin-right:auto; }

/* ---------- Visionneuse (lightbox) ---------- */
.lightbox-overlay{
  position:fixed; inset:0; z-index:100;
  background:var(--plaster);
  display:none; align-items:center; justify-content:center;
  padding:70px 70px 40px;
}
.lightbox-overlay.open{ display:flex; }
.lightbox-content{
  display:flex; align-items:center; gap:110px;
  max-width:1400px; width:100%; height:100%;
}
.lightbox-info{
  flex:0 0 300px; max-width:300px;
}
.lightbox-artist{
  font-family:'Sadisco', 'Fraunces', serif; font-weight:400;
  font-size:28px; margin:0; color:var(--ink);
}
.lightbox-title{ font-size:15px; color:var(--ink); margin-top:18px; }
.lightbox-meta{ font-size:14px; color:var(--stone); margin-top:6px; line-height:1.5; }
.lightbox-more-label{
  font-size:12px; letter-spacing:.04em; color:var(--stone);
  margin-top:34px; margin-bottom:12px;
}
.lightbox-thumbs{ display:flex; flex-wrap:wrap; gap:8px; max-width:236px; }
.lightbox-thumbs img{
  width:56px; height:56px; object-fit:cover; cursor:pointer;
  opacity:.55; transition:opacity .15s;
  border:2px solid transparent;
}
.lightbox-thumbs img:hover{ opacity:.85; }
.lightbox-thumbs img.active{ opacity:1; border-color:var(--ink); }
.lightbox-stage{
  flex:1 1 auto; height:100%;
  display:flex; align-items:center; justify-content:center;
  min-width:0;
}
.lightbox-frame{
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--plaster);
  padding:28px;
  box-shadow:0 1px 3px rgba(22,21,15,.12);
  max-width:100%; max-height:100%;
}
.lightbox-stage img{
  max-width:100%; max-height:74vh; width:auto; height:auto;
  object-fit:contain; display:block;
}
.lightbox-close{
  position:absolute; top:24px; right:28px; z-index:2;
  background:none; border:none; color:var(--ink);
  font-size:20px; cursor:pointer;
}
.lightbox-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  background:none; border:none; color:var(--ink);
  font-size:24px; cursor:pointer; padding:12px;
}
.lightbox-prev{ left:20px; }
.lightbox-next{ right:20px; }
@media (max-width:900px){
  .lightbox-overlay{ padding:60px 20px 24px; }
  .lightbox-content{ flex-direction:column; gap:20px; overflow-y:auto; }
  .lightbox-info{ flex:0 0 auto; max-width:none; width:100%; order:2; }
  .lightbox-stage{ order:1; height:auto; max-height:50vh; }
  .lightbox-artist{ font-size:20px; }
  .lightbox-nav{ top:auto; bottom:16px; transform:none; }
  .lightbox-prev{ left:20px; }
  .lightbox-next{ right:20px; }
}
