@charset "utf-8";

/* =====================================================
   RESET / BASE
===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

header,
footer,
section,
aside,
nav,
article,
main {
  display: block;
}

body {
  background-color: #000;
  font-family: 'Droid Sans', Helvetica, Arial, sans-serif;
  font-size: 19px;
  color: #fff;
}

img {
  border: 0;
  max-width: 100%;
}

a {
  background-color: transparent;
}

button,
input {
  font-family: inherit;
  font-size: 100%;
}

/* =====================================================
   VARIABLES
===================================================== */

:root {
  --card-bg: #111111;
  --accent-color: #d4af37;
  --text-main: #ffffff;
  --text-muted: #b0b0b0;
  --border-color: #222222;
  --menu-red: #c0202c;

  --spotlight: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(212, 175, 55, 0.08) 50%,
    transparent 80%
  );
}

/* =====================================================
   STRUCTURE
===================================================== */

section {
  padding-top: 10px;  
}

#wrapper {
  width: 100%;
  min-height: 100%;
  margin-bottom: 20px;
  background-color: #000;
}

#contenu {
  margin-top: 30px;
}

#main {
  width: min(1100px, 100%);
  margin: 0 auto;
  min-height: 557px;
  color: #fff;
  overflow: hidden;
  background-image: url("https://www.jeanclaudedreyfus.fr/images/fond33.jpg");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 1100px auto;
  margin-top: 50px;
}

.main2 {  
  padding-top: 100px !important;
}

@media all and (max-width: 1099px) {
  .main2 {
    width: 100% !important;
    margin:0 auto;  
    margin-top: 50px !important; 
    padding: 0 20px;  
  }
}

@media all and (max-width: 850px) {
  .main2 {
    width: 100% !important;
    margin:0 auto;   
    margin-top: 50px !important; 
    padding: 0 20px;   
  }
}

@media all and (max-width: 720px) {
   .main2 {
    width: 100% !important;
    margin:0 auto;    
    margin-top: 50px !important;  
    padding: 0 20px;
  }
}




.main3 {
  background-image: none !important;
  margin-top: 10px !important;
}


/* =====================================================
   HEADER
===================================================== */

header {
  background-color: #000;
  text-align: center;
  height: 21px;
  margin-top: 20px;
}

header img {
  display: block;
  margin: 0 auto;
}


nav {
  background-color: #000;
  
}

#menu {
  background: transparent !important;
}





/* =====================================================
   MENU
===================================================== */

#menu {
  width: min(1100px, 100%);
  margin: 0 auto;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background-color: var(--menu-red);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  border-bottom: 2px solid rgba(0,0,0,0.2);
}

#menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#menu input[type="checkbox"] {
  display: none;
}

#menu .main-menu {
  display: none;
}

#tm:checked + .main-menu {
  display: block;
}

#menu li,
#menu a {
  position: relative;
  display: block;
  color: #fff;
  background-color: var(--menu-red);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

#toggle-menu {
  position: relative;
  display: block;
  color: #000;
  background-color: var(--menu-red);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

#menu a {
  padding: 15px;
  white-space: nowrap;
  text-align: center;
}

#menu a:hover {
  background-color: #000;
  color: var(--accent-color);
}

#toggle-menu {
  padding: 1.2em 1.5em;
  cursor: pointer;
  text-transform: uppercase;
}

.spacer {
  clear: both;
}

/* =====================================================
   TEXTE GLOBAL
===================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
  color: var(--accent-color);
  padding-bottom: 10px;
}

.main2 h2,
.main2 h3,
.main2 h4,
.main2 h5,
.main2 h6 {
  margin-top: 20px;
}

.main2 h2{
  display: inline-flex;
  align-items: center;
  background-color: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--accent-color);
  padding: 8px 20px;
  border-radius: 50px;
  color: #fff;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 400;
  margin-bottom: 20px;
}

.titre-droite {      
  margin-bottom: 10px !important;
  color: var(--accent-color);
}

.titre-centre {      
  margin-bottom: 5px !important;
  color: var(--accent-color);
  text-align: center;
}

a:link,
a:visited {
  color: #f00;
  text-decoration: none;
}

a:hover,
a:active {
  color: #f00;
  text-decoration: underline;
}

p {
  margin-bottom: 15px;
}

li {
  padding-left: 5px;
}

/* =====================================================
   INTRO ACCUEIL
===================================================== */

article#lecture {
  width: 65%;
  margin: 110px auto 0 auto;
  color: #fff;
}

.header-intro {
  margin-bottom: 20px;
}

.nom-artiste,
article#lecture h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5em;
  color: var(--accent-color);
  margin: 0 0 10px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
}

#image_lecture {
  float: right;
  width: 250px;
  height: 290px;
  padding: 0;
  margin: 0 0 15px 20px;
}

#image_lecture img {
  margin-top: 0;
}

.cartouche-metiers {
  display: inline-flex;
  align-items: center;
  background-color: rgba(212, 175, 55, 0.1);
  border: 0 solid var(--accent-color);
  padding: 8px 20px;
  border-radius: 50px;
  color: #fff;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 400;
  margin-bottom: 20px;
}

.generique {
  display: inline-block;
  background-color: rgba(212, 175, 55, 0.1);  
  padding: 8px 40px;
  border-radius: 50px;
  color: #bbbbbb;   
  padding-top: 15px; 
  font-size: 0.8em;

} 

.generique-wrapper {
  text-align: center;
  margin: 30px 0;
}

.separateur {
  color: var(--accent-color);
  margin: 0 10px;
  font-weight: bold;
}


/* =====================================================
   PHOTO HOVER INTRO
===================================================== */

.hover-photo {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.hover-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hover-photo-img-1 {
  z-index: 1;
}

.hover-photo-img-2 {
  z-index: 2;
  opacity: 0;
  transition: opacity 2.5s ease;
}

.hover-photo:not(.no-hover):hover .hover-photo-img-2,
.hover-photo.active .hover-photo-img-2 {
  opacity: 1;
}


.hover-photo picture,
.hover-photo img {
  display: block;
  width: 100%;
  height: 100%;
}

.hover-photo img {
  object-fit: cover;
}

/* =====================================================
   GRILLE DES CARTES
===================================================== */

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 95%;
  margin: 100px auto 50px auto;
}

.content-grid2 {
  margin: 50px auto 50px auto !important;
}

.hero-card,
.news-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  transition:
    transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.4s ease;
}

.news-card {
  flex-direction: column;
}

.hero-card {
  grid-column: span 3;
  height: 450px;
  margin-bottom: 20px;
}

.hero-card::before,
.news-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--spotlight);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.hero-card:hover,
.news-card:hover {
  transform: translateY(-15px);
  border-color: var(--accent-color);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.9),
    0 0 15px rgba(212, 175, 55, 0.1);
}

.hero-card:hover::before,
.news-card:hover::before {
  opacity: 1;
}

.card-img {
  position: relative;
  overflow: hidden;
}

.hero-card .card-img {
  width: 55%;
  height: 100%;
}

.news-card .card-img {
  width: 100%;
  height: 220px;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-card:hover .card-img img,
.news-card:hover .card-img img {
  transform: scale(1.05);
}

.card-body {
  padding: 25px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.hero-card .card-body {
  width: 45%;
  padding: 60px;
  justify-content: center;
}

.card-body h1,
.card-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 15px;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.9em;
  line-height: 1.6;
}

.btn-more {
  text-decoration: none !important;
  color: var(--text-main) !important;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 1px solid var(--accent-color);
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 2px;
  transition: 0.3s;
}

.btn-more:hover {
  color: var(--accent-color) !important;
  border-bottom-width: 2px;
}

/* =====================================================
   ÉTIQUETTES
===================================================== */

.card-tag {
  display: inline-block;
  align-self: flex-start;
  width: auto;
  padding: 4px 15px;
  border-radius: 4px;
  font-size: 0.7em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: #fff;
  white-space: nowrap;
}

.tag-actu { background-color: #b91c1c !important; }
.tag-voix { background-color: #2563eb !important; }
.tag-planche { background-color: #15803d !important; }
.tag-cinema { background-color: #92400e !important; }
.tag-court { background-color: #c2410c !important; }
.tag-plume { background-color: #7c3aed !important; }
.tag-photo { background-color: #475569 !important; }
.tag-default { background-color: #334155 !important; }

/* =====================================================
   FOOTER
===================================================== */

footer {
  background: #000;
  margin-top: 30px;
  width: 100%;
  text-align: center;
  font-size: 80%;
  height: 200px;
  padding-top: 80px;
  background-image: url("https://www.jeanclaudedreyfus.fr/images/fond_fin.jpg");
  background-repeat: no-repeat;
  background-position: top center;
  color: #fff;
  line-height: 1.8;
}

/* =====================================================
   BOUTON RETOUR HAUT
===================================================== */

#backToTop {
  position: fixed;
  bottom: 1.5em;
  right: 1.5em;
  width: 2.4em;
  height: 2.4em;
  border: none;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: #000;
  font-size: 1.4em;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 999;
}

#backToTop:hover {
  transform: scale(1.1);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

#backToTop svg {
  width: 1.4em;
  height: 1.4em;
  vertical-align: middle;
}

/* =====================================================
   ACCESSIBILITÉ
===================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.focus-visible:focus,
:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media only screen and (min-width: 1300px) {
  #menu .main-menu {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
  }

  #toggle-menu {
    display: none;
  }

  #menu li {
    width: auto;
    border-right: 1px solid rgba(255,255,255,0.1);
  }

  #menu li:last-child {
    border-right: none;
  }

  #menu a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: width 0.3s ease;
  }

  #menu a:hover::after {
    width: 100%;
  }
}

/* TABLETTE */
@media all and (max-width: 1099px) {
  #contenu {
    margin-top: 0;
  }

  #menu {
    width: 100%;
  }

  #menu li {
    border-bottom: 1px solid rgba(212,175,55,.25);
  }

  #menu a {
    text-align: center;
    letter-spacing: 1px;
  }

  #main {
    width: 100%;
    min-height: unset;
    
  }

  article#lecture {
    width: 78%;
    margin: 95px auto 0 auto;
  }

  #image_lecture {
    float: right;
    width: 230px;
    height: 270px;
    padding: 0;
    margin: 0 0 15px 20px;
  }

  .content-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 94%;
    gap: 28px;
    margin: 90px auto 50px auto;
  }

  .hero-card {
    grid-column: span 2;
    height: auto;
    min-height: 420px;
  }

  .hero-card .card-body {
    padding: 40px;
  }

  .hero-card .card-img {
    width: 52%;
  }

  .hero-card .card-body {
    width: 48%;
  }
}

/* PETITE TABLETTE */
@media all and (max-width: 850px) {
  article#lecture {
    width: 95%;
    margin-top: 75px;
  }

  .nom-artiste,
  article#lecture h1 {
    font-size: 2.1em;
  }

  .hero-card {
    flex-direction: column;
  }

  .hero-card .card-img,
  .hero-card .card-body {
    width: 100%;
  }

  .hero-card .card-img {
    height: 360px;
  }

  .hero-card .card-body {
    padding: 30px;
  }
}

/* MOBILE */
@media all and (max-width: 720px) {
  body {
    font-size: 17px;
  }

  #main {
    width: 100%;    
  }

  article#lecture {
    width: 95%;
    margin-top: 70px;
  }

  .header-intro {
    margin-bottom: 15px;
  }

  .nom-artiste,
  article#lecture h1 {
    font-size: 1.75em;
    text-align: center;
    line-height: 1.15;
  }

  #image_lecture {
    float: none;
    width: 220px;
    height: 255px;
    padding: 0;
    margin: 18px auto 22px auto;
  }

  .cartouche-metiers {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 18px auto;
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 0.68em;
    letter-spacing: 2px;
  }

  .separateur {
    margin: 0 7px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    width: 92%;
    gap: 28px;
    margin: 70px auto 45px auto;
  }

  .hero-card {
    grid-column: auto;
    flex-direction: column;
    height: auto;
    min-height: unset;
  }

  .hero-card .card-img,
  .hero-card .card-body {
    width: 100%;
  }

  .hero-card .card-img {
    height: 320px;
  }

  .news-card .card-img {
    height: 250px;
  }

  .hero-card .card-body,
  .card-body {
    padding: 22px;
  }

  .card-body h1 {
    font-size: 1.65em;
  }

  .card-body h3 {
    font-size: 1.25em;
  }

  footer {
    margin-top: 50px;
  }
}

/* TRÈS PETIT MOBILE */
@media all and (max-width: 420px) {
  body {
    font-size: 16px;
  }

  article#lecture {
    width: 95%;
    margin-top: 55px;
  }

  .nom-artiste,
  article#lecture h1 {
    font-size: 1.45em;
    letter-spacing: 1px;
  }

  #image_lecture {
    width: 200px;
    height: 235px;
  }

  .cartouche-metiers {
    font-size: 0.62em;
    letter-spacing: 1.5px;
  }

  .hero-card .card-img {
    height: 280px;
  }

  .news-card .card-img {
    height: 220px;
  }

  .content-grid {
    width: 92%;
    margin-top: 60px;
  }

  .card-body {
    padding: 18px;
  }
}

/* =====================================================
   ANIMATIONS RÉDUITES
===================================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ================================================================
   💅 LIGHTBOX IMAGE (minimaliste et fluide)
   ================================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible; /* ✅ évite de cacher la croix */
}

.lightbox-inner {
  position: relative;
  text-align: center;
}

.lightbox-inner img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 0.6em;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s ease-in-out;
}

.lightbox-caption {
  margin-top: 0.5em;
  color: #eee;
  font-size: 0.9em;
  line-height: 1.4;
}

.lightbox-close,
.lightbox-nav {
  color: #fff;
  cursor: pointer;
  font-size: 2em;
  user-select: none;
  transition: color 0.2s;
  z-index: 10001; /* ✅ toujours visible */
}

.lightbox-close:hover,
.lightbox-nav:hover {
  color: #ffb400;
}

/* ✅ Croix de fermeture (améliorée et accessible) */
.lightbox-close {
  position: fixed;
  top: 1em;
  right: 1.5em;
  width: 44px;            /* 🖐️ zone cliquable plus large */
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4em;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;      /* ⚪ forme plus lisible sur fond sombre */
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.25); /* léger halo pour contraste */
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #ffb400;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.lightbox-close:active {
  transform: scale(0.95);
}

/* ✅ navigation reste liée au conteneur */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav.prev {
  left: -2.5em;
}

.lightbox-nav.next {
  right: -2.5em;
}

/* ================================================================
   🎥 LIGHTBOX VIDÉO — ordre d’empilement
   ================================================================ */
.video-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  z-index: 10000; /* assure que la modale est bien au-dessus de tout */
}

.video-modal .video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1; /* fond derrière la vidéo */
}

.video-modal .video-content {
  position: relative;
  z-index: 2; /* 🟢 la vidéo passe DEVANT le fond */
  background: #000;
  padding: 1em;
  border-radius: 10px;
  max-width: 900px;
  width: 95%;
  text-align: center;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

.video-modal .video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* ratio 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.video-modal .video-frame iframe,
.video-modal .video-frame video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.video-modal .video-content h3 {
  color: #fff;
  font-size: 1.1em;
  margin-bottom: 0.6em;
}

.video-modal .video-close {
  position: absolute;
  top: -1.2em;
  right: -1.2em;
  background: none;
  border: none;
  color: #fff;
  font-size: 2em;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: color 0.2s;
}

.video-modal .video-close:hover {
  color: #ffb400;
}


.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(231, 193, 145, 0.45);
  color:  #f00;
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.95em;
}

.page-link.active {
  background:  #f00;
  color: #000;
  pointer-events: none;
  cursor: default;
}

.page-link:hover {
    text-decoration: none;
}

.page-link.dots {
  border-color: transparent;
  padding: 0 4px;
}

.page-link:hover {
  background: rgba(231, 193, 145, 0.15);
}

@media (max-width: 600px) {
  .pagination {
    gap: 6px;
  }

  .page-link {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 0.85em;
  }

  .page-link.dots {
    display: none;
  }

  .page-link:not(.active):not(.prev):not(.next):not(:first-child):not(:last-child) {
    display: none;
  }
}

.introduction {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 40px;
}


/* ================================================================
   🖼️ PHOTOS — toutes catégories
   ================================================================ */


/* -------------------------------
   Catégorie 1 : photo à droite
   ------------------------------- */
.float-photo {
  float: right;
  max-width: 250px;
  margin: 0 0 1em 1.5em;
}

.float-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.6em;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.float-photo figure {
  width: 100%;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  .float-photo {
    float: none;
    max-width: 100%;
    margin: 1em 0;
  }
  .float-photo img {
    margin: 0 auto;
    display: block;
  }
}

/* -------------------------------
   Catégorie 4 : photo intégrée
   ------------------------------- */

/* 📸 Photo flottante à gauche */
.float-photo-left {
  float: left;
  max-width: 250px;
  margin: 0 1.5em 0 0;
}

.float-photo-left img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.6em;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.float-photo-left figure {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* 🌍 Photo pleine largeur dans le texte */
.photo-full {
  display: block;
  width: 100%;
  margin: 1.5em 0;
  clear: both;
}

.photo-full img {
  width: 100%;
  height: auto;
  border-radius: 0.6em;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.photo-full figure {
  margin: 0;
  padding: 0;
}

/* 📱 Responsive (≤ 768px) */
@media (max-width: 768px) {
  .float-photo,
  .float-photo-left,
  .photo-full {
    float: none;
    max-width: 100%;
    margin: 1em 0;
    display: block;
  }

  .float-photo img,
  .float-photo-left img,
  .photo-full img {
    margin: 0 auto;
    display: block;
  }
}


/* -------------------------------
   Catégorie 3 : horizontale
   ------------------------------- */
.galerie-horizontal {
  display: flex;
  flex-direction: column; /* les figures s’empilent verticalement */
  gap: 1.5em;
  margin: 1.5em 0;
}

.galerie-horizontal figure {
  margin: 0;
  width: 100%; /* occupe toute la largeur du parent */
}

.galerie-horizontal picture,
.galerie-horizontal img {
  width: 100%;
  height: auto;
  border-radius: 0.6em;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  display: block;
}


/* -------------------------------
   Catégorie 2 : galerie / mur d'images
   ------------------------------- */
.galerie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6em;
  width: 100%;
  max-width: 1000px;
  margin: 1.5em auto;
  box-sizing: border-box;
}

.galerie-item {
  margin: 0;
  overflow: hidden;
  border-radius: 0.6em;
  transition: transform 0.2s ease;
}

.galerie-item:hover {
  transform: translateY(-4px);
}

.galerie-item a,
.galerie-item picture,
.galerie-item img {
  display: block;
  width: 100%;
}

.galerie-item img {
  height: 220px;
  object-fit: cover;
}

/* Tablette / iPad */
@media (max-width: 900px) {
  .galerie {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6em;
  }

  .galerie-item img {
    height: 240px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .galerie {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .galerie-item {
    width: 100%;
    max-width: 100%;
  }

  .galerie-item img {
    height: auto;
    max-width: 100%;
  }
}

figcaption {
  font-size: 0.7em;
  color: #555;
  margin-top: 0.3em;
}

/* =====================================================
   🧩 PHOTOS INTÉGRÉES — BLOCS DE TAGS
   ===================================================== */
.photos-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-top: 1.2em;
  justify-content: flex-start;
}

.photo-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 140px;
  flex: 1 1 120px;
  box-sizing: border-box;
}

.photo-tag picture img {
  width: 100%;
  height: auto;
  max-width: 120px;
  border-radius: 6px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  object-fit: cover;
}

/* Code du tag */
.code-photo {
  margin-top: 0.4em;
  font-family: monospace;
  font-size: 0.9em;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.3em 0.4em;
  width: 100%;
  cursor: pointer;
  background: #f9f9f9;
  transition: background 0.2s, border-color 0.2s;
  user-select: all;
}

.code-photo:hover {
  background: #eef;
  border-color: #99f;
}

.code-photo.copied {
  background: #dff0d8;
  border-color: #9c9;
}

/* =====================================================
   📱 VERSION MOBILE
   ===================================================== */
@media (max-width: 700px) {
  .photos-tags {
    justify-content: center;
    gap: 0.8em;
  }

  .photo-tag {
    width: 45%;
    flex: 1 1 45%;
  }
}

@media (max-width: 450px) {
  .photo-tag {
    width: 100%;
    flex: 1 1 100%;
  }

  .photo-tag picture img {
    max-width: 100%;
  }
}



/* ================================================================
   📎 DOCUMENTS À TÉLÉCHARGER
   ================================================================ */
.documents {
  margin-top: 2em;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5em;
}

.documents h3 {
  margin-top: 0;
  font-size: 1.2em;
  color: #333;
  border-bottom: 1px solid #ccc;
  padding-bottom: .5em;
  margin-bottom: 1em;
}

.documents ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1em;
}

.documents li {
  background: white;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  padding: 1em;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.documents li:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.documents a {
  color: #0077cc;
  text-decoration: none;
  font-weight: 500;
}

.documents a:hover {
  text-decoration: underline;
}

.documents small {
  display: block;
  margin-top: .3em;
  color: #666;
  font-size: .9em;
}

.doc-ext {
  color: #777;
  font-size: 0.9em;
  margin-left: 0.3em;
}

/* ================================================================
   🎬 SECTION VIDÉOS - FORMAT GRANDE LARGEUR SANS CADRE
   ================================================================ */
.videos-list {
  margin-top: 3em;
  display: flex;
  flex-direction: column;
  gap: 1em; /* Espace entre chaque bloc vidéo */
}

.video-bloc {
  background: #242424; /* Fond sombre pour détacher la vidéo */
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  padding: 1.5em;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: border-color .3s ease, box-shadow .3s ease;
}

.video-bloc:hover {
  border-color: #e50914; /* Éclairage rouge au survol */
  box-shadow: 0 4px 20px rgba(229, 9, 20, 0.15);
}

.video-bloc h4 {
  margin-top: 0;
  margin-bottom: 1em;
  font-size: 1.2em;
  color: #ffffff;
  font-weight: 500;
  border-left: 3px solid #e50914; /* Petite touche rouge élégante devant le titre */
  padding-left: 10px;
}

/* Conteneurs vidéo uniformes (externe et interne) */
.video-frame, 
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* Ratio strict 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.video-frame iframe,
.video-frame video,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Vignette et bouton Play personnalisé */
.video-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-thumbnail:hover img {
  transform: scale(1.02);
}

/* Bouton Play moderne et épuré */
.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  background: rgba(229, 9, 24, 0.85);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
  z-index: 3;
}

.video-play-button::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 22px;
  width: 0;
  height: 0;
  border-left: 20px solid white;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}

.video-thumbnail:hover .video-play-button {
  background: #e50914;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 25px rgba(229, 9, 24, 0.6);
}

/* Infos et Légendes sous la vidéo */
.video-meta {
  margin-top: 1.2em;
}

.video-legend {
  display: block;
  font-style: italic;
  color: #cccccc;
  font-size: 0.95em;
  margin-bottom: 0.4em;
  line-height: 1.5;
}

.video-credits {
  display: block;
  color: #8c8c8c;
  font-size: 0.85em;
}


/* ================================================================
   📱 RESPONSIVE — documents & vidéos
   ================================================================ */
@media (max-width: 700px) {
  .documents ul {
    grid-template-columns: 1fr;
  }
  .documents li {
    padding: .9em;
  }

  .videos {
    padding: 1em;
  }

  .video-bloc {
    padding: 1em;
  }

  .video-frame {
    padding-bottom: 60%; /* un peu plus haut pour mobile */
  }
}

/* ================================================================
   📱 NAV RESSOURCE A UNE AUTRE 
   ================================================================ */


.ressource-nav {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin: 50px 0 20px;
  padding-top: 25px;
  border-top: 1px solid rgba(231, 193, 145, 0.35);
}

.ressource-nav-item {
  flex: 1;
}

.ressource-nav-item.right {
  text-align: right;
}

.ressource-nav-link {
  display: inline-block;
  color: #e7c191;
  text-decoration: none;
}

.ressource-nav-link span {
  display: block;
  font-size: 0.85em;
  opacity: 0.75;
  margin-bottom: 5px;
}

.ressource-nav-link strong {
  color: #fff;
  font-size: 1.05em;
}

.ressource-nav-link:hover strong {
  color: #e7c191;
}

@media (max-width: 700px) {

  .ressource-nav {
    flex-direction: column;
    gap: 18px;
    margin: 35px 0 15px;
  }

  .ressource-nav-item,
  .ressource-nav-item.right {
    width: 100%;
    text-align: left;
  }

  .ressource-nav-link {
    display: block;
    padding: 14px 16px;
    border: 1px solid rgba(231, 193, 145, 0.35);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
  }

  .ressource-nav-link strong {
    display: block;
    font-size: 1em;
    line-height: 1.35;
  }

}

.retour-liste {
  margin:0 0 15px 0;
}


/* =====================================================
   COOKIE POUR VIDEO
   ===================================================== */

.external-consent-block {
  position: relative;
  margin: 1.5em 0;
  background: #111;
  overflow: hidden;
}

.external-consent-block.has-thumb {
  aspect-ratio: 16 / 9;
}

.external-consent-block.no-thumb {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.external-consent-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Voile */
.external-consent-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1em;
  padding: 1.5em;
  text-align: center;
  color: #fff;
}

.external-consent-block.no-thumb .external-consent-overlay {
  position: relative;
  inset: auto;
  background: transparent;
}

/* Bouton play */
.external-consent-play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  line-height: 1;
  padding-left: 0.1em;
}

.external-consent-overlay p {
  max-width: 560px;
  margin: 0;
  line-height: 1.5;
}

.accept-external-content {
  border: 0;
  border-radius: 999px;
  padding: 0.8em 1.3em;
  cursor: pointer;
  font-weight: 700;
}

/* Une fois accepté */
.video-frame.external iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  display: block;
}

.video-frame.external video,
.video-frame.external embed,
.video-frame.external object {
  max-width: 100%;
}
