/* Home — recalibrée pixel pour pixel depuis l'export SVG Figma
   "01_HOMEPAGE.svg" (cadre de référence : 1440x4181, marge de contenu
   41px, police Pliant). Toutes les valeurs ci-dessous viennent des
   coordonnées exactes du SVG, pas d'une estimation visuelle. */

.container-fig {
  max-width: none;
  margin-inline: auto;
  padding-inline: 41px;
}

/* Dividers pleine largeur (bord à bord, même à travers la marge de 41px) */
.divider-full {
  width: 100%;
  height: 1px;
  background: var(--color-text);
}

.divider-full--header {
  margin-top: 77.5px; /* position exacte de la ligne sous le header dans le SVG */
}

/* Dividers secondaires (inset à la marge de contenu, opacité réduite) */
.divider-inset {
  margin-inline: 41px;
  height: 1px;
  background: var(--color-border);
}

.hero-wrap {
  position: relative;
}

.flag-accent {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 100vh;
  z-index: 2;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.flag-accent span { flex: 1; }
.flag-accent span:nth-child(1) { background: var(--color-accent-green); }
.flag-accent span:nth-child(2) { background: #ffffff; }
.flag-accent span:nth-child(3) { background: var(--color-accent-noir); }
.flag-accent span:nth-child(4) { background: var(--color-accent-red); }

.hero {
  margin-top: 15.5px; /* du bas de la ligne sous header (77.5) au haut du visuel (93) */
}

.hero-visual {
  aspect-ratio: 1358 / 441;
  overflow: hidden;
  margin-bottom: 15.5px; /* même espacement que .hero au-dessus, pour centrer le visuel entre les deux lignes */
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 85%;
  display: block;
}

.hero-visual--placeholder,
.project-visual--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #aeaeae;
  color: var(--color-bg);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.hero-title-block {
  position: relative;
  margin-top: 20.5px; /* du bas du visuel (534) au divider (554.5) */
  padding-top: 64px;
  padding-bottom: 87px; /* exact : du bas des boutons (965.5) au divider (1052.5) */
}

/* Mot arabe fantôme en fond, cadré haut-droite, qui déborde légèrement
   du bord droit du cadre (mesuré directement sur le rendu pixel-exact
   de la maquette : ~240px de haut pour un cadre de 1440px, soit ~16.7vw). */
.hero-ghost-arabic {
  position: absolute;
  top: 0;
  right: -2vw;
  height: 16.7vw;
  max-height: 240px;
  width: auto;
  opacity: 0.15;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.hero-title,
.hero-date,
.hero-actions {
  position: relative;
  z-index: 1;
}

.hero-title {
  line-height: 0;
}

.hero-title-logo {
  width: 580px;
  height: auto;
  max-width: 100%;
}

.hero-date {
  margin-top: 24px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions {
  margin-top: 67px; /* exact : baseline date (833.1) à haut des boutons (900.5) */
  display: flex;
  gap: 21px; /* exact : écart entre boutons */
  flex-wrap: wrap;
}

.btn-sq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 208px;
  height: 65px;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  font-size: 24px;
  letter-spacing: 0.07em;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.btn-sq:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* À propos */
.about-section {
  padding-top: 50px;
}

.about-centered {
  max-width: 68ch;
  margin-inline: auto;
  text-align: center;
}

.eyebrow-plain {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 20px;
}

.about-text {
  color: var(--color-text);
  font-size: 24px;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.text-emph {
  font-weight: 600;
}

.about-text + .about-text {
  margin-top: var(--space-3);
}

.about-centered .btn {
  margin-top: 60px;
}

/* Hero secondaire (pages sans le hero complet de la home) */
.about-hero-title-block {
  position: relative;
  margin-top: 20.5px;
  padding-block: 64px 87px;
}

.about-hero-title-block h1 {
  font-size: clamp(40px, 5.5vw, 64px);
  position: relative;
  z-index: 1;
}

.about-hero-subtitle {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  max-width: 40ch;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.partner-section {
  max-width: 68ch;
  margin-inline: auto;
  margin-top: 80px;
  text-align: center;
}

.partner-section .btn {
  margin-top: 60px;
}

/* Rangées décoratives : mots arabes fantômes + ligne verticale fine.
   Mesuré sur la maquette : la ligne reste toujours centrée à 50% du
   cadre quelle que soit la largeur des mots à côté (pas un flex-gap,
   sinon elle se décale selon la taille du mot) ; les mots débordent
   légèrement des bords et sont calés en bas de la rangée, la ligne
   étant l'élément le plus haut. */
.deco-arabic-row {
  position: relative;
  margin-top: 53px;
  height: 25vw;
  max-height: 365px;
}

.deco-arabic-row--double {
  margin-top: 58px;
  height: 22vw;
  max-height: 315px;
}

/* Hauteur mesurée directement sur le rendu pixel-exact de la maquette
   (01_POG_HOMEPAGE.png, 1440x4181, échelle 1:1) : le mot fantôme fait
   ~240px de haut sur un cadre de 1440px, soit ~16.7vw. */
.deco-arabic {
  position: absolute;
  bottom: 0;
  height: 16.7vw;
  max-height: 240px;
  width: auto;
  opacity: 0.15;
  user-select: none;
  pointer-events: none;
}

/* Décalage en px fixe (4% de 1440, le cadre de référence), pas en vw :
   en vw il continue de grandir sur les écrans larges alors que la hauteur,
   elle, est plafonnée par max-height — résultat, les mots dérivaient loin
   du centre au lieu de rester calés comme sur la maquette. */
.deco-arabic-row:not(.deco-arabic-row--double) .deco-arabic {
  left: -58px;
}

.deco-arabic-row--double .deco-arabic {
  height: 17.4vw;
  max-height: 250px;
}

.deco-arabic-row--double .deco-arabic:first-child {
  left: -58px;
}

.deco-arabic-row--double .deco-arabic:last-child {
  right: -58px;
}

.deco-divider {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: var(--color-border);
}

/* Un projet de People of Gaza */
#l4p {
  margin-top: 106px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--color-text);
}

.project-visual--placeholder {
  margin-top: 22.5px;
  aspect-ratio: 1358 / 318;
}

/* Teaser L4P (1920x816) : on garde son ratio natif plutôt que le bandeau
   1358/318 du placeholder, qui aurait rogné plus de la moitié de l'image. */
.project-visual--video {
  display: block;
  margin-top: 22.5px;
  aspect-ratio: 1920 / 816;
  overflow: hidden;
  background: #000;
}

.project-visual--video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-rows {
  margin-top: 49px;
}

.project-row {
  display: grid;
  grid-template-columns: 459fr 690fr 208fr;
  align-items: start;
  padding-block: 32px;
}

.project-row {
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 860px) {
  .project-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.project-row-head h3 {
  max-width: 459px;
  font-size: 24px;
  font-weight: 600;
  text-transform: none;
  line-height: 1.21;
  letter-spacing: 0;
}

.project-row-sub {
  max-width: 459px;
  margin-top: 20px;
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.project-row-desc {
  max-width: 690px;
  color: var(--color-text);
  font-size: 20px;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.project-row .btn-sq {
  justify-self: end;
  align-self: center;
}

@media (max-width: 860px) {
  .project-row .btn-sq {
    justify-self: start;
  }
}

/* CTA "Pour le peuple par le peuple" */
.cta-donate {
  margin-top: 158px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 71px;
}

.cta-donate h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0;
}

/* Footer 4 colonnes : neutralise le border-top/padding génériques de
   nav.css (pensés pour le footer simple des sous-pages) — ici tout
   l'espacement vient des mesures exactes ci-dessous + du divider-inset. */
.site-footer {
  border-top: none;
  padding-block: 0;
}

.footer-grid {
  padding-block: 95px 80px;
  display: grid;
  grid-template-columns: 435px 1fr 1fr 1fr;
  gap: 24px;
}

.footer-col {
  min-width: 0;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-col--stamp {
    order: -1;
  }
  .footer-grid .footer-col:last-child {
    width: auto;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-stamp {
  width: 244px;
  aspect-ratio: 1;
  object-fit: contain;
  transform: rotate(-5.18deg);
  transform-origin: top left;
  filter: url(#duotone-stamp);
}

.footer-col-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 36px;
}

.footer-grid .footer-col:last-child {
  width: fit-content;
}

.footer-grid .footer-col:last-child .footer-links {
  align-items: flex-end;
}

/* Placée après la règle ci-dessus (même sélecteur/spécificité) pour
   qu'elle l'emporte réellement sur mobile — un @media plus haut dans le
   fichier ne gagne pas la cascade contre une règle non conditionnelle
   plus bas, à spécificité égale. */
@media (max-width: 480px) {
  .footer-grid .footer-col:last-child .footer-links {
    align-items: flex-start;
  }
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: opacity 0.2s var(--ease-out);
}

.footer-links a:hover {
  opacity: 0.6;
}

.footer-links a.footer-email {
  text-transform: none;
  overflow-wrap: break-word;
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 82px;
  font-size: 20px;
  letter-spacing: 0.03em;
  color: var(--color-text);
}

.footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Sur mobile, le décalage -58px (calibré pour le bleed du desktop full-bleed)
   dépasse le padding du container-fig (41px) : le mot arabe se fait rogner
   net par l'overflow-x:hidden du body. On réduit le décalage sous 41px pour
   garder un léger débordement sans jamais couper l'image. */
@media (max-width: 600px) {
  .deco-arabic-row:not(.deco-arabic-row--double) .deco-arabic {
    left: -20px;
  }

  .deco-arabic-row--double .deco-arabic:first-child {
    left: -20px;
  }

  .deco-arabic-row--double .deco-arabic:last-child {
    right: -20px;
  }
}

/* Mobile : tous les textes du site sont centrés, footer compris. Placé en
   fin de fichier pour l'emporter sur les alignements à gauche/droite
   définis plus haut (même spécificité). */
@media (max-width: 640px) {
  main,
  .site-footer {
    text-align: center;
  }

  .about-hero-subtitle {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .project-row-head h3,
  .project-row-sub,
  .project-row-desc {
    margin-inline: auto;
  }

  .project-row .btn-sq {
    justify-self: center;
  }

  .cta-donate {
    flex-direction: column;
    justify-content: center;
  }

  /* Footer compact : une seule colonne, sections séparées par un filet,
     liens en ligne (qui passent à la ligne si besoin) au lieu d'une longue
     liste verticale. */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 48px 16px;
  }

  .footer-col--stamp {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
  }

  .footer-stamp {
    width: 150px;
    transform-origin: center;
  }

  .footer-col:not(.footer-col--stamp) {
    padding-block: 24px;
    border-top: 1px solid var(--color-border);
  }

  .footer-grid .footer-col:last-child {
    width: auto;
  }

  .footer-col-title {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .footer-links,
  .footer-grid .footer-col:last-child .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 20px;
  }

  .footer-links a {
    font-size: 16px;
  }

  /* L'e-mail garde sa propre ligne, au-dessus des réseaux */
  .footer-links li:has(.footer-email) {
    flex-basis: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding-block: 32px 40px;
    font-size: 14px;
  }
}

/* Compte à rebours jusqu'au lancement du live (album + merch).
   Composant partagé : logique dans shared/js/countdown.js. */
.countdown {
  padding-block: 50px 120px;
  text-align: center;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
  margin-inline: auto;
  border: 1px solid var(--color-text);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-block: 28px 24px;
}

.countdown-unit + .countdown-unit {
  border-left: 1px solid var(--color-text);
}

.countdown-num {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 104px);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
}

.countdown-label {
  font-size: 18px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

@media (max-width: 600px) {
  .countdown {
    padding-bottom: 72px;
  }

  .countdown-unit {
    padding-block: 18px 16px;
    gap: 6px;
  }

  .countdown-label {
    font-size: 12px;
    letter-spacing: 0.04em;
  }
}
