/* Fine Art Cube — styles personnalisés (complément du thème Creative) */

/* ---- Typographie : Helvetica partout ---- */
body, h1, h2, h3, h4, h5, h6, p, a, li, span, div, strong, em, blockquote,
.navbar, .btn, input, textarea, select, button, .section-heading, .exh-title,
.exh-card-museum, .lead, .feed-title {
  font-family: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif !important;
}
h1, h2, h3, .section-heading, .exh-title { letter-spacing: .01em; }

/* ---- Hero : diaporama avec fondu ---- */
.masthead { position: relative; overflow: hidden; background: #1a1a1a !important; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); z-index: 1; }
.masthead > .container { position: relative; z-index: 2; }
.masthead-logo { max-width: 260px; height: auto; border-radius: 6px;
  animation: logoReveal 1.2s cubic-bezier(.16,.8,.24,1) both; will-change: transform, opacity; }
@keyframes logoReveal {
  0%   { opacity: 0; transform: translateY(26px) scale(.82); filter: blur(6px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.masthead > .container strong,
.masthead > .container .text-faded,
.masthead > .container .btn { animation: fadeUp 1s ease .35s both; }
.masthead > .container .btn { animation-delay: .6s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .masthead-logo, .masthead > .container strong, .masthead > .container .text-faded, .masthead > .container .btn { animation: none; }
}

/* ---- Sélecteur de langue : drapeaux seuls ---- */
.lang-switch { display: inline-flex; align-items: center; }
.lang-switch a { padding: 0 5px; opacity: .5; line-height: 1; }
.lang-switch a.active, .lang-switch a:hover { opacity: 1; }
.lang-switch img { width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.2); vertical-align: middle; }

/* ---- Fonds de sections (couleur / image / gif / vidéo / YouTube) ---- */
.fac-sec { position: relative; }
.fac-sec.has-bg-media { overflow: hidden; }
.fac-sec.has-bg-media > .container,
.fac-sec.has-bg-media > .container-fluid { position: relative; z-index: 2; }
/* Vidéo de fond en plein cadre (couvre toute la section, jamais de bande noire,
   quelle que soit la hauteur/largeur — technique background-cover sans object-fit) */
.sec-bg-media { position: absolute; top: 50%; left: 50%; z-index: 0; display: block;
  width: auto; height: auto; min-width: 100%; min-height: 100%; max-width: none;
  transform: translate(-50%, -50%); object-fit: cover; object-position: center; }
.sec-bg-yt { pointer-events: none; overflow: hidden; }
.sec-bg-yt iframe { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw;
  min-height: 100%; min-width: 177.77vh; transform: translate(-50%,-50%); border: 0; }
.sec-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.4); z-index: 1; }

.about-body p { text-align: justify; }
.about-body img { box-shadow: 0 6px 24px rgba(0,0,0,.25); }

.map-embed { position: relative; width: 100%; height: 420px; border-radius: 6px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.15); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Réseaux sociaux (contact + footer) ---- */
.contact-social a, .footer-social a { display: inline-block; width: 44px; height: 44px; line-height: 44px;
  text-align: center; border-radius: 50%; margin: 0 5px; font-size: 1.2rem; text-decoration: none; transition: all .2s; }
.contact-social a { color: #fff; border: 1px solid rgba(255,255,255,.4); }
.contact-social a:hover { background: #e50000; border-color: #e50000; color: #fff; }
.footer-social a { color: #cfcfcf; }
.footer-social a:hover { color: #fff; }
.admin-gear { color: inherit; margin-left: 10px; opacity: .55; text-decoration: none; }
.admin-gear:hover { opacity: 1; color: #e50000; }

/* ---- Flux Instagram / YouTube ---- */
.social-feeds { background: #141414; color: #eaeaea; padding: 3.2rem 0 2.4rem; }
.feed-block { margin-bottom: 2rem; }
.feed-title { font-size: 1.05rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.feed-title i { color: #e50000; margin-right: .4rem; }
.feed-title a { color: #fff; text-decoration: none; }
.feed-title a:hover { color: #e50000; }
.feed-grid { display: grid; gap: .8rem; }
.feed-insta { grid-template-columns: repeat(4, 1fr); }
.feed-youtube { grid-template-columns: repeat(4, 1fr); }
.feed-item { position: relative; display: block; border-radius: 8px; overflow: hidden; background: #222; }
.feed-insta .feed-item { aspect-ratio: 1 / 1; }
.feed-youtube .feed-item { aspect-ratio: 16 / 9; }
.feed-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; display: block; }
.feed-item:hover img { transform: scale(1.06); }
.feed-ico { position: absolute; top: 8px; right: 10px; color: #fff; font-size: 1.1rem; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.feed-play { top: 50%; left: 50%; right: auto; transform: translate(-50%,-50%); width: 46px; height: 46px; line-height: 46px;
  text-align: center; border-radius: 50%; background: rgba(229,0,0,.9); font-size: 1rem; }
.feed-caption { position: absolute; left: 0; right: 0; bottom: 0; color: #fff; font-size: .74rem; line-height: 1.3;
  padding: 1.4rem .55rem .55rem; background: linear-gradient(transparent, rgba(0,0,0,.9)); }
.feed-cta { text-align: center; margin-top: 1.6rem; }
.btn-channel { display: inline-block; background: #e50000; color: #fff; text-decoration: none;
  padding: .75rem 1.6rem; border-radius: 30px; font-weight: 700; font-size: .92rem; letter-spacing: .02em;
  transition: background .2s, transform .2s; }
.btn-channel:hover { background: #ff1a1a; color: #fff; transform: translateY(-2px); }
.btn-channel i { margin-right: .4rem; }

/* ---- En-tête de page interne (réduit) ---- */
.page-head { min-height: 0; padding: 6.5rem 0 2.2rem; background: #1a1a1a center/cover no-repeat; position: relative; }
.page-head h1 { font-weight: 700; font-size: 2.2rem; letter-spacing: .03em; margin-bottom: .4rem; }
.page-head .lead { color: rgba(255,255,255,.85); font-size: 1rem; }
.exh-head { padding: 6.5rem 0 1.8rem; }
.exh-museum-label { text-transform: uppercase; letter-spacing: .16em; font-size: .82rem; opacity: .85; margin-bottom: .3rem; }
.exh-title { font-size: 2.3rem; margin-bottom: 0; }

.breadcrumb-wrap { margin-top: 1rem; }
.breadcrumb { background: transparent; padding-left: 0; font-size: .9rem; }
.breadcrumb-item a { color: #e50000; text-decoration: none; }

/* ---- Cartes d'exposition ---- */
.exh-card { display: block; text-decoration: none; color: inherit; background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.10); transition: transform .25s ease, box-shadow .25s ease; height: 100%; }
.exh-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,.20); color: inherit; text-decoration: none; }
.exh-card-img { display: block; height: 230px; background-size: cover; background-position: center; position: relative; }
.exh-card-body { display: block; padding: 1.1rem 1.2rem 1.3rem; }
.exh-card-museum { display: block; font-weight: 700; font-size: 1.02rem; line-height: 1.3; color: #212529; }
.exh-card-sub { display: block; color: #e50000; font-size: .9rem; margin-top: .35rem; text-transform: uppercase; letter-spacing: .03em; }
.exh-card-more { display: inline-block; margin-top: .7rem; font-size: .82rem; color: #777; letter-spacing: .05em; }
.exh-preview .exh-card-img { height: 200px; }
.exh-list-section { padding: 3rem 0 4.5rem; }

/* ---- Détail exposition ---- */
.exh-detail { padding-top: 2.5rem; }
.exh-desc { font-size: 1.06rem; line-height: 1.8; color: inherit; }
.exh-desc p { text-align: justify; }
.exh-grid .exh-photo { display: block; overflow: hidden; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.14); }
.exh-grid .exh-photo img { width: 100%; height: 260px; object-fit: cover; transition: transform .4s ease; }
.exh-grid .exh-photo:hover img { transform: scale(1.06); }

.footer-bar { padding: 2.2rem 0; }
.footer-links a { color: #ddd; text-decoration: none; margin: 0 .15rem; }
.footer-links a:hover { color: #fff; }

/* ---- Responsive / mobile ---- */
@media (max-width: 991px) {
  #mainNav .navbar-nav { padding: .5rem 0; }
  #mainNav .nav-link { padding: .5rem 0; }
}
@media (max-width: 768px) {
  .page-head h1, .exh-title { font-size: 1.7rem; }
  .page-head { padding: 6rem 0 1.6rem; }
  .exh-grid .exh-photo img { height: 200px; }
  .masthead-logo { max-width: 190px; }
  .about-body p { text-align: left; }
  .exh-desc p { text-align: left; }
  .map-embed { height: 320px; }
  .feed-insta { grid-template-columns: repeat(2, 1fr); }
  .feed-youtube { grid-template-columns: repeat(2, 1fr); }
  .exh-card-img { height: 200px; }
}
@media (max-width: 480px) {
  .feed-youtube { grid-template-columns: 1fr; }
  .contact-social a, .footer-social a { width: 40px; height: 40px; line-height: 40px; margin: 0 3px; }
}
