/* ============================================================
   STYLEPRO.CSS — PROPRE & COMPLÈTE
   ------------------------------------------------------------

/* ============================================================
   🔁 RESET GLOBAL
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================================================
   🌌 ARRIÈRE-PLAN & POLICES
   ============================================================ */
body {
  background-color: #143d60;
  background-image: url('ressource/wall-1hp.png'); /* Motif de fond */
  background-repeat: repeat;
  background-size: auto;
  font-family: 'Sawarabi Gothic', sans-serif;
  color: #011933;
  max-width: 1200px; /* Pour éviter les étirements extrêmes */
  margin: 0 auto;
}

/* ============================================================
   🧠 HEADER PRINCIPAL — TITRE 3D
   ============================================================ */
header {
  margin-top: 48px;
}
header h1 {
  font-family: 'Gowun Batang', serif;
  text-align: center;
  color: #2c98a9;
  font-weight: 700;
  font-size: 48px;
  background-color: #0c2838;
  border: 4px solid #2c98a9; /* #5A8C91 alternative */
  border-radius: 16px;
  padding: 36px;
  width: 90%;
  margin: 20px auto;
  box-shadow: 0 6px 12px rgba(0,0,0,0.6), 0 12px 24px rgba(0,0,0,0.4);
  text-shadow: 0 2px 0 #0a1d26, 0 4px 0 #051016,
               0 6px 4px rgba(0,0,0,0.7), 2px 8px 8px rgba(0,0,0,0.6);
  transition: all 0.4s ease;
}
header h1:hover {
  color: #E3FBFD; /* Alternative : #C6F5FA */
  transform: perspective(600px) translateZ(10px) scale(1.03);
}

/* ============================================================
   🧭 NAVIGATION LATÉRALE — ICÔNES (HOME, PROFILE)
   ============================================================ */
.side-nav {
  display: flex;
  gap: 24px;
  margin: 10px 40px 0px 80px;
}
.nav-btn {
  background-color: #a3c2d7; /* Variantes : #eaf2ef / #cfe4fb */
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
.nav-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.button-icon-svg {
  width: 48px;
  height: 48px;
  fill: #5e429c; /* Couleur de l'icône */
}

/* ============================================================
   🧩 GRILLE — 2 COLONNES RESPONSIVES
   ============================================================ */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 420px));
  justify-content: center;
  gap: 4rem;
  padding: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ============================================================
   🃏 CARTES — STYLE COMPLET & FIDÈLE
   ============================================================ */
.project-card {
  position: relative;
  background-color: #f0f8ff; /* #eaf2ef alternative */
  border-radius: 14px;
  border: 5px solid #a3c2d7; /* #c8d9e4 alternative */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 670px; /* Évite les cartes trop écrasées */
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}
.project-card:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* 🖼️ Image stable (aspect-ratio) */
.project-image-container {
  width: 100%;
  aspect-ratio: 16 / 10; /* Ratio recommandé pour conserver le cadrage */
  overflow: hidden;
}
.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Alternative : contain → moins joli */
  transition: transform 0.4s ease, filter 0.4s ease;
}
.project-card:hover .project-img {
  transform: scale(1.06);
  filter: brightness(75%);
}

/* 📄 Contenu texte */
.project-info {
  padding: 22px;
  padding-bottom: 90px; /* Pour laisser place au CTA */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.project-info h2 {
  font-family: Merriweather, serif;
  font-size: 26px;
  color: #12adc1; /* #29bcd8 alternative */
}
.project-info h3 {
  font-size: 18px;
  color: #5d72a4;
  font-weight: 600;
}
.project-info p {
  font-weight: 600;
  margin-top: 10px;
  line-height: 1.5;
}

/* ============================================================
   🏷️ BANDEAUX STATUT — EN BAS (NOUVELLE VERSION)
   ============================================================ */
/* ============================================================
   🏷️ BANDEAUX — STYLE GLOBAL (SANS COULEUR)
============================================================ */
.project-status-banner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1.4px;
  border-radius: 16px 16px 0 0;
  backdrop-filter: blur(4px);
  transition: all 0.4s ease;
  text-transform: uppercase;
}

.project-card:hover .project-status-banner {
  padding: 15px;
  font-size: 17px;
  letter-spacing: 2px;
}

/* ============================================================
   🟩 COMPLETED — VERT
============================================================ */
[data-status="completed"] .project-status-banner {
  background-color: rgba(46,204,113,0.90);
  color: #ffffff;
}

/* ============================================================
   🔵 CURRENT — TURQUOISE
============================================================ */
[data-status="current"] .project-status-banner {
  background-color: #14919B;
  color: #f8f9f5;
}

/* ============================================================
   🟠 PLANNING — ORANGE
============================================================ */
[data-status="planning"] .project-status-banner {
  background-color: #ff8c00;
  color: #ffffff;
}

/* ============================================================
   🟣 PAUSED — VIOLET
============================================================ */
[data-status="paused"] .project-status-banner {
  background-color: #5E429C;
  color: #ffffff;
}

/* ============================================================
   ⚫ ARCHIVED — GRIS
============================================================ */
[data-status="archived"] .project-status-banner {
  background-color: rgba(149,165,166,0.9);
  color: #ffffff;
}

/* ============================================================
   🔷 RESEARCH — BLEU
============================================================ */
[data-status="research"] .project-status-banner {
  background-color: #005F99;
  color: #ffffff;
}

/* ============================================================
   🟡 TESTING — JAUNE
============================================================ */
[data-status="testing"] .project-status-banner {
  background-color: #E2B714;
  color: #011933;
}

/* ====================================================================
   📝 Comment ajouter un nouveau bandeau (statut) à une card
   --------------------------------------------------------------------
   1. Dans le HTML, ajouter un attribut data-status au projet :
        <div class="project-card" data-status="nouveau-statut">
           <span class="project-status-banner">Texte du bandeau</span>
        </div>

   2. Dans le CSS, créer un nouveau bloc avec la couleur du statut :
        [data-status="nouveau-statut"] .project-status-banner {
           background-color: #VOTRE_COULEUR;   <- couleur du bandeau
           color: #VOTRE_TEXTE;                <- couleur du texte
           text-shadow: 0 2px 4px rgba(0,0,0,0.3); <- optionnel
        }

   3. Le texte affiché vient du HTML :
        <span class="project-status-banner">Votre texte ici</span>

   4. Chaque statut doit être unique, sans doublon :
        completed, current, planning, paused, archived,
        research, testing, etc.

   5. Vous pouvez ajouter autant de statuts que vous voulez.
      Il suffit :
       - d’ajouter data-status="xxx" dans la card
       - d’ajouter sa règle CSS correspondante.

   ==================================================================== */


/* ============================================================
   💡 CTA — BOUTON (NEUMORPHIQUE)
   ============================================================ */
.project-cta-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #d7e3eb; /* Couleur harmonisée avec la carte */
  color: #2c98a9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  box-shadow: inset -8px -8px 16px rgba(255,255,255,0.7),
              inset 8px 8px 16px rgba(13,39,80,0.16),
              8px 8px 16px rgba(13,39,80,0.25),
              -8px -8px 16px rgba(255,255,255,0.7);
  transition: all 0.3s ease;
}
.project-cta-btn:hover .btn-icon {
  transform: scale(1.05);
}

/* ============================================================
   🧠 OVERLAY — CONTAINER PRINCIPAL
   ============================================================ */
.project-overlay#overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 40, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  overflow-y: auto;
  z-index: 9999;
}

/* Activation (JS ajoute `.active`) */
.project-overlay#overlay.active {
  display: flex !important;
}


/* ============================================================
   📄 CONTENU DE L'OVERLAY — LAYOUT ORIGINAL RESTAURÉ
   ============================================================ */
.overlay-content {
  position: relative;
  background: rgba(10, 25, 40, 0.95);
  border: 2px solid #2c98a9;
  border-radius: 16px;
  max-width: 1100px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  font-family: 'Sawarabi Gothic', sans-serif;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.7);
  color: #a3c2d7;

  /* Animation restaurée */
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Overlay actif avec animation en douceur */
.project-overlay#overlay.active .overlay-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}


/* ============================================================
   ❌ BOUTON FERMER
   ============================================================ */
#closeOverlay {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 40px;
  text-align: center;
  background: rgba(44, 152, 169, 0.2);
  border: 2px solid rgba(200, 243, 249, 0.5);
  color: #C6F5FA;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

#closeOverlay:hover {
  transform: scale(1.15) rotate(90deg);
  background: rgba(44, 152, 169, 0.4);
  border-color: #C6F5FA;
}


/* ============================================================
   📝 TITRES ET SOUS-TITRES
   ============================================================ */
#overlayTitle {
  font-family: 'Gowun Batang', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #0295a9;
  margin: 0 0 0.5rem 0;
}

#overlaySubtitle {
  font-family: 'Merriweather', serif;
  font-size: 1.4rem;
  color: #5d72a4;
  margin-bottom: 2rem;
  font-weight: 600;
}


/* ============================================================
   📄 TEXTE
   ============================================================ */
#overlayText {
  color: #a3c2d7;
  line-height: 1.8;
  margin-bottom: 2rem;
}

#overlayText h1,
#overlayText h2,
#overlayText h3 {
  font-family: 'Merriweather', serif;
}

#overlayText h1 {
  font-size: 2rem;
  color: #C6F5FA;
  margin: 2rem 0 1rem;
}

#overlayText h2 {
  font-size: 1.6rem;
  color: #b8d9ea;
  margin: 2rem 0 1rem;
  border-left: 4px solid #2c98a9;
  padding-left: 1rem;
}

#overlayText h3 {
  font-size: 1.3rem;
  color: #5d72a4;
  margin: 1.5rem 0 0.8rem;
}

#overlayText p {
  font-size: 1.09rem;
  letter-spacing: 1.5px;
  margin-bottom: 1.2rem;
  color: #a3c2d7;
}


/* ============================================================
   🖼️ IMAGE PRINCIPALE
   ============================================================ */
#overlayImage {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 12px;
  margin: 2rem 0;
  border: 2px solid rgba(44, 152, 169, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: none;
}


/* ============================================================
   🎬 VIDÉOS
   ============================================================ */
#overlayVideos {
  display: none;
  gap: 2rem;
  margin: 2rem 0;
  grid-template-columns: 1fr;
}

@media (min-width: 1400px) {
  #overlayVideos {
    grid-template-columns: repeat(2, 1fr);
  }
}

.video-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.video-item.hidden {
  display: none;
}

.video-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 2px solid rgba(44, 152, 169, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: 0.4s ease;
}

.video-wrapper:hover {
  transform: translateY(-5px);
  border-color: rgba(44, 152, 169, 0.6);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
}

.video-wrapper video {
  width: 100%;
  display: block;
  border-radius: 10px;
  cursor: pointer;
}


/* ============================================================
   🔗 LIENS
   ============================================================ */
#overlayLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.overlay-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  background: linear-gradient(135deg, #2c98a9 0%, #1f6f7d 100%);
  color: #E3FBFD;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: 0.3s ease;
  border: 2px solid rgba(200, 243, 249, 0.3);
  box-shadow: 0 4px 15px rgba(44, 152, 169, 0.4);
}

.overlay-link:hover {
  background: linear-gradient(135deg, #1f6f7d 0%, #164d58 100%);
  transform: translateY(-3px);
  border-color: #C6F5FA;
}

.overlay-link.hidden {
  display: none;
}


/* ============================================================
   📜 SCROLLBAR OVERLAY
   ============================================================ */
.overlay-content::-webkit-scrollbar {
  width: 10px;
}
.overlay-content::-webkit-scrollbar-track {
  background: rgba(44, 152, 169, 0.1);
}
.overlay-content::-webkit-scrollbar-thumb {
  background: rgba(44, 152, 169, 0.4);
  border-radius: 10px;
  border: 2px solid #0c2838;
}

