/* reverdy.com — feuille unique. Charte reprise du kit Elementor d'origine. */
[hidden] { display: none !important; }
:root {
  --noir: #000;
  --nuit: #0d0c0b;
  --blanc: #fff;
  --creme: #faf8f4;
  --dore: #d8a645;
  --dore-clair: #e9c77f;
  --beige: #c4b7a6;
  --taupe: #7e665c;
  --orange: #ee7f00;
  --orange-fonce: #c96c02;
  --texte: #2e2b28;
  --texte-doux: #5d5750;
  --gris-clair: #b9b2a8;
  --titre: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --corps: Roboto, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --largeur: 1180px;
  --gouttiere: clamp(16px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--noir); color: var(--gris-clair); font: 400 1.0625rem/1.65 var(--corps); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--dore); }
a:hover { color: var(--dore-clair); }
:focus-visible { outline: 2px solid var(--dore); outline-offset: 3px; }
.evitement { position: absolute; left: -999px; top: 0; background: var(--dore); color: #000; padding: 8px 14px; z-index: 100; }
.evitement:focus { left: 8px; }
.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }
h1, h2, h3 { font-family: var(--titre); font-weight: 600; line-height: 1.15; color: var(--dore); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

/* ── Texture damassée de l'en-tête et du pied ── */
.texture { background: #000 url(/m/2022/07/reverdy-fond-site-1-1600.webp) center / cover; position: relative; }
.texture::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); pointer-events: none; }
.texture > * { position: relative; }

/* ── En-tête ── */
.entete { border-bottom: 1px solid var(--dore); position: sticky; top: 0; z-index: 50; }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.logo img { width: clamp(200px, 24vw, 300px); height: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: clamp(14px, 2.4vw, 36px); align-items: center; }
.nav a, .nav button { font: 500 1.25rem/1 var(--corps); color: #eee; text-decoration: none; background: none; border: 0; cursor: pointer; padding: 10px 0; letter-spacing: .01em; }
.nav a:hover, .nav button:hover, .nav [aria-current="page"], .nav .actif > button { color: var(--blanc); }
.nav [aria-current="page"], .nav .actif > button { box-shadow: inset 0 -2px 0 var(--dore); }
.nav .sous { position: relative; }
.nav .sous button::after { content: ''; display: inline-block; margin-left: 8px; border: 6px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.nav .sous ul { position: absolute; top: 100%; left: -16px; min-width: 260px; background: rgba(0, 0, 0, .95); border: 1px solid #3a332a; border-top: 2px solid var(--dore); padding: 8px 0; display: none; }
.nav .sous.ouvert ul { display: block; }
@media (hover: hover) and (min-width: 1000px) { .nav .sous:hover ul, .nav .sous:focus-within ul { display: block; } }
.nav .sous ul a { display: block; padding: 11px 18px; font-size: 1.05rem; }
.nav .sous ul a:hover { background: #1b1814; color: var(--dore); }
.burger { display: none; width: 46px; height: 46px; border: 1px solid #555; border-radius: 6px; background: rgba(0,0,0,.5); color: #fff; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 2px; background: currentColor; margin: 0 auto; position: relative; transition: transform .2s; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 999px) {
  .burger { display: block; }
  .entete .conteneur { min-height: 76px; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: rgba(0,0,0,.97); border-bottom: 1px solid var(--dore); display: none; max-height: calc(100vh - 76px); overflow: auto; }
  .nav.ouvert { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gouttiere) 18px; }
  .nav a, .nav button { display: block; width: 100%; text-align: left; padding: 15px 0; border-bottom: 1px solid #222; }
  .nav [aria-current="page"], .nav .actif > button { box-shadow: none; color: var(--dore); }
  .nav .sous ul { position: static; border: 0; background: none; padding: 0 0 0 16px; min-width: 0; }
  .nav .sous ul a { padding: 13px 0; }
}

/* ── Bandeau de titre ── */
.bandeau-titre { background: var(--noir); padding: 26px 0 14px; }
.bandeau-titre h1 { margin: 0; }
.fil { font-size: .9rem; color: #8d857b; margin: 0 0 6px; }
.fil a { color: #a59d92; text-decoration: none; }
.fil a:hover { color: var(--dore); }
.fil span[aria-hidden] { margin: 0 6px; }

/* ── Sections ── */
.section { padding: clamp(28px, 5vw, 56px) 0; }
.section.claire { background: var(--creme); color: var(--texte); }
.section.claire h2, .section.claire h3 { color: var(--orange-fonce); }
.section.claire a { color: var(--orange-fonce); }
.texte { max-width: 820px; }
.texte.large { max-width: none; }
.filigrane { position: relative; overflow: hidden; }
.filigrane::after { content: ''; position: absolute; right: -60px; top: 20px; width: min(640px, 70vw); aspect-ratio: 800/657; background: url(/m/2022/07/logo-pierre-reverdy-nicole-piel-tampon-beige-800px-960.webp) center / contain no-repeat; opacity: .14; pointer-events: none; }
.filigrane > * { position: relative; z-index: 1; }

/* ── Accueil ── */
.accueil { min-height: calc(100vh - 92px); background: #111 url(/m/2026/11/pierre-reverdy-coutelier-atelier-1600.webp) 70% 30% / cover no-repeat; display: flex; align-items: center; padding: 48px 0; }
.accueil-panneau { background: rgba(255, 255, 255, .92); color: var(--texte); max-width: 520px; padding: 34px 44px 26px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.accueil-panneau h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--texte); margin-bottom: .3em; }
.accueil-panneau .sous-titre { font-family: var(--titre); font-style: italic; font-size: 1.3rem; color: var(--orange-fonce); margin-bottom: 1.1em; }
.diapo { font-size: 1rem; line-height: 1.6; }
.diapo p:last-child { margin-bottom: 0; }
.diapo blockquote { margin: 0 0 1em; font-style: italic; }
.diapo .signature { font-family: var(--titre); font-size: 1.2rem; text-align: right; color: var(--orange-fonce); }
.diapos-nav { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.diapos-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--beige); background: #fff; color: var(--orange-fonce); font-size: 1.2rem; cursor: pointer; }
.diapos-nav button:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.diapos-nav .points { display: flex; gap: 8px; }
.diapos-nav .points span { width: 8px; height: 8px; border-radius: 50%; background: var(--beige); }
.diapos-nav .points span.actif { background: var(--orange); }
@media (max-width: 700px) {
  .accueil { display: block; min-height: 0; padding: 0; background-image: none !important; }
  .accueil .photo-mobile { display: block; aspect-ratio: 4/3; object-fit: cover; object-position: 72% 25%; width: 100%; }
  .accueil-panneau { max-width: none; box-shadow: none; padding: 26px var(--gouttiere) 30px; background: #fff; }
}
@media (min-width: 701px) { .accueil .photo-mobile { display: none; } }

/* ── Tuiles (rubriques) ── */
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(18px, 3vw, 40px); }
.tuile { text-decoration: none; text-align: center; display: block; }
.tuile img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .4s, filter .4s; }
.tuile .cadre { overflow: hidden; }
.tuile:hover img { transform: scale(1.04); filter: brightness(1.08); }
.tuile h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: .6em 0 0; color: var(--dore); }
.tuile .nb { display: block; font: 400 .9rem var(--corps); color: #8d857b; margin-top: 4px; }
.tuiles.deux { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ── Grille des œuvres ── */
.oeuvres { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.carte { position: relative; display: block; overflow: hidden; background: #111; text-decoration: none; }
.carte img { aspect-ratio: 3/2; object-fit: cover; width: 100%; transition: transform .5s; }
.carte:hover img { transform: scale(1.05); }
.carte .nom { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: rgba(0,0,0,.62); color: #fff; font: 500 1.3rem/1.2 var(--titre); text-align: center; }
.carte:hover .nom { color: var(--dore-clair); }
.vide { color: #8d857b; font-style: italic; }

/* ── Fiche œuvre ── */
.oeuvre-photo { background: #050505; }
.oeuvre-photo img { max-height: 78vh; width: auto; margin: 0 auto; }
.oeuvre-corps { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.oeuvre-corps .texte { max-width: 760px; }
.fiche { background: #fff; border-top: 3px solid var(--dore); padding: 22px 24px; font-size: .97rem; position: sticky; top: 110px; }
.fiche dl { margin: 0 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.fiche dt { color: var(--texte-doux); }
.fiche dd { margin: 0; color: var(--texte); font-weight: 500; }
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--orange); color: #fff !important; text-decoration: none; padding: 12px 20px; border: 0; border-radius: 3px; font: 500 1rem var(--corps); cursor: pointer; width: 100%; text-align: center; }
.bouton:hover { background: var(--orange-fonce); }
.bouton.secondaire { background: none; color: var(--orange-fonce) !important; border: 1px solid var(--orange); margin-top: 10px; }
.bouton.secondaire:hover { background: var(--orange); color: #fff !important; }
@media (max-width: 860px) { .oeuvre-corps { grid-template-columns: 1fr; } .fiche { position: static; } }
.oeuvre-video { margin-top: 28px; max-width: 760px; }
.oeuvre-video video { width: 100%; background: #000; }

/* galerie en mosaïque (colonnes) + visionneuse */
.galerie { columns: 4 240px; column-gap: 10px; }
.galerie a { display: block; margin-bottom: 10px; break-inside: avoid; overflow: hidden; background: #111; }
.galerie img { width: 100%; transition: transform .4s, opacity .3s; }
.galerie a:hover img { transform: scale(1.03); }
.visionneuse { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; }
.visionneuse img { max-width: 94vw; max-height: 86vh; width: auto; object-fit: contain; }
.visionneuse button { position: absolute; background: rgba(0,0,0,.5); color: #fff; border: 1px solid #555; border-radius: 50%; width: 48px; height: 48px; font-size: 1.5rem; cursor: pointer; }
.visionneuse button:hover { border-color: var(--dore); color: var(--dore); }
.visionneuse .fermer { top: 16px; right: 16px; }
.visionneuse .prec { left: 16px; top: 50%; transform: translateY(-50%); }
.visionneuse .suiv { right: 16px; top: 50%; transform: translateY(-50%); }
.visionneuse .compteur { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #aaa; font-size: .9rem; }

.voisins { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #2a2520; padding-top: 22px; margin-top: 10px; }
.voisins a { text-decoration: none; max-width: 48%; }
.voisins small { display: block; color: #8d857b; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.voisins span { font: 500 1.3rem var(--titre); }
.voisins .suivant { margin-left: auto; text-align: right; }
.section.claire .voisins { border-color: #e2dcd2; }

/* ── Presse ── */
.pays { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 34px 24px; text-align: center; max-width: 960px; margin: 0 auto; }
.pays a, .pays div { text-decoration: none; color: #fff; font: 400 1.6rem var(--corps); letter-spacing: .04em; }
.pays img { width: 54px; height: 40px; object-fit: cover; margin: 0 auto 14px; }
.pays .nb { display: block; font-size: .85rem; color: #8d857b; letter-spacing: 0; margin-top: 4px; }
.pays div { opacity: .45; }
.scans { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; align-items: start; }
.scans a { display: block; background: #fff; }

/* ── Parcours : frise ── */
.frise { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--beige); }
.frise li { position: relative; padding: 0 0 18px 26px; }
.frise li::before { content: ''; position: absolute; left: -7px; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); border: 2px solid var(--creme); }
.frise .an { font: 600 1.35rem/1.2 var(--titre); color: var(--orange-fonce); display: block; }
.frise li.suite::before { background: var(--beige); width: 8px; height: 8px; left: -5px; }

/* ── Formulaire ── */
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; max-width: 900px; margin-top: 26px; }
.formulaire .plein { grid-column: 1 / -1; }
.formulaire label { display: block; font-weight: 500; margin-bottom: 6px; color: var(--texte); }
.formulaire label .req { color: var(--orange-fonce); }
.formulaire input, .formulaire textarea { width: 100%; border: 1px solid #b9b0a3; background: #fff; border-radius: 3px; padding: 12px; font: inherit; color: var(--texte); }
.formulaire input:focus, .formulaire textarea:focus { border-color: var(--orange); outline: 2px solid rgba(238,127,0,.25); }
.formulaire textarea { min-height: 180px; resize: vertical; }
.formulaire .pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire .mention { font-size: .85rem; color: var(--texte-doux); }
.retour-form { padding: 14px 16px; border-radius: 3px; margin: 0; }
.retour-form.ok { background: #eef5e6; color: #3b5a17; }
.retour-form.erreur { background: #fbeaea; color: #8a2424; }
@media (max-width: 640px) { .formulaire { grid-template-columns: 1fr; } }

/* ── Pied ── */
.pied { border-top: 1px solid var(--dore); padding: 40px 0 0; }
.pied .conteneur { display: grid; grid-template-columns: 200px 1fr 1fr auto; gap: 30px 40px; align-items: start; }
.pied .logo-pied img { width: 130px; margin: 0 auto; }
.pied h2 { font: 600 1.5rem var(--titre); color: #aaa; margin: 0 0 8px; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li a { color: var(--dore); text-decoration: none; font: 600 1.25rem/1.45 var(--titre); }
.pied li a:hover { color: var(--dore-clair); }
.pied .insta { color: var(--dore); display: inline-block; padding: 6px; }
.pied .insta svg { width: 34px; height: 34px; }
.pied .bas { grid-column: 1 / -1; border-top: 1px solid #2a2520; padding: 14px 0 18px; font-size: .85rem; color: #8a8278; text-align: center; }
.pied .bas a, .pied .bas button { color: #a49c90; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.pied .bas a:hover, .pied .bas button:hover { color: var(--dore); }
@media (max-width: 860px) { .pied .conteneur { grid-template-columns: 1fr 1fr; text-align: center; } .pied .logo-pied, .pied .reseaux { grid-column: 1 / -1; } }
@media (max-width: 480px) { .pied .conteneur { grid-template-columns: 1fr; } }

/* ── Bannière de consentement ── */
.consentement { position: fixed; z-index: 150; left: 16px; bottom: 16px; max-width: 440px; background: #fff; color: var(--texte); padding: 22px 24px 20px; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.45); font-size: .95rem; }
.consentement h2 { font: 600 1.3rem var(--titre); color: var(--texte); margin: 0 0 8px; }
.consentement p { margin: 0 0 14px; line-height: 1.5; }
.consentement a { color: var(--orange-fonce); }
.consentement .choix { display: flex; gap: 10px; }
.consentement .choix button { flex: 1; padding: 11px 10px; border-radius: 3px; font: 500 .95rem var(--corps); cursor: pointer; border: 1px solid var(--orange); background: #fff; color: var(--orange-fonce); }
.consentement .choix button:hover { background: var(--orange); color: #fff; }
@media (max-width: 520px) { .consentement { left: 8px; right: 8px; bottom: 8px; max-width: none; } }

/* ── Divers ── */
.signature { text-align: right; font-family: var(--titre); font-style: italic; font-size: 1.3rem; }
.signature img { margin: 10px 0 0 auto; width: 70px; }
.centre { text-align: center; }
.mt { margin-top: 32px; }
.a-completer { background: #fff3cd; color: #6b4e00; padding: 0 4px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.visuel-masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.carte .nom small { font: 400 .9rem var(--corps); }
.bouton.court { width: auto; }

/* barre « Espace de gestion » (site.js) — seulement pour Pierre et l'agence */
.barre-gestion { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px; background: #151311; color: #e9dcc0; border: 1px solid #d8a645; border-radius: 999px; box-shadow: 0 8px 28px rgba(0,0,0,.45); font: 500 14px/1.2 Roboto, system-ui, sans-serif; max-width: calc(100vw - 24px); }
.barre-gestion span { white-space: nowrap; opacity: .8; }
.barre-gestion a { color: #f3d38a; text-decoration: none; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.barre-gestion a.principal { background: #d8a645; color: #151311; }
.barre-gestion a:hover, .barre-gestion a:focus-visible { background: #2c2824; color: #fff; }
.barre-gestion a.principal:hover { background: #f3d38a; color: #151311; }
.barre-gestion button { background: none; border: 0; color: #e9dcc0; font-size: 20px; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; }
.barre-gestion button:hover { background: #2c2824; }
body.avec-gestion { padding-bottom: 72px; }
@media (max-width: 560px) { .barre-gestion span { display: none; } .barre-gestion { padding-left: 6px; } }
body.avec-gestion .consentement { bottom: 76px; }

/* Menu : la rubrique de la page courante est allumée dans le sous-menu (aria-current page|location) */
.nav ul ul [aria-current] { color: var(--dore); box-shadow: inset 3px 0 0 var(--dore); }
@media (max-width: 999px) { .nav ul ul [aria-current] { box-shadow: none; } }

/* Œuvre précédente / suivante : aperçu de la vignette au survol ; sur écran tactile, toujours visible en petit */
.voisins a { position: relative; }
.voisins .apercu { display: block; }
.voisins .apercu img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (hover: hover) {
  .voisins .apercu { position: absolute; bottom: calc(100% + 12px); left: 0; width: 240px; aspect-ratio: 3/2; border: 1px solid var(--dore); background: #111; box-shadow: 0 10px 30px rgba(0,0,0,.5); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; pointer-events: none; z-index: 5; }
  .voisins .suivant .apercu { left: auto; right: 0; }
  .voisins a:hover .apercu, .voisins a:focus-visible .apercu { opacity: 1; transform: none; }
}
@media (hover: none) {
  .voisins .apercu { width: 120px; aspect-ratio: 3/2; margin-bottom: 8px; }
  .voisins .suivant .apercu { margin-left: auto; }
}

/* « Bientôt » : une catégorie encore vide, et la suite de la boutique (Pierre et Miran, 30/11/2026).
   Un cadre au filet doré à la place d'une photo — jamais celle d'une autre catégorie. */
.bientot { display: flex; align-items: center; justify-content: center; border: 1px solid rgba(216,166,69,.55); background: rgba(255,255,255,.03); }
.bientot span { font: 600 clamp(1.6rem, 3vw, 2.2rem) var(--titre); color: var(--dore); letter-spacing: .04em; }
.tuile .cadre.bientot { aspect-ratio: 4/3; }
.carte.bientot { aspect-ratio: 3/2; }
.bloc-bientot { max-width: 520px; aspect-ratio: 3/1; }
