
/* ========== STRUCTURE GLOBALE DES BLOCS ========== */
.portfolio-strate {
  padding: 5rem 2rem;
  color: var(--color-text);
  background: #f9f9f9;
}
.portfolio-strate .container {
  position: relative;
  z-index: 1;
}
.portfolio-strate > *:not(.container) {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}
.portfolio-strate h2 {
  font-family: 'Cactus Classical Serif', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: white;
  background-color: #03738b;
  padding: 5px;
}
.portfolio-strate p {
  font-family: 'Arvo', serif;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* ========== VARIANTS DE COULEURS PAR SECTION ========== */
.portfolio-strate.motion       { background: #eef6f7; }
.portfolio-strate.branding     { background: #fffdf4; }
.portfolio-strate.illustrations{ background: #ffeef2; }
.portfolio-strate.jeu          { background: #2d435b; color: white; }
.portfolio-strate.sceno        { background: #fffbe5; }
.portfolio-strate.voiceoff     { background: #f2f2f2; }

/* ========== GRILLE MOTION DESIGN (2 x 3) ========== */
.portfolio-videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2rem 1rem;
  justify-items: center;
  justify-content: center;
}
.portfolio-videos a img {
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.portfolio-videos .item {
  max-width: 360px;
  width: 100%;
}


/* ========== LOGOS EN BANDEAU SCROLLABLE ========== */
.portfolio-logos {
  display: flex;
  gap: 2rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 1rem;
}
.portfolio-logos img {
  height: 80px;
  object-fit: contain;
  border-radius: 4px;
}

/* ========== GALERIES DÉFILABLES (illustrations, TUS) ========== */
.gallery-horizontal {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
}
.gallery-horizontal img {
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* ========== SWIPER SLIDER POUR TUS (optionnel) ========== */
.swiper {
  width: 100%;
  margin: 2rem 0;
}
.swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.swiper-slide img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
}

/* ========== SCÉNOGRAPHIE (vidéo vignette) ========== */
.scenography-thumb {
  display: block;
  max-width: 640px;
  margin: 0 auto;
}
.scenography-thumb img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* ========== VOIX-OFF ========== */
.audio-player {
  text-align: center;
  margin-top: 2rem;
}
.audio-player audio {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* ========== AUTRES CREATIONS ========== */
#autres-creations {
  background: #f8f8f8;
  padding: 4rem 0;
  text-align: center;
}
#autres-creations .intro {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #2d435b;
}
.autres-swiper img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}
.autres-swiper img:hover {
  transform: scale(1.03);
}
.slide-title {
  margin-top: 0.75rem;
  font-weight: bold;
  color: #03738b;
}
.cta-autres {
  margin-top: 2rem;
}
/* ========== OVERLAY ========== */
.card {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.card img { display:block; width:100%; height:100%; object-fit:cover; }

/* Overlay caché par défaut */
.card .overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.7);
  color: #fff;
  display: flex; align-items: flex-start;
  opacity: 0; transition: opacity .18s ease;
  padding: .9rem .95rem;
  pointer-events: none;   /* important: ne bloque pas le clic */
}
.card:hover .overlay,
.card:focus-visible .overlay { opacity: 1; }

/* Typo & hiérarchie */
.overlay .title { font-weight: 800; font-size: 1.05rem; margin: 0 0 .25rem; }
.overlay .desc  { margin: 0 0 .45rem; opacity: .95; }
.overlay .meta  { font-size: .92rem; line-height: 1.25; }
.overlay .meta b { font-weight: 800; }

/* Clamp (éviter que l’overlay déborde) */
.overlay .desc {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (hover:none) {
  /* Sur mobile (pas de hover), on garde un rendu propre sans overlay forcé */
  .card .overlay { opacity: 0; }
}



/* ========== RESPONSIVE POUR MOBILE ========== */
@media (max-width: 768px) {
  .portfolio-strate h2 { font-size: 1.5rem; }
  .portfolio-videos {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-horizontal img {
    height: 140px;
  }
  .portfolio-logos img {
    height: 60px;
  }
}


/* Ajustements overlay Motion Portfolio */
.portfolio-videos .ovl-inner {
  padding: 12px 14px;
  font-size: 0.9rem;       /* base plus petite */
  line-height: 1.35;
}

.portfolio-videos .ovl-title {
  font-size: 1.05rem;      /* réduit vs. maquette précédente */
  font-weight: 700;
  margin: 0 0 6px 0;
}

.portfolio-videos .ovl-desc {
  font-size: 0.85rem;      /* plus léger */
  opacity: 0.95;
  margin: 0 0 6px 0;
}

.portfolio-videos .meta {
  font-size: 0.8rem;       /* texte client/collab plus discret */
  margin: 2px 0;
}

.portfolio-videos .label {
  font-weight: 600;
  padding: 0 4px;
  border-radius: 4px;
}

.portfolio-videos .label-client {
  color: #333;             /* texte foncé */
  background: #f3396e;     /* fond jaune charte */
}

.portfolio-videos .label-collab {
  color: #fff;             /* texte blanc */
  background: #f3396e;     /* fond rose charte */
}
