/* =======================================================
   LIGHTBOX POUR LES IMAGES (clic = zoom, fond flou)
   ======================================================= */

/* Overlay plein écran */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;                 /* au-dessus du header */
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6); /* fond sombre */
  backdrop-filter: blur(8px);     /* flou de l'arrière-plan */
}

/* Quand la lightbox est ouverte */
.lightbox-overlay.open {
  display: flex;
}

/* Image zoomée */
.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .6);
}

/* Bouton de fermeture (croix) */
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2.2rem;
  line-height: 1;
  border: none;
  background: none;
  color: #ffffff;
  cursor: pointer;
}

/* Empêche le scroll quand la lightbox est ouverte */
body.lightbox-open {
  overflow: hidden;
}


/* =======================================================
   TYPOGRAPHIE GENERALE — ARIAL
   Remplace la police par défaut de MkDocs Material
   ======================================================= */

:root {
  --md-text-font: Arial, Helvetica, sans-serif;
  --md-heading-font: Arial, Helvetica, sans-serif;
}

.md-typeset {
  font-family: Arial, Helvetica, sans-serif !important;
}

.md-nav__title,
.md-header__title,
.md-header__topic,
.md-sidebar--primary,
.md-sidebar--secondary {
  font-family: Arial, Helvetica, sans-serif !important;
}


/* =======================================================
   0. SUPPRESSION DU “Accueil” BLEU (breadcrumb)
   ======================================================= */

/* Supprime le titre généré automatiquement par MkDocs */
.md-content__title {
  display: none !important;
}

/* Supprime aussi le petit bloc "Accueil" (fil d'Ariane) */
.md-content__inner > nav {
  display: none !important;
}



/* =======================================================
   1. ÉLARGIR LA ZONE CENTRALE DU SITE (plus moderne)
   ======================================================= */

/* Agrandit le container principal → max 1400px */
.md-main__inner {
  max-width: 1400px !important; /* large comme un vrai site web */
  width: 90%;
  margin: auto;
}



/* =======================================================
   2. HERO VIDEO – BANNIÈRE D'ACCUEIL FULL MODERNE
   ======================================================= */

/* Conteneur de la vidéo */
.hero-video {
  position: relative;
  height: 60vh;
  min-height: 420px;
  border-radius: 22px;
  overflow: hidden;
  margin: 1.5rem 0 2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

/* Vidéo */
.hero-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay dégradé + léger blur */
.hero-video__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.75));
  backdrop-filter: blur(2px);
}

/* Texte + bouton au centre */
.hero-video__content {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 1.2rem;
  color: #fff;
}

/* Titre futuriste avec dégradé néon */
.hero-video__content h1 {
  font-size: clamp(2rem, 4.5vw, 3.3rem);
  background: linear-gradient(90deg, #00eaff, #9bd3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: .5rem;
}

/* Sous-titre */
.hero-video__content p {
  font-size: 1.2rem;
  opacity: .93;
  margin-bottom: 1.2rem;
}

/* Bouton effet verre */
.btn-glass {
  display: inline-block;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px);
  color: #eaf6ff !important;
  font-weight: 600;
  transition: .25s ease;
}

/* Animation hover du bouton */
.btn-glass:hover {
  transform: scale(1.04);
  background: rgba(255,255,255,.18);
}

/* Si animations réduites → désactive la vidéo */
@media (prefers-reduced-motion: reduce) {
  .hero-video__media { display: none; }
}



/* =======================================================
   3. CARTES B1 → B6 – MODE MODERNE et PLUS GRANDES
   ======================================================= */

/* Grille responsive élargie */
.grid.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 colonnes */
  gap: 2rem;  /* plus d'espace entre les cartes */
  padding: 0 1rem;
}

/* 2 colonnes sur tablette */
@media (max-width: 1000px) {
  .grid.cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 1 colonne sur mobile */
@media (max-width: 650px) {
  .grid.cards {
    grid-template-columns: 1fr;
  }
}

/* Style glassmorphism */
.cards--glass .card {
  display: block;
  padding: 1.3rem;
  border-radius: 20px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  text-decoration: none;
  color: inherit;
  transition: .25s ease;
  box-shadow: 0 6px 25px rgba(0,0,0,.22);
}

/* Hover néon subtil */
.cards--glass .card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.13);
  box-shadow: 0 10px 28px rgba(0,0,0,.32);
}

/* Titres des cartes */
.cards--glass .card h3 {
  margin: 0 0 .4rem;
  font-weight: 700;
  font-size: 1.35rem;
}

/* Texte des cartes */
.cards--glass .card p {
  opacity: .92;
}



/* =======================================================
   4. STYLE GLOBAL (images, header, élégance générale)
   ======================================================= */

/* Images arrondies + ombre */
.md-typeset img {
  border-radius: 14px;
  margin: 1.3rem auto;
  display: block;
  box-shadow: 0 6px 25px rgba(0,0,0,.28);
}

/* Header flou */
.md-header {
  backdrop-filter: blur(6px);
}



/* =======================================================
   5. ANIMATIONS LOGO + TITRE
   ======================================================= */

/* Animation respiration du logo */
@keyframes logo-breathe {
  0%   { transform: scale(1);     filter: drop-shadow(0 0 4px rgba(0,255,255,.4)); }
  50%  { transform: scale(1.03);  filter: drop-shadow(0 0 12px rgba(0,255,255,.8)); }
  100% { transform: scale(1);     filter: drop-shadow(0 0 4px rgba(0,255,255,.4)); }
}

/* Logo dans la navbar */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  width: 55px !important;
  height: 55px !important;
  border-radius: 999px;
  animation: logo-breathe 4.5s ease-in-out infinite;
}

/* Glow sur les H1 */
@keyframes heading-glow {
  0%,100% { text-shadow: 0 0 0 rgba(0,255,255,0); }
  50%    { text-shadow: 0 0 14px rgba(0,255,255,.5); }
}

.md-typeset h1 {
  animation: heading-glow 6s ease-in-out infinite;
}



/* =======================================================
   6. TITRE NAVBAR (Portfolio BTS SIO SISR)
   ======================================================= */

.md-header__topic {
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}

/* Fix : ne PAS aligner tous les boutons sinon double icône clair/sombre */
.md-header__button.md-logo {
  display: flex;
  align-items: center;
}

