/* ============================================================
   danielesandoz.com — direction « Blanc galerie »
   Le mur s'efface, les toiles rayonnent.
   Aucune webfont, aucun CDN — piles système uniquement.
   ============================================================ */

:root {
  /* Palette — calibrée sur les toiles */
  --craie:       #FAF8F3;
  --blanc:       #FFFFFF;
  --encre:       #26221C;
  --encre-2:     #665E52;
  --filet:       #E6E1D6;
  --garance:     #8C2332;
  --garance-spr: #741D2A;

  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua",
           Palatino, Georgia, "Times New Roman", serif;
  --sans:  Seravek, "Gill Sans Nova", "Gill Sans", Ubuntu, Calibri,
           "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --t-display: clamp(2.1rem, 1.4rem + 3vw, 3.25rem);
  --t-h2:      clamp(1.5rem, 1.25rem + 1vw, 1.9rem);
  --t-h3:      1.2rem;
  --t-petit:   .92rem;
  --t-etiquette: .82rem;

  --section:  clamp(3.4rem, 3rem + 4vw, 6rem);
  --interne:  clamp(1.75rem, 1.5rem + 1.5vw, 2.75rem);

  /* Ombre « accrochage » : la toile se détache à peine du mur */
  --ombre-toile: 0 1px 2px rgba(38, 34, 28, .10), 0 14px 34px -14px rgba(38, 34, 28, .22);
  --ombre-toile-hover: 0 1px 3px rgba(38, 34, 28, .12), 0 22px 44px -16px rgba(38, 34, 28, .30);
}

/* ---------- socle ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--craie);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.68;
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, figure, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--garance); color: var(--blanc); }
:focus-visible { outline: 2px solid var(--garance); outline-offset: 3px; border-radius: 1px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
h1 { font-size: var(--t-display); line-height: 1.12; letter-spacing: -.01em; }
h2 { font-size: var(--t-h2); line-height: 1.2; }
h3 { font-size: var(--t-h3); line-height: 1.3; }
p + p { margin-top: 1em; }

.evitement {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--encre); color: var(--craie); padding: .8rem 1.4rem; font-family: var(--sans);
}
.evitement:focus { left: 1rem; }

.lede { font-family: var(--serif); font-size: clamp(1.15rem, 1rem + .7vw, 1.4rem); line-height: 1.55; }

.surligne {
  display: block; font-family: var(--sans); font-size: var(--t-etiquette); font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--encre-2); margin-bottom: 1.1rem;
}

.lien-fleche {
  display: inline-block; font-family: var(--sans); font-weight: 600; text-decoration: none;
  color: var(--encre); padding: .5rem 0; border-bottom: 1px solid var(--encre);
  transition: color .18s ease, border-color .18s ease;
}
.lien-fleche:hover { color: var(--garance); border-color: var(--garance); }
.lien-fleche::after { content: " \2192"; }

/* ---------- entête : composition centrée de galerie ---------- */
.entete { text-align: center; padding-top: clamp(1.8rem, 4.5vw, 3.2rem); background: var(--craie); }
.entete-int { max-width: 72rem; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.marque { display: block; text-decoration: none; color: var(--encre); }
.marque-sous {
  display: block; font-family: var(--sans); font-size: var(--t-etiquette);
  letter-spacing: .3em; text-transform: uppercase; color: var(--encre-2); margin-bottom: .7rem;
}
.marque-nom {
  display: block; font-family: var(--serif);
  font-size: clamp(1.7rem, 1.3rem + 2vw, 2.5rem); line-height: 1.15; letter-spacing: .015em;
}
.marque:hover .marque-nom { color: var(--garance); }
.nav { margin-top: clamp(1.3rem, 3vw, 2.1rem); border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem clamp(.9rem, 2.5vw, 2.2rem); }
.nav a {
  display: inline-block; font-family: var(--sans); font-size: .95rem;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--encre);
  padding: .85rem .3rem; border-bottom: 2px solid transparent; transition: color .18s ease;
}
.nav a:hover { color: var(--garance); }
.nav a[aria-current="page"] { color: var(--garance); border-bottom-color: var(--garance); }
.nav-bouton { display: none; }

/* ---------- structure ---------- */
main { max-width: 72rem; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem) var(--section); }
.page-titre { padding: calc(var(--section) * .8) 0 calc(var(--section) * .55); text-align: center; }
.page-titre h1 { margin-bottom: .55rem; }
.page-compte {
  font-family: var(--sans); font-size: var(--t-etiquette); letter-spacing: .22em;
  text-transform: uppercase; color: var(--encre-2);
}

/* ---------- accrochage & cartels ---------- */
.toile, .oeuvre-lien, .hero-figure, .apropos-portrait {
  background: var(--blanc);
  box-shadow: var(--ombre-toile);
  transition: box-shadow .22s ease;
}
.cartel, .oeuvre figcaption { margin-top: 1rem; line-height: 1.45; text-align: center; }
.oeuvre-titre, .cartel-titre {
  display: block; font-family: var(--serif); font-style: italic; font-size: 1.05rem;
  color: var(--encre); transition: color .18s ease;
}
.oeuvre-dims, .cartel-info {
  display: block; margin-top: .2rem; font-family: var(--sans);
  font-size: var(--t-petit); letter-spacing: .05em; color: var(--encre-2);
}

/* ---------- accueil : héro éditorial ---------- */
.hero { padding: var(--section) 0 calc(var(--section) * .7); }
.hero-grille { display: grid; gap: var(--interne); align-items: center; }
@media (min-width: 800px) {
  .hero-grille { grid-template-columns: 1.05fr .95fr; gap: clamp(3rem, 6vw, 5.5rem); }
}
.hero-texte h1 { margin: 0; }
.hero-texte .lede { margin-top: 1.4rem; max-width: 30rem; font-style: italic; }
.hero-actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1.1rem 2rem; align-items: center; }
.hero-oeuvre { max-width: 23rem; margin: 0 auto; width: 100%; }
.hero-figure { padding: 0; }
@media (max-width: 799px) { .hero-texte { text-align: center; } .hero-texte .lede { margin-left: auto; margin-right: auto; } .hero-actions { justify-content: center; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 1.05rem; font-weight: 600; letter-spacing: .04em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  padding: .95rem 2rem; min-height: 3.25rem;
  background: var(--garance); color: var(--blanc); transition: background .18s ease;
}
.btn:hover { background: var(--garance-spr); }

/* ---------- accueil : entrées de galeries ---------- */
.accueil-galeries { padding: calc(var(--section) * .7) 0; border-top: 1px solid var(--filet); text-align: center; }
.accueil-galeries h2 {
  font-family: var(--sans); font-size: var(--t-etiquette); font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--encre-2);
}
.cartes-galeries {
  display: grid; gap: var(--interne); grid-template-columns: repeat(2, 1fr);
  align-items: start; margin-top: var(--interne);
}
@media (min-width: 800px) { .cartes-galeries { grid-template-columns: repeat(4, 1fr); gap: clamp(2rem, 4vw, 3rem); } }
@media (max-width: 480px) { .cartes-galeries { grid-template-columns: 1fr; max-width: 20rem; margin-left: auto; margin-right: auto; } }
.carte-galerie { display: block; text-decoration: none; color: inherit; }
.carte-galerie img { box-shadow: var(--ombre-toile); background: var(--blanc); transition: box-shadow .22s ease; }
.carte-galerie:hover img { box-shadow: var(--ombre-toile-hover); }
.carte-nom {
  display: block; margin-top: 1rem; font-family: var(--sans); font-size: .98rem;
  font-weight: 600; letter-spacing: .18em; text-transform: uppercase; transition: color .18s ease;
}
.carte-galerie:hover .carte-nom { color: var(--garance); }
.carte-compte {
  display: block; margin-top: .25rem; font-family: var(--serif); font-style: italic;
  font-size: var(--t-petit); color: var(--encre-2);
}

/* ---------- accueil : actualité & extrait bio ---------- */
.accueil-actu { padding: calc(var(--section) * .6) 0; border-top: 1px solid var(--filet); }
.accueil-actu h2 {
  font-family: var(--sans); font-size: var(--t-etiquette); font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--encre-2);
}
.actualite-ligne { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem; margin-top: 1.2rem; }
.actualite-titre { font-family: var(--serif); font-size: var(--t-h3); }
.actu-date {
  font-family: var(--sans); font-size: var(--t-petit); letter-spacing: .08em;
  text-transform: uppercase; color: var(--encre-2);
}

.accueil-apropos { padding: calc(var(--section) * .7) 0 0; border-top: 1px solid var(--filet); }
.bio-grille { display: grid; gap: var(--interne); align-items: center; }
@media (min-width: 720px) { .bio-grille { grid-template-columns: auto 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); } }
.bio-portrait { width: clamp(9rem, 20vw, 13rem); background: var(--blanc); box-shadow: var(--ombre-toile); }
.bio-citation { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); line-height: 1.5; max-width: 34rem; }
.bio-citation footer {
  margin-top: 1.1rem; font-family: var(--sans); font-style: normal; font-size: var(--t-petit);
  letter-spacing: .08em; text-transform: uppercase; color: var(--encre-2);
}

/* ---------- galerie : accrochage en colonnes ---------- */
.galerie { columns: 1; column-gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 600px) { .galerie { columns: 2; } }
@media (min-width: 960px) { .galerie { columns: 3; } }
.oeuvre { break-inside: avoid; margin: 0 0 clamp(2.75rem, 5vw, 4rem); }
.oeuvre-lien { display: block; padding: 0; }
.oeuvre-lien:hover { box-shadow: var(--ombre-toile-hover); }
.oeuvre:hover .oeuvre-titre { color: var(--garance); }
.galerie-vide { text-align: center; color: var(--encre-2); font-family: var(--serif); font-style: italic; margin: 3rem 0; }

/* ---------- visionneuse : salle blanche ---------- */
.visionneuse {
  position: fixed; inset: 0; z-index: 50; display: none;
  background: rgba(250, 248, 243, .97);
  align-items: center; justify-content: center;
}
.visionneuse.vis-ouverte { display: flex; }
body.vis-bloquee { overflow: hidden; }
.vis-figure { margin: 0; max-width: min(92vw, 66rem); text-align: center; }
.vis-figure img {
  max-height: 78vh; max-width: min(92vw, 66rem); width: auto; margin: 0 auto;
  background: var(--blanc); box-shadow: var(--ombre-toile-hover);
}
.vis-figure figcaption { margin-top: 1.3rem; }
.vis-titre { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--encre); }
.vis-dims { font-family: var(--sans); font-size: var(--t-petit); letter-spacing: .05em; color: var(--encre-2); }
.vis-compteur {
  position: fixed; top: 1.1rem; left: 1.4rem;
  font-family: var(--sans); font-size: var(--t-petit); letter-spacing: .12em; color: var(--encre-2);
}
.vis-fermer, .vis-prec, .vis-suiv {
  position: fixed; cursor: pointer; z-index: 51;
  display: flex; align-items: center; justify-content: center;
  color: var(--encre); background: var(--blanc); border: 1px solid var(--filet);
  transition: color .18s ease, border-color .18s ease;
}
.vis-fermer:hover, .vis-prec:hover, .vis-suiv:hover { color: var(--garance); border-color: var(--garance); }
.vis-fermer {
  top: .9rem; right: 1.1rem; font-family: var(--sans); font-size: 1rem; font-weight: 600;
  letter-spacing: .06em; padding: .8rem 1.1rem; min-height: 3rem;
}
.vis-prec, .vis-suiv {
  top: 50%; transform: translateY(-50%);
  width: 3.2rem; height: 3.2rem; border-radius: 50%; font-size: 1.9rem; line-height: 1;
}
.vis-prec { left: 1rem; }
.vis-suiv { right: 1rem; }
@media (max-width: 46rem) {
  .vis-figure img { max-height: 66vh; }
  .vis-prec, .vis-suiv { top: auto; bottom: 1.1rem; transform: none; }
  .vis-prec { left: 22%; } .vis-suiv { right: 22%; }
}

/* ---------- actualités ---------- */
.actus { max-width: 46rem; margin: 0 auto; }
.actu { border-top: 1px solid var(--filet); padding: 2.4rem 0; }
.actu:first-child { border-top: none; padding-top: 0; }
.actu h2 { font-size: var(--t-h3); margin: .3rem 0 .8rem; }
.actu:first-child h2 { font-size: var(--t-h2); }
.actu-badge {
  display: inline-block; font-family: var(--sans); font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--garance);
  border: 1px solid currentColor; border-radius: 2em; padding: .12em .8em; margin-left: .6em;
}
.actu-image img { margin: 1rem auto; background: var(--blanc); box-shadow: var(--ombre-toile); }
.actu-corps a { color: var(--garance); overflow-wrap: anywhere; }

/* ---------- à propos ---------- */
.apropos {
  display: grid; grid-template-columns: minmax(13rem, 17rem) 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem); max-width: 60rem; margin: 0 auto; align-items: start;
}
@media (max-width: 719px) { .apropos { grid-template-columns: 1fr; } .apropos-portrait { max-width: 15rem; margin: 0 auto; } }
.apropos-portrait { padding: 0; }
.apropos-texte { font-family: var(--serif); font-size: 1.06rem; }
.apropos-texte p { margin: 0 0 1.15em; }
.apropos-texte > p:first-child { font-size: 1.2rem; font-style: italic; }
.apropos-texte > p:first-child::first-letter {
  font-size: 3.1em; line-height: .82; float: left;
  padding: .07em .12em 0 0; color: var(--garance); font-style: normal;
}
.apropos-signature {
  font-family: var(--sans); font-size: var(--t-petit); font-style: normal;
  letter-spacing: .08em; text-transform: uppercase; color: var(--encre-2); margin-top: 1.8rem;
}

/* ---------- contact & formulaires ---------- */
.contact { max-width: 42rem; margin: 0 auto; }
.champ { margin: 0 0 1.5rem; }
.champ label { display: block; font-family: var(--sans); font-size: 1.02rem; font-weight: 600; margin-bottom: .5rem; }
.champ input, .champ textarea {
  width: 100%; font-family: var(--sans); font-size: 1.1rem; color: var(--encre);
  background: var(--blanc); border: 2px solid #8F8676; padding: .95rem 1.1rem;
}
.champ input:focus-visible, .champ textarea:focus-visible {
  outline: 2px solid var(--garance); outline-offset: 1px; border-color: var(--garance);
}
.champ-piege { position: absolute; left: -5000px; }
.bouton {
  font-family: var(--sans); font-size: 1.1rem; font-weight: 600; letter-spacing: .04em; cursor: pointer;
  background: var(--garance); color: var(--blanc); border: 1px solid transparent;
  padding: .95rem 2.2rem; min-height: 3.25rem; transition: background .18s ease;
}
.bouton:hover { background: var(--garance-spr); }
.message { background: var(--blanc); border: 1px solid var(--filet); border-left: 4px solid var(--garance); padding: 1rem 1.3rem; margin: 0 0 1.8rem; }
.message p { margin: .2rem 0; }
.message-succes { border-left-color: #3E6B41; }
.contact-coordonnees { margin-top: 3.2rem; border-top: 1px solid var(--filet); padding-top: 2rem; text-align: center; }
.contact-coordonnees h2 {
  font-family: var(--sans); font-size: var(--t-etiquette); font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--encre-2);
}
.contact-tel { margin-top: .8rem; }
.contact-tel a { font-family: var(--serif); font-size: 1.5rem; text-decoration: none; }
.contact-tel a:hover { color: var(--garance); }

/* ---------- liens ---------- */
.liens-liste { max-width: 42rem; margin: 0 auto; }
.lien-carte {
  display: grid; grid-template-columns: minmax(7rem, 9rem) 1fr; gap: 1.6rem;
  align-items: center; padding: 1.8rem 0; border-top: 1px solid var(--filet);
}
.lien-carte:first-child { border-top: none; padding-top: 0; }
@media (max-width: 480px) { .lien-carte { grid-template-columns: 1fr; } }
.lien-carte img { background: var(--blanc); box-shadow: var(--ombre-toile); }
.lien-carte h2 { font-size: var(--t-h3); margin-bottom: .15rem; }
.lien-role { font-family: var(--serif); font-style: italic; color: var(--encre-2); margin-bottom: .6rem; }

/* ---------- pied ---------- */
.pied { border-top: 1px solid var(--filet); }
.pied-int {
  max-width: 72rem; margin: 0 auto; padding: 1.8rem clamp(1.25rem, 4vw, 2.5rem) 2.4rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem;
  font-family: var(--sans); font-size: var(--t-petit); color: var(--encre-2); letter-spacing: .04em;
}
.pied a { color: inherit; text-decoration: none; padding: .3rem 0; display: inline-block; }
.pied a:hover { color: var(--garance); }
.pied p { margin: 0; }
.pied-liens { display: flex; gap: .8rem; align-items: baseline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
