/* Galerie privée d'un client (2026-11-14) : clair, sobre, les photos d'abord. */
:root { --fond: #f5f2ec; --papier: #fffdf9; --encre: #1a1714; --doux: #6f675d; --ligne: rgb(26 23 20 / .12); --accent: #d6462b; --or: #c9962b; color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 16px/1.55 "Readex Pro", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1 { font-family: "Archivo", "Readex Pro", sans-serif; font-stretch: 70%; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: .92; margin: 0; }
[hidden] { display: none !important; }

/* Porte : le code */
.gc-porte { min-height: calc(100svh - 60px); display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(120% 80% at 50% 0%, #fff 0%, var(--fond) 60%); }
.gc-porte-carte { width: min(100%, 440px); display: grid; gap: 14px; padding: 36px 30px 30px; background: var(--papier); border: 1px solid var(--ligne); border-radius: 18px; box-shadow: 0 30px 70px -40px rgb(0 0 0 / .4); text-align: center; }
.gc-porte-sur { margin: 0; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.gc-porte h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
.gc-porte-par { margin: 0 0 6px; color: var(--doux); }
.gc-porte label { display: grid; gap: 6px; text-align: start; font-size: .88rem; color: var(--doux); }
.gc-porte input { font: 600 1.5rem/1 "Readex Pro", monospace; letter-spacing: .35em; text-align: center; text-transform: uppercase; padding: 14px 10px; border: 1.5px solid var(--ligne); border-radius: 12px; background: #fff; color: var(--encre); }
.gc-porte input:focus { outline: none; border-color: var(--encre); }
.gc-porte button { font: inherit; font-weight: 700; padding: 14px; border: 0; border-radius: 999px; background: var(--encre); color: #fff; cursor: pointer; }
.gc-porte button:hover { background: var(--accent); }
.gc-porte-aide { font-size: .86rem; color: var(--doux); }
.gc-erreur { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fdecea; color: #8c1d18; font-size: .9rem; }

/* Une : la couverture */
.gc-une { position: relative; height: min(88svh, 900px); min-height: 460px; display: grid; align-items: end; overflow: hidden; background: #1a1714; color: #fff; }
.gc-une > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: gc-zoom 24s ease-out forwards; }
@keyframes gc-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.gc-une-voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .25) 0%, rgb(0 0 0 / 0) 35%, rgb(0 0 0 / .7) 100%); }
.gc-une-texte { position: relative; padding: 0 clamp(18px, 5vw, 64px) clamp(36px, 8vh, 80px); display: grid; gap: 12px; justify-items: start; }
.gc-une-sur { margin: 0; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; opacity: .9; }
.gc-une h1 { font-size: clamp(2.8rem, 9vw, 7rem); max-width: 14ch; }
.gc-une p { margin: 0; opacity: .9; }

/* Boutons */
.gc-bouton { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; font-size: .92rem; padding: 11px 20px; border-radius: 999px; border: 1.5px solid var(--encre); background: transparent; color: var(--encre); cursor: pointer; text-decoration: none; white-space: nowrap; }
.gc-bouton:hover { background: var(--encre); color: #fff; }
.gc-bouton:disabled { opacity: .7; cursor: progress; }
.gc-bouton svg { width: 17px; height: 17px; }
.gc-bouton--clair { border-color: #fff; color: #fff; }
.gc-bouton--clair:hover { background: #fff; color: var(--encre); }
.gc-bouton--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.gc-bouton--accent:hover { background: #b83a22; border-color: #b83a22; }
.ic--bas { transform: rotate(180deg); }

/* Barre : filtres et téléchargement */
.gc-barre { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px clamp(14px, 4vw, 48px); background: rgb(245 242 236 / .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ligne); }
.gc-filtres { display: flex; gap: 6px; flex-wrap: wrap; }
.gc-filtres button { font: inherit; font-size: .9rem; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ligne); background: var(--papier); color: var(--doux); cursor: pointer; }
.gc-filtres button span { margin-inline-start: 4px; opacity: .7; }
.gc-filtres button.est-actif { background: var(--encre); color: #fff; border-color: var(--encre); }

/* Mur de photos */
.gc-mur { columns: 4 280px; column-gap: 10px; padding: 14px clamp(10px, 3vw, 40px) 120px; }
.gc-photo { position: relative; margin: 0 0 10px; break-inside: avoid; cursor: zoom-in; overflow: hidden; border-radius: 3px; background: #e8e3da; }
.gc-photo img { width: 100%; height: auto; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.gc-photo:hover img { transform: scale(1.025); }
.gc-coeur { position: absolute; top: 10px; inset-inline-end: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgb(0 0 0 / .35); color: #fff; font-size: 1.15rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .2s, transform .2s, background .2s; backdrop-filter: blur(4px); }
.gc-photo:hover .gc-coeur, .gc-photo.est-favorite .gc-coeur, .gc-coeur:focus-visible { opacity: 1; }
.gc-photo.est-favorite .gc-coeur { background: var(--accent); transform: scale(1.06); }
.gc-dl { position: absolute; bottom: 10px; inset-inline-end: 10px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / .9); color: var(--encre); opacity: 0; transition: opacity .2s; }
.gc-dl svg { width: 17px; height: 17px; }
.gc-photo:hover .gc-dl { opacity: 1; }
@media (hover: none) { .gc-coeur, .gc-dl { opacity: 1; } .gc-coeur { background: rgb(0 0 0 / .28); } }

/* Barre de sélection */
.gc-selection { position: fixed; z-index: 30; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(calc(100% - 24px), 760px); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px 12px 20px; border-radius: 18px; background: #1a1714; color: #fff; box-shadow: 0 20px 50px -18px rgb(0 0 0 / .55); }
.gc-selection b { font-size: 1.1rem; }
.gc-selection-boutons { display: flex; gap: 8px; flex-wrap: wrap; }

/* Visionneuse */
.gc-visio { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(14 12 10 / .97); color: #fff; }
.gc-visio[open] { display: grid; place-items: center; }
.gc-visio::backdrop { background: rgb(0 0 0 / .8); }
.gc-visio img { max-width: min(94vw, 1800px); max-height: calc(100dvh - 120px); object-fit: contain; }
.gc-visio-bas { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 16px; }
.gc-visio-bas span { color: #bdb4a6; font-variant-numeric: tabular-nums; font-size: .9rem; }
.gc-visio .gc-coeur { position: static; opacity: 1; width: 46px; height: 46px; background: rgb(255 255 255 / .12); }
.gc-visio .gc-coeur.est-actif { background: var(--accent); }
.gc-visio-fermer, .gc-visio-prec, .gc-visio-suiv { position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .1); color: #fff; font-size: 1.8rem; cursor: pointer; }
.gc-visio-fermer { top: 16px; inset-inline-end: 16px; }
.gc-visio-prec { left: 16px; top: 50%; transform: translateY(-50%); }
.gc-visio-suiv { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) { .gc-visio-prec, .gc-visio-suiv { display: none; } .gc-mur { columns: 2 140px; column-gap: 6px; } .gc-photo { margin-bottom: 6px; } .gc-selection { border-radius: 14px; } .gc-selection-boutons { width: 100%; } .gc-selection-boutons .gc-bouton { flex: 1; justify-content: center; } }

.gc-pied { padding: 26px 16px 34px; text-align: center; color: var(--doux); font-size: .84rem; }
@media (prefers-reduced-motion: reduce) { .gc-une > img { animation: none; } }

/* Documents PDF de la galerie (2026-11-17) */
.gc-docs-client { max-width: 1100px; margin: 0 auto; padding: 20px 16px 0; }
.gc-docs-client h2 { margin: 0 0 10px; font-size: 1.05rem; }
.gc-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gc-docs li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gc-doc { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid rgb(127 127 127 / .35); border-radius: 12px; color: inherit; text-decoration: none; }
.gc-doc-ic { flex: none; display: grid; place-items: center; width: 40px; height: 48px; border-radius: 6px; background: #B3261E; color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .04em; }
.gc-doc-nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.gc-doc small { flex: none; opacity: .7; }

