/* ==========================================================================
   Daybreak — page d'accueil « 1A / Coulisses »
   Feuille de style ADDITIONNELLE, chargée uniquement par index.html,
   après styles.css. Elle ne redéfinit rien du site : tout est préfixé .a1
   (les seules règles héritées sont .wordmark* et .sr-only de styles.css,
   surchargées ici sous .a1, jamais modifiées à la source).
   ========================================================================== */

/* --- Animations ----------------------------------------------------------- */
@keyframes a1-lueur {
  0%   { transform: translateY(14%) scale(1);    opacity: .55 }
  50%  { transform: translateY(-6%) scale(1.12); opacity: 1 }
  100% { transform: translateY(14%) scale(1);    opacity: .55 }
}

@keyframes a1-barre {
  0%   { transform: scaleY(.5) }
  50%  { transform: scaleY(1.04) }
  100% { transform: scaleY(.5) }
}

/* --- Scène ---------------------------------------------------------------- */
/* Premier écran = le héros (quatre photos) + la bande des deux accès, dans la
   hauteur visible. Hauteur définie, et non min-height : c'est ce qui permet au
   contenu du héros d'en occuper 100 %. */
.a1-ecran {
  height: max(100svh, 700px);
  display: flex;
  flex-direction: column;
}

.a1 {
  position: relative;
  flex: 1;
  min-height: 430px;
  overflow: hidden;
  background: #150E08;
  color: #F1F0EC;
}

/* Quatre photos en grille 2×2 (studio, concert, atelier, tournage), pleine
   largeur : jamais mises en boîte. */
.a1__grille {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 3px;
  background: #150E08;
  overflow: hidden;
}

.a1__grille img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

/* Voile d'encre chaude : lisibilité du titre, nuit qui se referme en bas. */
.a1__voile {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(21, 14, 8, .72) 0%,
    rgba(21, 14, 8, .16) 24%,
    rgba(21, 14, 8, .22) 52%,
    rgba(21, 14, 8, .86) 82%,
    #150E08 100%);
}

/* Lueur d'aube : monte et redescend en 24 s, en mode screen. */
.a1__lueur {
  position: absolute;
  left: -25%;
  right: -25%;
  bottom: -14%;
  height: 66%;
  background: radial-gradient(58% 100% at 50% 100%,
    rgba(255, 224, 26, .74) 0%,
    rgba(245, 184, 8, .36) 42%,
    rgba(245, 184, 8, 0) 76%);
  mix-blend-mode: screen;
  animation: a1-lueur 24s ease-in-out infinite;
  pointer-events: none;
}

/* --- Colonne de contenu --------------------------------------------------- */
/* Sous 1024 px, la colonne reste plafonnée à 430 px et centrée, comme le reste
   du site (README, « Colonne de 430 px max, centrée »). Les couches de fond,
   elles, restent pleine largeur : la photo n'est jamais mise en boîte. */
.a1__contenu {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: 430px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  padding: calc(30px + env(safe-area-inset-top)) 26px calc(26px + env(safe-area-inset-bottom));
}

/* v2 : le logotype monte en haut à gauche, les cadrans passent à sa droite
   sur la même rangée. Le bas de l'écran ne garde que l'accroche et les portes. */
.a1__rangee-haute {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.a1__mark {
  margin: 0;
  font-size: 23px;
  color: #F1F0EC;
}

/* L'accroche est poussée en bas du héros ; le D, centré, lui laisse la place. */
.a1__accroche { margin-top: auto; }

/* Barres du « D » : signal audio, 9 barres désynchronisées. */
.a1 .wordmark__d .d-bars { fill: #FFE01A; }

.a1 .wordmark__d .d-bars rect {
  transform-box: fill-box;
  transform-origin: center;
  animation: a1-barre 1.1s ease-in-out infinite;
}

.a1 .d-bars rect:nth-child(1) { animation-duration: 1.15s; animation-delay: -.05s; }
.a1 .d-bars rect:nth-child(2) { animation-duration: .8s;   animation-delay: -.3s; }
.a1 .d-bars rect:nth-child(3) { animation-duration: 1.45s; animation-delay: -.6s; }
.a1 .d-bars rect:nth-child(4) { animation-duration: .95s;  animation-delay: -.15s; }
.a1 .d-bars rect:nth-child(5) { animation-duration: 1.25s; animation-delay: -.45s; }
.a1 .d-bars rect:nth-child(6) { animation-duration: .7s;   animation-delay: -.2s; }
.a1 .d-bars rect:nth-child(7) { animation-duration: 1.35s; animation-delay: -.7s; }
.a1 .d-bars rect:nth-child(8) { animation-duration: 1.05s; animation-delay: -.35s; }
.a1 .d-bars rect:nth-child(9) { animation-duration: .85s;  animation-delay: -.55s; }

/* Accroche : centrée sous le D. */
.a1__accroche {
  padding-top: 0;
  text-align: center;
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(32px, 9.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: pretty;
}

.a1__ligne { display: inline; }

/* Essai visuel demandé : le mot final en jaune plutôt qu'en craie.
   Rompt la règle de rareté du jaune (un seul aplat par écran, le bouton) —
   ici c'est un texte, pas un aplat, mais ça reste le deuxième jaune de
   l'écran avec la trame et les boutons. À valider avant de garder. */
.a1__accroche em { font-style: italic; color: var(--jaune); }

/* Le D du logo, au centre et au premier plan : l'artiste lève le bras dans sa
   fenêtre, les neuf barres jaunes en transparence par-dessus. */
.a1__d {
  /* Centre exact du héros = croisement des quatre photos. La hauteur du D
     s'adapte à celle du héros pour laisser, au-dessus comme en dessous (le D
     reste centré), la place de l'accroche : --reserve = hauteur de l'accroche
     et de ses marges. Le D ne peut ainsi jamais la toucher. */
  --reserve: 180px;
  position: absolute;
  left: 50%;
  top: 50%;
  height: min(190px, calc(100% - 2 * var(--reserve)));
  min-height: 90px;
  transform: translate(-50%, -50%);
  z-index: 2;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55));
}

.a1__d svg { display: block; width: auto; height: 100%; }

/* --- Les deux accès -------------------------------------------------------- */
/* Bande juste sous le héros, avant la trame jaune. */
.a1__portes {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
  background: #150E08;
}

/* Chaque choix est une surface visible au repos — filet, aplat sombre, repère
   ocre à gauche — pas seulement au survol : sur mobile il n'y a pas de survol,
   ce qui ne se voit qu'au hover ne se voit jamais. */
.a1__choix {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 18px 20px;
  background: rgba(21, 14, 8, .9);
  border: 1px solid rgba(241, 240, 236, .2);
  border-left: 3px solid #F5B808;
  color: #F1F0EC;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

@media (hover: hover) {
  .a1__choix:hover {
    background: #FFE01A;
    border-color: #FFE01A;
    color: #0B0B0B;
  }
}

.a1__choix:active {
  background: #F5B808;
  border-color: #F5B808;
  color: #0B0B0B;
}

.a1__texte {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.a1__num {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #F5B808;
}

.a1__choix:hover .a1__num,
.a1__choix:active .a1__num { color: #0B0B0B; opacity: .7; }

.a1__titre {
  font-family: 'Archivo', sans-serif;
  font-variation-settings: 'wdth' 112, 'wght' 700;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.a1__sous {
  font-size: 12.5px;
  opacity: .7;
}

/* La flèche devient un vrai bouton : un cadre, pas une simple ponctuation. */
.a1__fleche {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  font-family: 'DM Mono', monospace;
  font-size: 15px;
  line-height: 1;
}

/* --- Desktop (≥ 1024 px) -------------------------------------------------- */
/* ==========================================================================
   Socle — le bloc de prose sous la porte. Il dit ce que la porte tait.
   Parti pris : un seul filet, et trois échelles tranchées — la déclaration
   en grand, les deux entrées en petit, le cadre en note. C'est le contraste
   qui structure, pas les traits.
   ========================================================================== */
.socle {
  background: var(--encre-2);
  padding: 52px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 46px;
}

.socle__etiq {
  margin: 0;
  font-family: var(--f-meta);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gris-3);
}

.socle__manifeste {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1000px;
}

.socle__phrase {
  margin: 0;
  font-family: var(--f-accroche);
  font-size: clamp(27px, 7.4vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--craie);
  text-wrap: pretty;
}

/* L'unique filet du bloc. */
.socle__pied {
  border-top: 1px solid var(--trait);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Deux messages ciblés : un par parcours, chacun sous son accès. */
.cibles {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.cible {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cible__phrase {
  margin: 0;
  font-family: var(--f-accroche);
  font-size: clamp(30px, 8.4vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--craie);
}

/* Les puces reprennent le carré ocre de .puces, un cran plus petit :
   la phrase d'entrée reste le chapeau, elles la détaillent. */
.socle__puces {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.socle__puces li {
  position: relative;
  padding-left: 17px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--clair-2);
  text-wrap: pretty;
}

.socle__puces li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  background: var(--ocre);
}

.socle__cadre {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 100ch;
}

.socle__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--gris-3);
  text-wrap: pretty;
}

.socle__note strong { color: var(--clair-2); font-weight: 500; }


@media (min-width: 1024px) {
  .a1__contenu {
    max-width: none;
    margin-inline: 0;
    padding: 34px 56px 0;
  }

.a1__mark { font-size: 34px; }

  .a1__d {
    --reserve: calc(clamp(46px, 4.6vw, 66px) * 2.04 + 40px + 40px);
    height: min(460px, calc(100% - 2 * var(--reserve)));
  }

  .a1__accroche {
    margin: auto auto 40px;
    padding-top: 0;
    max-width: 1100px;
    font-size: clamp(46px, 4.6vw, 66px);
    line-height: 1.02;
    letter-spacing: -.025em;
    text-wrap: balance;
  }

  .a1__ligne { display: block; }

  /* La bande des accès : deux plages bord à bord. */
  .a1__portes { flex-direction: row; gap: 0; padding: 0; }

  .a1__choix {
    flex: 1;
    align-items: flex-end;
    padding: 30px 48px 32px;
    background: rgba(21, 14, 8, .94);
    border-bottom: 0;
  }

  /* Desktop : la lueur reste en bas, étalée sur toute la largeur. */
  .a1__lueur {
    left: -25%;
    right: -25%;
    bottom: -18%;
    height: 72%;
    background: radial-gradient(56% 100% at 50% 100%,
      rgba(255, 224, 26, .68) 0%,
      rgba(245, 184, 8, .3) 44%,
      rgba(245, 184, 8, 0) 76%);
  }

  .a1__texte { gap: 10px; }

  .a1__titre {
    font-size: clamp(26px, 2.4vw, 34px);
    line-height: .95;
    letter-spacing: -.04em;
  }

  .a1__sous { font-size: 15px; opacity: .66; }

  .a1__fleche { width: 52px; height: 52px; font-size: 22px; }

  /* ------------------------------------------------------------- socle */
  .socle {
    padding: 76px 48px 60px;
    gap: 72px;
  }

  .socle__etiq { font-size: 11px; }
  .socle__phrase { font-size: clamp(38px, 4.2vw, 52px); line-height: 1.08; }

  .socle__pied { padding-top: 28px; gap: 18px; }
  .socle__cadre { margin-top: 34px; }

  .cibles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .cible { padding: 4px 56px 6px 0; gap: 16px; }
  .cible + .cible { padding: 4px 0 6px 56px; border-left: 1px solid var(--trait); }
  .cible__phrase { font-size: clamp(36px, 3.2vw, 46px); }

  .socle__puces { margin-top: 10px; gap: 10px; }
  .socle__puces li { font-size: 14.5px; padding-left: 19px; }
  .socle__puces li::before { top: 8px; }
}



/* --- Mouvement réduit ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .a1__lueur,
  .a1 .wordmark__d .d-bars rect { animation: none !important; }
}
