/* assets/css/style.css
   Objectif : chic, lisible, simple (pas de responsive pour l’instant)
*/

:root{
  --bg: #fbfaf8;
  --ink: #171513;
  --muted: #6a625b;
  --card: #ffffff;
  --line: rgba(23,21,19,.10);
  --shadow: 0 10px 30px rgba(0,0,0,.07);
  --radius: 16px;
}

*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; }
body{
  font-family_toggle: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

strong{ font-weight: normal; }

h1{
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 400;          /* au lieu de 600 ou 700 */
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.italique{
  font-style: italic;
}

.wrap{ width: 1100px; max-width: calc(100% - 48px); margin: 0 auto; }

.skip-link{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{ left:16px; top:16px; width:auto; height:auto; background:#fff; padding:10px 12px; border-radius:10px; box-shadow:var(--shadow); z-index:9999; }

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,250,248,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  gap: 18px;
  padding: 14px 0;
}

.header-row1{
  display:flex;
  align-items:center;
  gap: 18px;
  padding: 14px 0 10px;
}

.header-row2{
  padding: 0 0 12px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 280px;
}
.brand-logo{
  width: 56px;
  height: auto;
}
.brand-title{
  font-size: 1.15rem;
  font-weight: 600;     /* renforce la signature */
  line-height: 1.1;
  letter-spacing: 0.04em; /* lettres un peu étalées */
}
.brand-subtitle{
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.25;
  letter-spacing: 0.06em; /* très élégant en petit corps */
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 6px; /* espace entre titre et sous-titre */
}

.main-nav{
  margin-left: auto;
  position: relative;
  z-index: 200;
}


.nav-toggle{
  border: 1px solid var(--line);
  background: var(--card);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}
.nav-panel{
  position: absolute;
  right: 24px;
  top: 70px;
  width: 260px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px;
  display:flex;
  flex-direction: column;
  gap: 2px;
}
.nav-panel a{
  padding: 10px 10px;
  border-radius: 10px;
}
.nav-panel a:hover{ background: rgba(0,0,0,.04); text-decoration:none; }

.search{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-left: 14px;
}
.search input{
  width: 320px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 16px;
}
.search button{
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}

.searchbar{
  background: rgba(0,0,0,.02);
  border-bottom: 1px solid var(--line);
}

.search--wide{
  display:flex;
  align-items:center;
  gap: 10px;
  margin: 0;
}

.search--wide input{
  flex: 1;
  width: auto;
  min-width: 260px;
}

.search-advanced-link{
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

.hero{ padding: 34px 0 10px; }
.hero-inner{ display:flex; align-items:center; gap: 26px; }
.hero-text{ flex: 1; }
.hero h1{ font-size: 34px; margin: 0 0 10px; line-height: 1.15; }
.lead{ color: var(--muted); font-size: 18px; margin: 0 0 18px; }
.cta-row{ display:flex; gap: 12px; }

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: 14px;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #000;
  color: #fff;
}
.btn:hover{ text-decoration:none; opacity:.92; }
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero-media{ width: 420px; }
.hero-frame{
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #fff;
}
.hero-frame img{ width: 100%; height: auto; display:block; }

.section{ padding: 28px 0; }
.section-alt{ background: rgba(0,0,0,.03); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.section-head h2{ margin:0; font-size: 20px; letter-spacing: .03em; }
.muted{ color: var(--muted); margin: 0; }
.text-link{ color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.cards{ display:grid; gap: 16px; }
.cards-4{ grid-template-columns: repeat(4, 1fr); }

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,.04);
}
.card img{ width: 100%; height: auto; display:block; }
.card-body{ padding: 12px 12px 14px; }
.card-title{
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 8px;
  min-height: 42px;
}
.card-meta{ color: var(--muted); font-weight: 600; }

.center{ display:flex; justify-content:center; margin-top: 16px; }

.virtual-visit{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
}

.prose{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: 0 2px 14px rgba(0,0,0,.04);
}
.prose ul{ margin: 10px 0 10px 20px; }
.prose-cta{ margin: 12px 0 0; }
.sep{ color: var(--muted); padding: 0 8px; }

.tiles{ display:grid; gap: 16px; }
.tiles-3{ grid-template-columns: repeat(3, 1fr); }
.tile{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,.04);
  text-decoration:none;
}
.tile-media img{ width: 100%; height: auto; display:block; }
.tile-label{
  padding: 12px 14px;
  font-weight: 700;
  letter-spacing: .04em;
}

.actu{
  display:flex;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 2px 14px rgba(0,0,0,.04);
}
.actu-media img{ border-radius: 12px; display:block; }
.actu-title{ font-weight: 800; margin: 0 0 8px; }
.actu-text{ margin: 0 0 10px; color: var(--muted); }

.site-footer{
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-inner{ display:flex; justify-content: space-between; gap: 18px; color: var(--muted); }

.main-nav{
  margin-left: auto;
  display:flex;
  align-items:center;
  gap: 12px;
  position: relative;
}

.nav-link{
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration: none;
}

.main-nav .nav-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 10px;
  border-radius: 12px;
  line-height: 1;
  height: 40px;
}

.main-nav button.nav-link{
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.main-nav .nav-link:hover{
  text-decoration: none;
  background: rgba(0,0,0,.04);
}

.main-nav .nav-caret{
  font-size: 0.85em;
  opacity: .65;
}

/* Si nav-link est un button */
button.nav-link{
  background: transparent;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.nav-link:hover{
  text-decoration:none;
  background: rgba(0,0,0,.04);
}

.nav-label{
  line-height: 1;
}

.nav-caret{
  font-size: 0.85em;
  opacity: .65;
  line-height: 1;
}

.nav-dd-toggle{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-dd-toggle { position: relative; z-index: 200; }
.nav-dd-toggle .nav-label,
.nav-dd-toggle .nav-caret { pointer-events: none; }

.nav-dd-panel{
  position: absolute;
  top: 52px;
  left: 0;
  width: 280px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px;
  display:flex;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
}

.nav-dd-panel a{
  padding: 10px 10px;
  border-radius: 10px;
}

.nav-dd-panel a:hover{
  background: rgba(0,0,0,.04);
  text-decoration:none;
}

.nav-dd-sep{
  height: 1px;
  background: var(--line);
  margin: 6px 6px;
}

[hidden] { display: none !important; } /* garantie absolue : un élément [hidden] ne s'affiche jamais */

/* Page objet (catalogue/objet.php) */
.objet-grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
}

.objet-details{
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.objet-thumb{
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 2px 14px rgba(0,0,0,.04);
}

.objet-thumb img{
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Page objet.php ===== */

.obj-layout{
  display:flex;
  gap: 22px;
  align-items:flex-start;
  flex-wrap: wrap;              /* évite le débordement */
}

.obj-left{
  flex: 0 0 560px;
  max-width: 100%;
  min-width: 320px;
}

.obj-right{
  flex: 1 1 360px;
  min-width: 320px;
  max-width: 100%;
}

.obj-page img{
  max-width: 100%;
  height: auto;
  display:block;
}

.obj-head{ margin: 18px 0 14px; }
.obj-title{ margin: 0; }

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.obj-h2{
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 500;
}

.obj-galerie{ margin-bottom: 14px; }
.obj-gal-btn{
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}

.obj-gal-img{
  width: 100%;
  max-height: 520px;           /* grosse vignette mais pas “gigantesque” */
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.obj-zoom-hint{
  display:block;
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.obj-img-missing{
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(0,0,0,.02);
}

.obj-dl{ margin: 0; }
.obj-row{
  display:flex;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.obj-row:first-child{ border-top: 0; padding-top: 0; }
.obj-row dt{
  width: 140px;
  color: var(--muted);
}
.obj-row dd{ margin: 0; }

.obj-details-cta{
  margin-top: 14px;
  display:flex;
  gap: 14px;
  align-items:center;
  flex-wrap: wrap;
}

.obj-details-thumb{
  width: 150px;
  max-width: 100%;
  border-radius: 12px;
  overflow:hidden;
  border: 1px solid var(--line);
}
.obj-details-thumb img{
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.obj-notice-txt{
  color: var(--ink);
  line-height: 1.65;
  overflow-wrap: anywhere;     /* anti-débordement (mots très longs, urls) */
}

/* Similaires */
.obj-sim-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.obj-sim-card{
  display:flex;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.obj-sim-imgwrap{
  width: 92px;
  height: 70px;
  border-radius: 12px;
  overflow:hidden;
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.obj-sim-imgwrap img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.obj-sim-title{
  font-size: 0.98rem;
  margin-bottom: 4px;
}
.obj-sim-sub{
  font-size: 0.92rem;
  color: var(--muted);
}

/* Modal plein écran (lightbox + carousel) */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}
.modal[aria-hidden="false"]{ display:block; }
.modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.72);
}
.modal-panel{
  position: absolute;
  inset: 24px;
  margin: auto;
  max-width: 1100px;
  max-height: calc(100vh - 48px);
  background: #0f0f10;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  overflow: hidden;
  display:flex;
  flex-direction: column;
}
.modal-top{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: rgba(255,255,255,.85);
  font-size: 0.95rem;
}
.modal-title{ overflow:hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-counter{ color: rgba(255,255,255,.65); }

.modal-body{
  position: relative;
  flex: 1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 10px;
}
.modal-img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.modal-close{
  position:absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.modal-nav{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 64px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 34px;
  cursor: pointer;
  user-select: none;
}
.modal-nav.prev{ left: 10px; }
.modal-nav.next{ right: 10px; }

/* Empêche le scroll derrière la modal */
.modal-open, .modal-open body{ overflow: hidden; }

/* --- objet.php layout --- */
.objet-head{
  display:flex;
  justify-content: space-between;
  align-items:flex-start;
  gap: 18px;
}
.objet-actions{ display:flex; gap:10px; flex-wrap:wrap; }

.objet-left{ flex: 0 0 46%; min-width: 0; display:flex; flex-direction:column; gap: 16px; }
.objet-right{ display: flex; flex-direction: column; align-self: stretch; height: auto; }

.objet-gallery .gallery-btn,
.objet-details .detail-btn{
  width:100%;
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
  display:block;
  position:relative;
}
.gallery-thumb, .detail-thumb{
  width:100%;
  height:auto;
  display:block;
}
.objet-gallery .gallery-thumb{
  max-height: 520px;
  object-fit: cover;
}
.gallery-hint, .detail-hint{
  position:absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}
.gallery-open-btn{
  margin: 0;
  white-space: nowrap;
}

.info-grid{ display:flex; flex-direction:column; gap: 8px; }
.info-row{ display:flex; justify-content:space-between; gap:12px; }
.info-k{ color: var(--muted); font-weight:600; }
.info-v{ font-weight:600; }
.contact-link{ text-decoration: underline; text-underline-offset: 3px; }

.notice{ color: var(--ink); }
.notice strong{ font-weight: normal; } /* garde <strong> pour Google sans “gras” visuel */

/* Lightbox */
.lightbox{ position:fixed; inset:0; z-index:9999; }
.lightbox[hidden]{ display:none !important; }
.lightbox-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.72); }
.lightbox-panel{
  position:absolute; inset: 24px;
  display:flex; align-items:center; justify-content:center;
}
.lightbox-img{
  max-width: min(1100px, calc(100vw - 120px));
  max-height: calc(100vh - 120px);
  width:auto; height:auto;
  background:#fff;
  border-radius: 18px;
  box-shadow: 0 16px 60px rgba(0,0,0,.35);
}
.lightbox-close, .lightbox-prev, .lightbox-next{
  position:absolute;
  border:0;
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  cursor:pointer;
  font-size: 26px;
  line-height: 44px;
  text-align:center;
}
.lightbox-close{ top: 10px; right: 10px; font-size: 28px; }
.lightbox-prev{ left: 10px; }
.lightbox-next{ right: 10px; }
.lightbox-count{
  position:absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
}

/* Empêche tout débordement horizontal global */
html, body { overflow-x: hidden; }
.wrap, .objet-layout { max-width: 100%; }

/* Layout : évite l’overflow des colonnes (minmax(0,1fr) mentalement) */
.objet-layout {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

/* Très important : autorise le contenu à “rétrécir” (sinon ça déborde) */

.objet-gallery .gallery-btn,
.objet-details .detail-btn {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px;
  cursor: pointer;
  text-align: left;
}

.gallery-thumb {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;     /* taille "grosse vignette" */
  object-fit: contain;   /* IMPORTANT: pas de découpe */
}

/* Hint */
.gallery-hint, .detail-hint {
  display: inline-block;
  margin-top: 10px;
}

/* Lightbox : image optimisée à la fenêtre */
.lightbox-img {
  max-width: 92vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
}


/* ===== OVERRIDE vignette "photos de détail" (discret + crop) ===== */

/* Le bloc reste présent mais visuellement léger */
.objet-details{
  margin-top: 10px;
}

/* Bouton sans padding parasite */
.objet-details .detail-btn{
  padding: 0 !important;
  border-radius: 14px;
  overflow: hidden;
}

/* Vignette : hauteur fixe => peu envahissant + crop centré */
.objet-details .detail-thumb{
  width: 100%;
  height: 140px;          /* ajuste : 120-160 selon ton goût */
  object-fit: cover;      /* IMPORTANT : coupe si vertical */
  object-position: 50% 45%;
  display: block;
}

/* Badge discret "+ X photos" en haut à droite */
.objet-details .detail-hint{
  position: absolute !important;
  top: 10px;
  right: 10px;
  left: auto !important;
  bottom: auto !important;

  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  padding: 5px 8px;
  border-radius: 999px;

  font-size: 12px;
  color: var(--muted);
}

/* Optionnel : au survol, très léger feedback */
.objet-details .detail-btn:hover .detail-thumb{
  filter: saturate(1.02) contrast(1.02);
}

/* --- Mini vignette détails dans l’en-tête de la notice --- */
.notice-head{
  display:flex;
  justify-content:flex-end; /* la vignette seule à droite */
  margin-bottom: 10px;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.notice-title{
  margin: 0;
}

/* bouton discret */
.detail-mini{
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: right;
  flex: 0 0 auto;
}

.detail-mini-img{
  width: 110px;      /* ajustable (90–120) */
  height: 90px;      /* fixe = crop stable */
  display:block;
  border-radius: 12px;
  overflow:hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}

.detail-mini-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* coupe au milieu */
  display:block;
}

/* label +X photos */
.detail-mini-txt{
  display:block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* Notice "carrée" : scroll interne seulement si nécessaire */
.notice{
  display: flex;
  flex-direction: column;
  flex: 1;          /* prend toute la hauteur de la colonne */
}

/* zone scrollable */
.notice-scroll{
  flex: 1;          /* remplit l’espace restant */
  overflow: auto;
}


/* scrollbar un peu plus “propre” (sans être agressif) */
.notice-scroll::-webkit-scrollbar { width: 10px; }
.notice-scroll::-webkit-scrollbar-thumb { border-radius: 8px; background: rgba(0,0,0,.20); }
.notice-scroll::-webkit-scrollbar-track { background: rgba(0,0,0,.06); }

/* bouton */
.notice-toggle {
  align-self: flex-start;
}
.notice-toggle[hidden] { display: none !important; }

#noticeCard{
  overflow: hidden;      /* pas de débordement */
  display: flex;
  flex-direction: column;
}

#noticeBody, #noticeBox{
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;      /* très important en flex pour que le scroll marche bien */
}

#noticeScroll{
  flex: 1;
  min-height: 0;
  overflow: auto;
}

/* Notice repliée : on limite la hauteur du scroll */
.notice.is-collapsed #noticeScroll{
  max-height: 220px;   /* ajuste : 180–280 selon ton goût */
}

/* En mode déplié : pas de max-height (le flex + height carte fait le job) */
.notice:not(.is-collapsed) #noticeScroll{
  max-height: none;
}

/* ===== Modal notice (overlay) ===== */
.notice-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.notice-modal[hidden]{ display:none !important; }

.notice-modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.72);
}

.notice-modal-panel{
  position:absolute;
  inset: 24px;
  margin:auto;
  max-width: 900px;
  max-height: calc(100vh - 48px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 60px rgba(0,0,0,.35);
  overflow: hidden;
  display:flex;
  flex-direction: column;
}

.notice-modal-close{
  position:absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  cursor:pointer;
  font-size: 28px;
  line-height: 42px;
  text-align:center;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;     /* évite les décalages verticaux */
  padding: 0;         /* important pour le centrage */}

.notice-modal-head{
  position: relative;
  padding: 18px 64px 12px 18px; /* 64px à droite = place du bouton */
  border-bottom: 1px solid var(--line);
  min-height: 56px;            /* IMPORTANT : le séparateur descend */

}
.notice-modal-title{
  font-weight: 600;
}

.notice-modal-body{
  padding: 16px 18px;
  overflow: auto;
}

.icon-close{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  line-height:0; /* tue les soucis de font/line-height */
}

.icon-close svg{
  width: 18px;
  height: 18px;
  display:block;
}

/* Boutons navigation lightbox (précédent / suivant) */
.icon-nav{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
  cursor: pointer;
}

.icon-nav svg{
  width: 22px;   /* ajustable : 20–24 */
  height: 22px;
  display: block;
}

.notice-modal-head{
  position: relative;
  z-index: 1; /* le header en dessous */
}

.notice-modal-close{
  z-index: 5; /* la croix AU-DESSUS du header */
}