/* =========================================================
   Christiane Colmagro — site statique
   Reconstruction 2026 d'après le thème "Cappucino" (2007)
   Palette d'origine conservée, mise en page modernisée / responsive
   ========================================================= */

:root {
  --brun:        #652817;   /* fond de page, liens */
  --brun-fonce:  #471304;   /* navigation, accents forts */
  --creme:       #f2f2e9;   /* encarts clairs */
  --creme-bord:  #e4e2d6;
  --texte:       #484338;   /* texte courant */
  --texte-doux:  #6f6a5d;
  --vert-gris:   #8f8f72;   /* titres secondaires (rappel #a8a894) */
  --blanc:       #ffffff;
  --max:         960px;
}

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

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

body {
  margin: 0;
  background: var(--brun);
  color: var(--texte);
  font: 100%/1.65 Verdana, Tahoma, Arial, sans-serif;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brun); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

/* ---------- Conteneur ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--blanc);
  min-height: 100vh;
  box-shadow: 0 0 40px rgba(0,0,0,.35);
}

/* ---------- En-tête / bandeau ---------- */
.site-header {
  background: var(--brun-fonce);
  color: var(--blanc);
  padding: 2.4rem 1.5rem 2.2rem;
  text-align: center;
  background-image:
    linear-gradient(135deg, rgba(0,0,0,.25), rgba(0,0,0,0) 60%),
    linear-gradient(0deg, var(--brun), var(--brun-fonce));
}
.site-header h1 {
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 3rem);
  letter-spacing: .04em;
  margin: 0;
}
.site-header h1 a { color: var(--blanc); }
.site-header h1 a:hover { text-decoration: none; opacity: .85; }
.site-header .baseline {
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: clamp(.85rem, 2.5vw, 1.05rem);
  letter-spacing: .25em;
  text-transform: uppercase;
  margin: .6rem 0 0;
  color: #e9dcd2;
}

/* ---------- Navigation ---------- */
.site-nav {
  background: var(--brun);
  border-top: 1px solid rgba(255,255,255,.08);
}
.site-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  color: #f3e7df;
  font-family: "Trebuchet MS", Tahoma, Verdana, sans-serif;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .85rem 1.15rem;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover,
.site-nav a:focus { background: rgba(0,0,0,.2); text-decoration: none; }
.site-nav a[aria-current="page"] {
  background: var(--blanc);
  color: #000;
  border-bottom-color: var(--brun-fonce);
}

/* ---------- Contenu ---------- */
main {
  padding: 2.4rem clamp(1.2rem, 4vw, 3rem) 2.6rem;
}
main h2 {
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--brun);
  margin: 0 0 .4rem;
}
main h3 {
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--vert-gris);
  margin: 2rem 0 .5rem;
}
main p { margin: 0 0 1.1rem; }
.lede { font-size: 1.1rem; color: var(--texte-doux); }

.rule {
  border: 0;
  height: 1px;
  background: var(--creme-bord);
  margin: 2.2rem 0;
}

.section-title {
  border-bottom: 2px solid var(--creme-bord);
  padding-bottom: .5rem;
  margin-bottom: 1.4rem;
}

/* ---------- Accueil : hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.hero figure { margin: 0; }
.hero figure img {
  width: 100%;
  border: 1px solid var(--creme-bord);
  padding: 6px;
  background: var(--creme);
}
.hero .intro h2 { font-size: 2.1rem; line-height: 1.2; }
.hero .intro .work-title { font-style: italic; color: var(--brun); }

.btn-row { margin-top: 1.4rem; }
.btn {
  display: inline-block;
  background: var(--brun-fonce);
  color: var(--blanc);
  padding: .6rem 1.1rem;
  border-radius: 2px;
  font-family: "Trebuchet MS", Tahoma, sans-serif;
  font-weight: 700;
}
.btn:hover { background: var(--brun); text-decoration: none; }

/* ---------- Galerie d'œuvres ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-top: 1.5rem;
}
.gallery figure {
  margin: 0;
  background: var(--creme);
  border: 1px solid var(--creme-bord);
  padding: 8px;
}
.gallery figcaption {
  font-size: .9rem;
  color: var(--texte-doux);
  padding: .6rem .2rem .2rem;
  line-height: 1.45;
}
.gallery figcaption strong { color: var(--texte); }

/* ---------- Présentation ---------- */
.bio { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; }
.bio img {
  width: 100%;
  border: 1px solid var(--creme-bord);
  padding: 6px;
  background: var(--creme);
}

/* ---------- Expositions ---------- */
.expo h3 { border-bottom: 1px solid var(--creme-bord); padding-bottom: .3rem; }
.expo ul { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.expo li {
  padding: .55rem 0;
  border-bottom: 1px dotted var(--creme-bord);
}
.expo .date { font-weight: 700; color: var(--brun); }
.expo .place { display: block; color: var(--texte-doux); }

/* ---------- Textes critiques ---------- */
.essay { max-width: 70ch; }
.essay h2 { margin-bottom: .2rem; }
.essay .author {
  font-style: italic;
  color: var(--texte-doux);
  margin-bottom: 1.6rem;
}
.essay .signature {
  text-align: right;
  font-style: italic;
  color: var(--texte-doux);
  margin-top: 1.4rem;
}
.essay blockquote {
  margin: 1.4rem 0;
  padding: .2rem 0 .2rem 1.2rem;
  border-left: 3px solid var(--vert-gris);
  color: var(--texte-doux);
  font-style: italic;
}
.toc { background: var(--creme); border: 1px solid var(--creme-bord); padding: 1rem 1.3rem; margin-bottom: 2rem; }
.toc ul { margin: .4rem 0 0; padding-left: 1.2rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.card {
  background: var(--creme);
  border: 1px solid var(--creme-bord);
  padding: 1.3rem 1.5rem;
}
.card h3 { margin-top: 0; }
.card a { font-weight: 700; }

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--brun-fonce);
  color: #d8c8bd;
  text-align: center;
  padding: 1.6rem 1.5rem;
  font-size: .85rem;
  line-height: 1.6;
}
.site-footer a { color: #f3e7df; text-decoration: underline; }
.site-footer .credits { margin-top: .6rem; color: #b7a395; font-size: .8rem; }

/* ---------- Hero slideshow (accueil) ---------- */
.slideshow {
  position: relative;
  width: 100%;
  height: clamp(260px, 44vw, 470px);
  background: #2a1206;
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* slide "bandeau" : frise de 4 œuvres (clin d'œil à la bannière Flash) */
.slide.bandeau { display: flex; gap: 4px; background: #2a1206; padding: 4px; }
.slide.bandeau figure { flex: 1; margin: 0; overflow: hidden; }
.slide.bandeau img { width: 100%; height: 100%; object-fit: cover; }

.slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,0));
  color: #fff;
  padding: 1.4rem 1.2rem .9rem;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: .95rem;
  letter-spacing: .02em;
}
.slide-caption em { font-style: italic; color: #f1e3d9; }

.slideshow-dots {
  position: absolute;
  right: 12px; bottom: 12px;
  display: flex; gap: 8px;
  z-index: 3;
}
.slideshow-dots button {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.85);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.slideshow-dots button[aria-current="true"] { background: #fff; }

/* ---------- Galerie par séries ---------- */
.series { margin: 0 0 2.6rem; }
.series-head {
  border-bottom: 2px solid var(--creme-bord);
  padding-bottom: .5rem;
  margin-bottom: 1.2rem;
}
.series-head h3 {
  color: var(--brun);
  margin: 0;
  font-size: 1.45rem;
}
.series-head .meta { color: var(--texte-doux); font-size: .92rem; }
.series-head p { margin: .5rem 0 0; max-width: 70ch; }

/* ---------- Visionneuse plein écran (lightbox) ---------- */
.gallery img { cursor: zoom-in; transition: transform .25s ease, filter .25s ease; }
.gallery figure { overflow: hidden; }
.gallery figure:hover img { transform: scale(1.03); filter: brightness(1.03); }

.lightbox {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
  z-index: 1000;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  width: auto; height: auto;
  object-fit: contain;
  box-shadow: 0 12px 60px rgba(0,0,0,.7);
  padding: 0; border: 0; background: none;
  cursor: default;
}
.lb-caption {
  color: #e8ddd4;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: .95rem;
  letter-spacing: .03em;
  padding: .9rem 1rem 0;
}
.lb-caption .lb-count { color: #9b8a7d; margin-left: .6rem; font-size: .85rem; }

.lb-btn {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  opacity: .8;
  transition: opacity .2s ease, color .2s ease;
  -webkit-user-select: none; user-select: none;
}
.lb-btn:hover, .lb-btn:focus { opacity: 1; color: #f0c9a8; outline: none; }
.lb-close { top: 14px; right: 22px; font-size: 2.4rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 3rem; padding: 1rem 1.2rem; }
.lb-prev { left: 6px; }
.lb-next { right: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .hero,
  .bio,
  .contact-grid { grid-template-columns: 1fr; }
  .bio img { max-width: 220px; }
  .site-nav a { padding: .7rem .85rem; font-size: .95rem; }
  .slide.bandeau figure:nth-child(n+3) { display: none; } /* 2 vignettes sur mobile */
  .lb-prev, .lb-next { font-size: 2.2rem; padding: .6rem .7rem; }
  .lb-close { font-size: 2rem; right: 14px; }
}
