/* ============================================
   HELIOX LAB — HUB
   Style aligné sur helioxlab.com/cut/
   ============================================ */

/* --- VARIABLES (modifie ici pour changer les couleurs) --- */
:root {
  --beige:        #f4f1ec;
  --beige-light:  #faf7f2;
  --white:        #ffffff;
  --anthracite:   #2b2d31;
  --pink:         #ff2e93;
  --pink-light:   #ffe4f0;
  --gray-text:    #555555;
  --gray-meta:    #888888;
  --gray-soft:    #b8b1a4;
  --border-soft:  rgba(0, 0, 0, 0.06);
  --shadow-card:  0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-cta:   0 6px 20px rgba(255, 46, 147, 0.18);
}

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

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--beige);
  color: var(--anthracite);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding: 24px 12px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- LAYOUT PRINCIPAL --- */
.hub {
  max-width: 860px;
  margin: 0 auto;
}

/* --- TITRE DE SECTION --- */
.section-title {
  margin-bottom: 24px;
}

.section-number {
  font-size: 12px;
  color: var(--pink);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.title-big {
  font-size: clamp(36px, 7vw, 56px);
  font-weight: 800;
  color: var(--anthracite);
  line-height: 1;
  letter-spacing: -1.5px;
}

.accent {
  color: var(--pink);
}

.title-line {
  height: 1px;
  background: var(--anthracite);
  opacity: 0.15;
  margin-top: 14px;
}

/* --- LIGNE BIO + CTA (50/50, badges alignés en haut) --- */
.row {
  margin-bottom: 14px;
}

.row-bio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

/* Carte BIO : badge en haut, contenu centré au-dessous */
.card-bio {
  padding: 24px;
  border: 1.5px solid var(--pink);
  display: flex;
  flex-direction: column;
}

.card-bio-content {
  margin-top: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 5px 12px;
  background: var(--pink);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 100px;
}

.card-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--anthracite);
  margin-bottom: 10px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.card-text {
  font-size: 13.5px;
  color: var(--gray-text);
  line-height: 1.6;
}

/* --- CTA Découpe --- */
.card-cta {
  background: var(--anthracite);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-cta);
}

.card-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(255, 46, 147, 0.28);
}

.cta-bg-decoration {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--pink);
  opacity: 0.12;
  pointer-events: none;
}

.cta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: var(--pink);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 100px;
}

.cta-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-icon i {
  font-size: 22px;
  color: var(--white);
}

.cta-bottom {
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.cta-title {
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.cta-sub {
  color: #b8b8bc;
  font-size: 12.5px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pink);
  color: var(--white);
  padding: 11px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  transition: gap 0.2s;
}

.card-cta:hover .cta-button {
  gap: 12px;
}

.cta-button i {
  font-size: 16px;
}

/* --- LIGNE RÉSEAUX --- */
.row-socials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tile {
  background: var(--white);
  border-radius: 20px;
  padding: 18px;
  color: var(--anthracite);
  box-shadow: var(--shadow-card);
  transition: transform 0.15s;
}

.tile:hover {
  transform: translateY(-2px);
}

.tile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-icon i {
  font-size: 20px;
  color: var(--white);
}

.tile-arrow {
  font-size: 15px;
  color: #ccc;
}

.tile-name {
  font-size: 14px;
  font-weight: 700;
}

.tile-sub {
  font-size: 11px;
  color: var(--gray-meta);
  margin-top: 2px;
}

/* --- CARTE VIDÉOS --- */
.card-videos {
  padding: 22px;
}

.videos-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}

.videos-header .card-title {
  font-size: 22px;
  margin-bottom: 0;
}

.btn-pink {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--pink);
  color: var(--white);
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  transition: transform 0.15s;
}

.btn-pink:hover {
  transform: translateY(-1px);
}

.btn-pink i {
  font-size: 14px;
}

/* Grille 6 vidéos : 3 colonnes x 2 lignes */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Les vidéos sont maintenant des <button> ou <div> cliquables, pas des liens */
.video-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--beige);
  color: var(--anthracite);
  transition: transform 0.15s;
  display: block;
  cursor: pointer;
  border: none;
  padding: 0;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.video-card:hover {
  transform: translateY(-2px);
}

.video-thumb {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.video-num {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--pink);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  letter-spacing: 0.6px;
  z-index: 2;
}

.video-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, background 0.2s;
}

.video-card:hover .video-play {
  background: var(--pink);
  transform: scale(1.08);
}

.video-card:hover .video-play i {
  color: var(--white);
}

.video-play i {
  font-size: 18px;
  color: var(--pink);
  transition: color 0.2s;
}

.video-info {
  padding: 10px 12px;
}

.video-title {
  font-size: 11.5px;
  color: var(--anthracite);
  line-height: 1.4;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-episode {
  font-size: 11px;
  font-weight: 800;
  color: var(--pink);
  letter-spacing: 0.8px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.video-views {
  font-size: 13px;
  color: var(--pink);
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.video-views .ti {
  font-size: 15px;
}

/* Skeleton de chargement */
.video-skeleton {
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: skeleton 1.4s ease-in-out infinite;
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.videos-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px 20px;
  color: var(--gray-meta);
  font-size: 13px;
}

/* --- FOOTER --- */
.footer {
  margin-top: 24px;
  text-align: center;
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--anthracite);
  margin-bottom: 10px;
  font-weight: 500;
}

.footer-contact i {
  font-size: 16px;
  color: var(--pink);
}

.footer-contact a {
  color: var(--anthracite);
  transition: color 0.15s;
}

.footer-contact a:hover {
  color: var(--pink);
}

.footer-text {
  font-size: 10px;
  color: var(--gray-soft);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ============================================
   POPUP / LIGHTBOX VIDÉO YOUTUBE
   ============================================ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal.is-open {
  display: flex;
  animation: modal-fade 0.2s ease-out;
}

@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 22, 0.92);
  cursor: pointer;
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 1100px;
  z-index: 2;
}

.video-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.video-modal-close:hover {
  background: var(--pink);
  transform: scale(1.05);
}

.video-modal-close:hover i {
  color: var(--white);
}

.video-modal-close i {
  font-size: 20px;
  color: var(--anthracite);
  transition: color 0.15s;
}

.video-modal-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.video-modal-player iframe {
  width: 100%;
  height: 100%;
  border: none;
}

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

/* ============================================
   SECTION /03 — MES PROJETS PAR CATÉGORIE
   ============================================ */
.categories-section {
  margin-top: 20px;
  margin-bottom: 14px;
}

.categories-header {
  padding: 0 4px;
  margin-bottom: 16px;
}

.categories-header .card-title {
  font-size: 26px;
  margin-bottom: 0;
}

/* Bloc catégorie */
.category-block {
  background: var(--white);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

/* Paire de catégories demi-largeur côte à côte */
.category-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.category-pair .category-block {
  margin-bottom: 0;
}

/* Dans une demi-cat, les vidéos sont en 1 colonne (sinon trop petites) */
.category-block.is-half .category-videos {
  grid-template-columns: 1fr;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-icon i {
  font-size: 22px;
  color: var(--white);
}

.category-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--anthracite);
  letter-spacing: -0.4px;
  flex: 1;
}

.category-meta {
  font-size: 11px;
  color: var(--gray-meta);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Zone photos avant/après */
.category-photos {
  margin-bottom: 14px;
}

.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.photo-pair:last-child {
  margin-bottom: 0;
}

.photo-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--beige);
  background-size: cover;
  background-position: center;
}

.photo-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--white);
  z-index: 2;
}

.photo-badge.before {
  background: var(--anthracite);
}

.photo-badge.after {
  background: var(--pink);
}

/* Zone vidéos de la catégorie */
.category-videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* Si aucune vidéo */
.category-empty {
  padding: 20px;
  text-align: center;
  color: var(--gray-meta);
  font-size: 12px;
  background: var(--beige);
  border-radius: 12px;
}

/* Skeleton de chargement pour les catégories */
.category-skeleton {
  height: 200px;
  border-radius: 20px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: skeleton 1.4s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 720px) {
  body {
    padding: 16px 10px;
  }

  .row-bio {
    grid-template-columns: 1fr;
  }

  .row-socials {
    grid-template-columns: 1fr 1fr;
  }

  .card-cta {
    min-height: 200px;
  }

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

  .videos-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .video-modal {
    padding: 60px 10px 10px;
  }

  .video-modal-close {
    top: -45px;
    right: 10px;
  }

  .category-videos {
    grid-template-columns: 1fr 1fr;
  }

  .category-name {
    font-size: 17px;
  }

  /* Sur mobile, les paires demi-largeur s'empilent */
  .category-pair {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .title-big {
    font-size: 36px;
  }

  .card-title {
    font-size: 22px;
  }

  .cta-title {
    font-size: 19px;
  }

  .card-bio,
  .card-cta,
  .card-videos {
    padding: 18px;
  }

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

  .category-videos {
    grid-template-columns: 1fr;
  }

  .photo-pair {
    grid-template-columns: 1fr;
  }

  .category-block {
    padding: 18px;
  }
}

/* Message propre quand les projets/catégories ne sont pas (encore) disponibles */
.categories-message {
  text-align: center;
  padding: 40px 20px;
  color: var(--anthracite);
  font-size: 15px;
  background: #fff;
  border-radius: 18px;
  line-height: 1.6;
}
