/* =========================================================
   LE MOULIN PRODUCTIONS — flow.css (page Creative Flow, image fixe)
   ========================================================= */

body.flow-page{
  background-color: #dedad2;
  color: #1a1a1a;
}

/* ---------- Barre du haut : Home + langue ---------- */

.top-bar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--header-pad);
}

.home-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(20,20,20,0.55);
  transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  padding: 4px 2px;
}

.home-btn-icon{
  height: clamp(20px, 2.6vw, 28px);
  width: auto;
  max-width: 28px;
  display: block;
  opacity: 0.65;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.home-btn:hover .home-btn-icon,
.home-btn:focus-visible .home-btn-icon{
  opacity: 1;
}

.home-btn:hover,
.home-btn:focus-visible{
  color: #111;
  transform: translateX(-2px);
}

.flow-page .lang-item{
  color: rgba(20,20,20,0.4);
}
.flow-page .lang-item:hover,
.flow-page .lang-item:focus-visible{
  color: #111;
}
.flow-page .lang-item.is-active{
  color: #111;
}

/* ---------- Image fixe, homothétique quelle que soit la taille d'écran ---------- */

.flow-fixed{
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 0;
  overflow-x: hidden;
}

.flow-image-wrap{
  position: relative;
  width: 96%;
  max-width: 2200px;
  min-width: 0; /* empêche l'image de forcer sa taille d'origine en flexbox */
  margin: 0 auto;
  line-height: 0; /* évite un espace fantôme sous l'image */
}

.flow-image{
  display: block;
  width: 100%;
  height: auto;
}

/* Zones cliquables invisibles, positionnées en % : elles suivent
   toujours l'image au pixel près, à n'importe quelle taille d'écran */
.flow-hit{
  position: absolute;
  display: block;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.flow-hit:hover,
.flow-hit:focus-visible{
  background: rgba(255,255,255,0.55);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.9);
}

.flow-copyright{
  text-align: center;
  margin: 24px 0 32px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(20,20,20,0.35);
}

/* ---------- Petits écrans ---------- */

@media (max-width: 640px){
  .flow-fixed{
    padding: 76px 12px 32px;
  }
}

/* =========================================================
   Bascule desktop / mobile
   ========================================================= */

.flow-grid{
  display: none;
}

/* En dessous de 700px : grille 2 colonnes qui défile verticalement,
   on masque l'image fixe (trop petite pour rester lisible en dessous) */
@media (max-width: 700px){
  .flow-image-wrap{
    display: none !important;
  }

  .flow-fixed{
    display: block;
    padding: 92px 20px 60px;
  }

  .flow-grid{
    display: block;
    max-width: 560px;
    margin: 0 auto;
  }

  .flow-grid-title{
    text-align: center;
    font-size: clamp(22px, 7vw, 30px);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 10px;
  }

  .flow-grid-subtitle{
    text-align: center;
    font-size: 13px;
    color: rgba(20,20,20,0.6);
    line-height: 1.55;
    margin: 0 0 32px;
    padding: 0 8px;
  }

  .flow-grid-list{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }

  .flow-grid-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .flow-grid-card img{
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.14);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
  }

  .flow-grid-card:active img{
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(0,0,0,0.22);
  }

  .flow-grid-name{
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(20,20,20,0.75);
  }

  .flow-grid-tags{
    margin-top: 4px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(20,20,20,0.5);
    line-height: 1.5;
  }
}
