/* silgato.com — feuille de style unique (remplace Elementor) */

@font-face {
  font-family: "Lexend";
  src: url("fonts/lexend-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lexend";
  src: url("fonts/lexend-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --noir: #2b2b2b;        /* texte principal (couleur « primary » d'origine) */
  --ardoise: #47585c;     /* accent : filet, onglet actif */
  --gris: #5f6368;        /* texte secondaire (assombri : contraste ≥ 4.5:1) */
  --gris-clair: #e6e6e6;
  --fond-champ: #2b2b2b;
  --largeur: 66rem;
  font-size: 100%;
}

*, *::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;
  font-family: "Lexend", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: var(--noir);
  background: #fff;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--ardoise); }
:focus-visible { outline: 3px solid var(--ardoise); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--noir); color: #fff; padding: .6rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

.wrap { width: min(100% - 2rem, var(--largeur)); margin-inline: auto; }

/* ---------- En-tête ---------- */
.site-header { text-align: center; padding-top: 1.25rem; }
.brand { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--noir); }
.brand img { width: 46px; height: auto; }
.brand-name { font-size: 2.6rem; font-weight: 400; line-height: 1.2; margin-top: .4rem; }
.brand-tagline { font-size: 1.05rem; font-weight: 400; }
.site-header hr { border: 0; border-top: 1px solid var(--ardoise); width: min(100% - 2rem, 61rem); margin: 1.4rem auto 0; }

.main-nav ul { list-style: none; margin: 0; padding: .9rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem; }
.main-nav a {
  display: block; padding: .6rem 1.1rem; text-decoration: none;
  font-size: 1.05rem; font-weight: 400; color: var(--gris);
  border-bottom: 3px solid transparent;
}
.main-nav a:hover { color: var(--ardoise); }
.main-nav a[aria-current="page"] { color: var(--ardoise); border-bottom-color: var(--ardoise); }

main { padding-block: 2.5rem 4rem; }
main:focus { outline: none; }

/* ---------- Accueil : bandeau ---------- */
.hero { position: relative; margin-top: 2.5rem; color: #fff; text-align: center; }
.hero img { width: 100%; height: min(78vh, 62rem); object-fit: cover; object-position: center 40%; }
.hero-text {
  position: absolute; inset: auto 0 0 0; padding: 6rem 1rem 3rem;
  /* contraste : texte ≥ 24 px sur fond assombri à 70 % + halo (ratio mini mesuré 4:1, seuil 3:1) */
  background: linear-gradient(transparent, rgba(0, 0, 0, .7) 45%);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
}
.hero h1 { margin: 0; font-size: clamp(2.6rem, 7vw, 4.5rem); font-weight: 400; line-height: 1.1; }
.hero p { margin: .4rem 0 0; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 400; }
.home main { padding-top: 0; }

/* ---------- Grille d'œuvres ---------- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 1.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.grid a { display: block; text-decoration: none; text-align: center; color: var(--gris); }
.grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity .2s; }
.grid a:hover img { opacity: .85; }
.grid .caption { display: block; margin-top: .9rem; font-size: 1.05rem; font-weight: 400; }
.section-title { text-align: center; font-size: 1.6rem; font-weight: 400; margin: 3rem 0 2rem; }
.more { text-align: center; margin-top: 2.5rem; }
.btn {
  display: inline-block; padding: .8rem 1.6rem; border: 1px solid var(--noir);
  text-decoration: none; font-weight: 400; background: #fff; color: var(--noir); cursor: pointer; font: inherit;
}
.btn:hover { background: var(--noir); color: #fff; }

/* ---------- Page d'une œuvre ---------- */
.artwork { text-align: center; }
.artwork figure { margin: 0; }
.artwork img { margin-inline: auto; max-height: 82vh; width: auto; }
.artwork h1 { font-size: 1.35rem; font-weight: 400; margin: 2rem 0 .5rem; }
.artwork-meta { margin: 0; color: var(--gris); }
.artwork-meta div { display: inline; }
.artwork-meta div + div::before { content: " · "; }
.artwork-meta dt { display: inline; }
.artwork-meta dd { display: inline; margin: 0; }
.artwork .description { max-width: 40rem; margin: 1.5rem auto 0; text-align: left; }
.zoom { display: inline-block; margin-top: 1rem; font-size: .95rem; color: var(--gris); }
.pager { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--gris-clair); }
.pager a { text-decoration: none; color: var(--gris); }
.pager a:hover { color: var(--ardoise); }

/* ---------- Textes courants ---------- */
.prose { max-width: 46rem; }
.prose p { margin: 0 0 1rem; }
h1.page-title { font-size: 1.9rem; font-weight: 600; margin: 0 0 2rem; }

/* ---------- Bio ---------- */
.bio { display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; max-width: 58rem; margin-inline: auto; }
.bio-portrait { background: url("../images/bio_BG.webp") center / cover no-repeat; min-height: 100%; }
.lang-switch { display: flex; gap: .25rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.lang-switch a { display: block; padding: .5rem 1.4rem; text-decoration: none; font-weight: 400; border-bottom: 3px solid transparent; color: var(--gris); }
.lang-switch a[aria-current="true"] { color: var(--ardoise); border-bottom-color: var(--ardoise); }
.bio section + section { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--gris-clair); }
.bio h2 { font-size: 1.15rem; font-weight: 600; margin: 0 0 1rem; }
@media (max-width: 40rem) {
  .bio { grid-template-columns: 1fr; }
  .bio-portrait { min-height: 9rem; background-position: center 30%; }
}

/* ---------- Expo & presse ---------- */
.expo h2 { font-size: 1.75rem; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; margin: 0 0 1.25rem; }
.expo section { padding-bottom: 2rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--gris-clair); }
.expo section:last-child { border-bottom: 0; }
.events { list-style: none; margin: 0; padding: 0; }
.events li { margin-bottom: 1.35rem; }
.event-head { display: flex; align-items: baseline; gap: .6rem; font-weight: 600; }
.event-head::after { content: ""; order: 2; flex: 1; border-bottom: 2px dotted var(--gris); min-width: 1.5rem; }
.event-title { order: 1; }
.event-date { order: 3; text-align: right; white-space: nowrap; }
.event-place { margin: .2rem 0 0; font-size: .9rem; color: var(--gris); }
@media (max-width: 40rem) {
  .event-head { flex-direction: column; gap: 0; }
  .event-head::after { display: none; }
  .event-date { order: 2; text-align: left; white-space: normal; font-weight: 400; color: var(--gris); }
}
.plain-list { margin: 0; padding-left: 1.2rem; color: var(--gris); }
.plain-list li { margin-bottom: .4rem; }
.press { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.press a { display: block; }
.press img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border: 1px solid var(--gris-clair); }

/* Visionneuse (dialog natif) */
.lightbox { border: 0; padding: 0; max-width: 96vw; max-height: 96vh; background: transparent; }
.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lightbox img { max-width: 96vw; max-height: 88vh; width: auto; margin-inline: auto; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: #fff; padding: .5rem 0; }
.lightbox-bar p { margin: 0; font-size: .9rem; }
.lightbox button { font: inherit; background: #fff; color: var(--noir); border: 0; padding: .4rem .9rem; cursor: pointer; }

/* ---------- Vidéos ---------- */
.videos { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; }
.videos figure { margin: 0; }
.videos figure:first-child { grid-column: 1 / -1; }
.videos video { width: 100%; background: #000; aspect-ratio: 16 / 9; }
.videos figcaption { margin-top: .5rem; color: var(--gris); font-size: .95rem; }
@media (max-width: 40rem) { .videos { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; max-width: 62rem; margin-inline: auto; }
.contact h1 { font-size: 1.6rem; font-weight: 700; line-height: 1.25; margin: 0 0 1rem; }
.contact h2 { font-size: 1.35rem; font-weight: 700; margin: 1.75rem 0 .2rem; }
.contact address { font-style: normal; }
.contact address a { text-decoration: none; letter-spacing: .03em; }
.contact address a:hover { text-decoration: underline; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 1px; background: #fff; }
.field { display: flex; flex-direction: column; background: var(--fond-champ); }
.field.full { grid-column: 1 / -1; }
.field label { color: #e8e8e8; font-size: .85rem; font-weight: 400; padding: .7rem 1.2rem 0; }
.field input, .field textarea {
  font: inherit; font-weight: 400; color: #fff; background: transparent; border: 0;
  padding: .35rem 1.2rem .9rem; width: 100%;
}
.field textarea { min-height: 16rem; resize: vertical; }
.field:focus-within { outline: 3px solid #fff; outline-offset: -6px; }
.field input:focus, .field textarea:focus { outline: none; }
.form button { grid-column: 1 / -1; font: inherit; font-weight: 600; padding: 1.1rem; border: 2px solid var(--noir); background: #efefef; color: var(--noir); cursor: pointer; }
.form button:hover { background: var(--gris-clair); }
.full { grid-column: 1 / -1; }
.form-intro { margin: 0 0 .6rem; font-size: .9rem; color: var(--gris); background: #fff; }
.hint { color: #d6d6d6; font-size: .8rem; padding: 0 1.2rem; }
.err { color: #ffd2cc; font-size: .9rem; font-weight: 600; padding: 0 1.2rem; }
.err:empty { display: none; }
.err:not(:empty) { padding-bottom: .7rem; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { box-shadow: inset 4px 0 0 #ff8a7a; }
.form-errors { background: #fff; border: 2px solid #b3261e; color: #8a1c15; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.form-errors[hidden] { display: none; }
.form-errors h2 { font-size: 1.05rem; margin: 0 0 .4rem; }
.form-errors ul { margin: 0; padding-left: 1.2rem; }
.form-errors a { color: inherit; }
.form-note { grid-column: 1 / -1; margin: .6rem 0 0; font-size: .85rem; color: var(--gris); }
.form-result { margin-top: 1rem; padding: 1rem; background: #f3f3f3; }
.form-result[hidden] { display: none; }
@media (max-width: 48rem) {
  .contact { grid-template-columns: 1fr; gap: 2rem; }
  .form { grid-template-columns: 1fr; }
}

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--gris-clair); padding: 1.5rem 0 2rem; text-align: center; color: var(--gris); font-size: .9rem; }
.site-footer p { margin: .25rem 0; }
.site-footer a { color: inherit; }
.footer-links { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.2rem; }
.sitemap ul { margin: .3rem 0 .6rem; }
.sitemap li { margin: .25rem 0; }
.prose h2 { font-size: 1.25rem; font-weight: 600; margin: 2rem 0 .6rem; }

/* ---------- Mobile : en-tête compact ---------- */
@media (max-width: 40rem) {
  .brand-name { font-size: 2rem; }
  .brand-tagline { font-size: .95rem; }
  .main-nav a { padding: .5rem .7rem; font-size: 1rem; }
  .hero { margin-top: 1.5rem; }
  .hero img { height: 60vh; }
}

/* Texte intégral des documents de presse (RGAA 1.6) */
.press-text { margin-top: .5rem; font-size: .9rem; }
.press-text summary { cursor: pointer; color: var(--ardoise); font-weight: 600; }
.press-text p { margin: .5rem 0; }

/* ---------- Menu mobile « hamburger » (accessible) ----------
   Sans JavaScript, le menu reste affiché en entier (le bouton garde l'attribut hidden).
   Avec JavaScript, en dessous de 48rem : bouton « Menu » visible, aria-expanded synchronisé. */
.menu-toggle { display: none; }
@media (max-width: 48rem) {
  .site-header { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 1rem; text-align: left; padding: .75rem 1rem 0; }
  .brand { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: center; }
  .brand img { grid-row: 1 / 3; width: 38px; }
  .brand-name { font-size: 1.7rem; margin: 0; line-height: 1.1; }
  .brand-tagline { font-size: .9rem; line-height: 1.3; }
  .site-header hr { grid-column: 1 / -1; width: 100%; margin-top: .75rem; }
  .main-nav { display: contents; }
  .main-nav ul { grid-column: 1 / -1; }

  .js-nav .menu-toggle {
    display: inline-flex; align-items: center; gap: .55rem; grid-column: 2; grid-row: 1;
    min-height: 44px; min-width: 44px; padding: .5rem .8rem;     /* cible tactile ≥ 44 px */
    font: inherit; font-weight: 600; color: #fff; background: var(--noir);
    border: 2px solid var(--noir); cursor: pointer;
  }
  .js-nav .menu-toggle:hover { background: var(--ardoise); border-color: var(--ardoise); }
  .js-nav .menu-toggle:focus-visible { outline: 3px solid var(--ardoise); outline-offset: 3px; }
  .menu-icon, .menu-icon::before, .menu-icon::after, .menu-icon span {
    display: block; width: 20px; height: 2px; background: currentColor; transition: transform .2s, opacity .2s;
  }
  .menu-icon { position: relative; background: none; height: 14px; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: 0; }
  .menu-icon span { position: absolute; top: 6px; left: 0; }
  .menu-icon::after { bottom: 0; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon span { opacity: 0; }

  .js-nav .main-nav ul { display: none; flex-direction: column; gap: 0; padding: .25rem 0 .75rem; }
  .js-nav .menu-toggle[aria-expanded="true"] + ul { display: flex; }
  .js-nav .main-nav a { padding: .8rem .25rem; border-bottom: 1px solid var(--gris-clair); border-left: 4px solid transparent; }
  .js-nav .main-nav a[aria-current="page"] { border-bottom-color: var(--gris-clair); border-left-color: var(--ardoise); padding-left: .75rem; }
}
@media (max-width: 48rem) and (prefers-reduced-motion: reduce) {
  .menu-icon::before, .menu-icon::after, .menu-icon span { transition: none; }
}
