body {
  font-family: sans-serif;
  min-height: 100vh;
  background-color: #232323;
  color: white;
  margin: 0;
  padding: 0;
}

h1 {
  color: orange;
  font-size: 2rem;
  text-align: center;
}

h6 {
  color: white;
  text-align: center;
}

.extraction {
  font-size: 2em;
  color: white;
  text-align: center;
  margin-top: 1em;
}

.blink_me {
  animation: blinker 1s linear infinite;
}

@keyframes blinker {
  50% { opacity: 0; }
}

/* --- MODALE --- */
.mini_overlay {
    display: none;
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 1001;
}

/* ✅ Toujours plus haute que large */
.mini_modaleVideo {
    display: none;
    position: fixed;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    
    /* Ratio vertical dominant */
    aspect-ratio: 3 / 4;     /* plus haute que large */
    height: 80vh;            /* hauteur de référence */
    max-height: 90vh;        /* limite sécurité */
    max-width: 90vw;         /* évite le débordement horizontal */
    
    background: #101010;
    color: white;
    z-index:1001;
    box-shadow:0 0 30px rgba(0,0,0,0.9);
    border: 2px solid #232323;
    border-radius: 10px;
    overflow: hidden;
}

.mini_contenuModaleVideo {
    display:flex;
    flex-direction:column;
    height: 100%;
}

/* Entête de la modale */
.mini_enteteModaleVideo {
    display: flex;
    justify-content: center;   /* centre le titre */
    align-items: center;
    padding: 15px;
    background: #1a1a1a;
    color: #4479d9;            /* titre bleu */
    font-weight: bold;
    font-size: 1.2em;
    position: relative;        /* pour positionner le bouton */
}


.mini_corpsModaleVideo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: black;
}

.mini_corpsModaleVideo iframe {
    width:100%;
    height:100%;
    border:none;
    border-radius: 0;
}

.mini_piedModaleVideo {
    padding:10px;
    background:#1a1a1a;
    text-align:center;
    color: white;
    font-style: italic;
    flex-shrink: 0;
}

/* Bouton de fermeture */
.mini_close {
    cursor: pointer;
    font-weight: bold;
    font-size: 1.5em;
    color: white;               /* blanc par défaut */
    position: absolute;
    right: 15px;                /* à droite de l’entête */
    top: 50%;
    transform: translateY(-50%);
    transition: color 0.3s ease;
}

.mini_close:hover {
    color: #4479d9;             /* bleu au survol */
}


/* --- MINIATURES --- */
.mini_cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 20px;
    padding: 10px;
}

.mini_cards a {
    display: block;
    width: 100%;
    text-align: center;
}

.mini_cards img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.mini_cards img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px orange;
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .mini_cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .mini_cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .mini_cards {
        grid-template-columns: 1fr;
    }
    .mini_modaleVideo {
        aspect-ratio: 3 / 4; /* toujours plus haute que large */
        height: 90vh;
        width: auto;
        max-width: 95vw;
        border-radius: 8px;
    }
}
