/* =========================================================
   BIPC – style.css (version stable de reprise)
   ========================================================= */

/* ===== RESET / STABILISATION ===== */
*,
*::before,
*::after{
  box-sizing:border-box;
}

html,
body{
  width:100%;
  margin:0;
  padding:0;
  overflow-x:hidden;
  scroll-behavior:smooth;
}

body{
  background:#000;
  color:#fff;
  font-family:Arial, Helvetica, sans-serif;
}

img,
iframe,
embed{
  max-width:100%;
  height:auto;
  display:block;
}

/* ===== LIENS ===== */
a{
  color:inherit;
}

a[href^="mailto:"],
a[href^="tel:"]{
  color:#cc0000;
  text-decoration:none;
  font-weight:bold;
}

a[href^="mailto:"]:hover,
a[href^="tel:"]:hover{
  color:#fff;
  text-decoration:underline;
}

/* ===== HEADER ===== */
header{
  width:100%;
  box-sizing:border-box;
  padding:25px;
  border-bottom:4px solid #cc0000;
  background:linear-gradient(135deg,#111,#333);
}

.header-container{
  max-width:1200px;
  margin:0 auto;
  padding:0 40px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:40px;
  text-align:center;
}

.logo{
  width:120px;
  height:auto;
  flex-shrink:0;
}

.titre{
  flex:1;
  text-align:center;
}

.titre h1{
  margin:0;
  font-size:28px;
}

.titre p{
  margin:5px 0 0 0;
  color:#ccc;
}

/* ===== NAV ===== */
nav{
  max-width:1200px;
  margin:20px auto 0 auto;
  padding:0 40px;
  display:flex;
  justify-content:center;
  gap:30px;
  flex-wrap:wrap;
  box-sizing:border-box;
}

nav a{
  color:#fff;
  text-decoration:none;
  font-weight:bold;
  position:relative;
  white-space:nowrap;
}

nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-5px;
  width:0;
  height:2px;
  background:#cc0000;
  transition:0.3s;
}

nav a:hover::after{
  width:100%;
}

/* ===== HERO BANNER ===== */
.hero-banner{
  position:relative;
}

.hero-banner img{
  width:100%;
  height:30vh;
  min-height:220px;
  max-height:380px;
  object-fit:cover;
}

.hero-banner::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.25);
}

.hero-text{
  position:absolute;
  bottom:30px;
  left:50%;
  transform:translateX(-50%);
  text-align:center;
  background:rgba(0,0,0,0.55);
  padding:16px 30px;
  border-radius:6px;
  z-index:1;
  max-width:calc(100% - 40px);
}

.hero-text h2{
  margin:0 0 6px 0;
  font-size:26px;
  font-weight:500;
}

.hero-text p{
  margin:0;
  color:#ddd;
  line-height:1.3;
}

/* ===== MAIN ===== */
main{
  max-width:1200px;
  margin:60px auto;
  padding:0 40px;
}

/* =========================================================
   ACCUEIL
   ========================================================= */
.intro-festival{
  max-width:900px;
  margin:0 auto 50px auto;
  text-align:center;
  line-height:1.7;
}

.intro-festival p{
  color:#ccc;
  margin-bottom:18px;
}

.home-poster{
  text-align:center;
  margin:60px auto;
}

.home-poster img{
  display:block;
  margin:0 auto;
  max-width:320px;
  width:100%;
  border:3px solid #cc0000;
  border-radius:6px;
  box-shadow:0 15px 35px rgba(0,0,0,0.6);
  cursor:pointer;
}

.home-sections{
  display:flex;
  gap:40px;
  align-items:flex-start;
}

.section-gauche,
.section-droite{
  width:50%;
}

.section-gauche{
  border-right:3px solid #cc0000;
  padding-right:30px;
}

.section-gauche,
.section-droite{
  opacity:0;
  animation:fadeIn 1s ease forwards;
}

.section-droite{
  animation-delay:0.3s;
}

@keyframes fadeIn{
  from{
    opacity:0;
    transform:translateY(20px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.expo-row{
  display:flex;
  gap:30px;
}

.expo-row .card{
  flex:1;
}

.home-sections img{
  width:100%;
  height:300px;
  object-fit:cover;
  box-shadow:0 10px 30px rgba(0,0,0,0.6);
  transition:transform 0.6s ease, filter 0.6s ease;
  filter:brightness(0.9);
}

.home-sections img:hover{
  transform:scale(1.03);
  filter:brightness(1);
}

.expo-row .card img,
.section-droite .card img{
  height:350px;
  object-fit:cover;
}

/* ===== CARTES ===== */
.card{
  display:flex;
  flex-direction:column;
}

.card h3{
  margin:15px 0 5px 0;
  font-size:18px;
}

.card p{
  font-size:14px;
  color:#ccc;
  line-height:1.4;
}

.card a{
  color:#cc0000;
  text-decoration:none;
  font-weight:bold;
}

.card a:hover{
  text-decoration:underline;
}

/* ===== LIGHTBOX AFFICHE ACCUEIL ===== */
.poster-lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.95);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.poster-lightbox-img{
  max-width:85%;
  max-height:85%;
  border:4px solid #cc0000;
  border-radius:8px;
}

.poster-close{
  position:absolute;
  top:25px;
  right:40px;
  font-size:45px;
  cursor:pointer;
  color:#fff;
}

.poster-close:hover{
  color:#cc0000;
}

/* =========================================================
   EXPOSITIONS
   ========================================================= */
.page-expositions main{
  max-width:1150px;
  margin:90px auto;
  padding:60px 40px;
  background:#111;
}

.page-expositions .page-title{
  font-size:30px;
  letter-spacing:4px;
  text-transform:uppercase;
  border-bottom:4px solid #cc0000;
  padding-bottom:20px;
  margin-bottom:50px;
}

.page-expositions .expo-item{
  display:flex;
  gap:70px;
  margin-bottom:70px;
  align-items:flex-start;
  opacity:0;
  transform:translateY(50px) scale(0.98);
  animation:expoReveal 0.8s ease forwards;
}

.page-expositions .expo-item:nth-child(1){animation-delay:0.1s;}
.page-expositions .expo-item:nth-child(2){animation-delay:0.25s;}
.page-expositions .expo-item:nth-child(3){animation-delay:0.4s;}
.page-expositions .expo-item:nth-child(4){animation-delay:0.55s;}
.page-expositions .expo-item:nth-child(5){animation-delay:0.7s;}
.page-expositions .expo-item:nth-child(6){animation-delay:0.85s;}
.page-expositions .expo-item:nth-child(7){animation-delay:1s;}
.page-expositions .expo-item:nth-child(8){animation-delay:1.15s;}
.page-expositions .expo-item:nth-child(9){animation-delay:1.3s;}
.page-expositions .expo-item:nth-child(10){animation-delay:1.45s;}

@keyframes expoReveal{
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

.page-expositions .expo-image{
  width:48%;
  position:relative;
}

.page-expositions .expo-image img{
  width:100%;
  height:300px;
  object-fit:cover;
  border:3px solid #cc0000;
  border-radius:10px;
  transition:transform 0.6s ease;
}

.page-expositions .expo-image img:hover{
  transform:scale(1.03);
}

.page-expositions .expo-caption{
  position:absolute;
  bottom:18px;
  left:18px;
  background:rgba(0,0,0,0.75);
  padding:10px 18px;
  border-radius:6px;
  font-size:14px;
  letter-spacing:1px;
}

.page-expositions .expo-text{
  width:52%;
  line-height:1.9;
  font-size:15px;
}

.page-expositions .expo-title{
  font-size:20px;
  letter-spacing:3px;
  text-transform:uppercase;
  border-left:5px solid #cc0000;
  padding-left:20px;
  margin-bottom:40px;
}

.page-expositions .expo-back{
  margin-top:30px;
}

.page-expositions .expo-back a{
  display:inline-block;
  padding:12px 26px;
  font-size:15px;
  letter-spacing:1.5px;
  text-decoration:none;
  color:#fff;
  border:1px solid rgba(204,0,0,0.6);
  border-radius:8px;
  background:rgba(0,0,0,0.4);
  opacity:0.95;
  transition:all 0.45s ease;
}

.page-expositions .expo-back a:hover{
  background:#cc0000;
  color:#fff;
  transform:translateY(-3px);
  box-shadow:0 0 18px rgba(204,0,0,0.35);
}

/* =========================================================
   PAGES AUTEURS
   ========================================================= */
.artist-layout{
  display:flex;
  gap:50px;
  align-items:flex-start;
  margin-top:40px;
}

.artist-photo{
  width:280px;
  height:350px;
  object-fit:cover;
  border:3px solid #cc0000;
  border-radius:6px;
  display:block;
}

.artist-bio{
  flex:1;
}

.nav-links{
  margin-top:30px;
}

.nav-links a{
  color:#cc0000;
  text-decoration:none;
  font-weight:bold;
}

.nav-links a:hover{
  color:#fff;
  text-decoration:underline;
}

/* =========================================================
   GALERIE
   ========================================================= */
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}

.gallery-grid img{
  width:100%;
  height:250px;
  object-fit:cover;
  border:2px solid #cc0000;
  border-radius:6px;
  cursor:pointer;
  transition:transform 0.3s;
}

.gallery-grid img:hover{
  transform:scale(1.05);
}

.gallery-item{
  text-align:center;
}

.gallery-item .year{
  margin-top:10px;
  letter-spacing:1px;
}

.year{
  font-weight:700;
}

/* ===== LIGHTBOX GALERIE ===== */
.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.95);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  visibility:hidden;
  transition:opacity 0.4s ease;
  z-index:999;
}

.lightbox.active{
  opacity:1;
  visibility:visible;
}

.lightbox-img{
  max-width:80%;
  max-height:80%;
  border:4px solid #cc0000;
  border-radius:8px;
  transform:scale(0.9);
  transition:transform 0.4s ease;
}

.lightbox.active .lightbox-img{
  transform:scale(1);
}

.close{
  position:absolute;
  top:25px;
  right:40px;
  font-size:40px;
  cursor:pointer;
}

.prev,
.next{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  font-size:50px;
  cursor:pointer;
  user-select:none;
}

.prev{ left:30px; }
.next{ right:30px; }

.prev:hover,
.next:hover,
.close:hover{
  color:#cc0000;
}

.counter{
  position:absolute;
  top:25px;
  left:40px;
  font-size:18px;
  color:#ccc;
}

#caption{
  position:absolute;
  bottom:40px;
  width:100%;
  text-align:center;
  font-weight:700;
  font-size:24px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:#fff;
}

#caption::before{
  content:"";
  display:block;
  width:80px;
  height:3px;
  background:#cc0000;
  margin:0 auto 12px auto;
}

/* =========================================================
   ARCHIVES
   ========================================================= */
.archives-timeline{
  display:flex;
  flex-wrap:wrap;
  gap:0.6rem;
  margin:2rem 0;
}

.archives-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:40px;
  margin-top:40px;
}

.archive-item{
  position:relative;
  text-decoration:none;
  color:#fff;
  text-align:center;
  transition:transform 0.3s ease;
}

.archive-item img{
  width:100%;
  height:300px;
  object-fit:cover;
  border:2px solid #cc0000;
  border-radius:6px;
  margin-bottom:15px;
  transition:transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-item:hover{
  transform:translateY(-8px);
}

.archive-item:hover img{
  box-shadow:0 10px 30px rgba(0,0,0,0.6);
}

.archive-year{
  font-size:22px;
  font-weight:700;
  letter-spacing:2px;
}

.archive-city{
  font-size:14px;
  color:#aaa;
  margin-top:5px;
}

.badge-current{
  position:absolute;
  top:10px;
  left:10px;
  background:#cc0000;
  color:#fff;
  padding:6px 10px;
  font-size:12px;
  letter-spacing:1px;
  border-radius:4px;
  font-weight:600;
  z-index:2;
}

/* =========================================================
   BOUTONS
   ========================================================= */
.button{
  display:inline-block;
  max-width:100%;
  box-sizing:border-box;
  padding:12px 22px;
  border:1px solid rgba(204,0,0,0.6);
  border-radius:8px;
  background:rgba(0,0,0,0.4);
  color:#fff;
  text-decoration:none;
  letter-spacing:1px;
  white-space:normal;
  word-break:break-word;
  transition:all 0.35s ease;
}

.button:hover{
  background:#cc0000;
  transform:translateY(-2px);
  box-shadow:0 0 18px rgba(204,0,0,0.35);
}

/* =========================================================
   PROGRAMME
   ========================================================= */
.programme-block{
  background:#111;
  border:1px solid #333;
  border-radius:6px;
  padding:20px 25px;
  margin:25px 0;
}

.programme-block h3{
  margin-top:0;
  color:#cc0000;
}

/* =========================================================
   CONTACT
   ========================================================= */
body.page-contact main{
  max-width:1200px;
  width:100%;
  margin:60px auto;
  padding:0 40px;
}

body.page-contact .contact-map{
  margin-top:40px;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer{
  text-align:center;
  padding:20px;
  font-size:14px;
  color:#888;
  background:#000;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:900px){
  .header-container{
    flex-direction:column;
    padding:0 12px;
  }

  nav{
    padding:0 12px;
    gap:20px;
  }

  .hero-banner img{
    height:240px;
  }

  .hero-text{
    width:calc(100% - 40px);
    padding:14px 18px;
  }

  .hero-text h2{
    font-size:22px;
  }

  .home-sections{
    flex-direction:column;
  }

  .section-gauche,
  .section-droite{
    width:100%;
  }

  .section-gauche{
    border-right:none;
    padding-right:0;
  }

  .expo-row{
    flex-direction:column;
  }

  .page-expositions .expo-item{
    flex-direction:column;
    gap:30px;
    margin-bottom:80px;
  }

  .page-expositions .expo-image,
  .page-expositions .expo-text{
    width:100%;
  }

  .page-expositions .expo-image img{
    height:280px;
  }

  .page-expositions .page-title{
    font-size:28px;
  }

  .gallery-grid{
    grid-template-columns:repeat(2, 1fr);
  }

  .archive-item img{
    height:240px;
  }
}

@media (max-width:768px){
  .artist-layout{
    flex-direction:column;
    align-items:center;
    text-align:center;
  }

  .artist-photo{
    margin-bottom:20px;
  }
}

@media (max-width:600px){
  main,
  body.page-contact main{
    padding:0 18px;
  }

  .gallery-grid{
    grid-template-columns:1fr;
  }

  .hero-text h2{
    font-size:20px;
  }

  .hero-text p{
    font-size:14px;
  }
}
.page-archhive-photos .slideshow-container{
  max-width:1200px;
  }
  .page-container{
    max-width:1100px;
    margin:0 auto;
    padding:0 20px;
      }
      /* =========================================================
   CORRECTIF FINAL – expositions.html trop grand / trop large
   À coller tout en bas du style.css
   ========================================================= */

.page-expositions main{
  max-width:980px !important;
  margin:40px auto !important;
  padding:28px 22px !important;
  background:#111 !important;
}

.page-expositions .page-title{
  margin-bottom:35px !important;
  font-size:28px !important;
  letter-spacing:2px !important;
}

.page-expositions .expo-item{
  max-width:920px !important;
  margin:0 auto 50px auto !important;
  gap:28px !important;
  align-items:flex-start !important;
}

.page-expositions .expo-image{
  width:260px !important;
  min-width:260px !important;
  flex:0 0 260px !important;
  height:340px !important;
  padding:8px !important;
  border:3px solid #cc0000 !important;
  border-radius:10px !important;
  overflow:hidden !important;
  box-shadow:0 15px 35px rgba(0,0,0,0.45) !important;
}

.page-expositions .expo-image img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center !important;
  background:#111 !important;
}

.page-expositions .expo-text{
  width:auto !important;
  flex:1 !important;
  font-size:15px !important;
  line-height:1.75 !important;
}

.page-expositions .expo-title{
  font-size:20px !important;
  letter-spacing:1px !important;
  margin-bottom:22px !important;
  padding-left:16px !important;
}

.page-expositions .expo-caption{
  font-size:11px !important;
  padding:6px 10px !important;
  bottom:10px !important;
  left:10px !important;
}

.page-expositions .expo-back a,
.page-expositions .expo-toggle{
  width:auto !important;
  min-width:180px;
  text-align:center;
}

@media (max-width: 768px){
  .page-expositions main{
    max-width:100% !important;
    padding:22px 14px !important;
  }

  .page-expositions .expo-item{
    flex-direction:column !important;
    gap:20px !important;
    margin-bottom:40px !important;
  }

  .page-expositions .expo-image{
    width:100% !important;
    min-width:0 !important;
    flex:none !important;
    height:auto !important;
  }

  .page-expositions .expo-image img{
    width:100% !important;
    height:auto !important;
    max-height:420px !important;
  }

  .page-expositions .expo-text{
    width:100% !important;
  }

  .page-expositions .expo-back a,
  .page-expositions .expo-toggle{
    width:100% !important;
  }
}
.page-expositions .expo-more{
  display:none;
}
.page-expositions .expo-more.open{
 display:block;
} 