/* ============================================================
   Le Pincelier — feuille de style publique
   Palette tirée des matières de l'atelier :
   rouge griotte (faux-marbre), vert-de-gris (patines), plâtre chaulé.
   ============================================================ */

:root {
  --plaster:   #e8e2d4;   /* fond, plâtre chaulé */
  --plaster-2: #ded6c4;   /* panneau légèrement plus profond */
  --white:     #f6f2e9;   /* surfaces claires */
  --ink:       #241f1b;   /* texte principal */
  --ink-soft:  #5a524a;   /* texte secondaire */
  --oxblood:   #6b2733;   /* accent principal (marbre griotte) */
  --oxblood-d: #521c26;
  --verdigris: #567567;   /* accent secondaire (patine) */
  --gilt:      #9c7530;   /* filets fins, petits repères */
  --line:      #cdc4b2;   /* hairlines */
  --line-soft: #d8d0bf;

  --maxw: 1220px;
  --gap: clamp(1rem, 3vw, 2.4rem);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow: 0 18px 40px -24px rgba(36, 31, 27, .55);
}

/* ---------- reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--oxblood); text-decoration: none; }
a:hover { color: var(--oxblood-d); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; letter-spacing: .3px; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
p  { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }

/* section title with a hand-painted underline used ONCE per heading */
.eyebrow {
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--verdigris);
  margin: 0 0 .9rem;
  font-weight: 700;
}

/* ---------- boutons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .95rem;
  padding: .8em 1.7em;
  border: 1px solid var(--oxblood);
  color: var(--oxblood);
  background: transparent;
  border-radius: 1px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.btn:hover { background: var(--oxblood); color: var(--white); }
.btn--solid { background: var(--oxblood); color: var(--white); }
.btn--solid:hover { background: var(--oxblood-d); border-color: var(--oxblood-d); color: var(--white); }

/* ============================================================
   En-tête / navigation
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--plaster) 92%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 1rem;
}
.brand { display: flex; align-items: baseline; gap: .6rem; }
.brand__name {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.7rem; color: var(--ink); line-height: 1;
}
.brand__sub {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--verdigris); font-weight: 700;
}
.nav { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); align-items: center; }
.nav a {
  color: var(--ink); font-weight: 600; font-size: .96rem;
  padding: .3em 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--oxblood); transition: width .22s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--oxblood); }

.nav-toggle { display: none; border: 0; background: none; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--plaster); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .nav.open { max-height: 340px; }
  .nav a { padding: .95rem var(--gap); border-top: 1px solid var(--line-soft); }
  .nav a::after { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; }
.hero__media { position: relative; height: clamp(420px, 76vh, 760px); overflow: hidden; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36,31,27,.12) 0%, rgba(36,31,27,.10) 45%, rgba(36,31,27,.62) 100%);
}
.hero__caption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: clamp(1.6rem, 5vw, 3.4rem) 0;
  color: var(--white); z-index: 2;
}
.hero__caption .wrap { display: block; }
.hero__title { color: var(--white); margin: 0; font-size: clamp(3rem, 8vw, 6rem); }
.hero__tagline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem); color: #f0e9da; margin-top: .3rem;
  max-width: 40ch;
}
.hero__cta { margin-top: 1.6rem; display: flex; gap: .9rem; flex-wrap: wrap; }
.hero__cta .btn { border-color: var(--white); color: var(--white); }
.hero__cta .btn:hover { background: var(--white); color: var(--ink); }
.hero__cta .btn--solid { background: var(--white); color: var(--ink); border-color: var(--white); }
.hero__cta .btn--solid:hover { background: transparent; color: var(--white); }

.fade-up { opacity: 0; transform: translateY(14px); animation: fadeUp .8s ease forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade-up { animation: none; opacity: 1; transform: none; } }

/* ============================================================
   Sections génériques
   ============================================================ */
.section { padding-block: clamp(3.4rem, 8vw, 6rem); }
.section--tint { background: var(--plaster-2); }
.section__head { max-width: 60ch; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section__head p { color: var(--ink-soft); font-size: 1.1rem; }

.lede { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.45; color: var(--ink); }

/* ============================================================
   Les univers (entrées de galerie) — traitement éditorial asymétrique
   ============================================================ */
.univers { display: grid; gap: clamp(1.4rem, 3vw, 2.4rem); }
@media (min-width: 820px) {
  .univers { grid-template-columns: 1.4fr 1fr; grid-auto-rows: 1fr; }
  .univers__item:first-child { grid-row: span 2; }
}
.univers__item {
  position: relative; overflow: hidden; display: block;
  background: var(--ink); min-height: 240px;
}
.univers__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.univers__item:hover img { transform: scale(1.04); }
.univers__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36,31,27,0) 40%, rgba(36,31,27,.7) 100%);
}
.univers__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(1.1rem, 2.6vw, 1.8rem); color: var(--white); }
.univers__cap h3 { color: var(--white); margin: 0; }
.univers__cap span { display: block; font-size: .85rem; color: #e7dfcf; margin-top: .25rem; letter-spacing: .04em; }
.univers__count { font-size: .8rem; color: #ddd3c1; }

/* ============================================================
   Grille d'œuvres (page galerie)
   ============================================================ */
.works {
  columns: 3 260px; column-gap: 1.1rem;
}
@media (max-width: 620px) { .works { columns: 2 150px; column-gap: .7rem; } }
.work {
  break-inside: avoid; margin-bottom: 1.1rem;
  display: block; position: relative; background: var(--white);
  border: 1px solid var(--line-soft); padding: 8px;
  box-shadow: var(--shadow); cursor: zoom-in;
}
.work img { width: 100%; }
.work__meta { padding: .6rem .3rem .2rem; }
.work__meta strong { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; display: block; }
.work__meta span { font-size: .82rem; color: var(--ink-soft); }

/* galerie : bandeau titre */
.gallery-head { padding-block: clamp(2.6rem, 6vw, 4rem) clamp(1.4rem, 3vw, 2rem); }
.gallery-head .back { font-size: .9rem; color: var(--verdigris); font-weight: 700; }
.gallery-head .back:hover { color: var(--oxblood); }

/* ============================================================
   Page artiste
   ============================================================ */
.artist { display: grid; gap: clamp(1.6rem, 4vw, 3rem); }
@media (min-width: 860px) { .artist { grid-template-columns: 5fr 6fr; align-items: start; } }
.artist__portrait { border: 1px solid var(--line); padding: 8px; background: var(--white); box-shadow: var(--shadow); }
.artist__body p { font-size: 1.08rem; }
.artist__body p:first-of-type::first-letter {
  font-family: var(--serif); font-size: 3.4em; line-height: .8; float: left;
  padding: .06em .12em 0 0; color: var(--oxblood);
}

/* ============================================================
   Contact
   ============================================================ */
.contact { display: grid; gap: clamp(1.6rem, 4vw, 3.2rem); }
@media (min-width: 820px) { .contact { grid-template-columns: 1fr 1.2fr; } }
.contact__info dt { font-weight: 700; color: var(--verdigris); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 1.2rem; }
.contact__info dd { margin: .2rem 0 0; font-size: 1.1rem; }
.socials { display: flex; gap: .7rem; margin-top: 1.6rem; flex-wrap: wrap; }
.socials a {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--line); padding: .55em 1em; color: var(--ink);
  font-weight: 600; font-size: .9rem; background: var(--white);
}
.socials a:hover { border-color: var(--oxblood); color: var(--oxblood); }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: .35rem; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font: inherit; padding: .75em .9em;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  border-radius: 1px;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--verdigris); outline-offset: 1px; border-color: var(--verdigris); }
.field textarea { min-height: 150px; resize: vertical; }

.alert { padding: .9em 1.1em; border-radius: 2px; margin-bottom: 1.4rem; font-size: .95rem; border: 1px solid; }
.alert--success { background: #eef3ee; border-color: var(--verdigris); color: #2f4d40; }
.alert--error   { background: #f6ecec; border-color: var(--oxblood); color: var(--oxblood-d); }

/* ============================================================
   Pied de page
   ============================================================ */
.site-footer {
  background: var(--ink); color: #cfc7ba; padding-block: clamp(2.4rem, 5vw, 3.4rem);
  margin-top: 0;
}
.site-footer a { color: #e7dfcf; }
.site-footer a:hover { color: var(--white); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.4rem 3rem; justify-content: space-between; align-items: flex-start; }
.site-footer .brand__name { color: var(--white); }
.site-footer small { color: #9a9186; }
.foot-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 17, 14, .94);
  display: none; align-items: center; justify-content: center;
  padding: 3vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 82vh; box-shadow: 0 30px 70px -20px rgba(0,0,0,.7); }
.lightbox__cap { position: absolute; bottom: 4vh; left: 0; right: 0; text-align: center; color: #efe7d8; font-family: var(--serif); font-size: 1.2rem; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: none; border: 0; color: #efe7d8; cursor: pointer;
  font-size: 2.4rem; line-height: 1; padding: .4rem .8rem;
}
.lightbox__close { top: 2vh; right: 2vw; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lightbox__nav--prev { left: 1vw; }
.lightbox__nav--next { right: 1vw; }
.lightbox__nav:hover, .lightbox__close:hover { color: #fff; }
