/*
 * hoummi-plaquettes.css — les six plaquettes de l'édition 2026 en éventail.
 *
 * Feuille à part (et non en fin de hoummi-branches.css) : le bloc ne vit
 * que sur trois pages et ne doit rien hériter des blocs correctifs.
 * Les couvertures tournent autour d'un pivot situé sous l'éventail
 * (transform-origin à 160 % de leur hauteur). Fermées, elles sont empilées ;
 * js/hoummi-plaquettes.js pose `.est-ouvert` à l'entrée dans la fenêtre et
 * elles s'ouvrent l'une après l'autre. Sans JavaScript ou sous
 * prefers-reduced-motion, l'éventail est ouvert d'emblée.
 */

.hm-plaq {
  background: #F3EFE6;
  color: #212221;
  margin: 0; /* hoummi.webflow.css pose 2vh de marge sur toute section */
  padding: 88px 0 96px;
  overflow: clip;
}

.hm-plaq__c { text-align: center; }

.hm-plaq__sur {
  margin: 0 0 12px;
  color: #4EB589;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hm-plaq__t {
  margin: 0;
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -.01em;
}

.hm-plaq__chapeau {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 18px;
  line-height: 1.5;
  color: #5a5a58;
}

/* L'éventail : la hauteur suit la largeur, les couvertures sont en % */
.hm-plaq__eventail {
  position: relative;
  width: min(1000px, 100%);
  aspect-ratio: 1000 / 640;
  margin: 40px auto 0;
}

.hm-plaq__c1 {
  position: absolute;
  left: 32%;
  top: 5.3%;
  width: 36%;
  height: auto;
  aspect-ratio: 720 / 1017;
  border-radius: 3px;
  background: #212221; /* tant que l'image charge : pas de rectangle blanc */
  box-shadow: 0 14px 34px rgba(33, 34, 33, .2), 0 2px 6px rgba(33, 34, 33, .12);
  transform-origin: 50% 160%;
  transform: rotate(var(--a));
  transition: transform .9s cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(var(--i) * 90ms);
  cursor: pointer;
}

/* Fermé : empilé, légèrement descendu, avant l'entrée dans la fenêtre */
.js-plaq .hm-plaq__eventail:not(.est-ouvert) .hm-plaq__c1 {
  transform: translateY(6%) rotate(0deg);
}

/* Survol : la plaquette passe au premier plan et se soulève */
.hm-plaq__c1:hover { z-index: 10; }

.hm-plaq__eventail.est-ouvert .hm-plaq__c1:hover {
  transform: rotate(var(--a)) translateY(-7%);
  transition-delay: 0s;
  transition-duration: .35s;
}

.hm-plaq__btn { margin-top: 36px; }

/* Pages Téléchargements : une consigne à la place du bouton */
.hm-plaq__consigne {
  max-width: 560px;
  margin: 36px auto 0;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
}

.hm-plaq__eventail:not(:has(~ .hm-plaq__btn)) .hm-plaq__c1 { cursor: default; }

@media (max-width: 700px) {
  .hm-plaq { padding: 64px 0 72px; }
  .hm-plaq__chapeau { font-size: 16px; }
  .hm-plaq__eventail { margin-top: 28px; }
  .hm-plaq__btn,
  .hm-plaq__consigne { margin-top: 28px; }
  .hm-plaq__consigne { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-plaq__c1 { transition: none; }
  .js-plaq .hm-plaq__eventail:not(.est-ouvert) .hm-plaq__c1 { transform: rotate(var(--a)); }
}
