/* rougegorge.css — thème sombre, accent par boutique via --accent (défini en PHP sur <body>). */
:root {
	--bg: #14181a;
	--panneau: #1c2224;
	--bord: #2a3336;
	--texte: #e8eded;
	--discret: #9db0b0;
	--rayon: 12px;
	--accent: #a6bcb4;
	--on-accent: #14181a;
	--titres: "Cormorant Garamond", Georgia, serif;
	--corps: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Transition fluide entre les pages (navigateurs compatibles) */
@view-transition { navigation: auto; }

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { background: var(--bg); color: var(--texte); font: 400 1rem/1.7 var(--corps); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.rg-skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.rg-skip:focus { left: 8px; }

/* ---------- En-tête ---------- */
.rg-header { position: sticky; top: 0; z-index: 50; background: rgba(20, 24, 26, .72); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.rg-header-fixe { background: rgba(20, 24, 26, .94); border-bottom-color: var(--bord); }
.rg-header-inner { max-width: 1200px; margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; gap: 24px; }
.rg-logo { display: flex; align-items: center; gap: 10px; color: var(--texte); text-decoration: none; font: 700 1.25rem var(--titres); letter-spacing: .08em; text-transform: uppercase; }
.rg-logo img { height: 36px; width: auto; }
.rg-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-left: auto; align-items: center; }
.rg-nav a { color: var(--discret); text-decoration: none; font-size: .7rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; padding: 10px 2px; border-bottom: 2px solid transparent; }
.rg-nav a:hover { color: var(--texte); }
.rg-nav a[aria-current="page"] { color: var(--texte); border-bottom-color: var(--accent); }
.rg-nav-retour { opacity: .8; }
.rg-burger { display: none; margin-left: auto; background: none; border: 1px solid var(--bord); color: var(--texte); width: 44px; height: 44px; border-radius: 10px; font-size: 1.2rem; cursor: pointer; }

@media (max-width: 960px) {
	.rg-burger { display: block; }
	.rg-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--bord); padding: 8px 20px 16px; margin: 0; }
	.rg-nav.ouvert { display: flex; }
	.rg-nav a { padding: 12px 2px; border-bottom: 1px solid var(--bord); }
}

/* ---------- Héro ---------- */
.rg-hero { position: relative; min-height: 64vh; display: grid; place-items: center; text-align: center; overflow: hidden; margin-top: -53px; padding: 120px 20px 80px; }
.rg-hero-accueil { min-height: 62vh; }
.rg-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.rg-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20, 24, 26, .45), rgba(20, 24, 26, .25) 40%, var(--bg)); z-index: 1; }
.rg-hero-contenu { position: relative; z-index: 2; max-width: 780px; }
.rg-hero-icone { font-size: 2.6rem; color: var(--accent); margin-bottom: 12px; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5)); }
.rg-hero-logo { width: min(220px, 55vw); margin: 0 auto 8px; }
.rg-hero-auteur { color: #e0e5df; letter-spacing: .18em; text-transform: uppercase; font-size: .75rem; text-shadow: 0 2px 12px #14181a; }
.rg-hero h1 { font: 700 clamp(2.6rem, 9vw, 5.5rem)/1.05 var(--titres); letter-spacing: .06em; text-transform: uppercase; margin: 8px 0 28px; text-shadow: 0 4px 24px rgba(0, 0, 0, .55); }

.rg-bouton { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; padding: 13px 26px; border-radius: 999px; transition: transform .2s, filter .2s; }
.rg-bouton:hover { transform: translateY(-2px); filter: brightness(1.1); }

/* ---------- Sections ---------- */
.rg-section { max-width: 1100px; margin: 0 auto; padding: 72px 20px 24px; }
.rg-surtitre { color: var(--accent); text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 600; text-align: center; }
.rg-section h2 { font: 500 clamp(1.65rem, 4vw, 2.5rem)/1.25 var(--titres); text-align: center; letter-spacing: .07em; text-transform: uppercase; margin: 8px 0 32px; text-wrap: balance; }
.rg-section h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--accent); margin: 14px auto 0; border-radius: 2px; }
.rg-texte { max-width: 720px; margin: 0 auto; color: #cfdada; }
.rg-texte p + p { margin-top: 1.1em; }
.rg-puces { margin: 10px 0 10px 4px; display: grid; gap: 12px; }
.rg-puces li { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; font-size: .95rem; }

.rg-bandeau { height: 38vh; min-height: 200px; margin-top: 56px; background: center / cover fixed no-repeat; border-block: 1px solid var(--bord); }
@media (max-width: 800px), (prefers-reduced-motion: reduce) { .rg-bandeau { background-attachment: scroll; } }

/* Apparition (seulement si JS actif) */
.rg-js-reveal [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rg-js-reveal [data-reveal].visible { opacity: 1; transform: none; }

/* ---------- Catalogue : texte ---------- */
.rg-groupes { --rg-column: 300px; --rg-gap: 24px; columns: 300px; column-gap: 24px; }
.rg-groupe { display: inline-block; vertical-align: top; width: 100%; break-inside: avoid; margin-bottom: 24px; min-width: 0; background: var(--panneau); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 24px; overflow: hidden; }
.rg-apercu { display: block; position: relative; margin: -24px -24px 24px; background: #202626; border-bottom: 1px solid var(--bord); }
.rg-apercu img { width: 100%; aspect-ratio: 1; object-fit: contain; transition: transform .35s ease; }
.rg-apercu:hover img { transform: scale(1.025); }
.rg-apercu-zoom { position: absolute; bottom: 14px; right: 14px; width: 32px; height: 32px; display: grid; place-items: center; background: #14181add; color: var(--texte); border: 1px solid var(--bord); border-radius: 50%; }
.rg-groupe > i { color: var(--accent); font-size: 1.6rem; margin-bottom: 8px; }
.rg-groupe h3, .rg-groupe h4 { font: 600 1rem/1.5 var(--corps); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; color: var(--accent); }
.rg-groupe .rg-texte { max-width: none; font-size: .95rem; }

/* L'encart présente la collection ; chaque potion a sa propre fiche. */
.rg-collection + .rg-collection { margin-top: 40px; }
.rg-collection-entete { display: flex; align-items: center; gap: 22px; padding: 20px; margin-bottom: 24px; border: 1px solid var(--bord); border-left: 3px solid var(--accent); border-radius: var(--rayon); background: var(--panneau); }
.rg-collection-entete img { width: 100px; height: 100px; object-fit: cover; border-radius: 8px; flex: none; }
.rg-collection-entete h3 { font: 500 clamp(1.25rem, 3vw, 1.8rem)/1.3 var(--titres); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
.rg-collection-entete p { color: var(--discret); font-size: .9rem; }
.rg-collection-entete .rg-collection-compteur { color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; margin-bottom: 4px; }
@media (max-width: 480px) {
	.rg-collection-entete { gap: 14px; padding: 16px; align-items: flex-start; }
	.rg-collection-entete img { width: 64px; height: 64px; }
}

/* ---------- Catalogue : galerie ---------- */
.rg-filtres { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 10px; }
.rg-filtre { background: var(--panneau); color: var(--discret); border: 1px solid var(--bord); border-radius: 999px; padding: 10px 16px; font: 600 .7rem var(--corps); letter-spacing: .07em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.rg-filtre:hover { color: var(--texte); }
.rg-filtre[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.rg-compteur { text-align: center; color: var(--discret); font-size: .85rem; margin-bottom: 22px; }
.rg-galerie { --rg-column: 190px; --rg-gap: 14px; columns: 190px; column-gap: 14px; }
.rg-item { display: inline-block; vertical-align: top; width: 100%; break-inside: avoid; margin-bottom: 14px; }
.rg-item[hidden] { display: none; }
.rg-item a { position: relative; display: block; border-radius: var(--rayon); overflow: hidden; background: var(--panneau); color: var(--texte); text-decoration: none; }
.rg-item img { width: 100%; height: auto; transition: transform .45s ease; }
.rg-item a:hover img, .rg-item a:focus-visible img { transform: scale(1.06); }
.rg-item-info { position: absolute; inset: auto 0 0; padding: 40px 12px 10px; background: linear-gradient(transparent, rgba(10, 13, 14, .92)); display: grid; }
.rg-item-info small { color: var(--discret); }

/* ---------- Équipe ---------- */
.rg-equipe { --rg-column: 190px; --rg-gap: 20px; columns: 190px; column-gap: 20px; }
.rg-membre { display: inline-block; vertical-align: top; width: 100%; break-inside: avoid; margin-bottom: 20px; background: var(--panneau); border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; text-align: center; padding-bottom: 20px; }
.rg-membre img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 35%; margin-bottom: 20px; }
.rg-membre h3 { font: 600 .95rem/1.5 var(--corps); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); padding: 0 14px; }
.rg-membre p { padding: 4px 16px 0; color: var(--discret); font-size: .9rem; }

/* ---------- Cartes de navigation (accueil) ---------- */
.rg-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.rg-cartes-petites { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.rg-carte { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--rayon); overflow: hidden; color: var(--texte); text-decoration: none; background: var(--panneau); transition: transform .25s ease, box-shadow .25s ease; }
.rg-cartes-petites .rg-carte { aspect-ratio: 16 / 9; }
.rg-carte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rg-carte::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(10, 13, 14, .9), rgba(10, 13, 14, .1) 65%); }
.rg-carte::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); z-index: 2; }
.rg-carte:hover, .rg-carte:focus-visible { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, .5); }
.rg-carte span { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: grid; }
.rg-carte i { color: var(--accent); margin-bottom: 4px; }
.rg-carte strong { font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; }
.rg-carte small { color: var(--discret); line-height: 1.4; }
.rg-cartes-petites strong { font-size: 1rem; }

/* Les bijoux partagent un fond et un cadrage, avec leur nom hors de l'image. */
.rg-bijoux .rg-galerie { --rg-column: 230px; --rg-gap: 22px; column-width: 230px; column-gap: 22px; }
.rg-bijoux .rg-item { margin-bottom: 22px; }
.rg-bijoux .rg-item a { aspect-ratio: auto; border: 1px solid var(--bord); display: flex; flex-direction: column; }
.rg-bijoux .rg-item img { aspect-ratio: 1; height: auto; object-fit: contain; }
.rg-bijoux .rg-item-info { position: relative; padding: 18px; background: var(--panneau); gap: 6px; border-top: 1px solid var(--bord); flex: 1; align-content: start; }
.rg-item-info strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.rg-bijoux .rg-item a:hover img, .rg-bijoux .rg-item a:focus-visible img { transform: none; }
.rg-bijoux .rg-item a:hover { border-color: var(--accent); }

/* Placement dans la première colonne libre ; les colonnes CSS restent le repli sans JS. */
.rg-masonry-ready { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--rg-column)), 1fr)); grid-auto-rows: 1px; grid-auto-flow: dense; column-gap: var(--rg-gap); row-gap: 0; }
.rg-masonry-ready > * { align-self: start; min-width: 0; grid-row-end: span var(--rg-span, 1); }
@media (max-width: 600px) {
	.rg-hero { min-height: 540px; padding: 110px 20px 65px; }
	.rg-hero h1 { font-size: clamp(2.3rem, 11vw, 4rem); overflow-wrap: anywhere; }
	.rg-section { padding-top: 48px; }
	.rg-cartes-petites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rg-cartes-petites strong { font-size: .75rem; letter-spacing: .05em; }
}

/* ---------- Erreur ---------- */
.rg-erreur { text-align: center; padding-top: 140px; min-height: 60vh; }
.rg-erreur h1 { font: 700 3rem var(--titres); margin: 8px 0 16px; }
.rg-erreur p { margin-bottom: 18px; color: var(--discret); }

/* ---------- Pied de page ---------- */
.rg-footer { text-align: center; color: var(--discret); font-size: .85rem; padding: 32px 20px 48px; border-top: 1px solid var(--bord); }
.rg-footer a { color: var(--discret); }
.rg-footer-note { margin-top: 6px; opacity: .7; }

/* ---------- Visionneuse ---------- */
.rg-lightbox { border: 0; padding: 0; background: transparent; color: var(--texte); width: 100vw; height: 100vh; max-width: none; max-height: none; }
.rg-lightbox:not([open]) { display: none; }
.rg-lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; place-items: center; }
.rg-lightbox::backdrop { background: rgba(8, 10, 11, .92); }
.rg-lightbox figure { grid-column: 2; max-height: 92vh; display: grid; justify-items: center; gap: 12px; }
.rg-lightbox figure img { max-height: 80vh; max-width: 100%; width: auto; border-radius: var(--rayon); }
.rg-lightbox figcaption { display: grid; text-align: center; }
.rg-lightbox figcaption span { color: var(--discret); font-size: .9rem; }
.rg-lightbox button { background: rgba(255, 255, 255, .08); border: 0; color: var(--texte); width: 48px; height: 48px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; }
.rg-lightbox button:hover { background: var(--accent); color: var(--on-accent); }
.rg-lb-close { position: absolute; top: 16px; right: 16px; }
.rg-lb-prev { grid-column: 1; grid-row: 1; }
.rg-lb-next { grid-column: 3; grid-row: 1; }
@media (max-width: 600px) { .rg-lightbox[open] { grid-template-columns: 44px 1fr 44px; } .rg-lightbox button { width: 40px; height: 40px; } }

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