:root{--gold:#c8ad68;--gold-dark:#8f6d28;--ink:#40351f;--muted:#6a5e46;--line:rgba(174,143,75,.30);--card:rgba(255,255,255,.88);--shadow:0 20px 55px rgba(38,63,102,.16);--blue:#eaf3ff}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;font-family:Inter,Arial,Helvetica,sans-serif;color:var(--ink);background:linear-gradient(180deg,#bfd8ff 0%,#edf5ff 46%,#fff 100%)}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}.page{width:min(1180px,calc(100% - 40px));margin:auto;padding:24px 0 48px}.top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.logo{width:210px}.nav{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.nav a{padding:9px 13px;border-radius:999px;background:rgba(255,255,255,.72);border:1px solid var(--line);font-size:13px;font-weight:800;color:#654f1e}.nav a[aria-current=page]{background:linear-gradient(180deg,var(--gold),var(--gold-dark));color:white}.hero{display:grid;grid-template-columns:1.03fr .97fr;gap:28px;align-items:stretch}.panel,.card,.notice,.price-card,.info-card{background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow)}.panel{border-radius:30px;padding:42px}.media{border-radius:30px;overflow:hidden;min-height:390px;box-shadow:var(--shadow);background:#fff}.media img{width:100%;height:100%;object-fit:cover}.eyebrow{display:inline-block;color:var(--gold-dark);text-transform:uppercase;letter-spacing:.13em;font-weight:900;font-size:12px;margin-bottom:11px}h1{font-size:clamp(40px,5vw,68px);line-height:.98;letter-spacing:-.04em;margin:0 0 18px;color:#4a3915}h2{font-size:clamp(28px,3.4vw,42px);line-height:1.08;letter-spacing:-.025em;color:#4a3915;margin:0 0 14px}h3{font-size:21px;color:#4a3915;margin:0 0 9px}p{line-height:1.7;color:var(--muted)}.lead{font-size:18px;margin:0 0 24px}.actions{display:flex;gap:10px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;min-height:46px;border-radius:14px;font-weight:900;border:1px solid var(--line);background:white}.btn.primary{background:linear-gradient(180deg,var(--gold),var(--gold-dark));color:white;border-color:transparent}.quick{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:24px 0 48px}.card{border-radius:22px;padding:22px}.card strong{display:block;font-size:17px;color:#4a3915;margin-bottom:6px}.section{margin:50px 0}.section-head{text-align:center;max-width:760px;margin:0 auto 24px}.grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.gallery:not([data-editorial-type="gallery"]){display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.gallery:not([data-editorial-type="gallery"]) figure{margin:0;border-radius:22px;overflow:hidden;background:#fff;box-shadow:0 14px 35px rgba(38,63,102,.13)}.gallery:not([data-editorial-type="gallery"]) img{height:240px;width:100%;object-fit:cover}.gallery:not([data-editorial-type="gallery"]) figcaption{padding:12px 14px;font-weight:800;color:#5a451d}.list{margin:12px 0 0;padding-left:20px;line-height:1.85;color:#594b2f}.facts{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.fact{background:rgba(255,255,255,.84);border:1px solid var(--line);border-radius:18px;padding:18px;text-align:center}.fact strong{display:block;font-size:22px;color:#4a3915}.fact span{font-size:13px;color:var(--muted)}.price-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.price-card{border-radius:24px;padding:24px}.price-card .from{font-size:29px;font-weight:900;color:#4a3915}.table-wrap{overflow:auto;border-radius:20px;border:1px solid var(--line);background:rgba(255,255,255,.87);box-shadow:var(--shadow)}table{width:100%;border-collapse:collapse;min-width:720px}th,td{padding:14px 16px;border-bottom:1px solid var(--line);text-align:left}th{color:#4a3915;background:rgba(200,173,104,.14)}tr:last-child td{border-bottom:0}.notice{border-radius:22px;padding:22px}.notice strong{color:#4a3915}.info-card{border-radius:22px;padding:24px}.footer{margin-top:44px;padding:22px 0 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--muted)}.badge{position:fixed;right:12px;bottom:10px;background:rgba(255,255,255,.86);border:1px solid var(--line);border-radius:999px;padding:6px 9px;font-size:10px;font-weight:800;color:#765f25}.backline{margin-bottom:20px}.backline a{font-weight:800;color:#755d20}.contact-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
@media(max-width:900px){.top{display:grid;justify-items:center}.nav{justify-content:center}.hero{grid-template-columns:1fr}.quick,.grid3,.facts,.price-grid{grid-template-columns:1fr 1fr}.gallery:not([data-editorial-type="gallery"]){grid-template-columns:1fr 1fr}.media{min-height:300px}}
@media(max-width:620px){.page{width:min(100% - 20px,1180px);padding-top:15px}.logo{width:180px}.nav{gap:6px}.nav a{padding:8px 10px;font-size:12px}.panel{padding:25px}.quick,.grid2,.grid3,.gallery:not([data-editorial-type="gallery"]),.facts,.price-grid{grid-template-columns:1fr}.gallery:not([data-editorial-type="gallery"]) img{height:220px}h1{font-size:39px}}

/* Accueil Visiteur : navigation par icône + libellé */
.visitor-nav-section{margin-top:40px}.visitor-menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.visitor-link{min-height:142px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:20px;border:1px solid var(--line);border-radius:22px;background:rgba(255,255,255,.88);box-shadow:var(--shadow);font-size:20px;font-weight:900;color:#4a3915;text-align:center;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}.visitor-link img{width:64px;height:64px;object-fit:contain;transition:transform .16s ease}.visitor-link:hover,.visitor-link:focus-visible{transform:translateY(-3px);background:#fff;box-shadow:0 24px 58px rgba(38,63,102,.20);outline:2px solid rgba(143,109,40,.35);outline-offset:2px}.visitor-link:hover img,.visitor-link:focus-visible img{transform:scale(1.06)}@media(max-width:900px){.visitor-menu{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.visitor-menu{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.visitor-link{min-height:120px;padding:15px;font-size:16px}.visitor-link img{width:54px;height:54px}}


/* RISC-GTI — édition contextuelle contenus éditoriaux Access */
.editorial-host{position:relative}
.editorial-edit-btn{position:absolute;right:10px;top:10px;z-index:20;border:1px solid #bfa56a;border-radius:999px;background:#fff;color:#5c503b;padding:7px 11px;font:600 13px Inter,Arial,sans-serif;cursor:pointer;box-shadow:0 3px 12px rgba(0,0,0,.12)}
.editorial-overlay{position:fixed;inset:0;z-index:9100;background:rgba(30,26,20,.44);display:grid;place-items:center;padding:18px}
.editorial-modal{width:min(620px,94vw);max-height:88vh;overflow:auto;background:#fff;border-radius:18px;padding:22px;box-shadow:0 22px 70px rgba(0,0,0,.25);color:#5c503b}
.editorial-modal h2{margin:0 0 16px}
.editorial-textarea{width:100%;box-sizing:border-box;min-height:150px;padding:12px}
.editorial-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.editorial-actions button{padding:9px 14px;border-radius:10px;border:1px solid #d8ccb3;background:#fff;cursor:pointer}
.editorial-actions .primary{background:#bfa56a;border-color:#bfa56a;color:#fff}
.editorial-gallery-list{display:grid;gap:8px;margin-top:16px}
.editorial-gallery-list>div{display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid #eee;padding-top:8px}
.editorial-empty{min-height:140px;display:grid;place-items:center;border:2px dashed #d8ccb3;border-radius:14px;color:#8c7d65}


/* RISC-GTI — popup média éditoriale complète V3 */
.editorial-media-editor,.editorial-gallery-editor{display:grid;gap:16px}
.editorial-media-tabs{display:flex;gap:8px;border-bottom:1px solid #eadfc8;padding-bottom:10px}
.editorial-media-tabs button{border:1px solid #d8ccb3;background:#fff;color:#5c503b;border-radius:999px;padding:9px 14px;font-weight:600;cursor:pointer}
.editorial-media-tabs button.active{background:#bfa56a;border-color:#bfa56a;color:#fff}
.editorial-media-panel{display:grid;gap:12px}
.editorial-dropzone{min-height:150px;border:2px dashed #cbb889;border-radius:16px;display:grid;place-items:center;align-content:center;gap:9px;padding:20px;text-align:center;background:#fbfaf7;transition:.16s ease}
.editorial-dropzone.dragover{background:#f4edde;border-color:#a88e54;transform:scale(1.005)}
.editorial-choose-file{border:1px solid #bfa56a;background:#fff;color:#5c503b;border-radius:10px;padding:9px 14px;font-weight:600;cursor:pointer}
.editorial-media-hint{margin:0;color:#8c7d65;font-size:13px;text-align:center}
.editorial-preview-grid,.editorial-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}
.editorial-preview-card,.editorial-library-item{border:1px solid #e6ddca;border-radius:12px;background:#fff;padding:8px;display:grid;gap:7px;text-align:left;min-width:0}
.editorial-preview-card img,.editorial-library-item img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px}
.editorial-preview-card span,.editorial-library-item span{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.editorial-library-item{cursor:pointer;color:#5c503b}
.editorial-library-item.selected{outline:3px solid #bfa56a;background:#f4edde}
.editorial-library-filter{width:100%;padding:9px;border:1px solid #d8ccb3;border-radius:10px;background:#fff}
.editorial-library-loading{padding:20px;text-align:center;color:#8c7d65}
.editorial-gallery-current{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.editorial-gallery-current-item{display:grid;gap:7px;border:1px solid #e6ddca;border-radius:12px;padding:8px}
.editorial-gallery-current-item img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px}
.editorial-gallery-current-item span{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.editorial-gallery-current-item button{border:1px solid #d6b0ad;background:#fff;color:#9c4541;border-radius:9px;padding:7px 10px;cursor:pointer}
.editorial-modal{width:min(760px,94vw)}
.editorial-modal h3{margin:4px 0 0;font-size:17px;color:#5c503b}
@media(max-width:600px){
  .editorial-modal{padding:16px}
  .editorial-library-grid,.editorial-preview-grid,.editorial-gallery-current{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* RISC-GTI — navigation contextuelle Médiathèque V4 */
.editorial-library-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.editorial-library-context{color:#5c503b;font-size:13px}
.editorial-manage-library{border:1px solid #bfa56a;background:#fff;color:#5c503b;border-radius:10px;padding:9px 13px;font-weight:700;cursor:pointer}
.editorial-manage-library:hover{background:#f4edde}


/* RISC-GTI — popup média V5 : états et accessibilité */
.editorial-actions .primary:disabled{opacity:.48;cursor:not-allowed;filter:saturate(.55)}
.editorial-media-tabs button:focus-visible,.editorial-library-item:focus-visible,.editorial-choose-file:focus-visible,.editorial-manage-library:focus-visible,.editorial-actions button:focus-visible{outline:3px solid rgba(191,165,106,.42);outline-offset:2px}
.editorial-library-item.selected{position:relative}
.editorial-library-item.selected::after{content:'Sélectionné';position:absolute;right:7px;top:7px;padding:4px 7px;border-radius:999px;background:#bfa56a;color:#fff;font-size:10px;font-weight:800;box-shadow:0 2px 8px rgba(0,0,0,.16)}

/* RISC-GTI V8 — loader général de la page */
.risc-page-loader-overlay{
 position:fixed;inset:0;z-index:2147483000;background:rgba(255,255,255,.22);
 backdrop-filter:blur(2px);display:grid;place-items:center
}
.risc-page-loader-overlay[hidden]{display:none}
.risc-page-loader-box{width:min(92vw,560px);height:min(78vh,640px);border:0;background:transparent}
.risc-page-loader-box iframe{width:100%;height:100%;border:0;background:transparent}

/* RISC-GTI V9 — choix du type de galerie dans "Gérer la galerie" */
.risc-gallery-type-section{
  margin:20px 0;
  padding:16px;
  border:1px solid rgba(193,157,87,.35);
  border-radius:16px;
  background:rgba(255,255,255,.58);
}
.risc-gallery-type-title{
  margin-bottom:10px;
  font-size:18px;
  font-weight:700;
  color:#4b3a17;
}
.risc-gallery-type-open{
  width:100%;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:12px;
  padding:13px 15px;
  border:1px solid rgba(193,157,87,.55);
  border-radius:14px;
  background:#fff;
  color:#4b3a17;
  text-align:left;
  cursor:pointer;
}
.risc-gallery-type-open span{
  font-size:13px;
  color:#7c6e54;
}
.risc-gallery-type-open strong{
  font-size:15px;
  font-weight:700;
}
.risc-gallery-type-open em{
  font-size:13px;
  font-style:normal;
  color:#8f6d2f;
}
.risc-gallery-type-open:hover{
  background:#fffaf0;
}
@media (max-width:640px){
  .risc-gallery-type-open{
    grid-template-columns:1fr auto;
  }
  .risc-gallery-type-open span{
    grid-column:1/-1;
  }
}

/* RISC-GTI V10 — commande visible du loader dans le mode Gestionnaire des contenus éditoriaux */
.risc-page-loader-manager{
 display:flex;align-items:center;justify-content:space-between;gap:14px;
 padding:10px 12px;margin:8px 0;border:1px solid rgba(185,150,82,.38);
 border-radius:16px;background:rgba(255,255,255,.82);backdrop-filter:blur(8px);
 box-shadow:0 8px 24px rgba(61,52,38,.08)
}
.risc-page-loader-manager--floating{
 position:fixed;right:18px;bottom:18px;z-index:2147482500;width:min(420px,calc(100vw - 36px));
 margin:0
}
.risc-page-loader-manager__text{display:flex;flex-direction:column;gap:2px;min-width:0}
.risc-page-loader-manager__text strong{font-size:14px;color:#4b3a16}
.risc-page-loader-manager__text span{font-size:13px;color:#766f65;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.risc-page-loader-manager__button{
 flex:0 0 auto;border:1px solid rgba(185,150,82,.5);background:#fff;color:#665638;
 border-radius:999px;padding:9px 13px;cursor:pointer;font:inherit
}
.risc-page-loader-manager__button:hover{background:#faf6ed}
@media(max-width:640px){
 .risc-page-loader-manager{align-items:flex-start;flex-direction:column}
 .risc-page-loader-manager__button{width:100%}
}

/* RISC-GTI — GALERIES ÉDITORIALES V13
   Un seul moteur responsive pour G1 / G2 / G3 / G4 / G5 / G8.
   Les anciennes règles .gallery ne s'appliquent pas au host éditorial. */

.gallery[data-editorial-type="gallery"]{
  --gallery-radius:18px;
  --gallery-gap:12px;
  --gallery-control:44px;
  --gallery-surface:#ded5c6;
  --gallery-text:#5c503b;
  --gallery-accent:#bfa56a;

  display:block !important;
  grid-template-columns:none !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  gap:0 !important;
  overflow:visible !important;
  position:relative;
  box-sizing:border-box;
}

.gallery[data-editorial-type="gallery"] > .risc-gallery,
.gallery[data-editorial-type="gallery"] > .risc-gallery-single{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  box-sizing:border-box;
}

.gallery[data-editorial-type="gallery"] .risc-gallery{
  position:relative;
  isolation:isolate;
}

.gallery[data-editorial-type="gallery"] .risc-gallery figure{
  margin:0;
}

.gallery[data-editorial-type="gallery"] .risc-gallery img,
.gallery[data-editorial-type="gallery"] .risc-gallery-single img{
  display:block;
  width:100%;
  max-width:100%;
  height:100%;
  object-fit:cover;
  user-select:none;
  -webkit-user-drag:none;
}

.gallery[data-editorial-type="gallery"] .risc-gallery button{
  font:inherit;
  -webkit-tap-highlight-color:transparent;
}

.gallery[data-editorial-type="gallery"] .risc-gallery button:focus-visible{
  outline:3px solid rgba(191,165,106,.85);
  outline-offset:3px;
}

.gallery[data-editorial-type="gallery"] > .editorial-edit-btn{
  position:absolute;
  top:10px;
  right:10px;
  z-index:40;
}

/* Image unique */
.gallery[data-editorial-type="gallery"] .risc-gallery-single{
  overflow:hidden;
  border-radius:var(--gallery-radius);
  background:#eee;
  aspect-ratio:16/9;
}

/* Contrôles partagés */
.gallery[data-editorial-type="gallery"] .risc-gallery-nav{
  position:absolute;
  top:50%;
  z-index:20;
  display:grid;
  place-items:center;
  width:var(--gallery-control);
  height:var(--gallery-control);
  padding:0;
  border:1px solid rgba(92,80,59,.12);
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:var(--gallery-text);
  font-size:28px;
  line-height:1;
  cursor:pointer;
  transform:translateY(-50%);
  box-shadow:0 5px 18px rgba(0,0,0,.16);
  backdrop-filter:blur(6px);
}

.gallery[data-editorial-type="gallery"] .risc-gallery-nav.prev{left:14px}
.gallery[data-editorial-type="gallery"] .risc-gallery-nav.next{right:14px}

.gallery[data-editorial-type="gallery"] .risc-gallery-counter{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:5px 11px;
  border:1px solid rgba(92,80,59,.10);
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:var(--gallery-text);
  font:700 12px Inter,Arial,sans-serif;
  box-shadow:0 3px 12px rgba(0,0,0,.10);
  backdrop-filter:blur(5px);
}

/* G1 — Héro + miniatures */
.gallery[data-editorial-type="gallery"] .risc-gallery-g1{
  display:grid;
  gap:10px;
}

.gallery[data-editorial-type="gallery"] .risc-gallery-g1-main{
  overflow:hidden;
  border-radius:var(--gallery-radius);
  background:#eee;
  aspect-ratio:16/9;
}

.gallery[data-editorial-type="gallery"] .risc-gallery-g1-thumbs{
  display:flex;
  gap:8px;
  width:100%;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
  scroll-snap-type:x proximity;
  padding:2px 1px 5px;
}

.gallery[data-editorial-type="gallery"] .risc-gallery-thumb{
  flex:0 0 clamp(78px,10vw,112px);
  height:clamp(54px,7vw,74px);
  padding:0;
  overflow:hidden;
  border:2px solid transparent;
  border-radius:11px;
  background:#eee;
  cursor:pointer;
  scroll-snap-align:start;
  opacity:.78;
  transition:border-color .18s ease,opacity .18s ease,transform .18s ease;
}

.gallery[data-editorial-type="gallery"] .risc-gallery-thumb.active{
  border-color:var(--gallery-accent);
  opacity:1;
}

@media (hover:hover){
  .gallery[data-editorial-type="gallery"] .risc-gallery-thumb:hover{
    opacity:1;
    transform:translateY(-1px);
  }
}

/* G2 — Carrousel */
.gallery[data-editorial-type="gallery"] .risc-gallery-g2-stage{
  position:relative;
  overflow:hidden;
  border-radius:var(--gallery-radius);
  background:#eee;
  aspect-ratio:16/9;
  touch-action:pan-y;
}

.gallery[data-editorial-type="gallery"] .risc-gallery-g2 .risc-gallery-counter{
  position:absolute;
  right:14px;
  bottom:14px;
  z-index:20;
}

/* G3 — Grille */
.gallery[data-editorial-type="gallery"] .risc-gallery-g3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:var(--gallery-gap);
}

.gallery[data-editorial-type="gallery"] .risc-gallery-g3 figure{
  overflow:hidden;
  border-radius:15px;
  background:#eee;
  aspect-ratio:4/3;
}

/* Deux images : répartition symétrique */
.gallery[data-editorial-type="gallery"] .risc-gallery-g3[data-count="2"]{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

/* G4 — Mosaïque */
.gallery[data-editorial-type="gallery"] .risc-gallery-g4{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) repeat(2,minmax(0,1fr));
  grid-template-rows:repeat(2,minmax(150px,1fr));
  gap:10px;
  min-height:clamp(300px,34vw,450px);
}

.gallery[data-editorial-type="gallery"] .risc-gallery-g4 figure{
  position:relative;
  overflow:hidden;
  border-radius:15px;
  background:#eee;
  min-width:0;
  min-height:0;
}

.gallery[data-editorial-type="gallery"] .risc-gallery-g4 figure.featured{
  grid-row:1 / span 2;
}

.gallery[data-editorial-type="gallery"] .risc-gallery-g4[data-count="2"]{
  grid-template-columns:1.4fr 1fr;
  grid-template-rows:1fr;
  min-height:clamp(260px,30vw,390px);
}

.gallery[data-editorial-type="gallery"] .risc-gallery-g4[data-count="2"] figure.featured{
  grid-row:auto;
}

.gallery[data-editorial-type="gallery"] .risc-gallery-g4[data-count="3"]{
  grid-template-columns:1.45fr 1fr;
}

.gallery[data-editorial-type="gallery"] .risc-gallery-more{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(45,38,27,.50);
  color:#fff;
  font:800 16px Inter,Arial,sans-serif;
  text-shadow:0 1px 2px rgba(0,0,0,.3);
}

/* G5 — Coverflow */
.gallery[data-editorial-type="gallery"] .risc-gallery-g5{
  width:100%;
  height:clamp(330px,40vw,520px);
  overflow:hidden;
  border-radius:var(--gallery-radius);
  background:var(--gallery-surface);
  perspective:1200px;
  touch-action:pan-y;
}

.gallery[data-editorial-type="gallery"] .risc-gallery-g5-track{
  position:absolute;
  inset:0;
}

.gallery[data-editorial-type="gallery"] .risc-gallery-g5-card{
  position:absolute;
  left:50%;
  top:50%;
  width:min(58%,720px);
  height:78%;
  padding:0;
  overflow:hidden;
  border:0;
  border-radius:17px;
  background:#ddd;
  box-shadow:0 18px 42px rgba(0,0,0,.20);
  cursor:pointer;
  transition:transform .30s ease,opacity .30s ease,filter .30s ease;
  transform-style:preserve-3d;
}

.gallery[data-editorial-type="gallery"] .risc-gallery-g5-card.is-current{
  z-index:5;
  opacity:1;
  filter:none;
  transform:translate(-50%,-50%) scale(1);
}

.gallery[data-editorial-type="gallery"] .risc-gallery-g5-card.is-prev{
  z-index:3;
  opacity:.72;
  filter:saturate(.88);
  transform:translate(-50%,-50%) translateX(-64%) rotateY(30deg) scale(.78);
}

.gallery[data-editorial-type="gallery"] .risc-gallery-g5-card.is-next{
  z-index:3;
  opacity:.72;
  filter:saturate(.88);
  transform:translate(-50%,-50%) translateX(64%) rotateY(-30deg) scale(.78);
}

.gallery[data-editorial-type="gallery"] .risc-gallery-g5-card.is-hidden{
  z-index:1;
  opacity:0;
  pointer-events:none;
  transform:translate(-50%,-50%) scale(.66);
}

.gallery[data-editorial-type="gallery"] .risc-gallery-g5 .risc-gallery-counter{
  position:absolute;
  z-index:20;
  left:50%;
  bottom:14px;
  transform:translateX(-50%);
}

/* G8 — Cartes superposées */
.gallery[data-editorial-type="gallery"] .risc-gallery-g8{
  width:100%;
  min-height:clamp(380px,44vw,560px);
  padding:clamp(24px,3vw,36px) clamp(26px,5vw,70px) 72px;
  overflow:hidden;
  border-radius:var(--gallery-radius);
  background:var(--gallery-surface);
  box-sizing:border-box;
}

.gallery[data-editorial-type="gallery"] .risc-gallery-g8-stack{
  position:relative;
  width:min(74%,820px);
  height:clamp(300px,34vw,430px);
  margin:0 auto;
  touch-action:pan-y;
}

.gallery[data-editorial-type="gallery"] .risc-gallery-g8-card{
  position:absolute;
  inset:0;
  display:block;
  padding:0;
  overflow:hidden;
  border:0;
  border-radius:18px;
  background:#ddd;
  box-shadow:0 18px 38px rgba(0,0,0,.20);
  cursor:pointer;
  transition:transform .30s ease,opacity .30s ease,filter .30s ease;
}

.gallery[data-editorial-type="gallery"] .risc-gallery-g8-card.stack-0{
  z-index:5;
  opacity:1;
  filter:none;
  transform:translate(0,0) rotate(0deg);
}

.gallery[data-editorial-type="gallery"] .risc-gallery-g8-card.stack-1{
  z-index:4;
  opacity:.88;
  filter:saturate(.94);
  transform:translate(18px,13px) rotate(2.4deg) scale(.975);
}

.gallery[data-editorial-type="gallery"] .risc-gallery-g8-card.stack-2{
  z-index:3;
  opacity:.70;
  filter:saturate(.88);
  transform:translate(34px,25px) rotate(4.5deg) scale(.95);
}

.gallery[data-editorial-type="gallery"] .risc-gallery-g8-card.is-hidden{
  z-index:1;
  opacity:0;
  pointer-events:none;
  transform:translate(46px,34px) scale(.91);
}

.gallery[data-editorial-type="gallery"] .risc-gallery-g8-controls{
  position:absolute;
  left:50%;
  bottom:14px;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  max-width:calc(100% - 24px);
  transform:translateX(-50%);
  white-space:nowrap;
}

.gallery[data-editorial-type="gallery"] .risc-gallery-g8-controls button{
  min-height:40px;
  padding:8px 13px;
  border:1px solid rgba(92,80,59,.12);
  border-radius:999px;
  background:rgba(255,255,255,.96);
  color:var(--gallery-text);
  font-weight:800;
  cursor:pointer;
  box-shadow:0 3px 12px rgba(0,0,0,.10);
}

/* Tablette */
@media (max-width:900px){
  .gallery[data-editorial-type="gallery"]{
    --gallery-gap:10px;
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-g3{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-g4{
    grid-template-columns:1.25fr 1fr;
    grid-template-rows:repeat(2,minmax(130px,1fr));
    min-height:340px;
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-g4 figure:nth-child(n+4){
    display:none;
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-g5-card{
    width:66%;
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-g8-stack{
    width:80%;
  }
}

/* Mobile */
@media (max-width:700px){
  .gallery[data-editorial-type="gallery"]{
    --gallery-radius:16px;
    --gallery-control:40px;
    --gallery-gap:8px;
  }

  .gallery[data-editorial-type="gallery"] > .editorial-edit-btn{
    top:8px;
    right:8px;
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-single{
    aspect-ratio:4/3;
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-nav.prev{left:8px}
  .gallery[data-editorial-type="gallery"] .risc-gallery-nav.next{right:8px}

  .gallery[data-editorial-type="gallery"] .risc-gallery-g1-main,
  .gallery[data-editorial-type="gallery"] .risc-gallery-g2-stage{
    aspect-ratio:4/3;
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-g1-thumbs{
    gap:7px;
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-thumb{
    flex-basis:78px;
    height:56px;
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-g3,
  .gallery[data-editorial-type="gallery"] .risc-gallery-g3[data-count="2"]{
    grid-template-columns:1fr;
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-g3 figure{
    aspect-ratio:16/10;
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-g4,
  .gallery[data-editorial-type="gallery"] .risc-gallery-g4[data-count="2"],
  .gallery[data-editorial-type="gallery"] .risc-gallery-g4[data-count="3"]{
    grid-template-columns:1fr 1fr;
    grid-template-rows:repeat(2,118px);
    min-height:0;
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-g4 figure.featured{
    grid-column:1 / -1;
    grid-row:auto;
    min-height:178px;
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-g4[data-count="2"]{
    grid-template-rows:auto 132px;
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-g4[data-count="2"] figure:nth-child(2){
    grid-column:1 / -1;
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-g4 figure:nth-child(n+4){
    display:block;
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-g5{
    height:clamp(250px,74vw,320px);
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-g5-card{
    width:72%;
    height:70%;
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-g5-card.is-prev{
    transform:translate(-50%,-50%) translateX(-47%) rotateY(22deg) scale(.80);
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-g5-card.is-next{
    transform:translate(-50%,-50%) translateX(47%) rotateY(-22deg) scale(.80);
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-g8{
    min-height:clamp(280px,84vw,350px);
    padding:40px 10px 60px;
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-g8-stack{
    width:82%;
    height:clamp(190px,58vw,245px);
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-g8-card.stack-1{
    transform:translate(10px,8px) rotate(2deg) scale(.975);
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-g8-card.stack-2{
    transform:translate(18px,14px) rotate(4deg) scale(.95);
  }
}

/* Très petit mobile */
@media (max-width:420px){
  .gallery[data-editorial-type="gallery"] .risc-gallery-g4{
    grid-template-columns:1fr;
    grid-template-rows:auto;
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-g4 figure,
  .gallery[data-editorial-type="gallery"] .risc-gallery-g4 figure.featured,
  .gallery[data-editorial-type="gallery"] .risc-gallery-g4[data-count="2"] figure:nth-child(2){
    grid-column:auto;
    min-height:0;
    aspect-ratio:16/10;
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-g5-card{
    width:76%;
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-g8{
    padding-inline:8px;
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-g8-stack{
    width:84%;
  }

  .gallery[data-editorial-type="gallery"] .risc-gallery-g8-controls button{
    min-height:38px;
    padding:7px 10px;
    font-size:12px;
  }
}

@media (prefers-reduced-motion:reduce){
  .gallery[data-editorial-type="gallery"] .risc-gallery-g5-card,
  .gallery[data-editorial-type="gallery"] .risc-gallery-g8-card,
  .gallery[data-editorial-type="gallery"] .risc-gallery-thumb{
    transition:none !important;
  }
}



/* G8 — visionneuse plein écran */
.risc-g8-fullscreen{
  position:fixed;
  inset:0;
  z-index:10050;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(20,18,15,.94);
  backdrop-filter:blur(8px);
}

.risc-g8-fullscreen-stage{
  position:relative;
  width:min(94vw,1600px);
  height:min(88vh,1000px);
  display:flex;
  align-items:center;
  justify-content:center;
  touch-action:pan-y;
}

.risc-g8-fullscreen-image{
  display:block;
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:14px;
  box-shadow:0 24px 70px rgba(0,0,0,.42);
}

.risc-g8-fullscreen-close{
  position:fixed;
  top:18px;
  right:20px;
  z-index:3;
  width:46px;
  height:46px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.96);
  color:#4b412f;
  font-size:31px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 4px 20px rgba(0,0,0,.25);
}

.risc-g8-fullscreen-nav{
  position:absolute;
  top:50%;
  z-index:2;
  width:50px;
  height:50px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:#4b412f;
  font-size:32px;
  line-height:1;
  cursor:pointer;
  transform:translateY(-50%);
  box-shadow:0 4px 18px rgba(0,0,0,.24);
}

.risc-g8-fullscreen-nav.prev{left:12px}
.risc-g8-fullscreen-nav.next{right:12px}

.risc-g8-fullscreen-counter{
  position:absolute;
  left:50%;
  bottom:14px;
  transform:translateX(-50%);
  min-width:64px;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:#4b412f;
  font:700 13px Inter,Arial,sans-serif;
  text-align:center;
}

@media (max-width:700px){
  .risc-g8-fullscreen{
    padding:10px;
  }

  .risc-g8-fullscreen-stage{
    width:100%;
    height:92vh;
  }

  .risc-g8-fullscreen-image{
    max-width:100%;
    max-height:86vh;
    border-radius:10px;
  }

  .risc-g8-fullscreen-close{
    top:10px;
    right:10px;
    width:42px;
    height:42px;
    font-size:28px;
  }

  .risc-g8-fullscreen-nav{
    width:44px;
    height:44px;
    font-size:28px;
  }

  .risc-g8-fullscreen-nav.prev{left:4px}
  .risc-g8-fullscreen-nav.next{right:4px}
}

@media (prefers-reduced-motion:reduce){
  .risc-g8-fullscreen,
  .risc-g8-fullscreen *{
    scroll-behavior:auto !important;
    transition:none !important;
    animation:none !important;
  }
}


/* G8 V15 — plein écran distinct des transitions de pile */
.gallery[data-editorial-type="gallery"] .risc-gallery-g8-fullscreen-trigger{
  display:grid;
  place-items:center;
  min-width:40px;
  width:40px;
  height:40px;
  padding:0 !important;
  font-size:20px;
  line-height:1;
}

@media (max-width:420px){
  .gallery[data-editorial-type="gallery"] .risc-gallery-g8-fullscreen-trigger{
    min-width:38px;
    width:38px;
    height:38px;
    font-size:18px;
  }
}


/* G8 V16 — garantie de présence Mobile
   Le host éditorial et le renderer G8 restent visibles même si une ancienne règle
   mobile masque ou réduit le conteneur .gallery. */
@media (max-width:700px){
  .gallery[data-editorial-type="gallery"][data-gallery-type="G8"],
  .gallery[data-editorial-type="gallery"][data-gallery-type="G8"] > .risc-gallery,
  .gallery[data-editorial-type="gallery"][data-gallery-type="G8"] > .risc-gallery-g8{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    min-height:280px !important;
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
  }

  .gallery[data-editorial-type="gallery"][data-gallery-type="G8"] > .risc-gallery-g8{
    overflow:hidden !important;
  }

  .gallery[data-editorial-type="gallery"][data-gallery-type="G8"] .risc-gallery-g8-stack{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    position:relative !important;
    width:84% !important;
    max-width:84% !important;
    min-width:0 !important;
    height:clamp(190px,58vw,245px) !important;
    min-height:190px !important;
    margin:0 auto !important;
    overflow:visible !important;
  }

  .gallery[data-editorial-type="gallery"][data-gallery-type="G8"] .risc-gallery-g8-card{
    display:block !important;
    visibility:visible !important;
  }
}
