/* Fond blanc uni. Seuls effets conservés : les flammes, la fumée et le titrage.
   Titre du site en Airstrike (Iconian Fonts), le reste en Arial — voir assets/fonts/LICENCE-airstrike.txt
   Flammes et fumée : images générées par outils/generer-effets.py */
@font-face {
  font-family: "Airstrike";
  src: url("assets/fonts/airstrike.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --blanc: #FFFFFF;
  --texte: #1A1A1A;
  --texte-doux: #4A4A4A;
  --rose: #FF2E93;
  --rose-fonce: #C4126B;
  --trait: #D6D6DC;

  /* dégradé chrome du titrage */
  --chrome: linear-gradient(180deg, #8A8A96 0%, #2C2C34 40%, #6E6E7C 52%, #1E1E24 70%, #7A7A88 100%);

  --marge: clamp(16px, 3vw, 44px);
  --flammes-h: clamp(70px, 8vw, 115px);

  --corps: Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--blanc);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 15px;
  line-height: 1.5;
}

h1,
h2,
p,
ul {
  margin: 0;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

/* ---------- Photo plein écran, sans effet ---------- */
.photo-fixe {
  position: fixed;
  inset: 0 0 0 50%;
  z-index: 0;
  overflow: hidden;
}

.photo-image {
  position: absolute;
  inset: 0;
  background: url("assets/img/paul-garcin.jpg") center / cover no-repeat;
}

/* la même photo, mais pour les lecteurs d'écran et les moteurs de recherche */
.photo-texte {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}

/* ---------- Fumée ---------- */
.fumee {
  position: fixed;
  inset: 0;
  z-index: 3; /* la fumée passe devant le texte et la photo */
  pointer-events: none;
  overflow: hidden;
}

.fumee span {
  position: absolute;
  bottom: -40vh;
  width: 70vmin;
  height: 70vmin;
  background: center / contain no-repeat;
  opacity: 0;
  animation: fumee 30s linear infinite;
}

.fumee .f1 { left: -10%; background-image: url("assets/img/fumee-1.png"); }
.fumee .f2 { left: 22%;  background-image: url("assets/img/fumee-2.png"); animation-duration: 38s; animation-delay: -9s; }
.fumee .f3 { left: 55%;  background-image: url("assets/img/fumee-3.png"); animation-duration: 34s; animation-delay: -18s; }
.fumee .f4 { left: 78%;  background-image: url("assets/img/fumee-1.png"); animation-duration: 42s; animation-delay: -26s; }

@keyframes fumee {
  0%   { transform: translate(0, 0) scale(0.55) rotate(0deg); opacity: 0; }
  12%  { opacity: 0.75; }
  70%  { opacity: 0.4; }
  100% { transform: translate(6vw, -145vh) scale(1.5) rotate(25deg); opacity: 0; }
}

/* ---------- Colonne de contenu ---------- */
.contenu {
  position: relative;
  z-index: 2;
  width: 50%;
  min-height: 100vh;
  padding: var(--marge) var(--marge) calc(var(--flammes-h) + 48px);
  padding-left: max(var(--marge), env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.5vh, 40px);
  background: var(--blanc);
  container-type: inline-size; /* sert à caler le titre sur la largeur */
}

/* ---------- Hiérarchie du texte ----------
   1. PAUL GARCIN (titre du site)      4. étiquette et dates (repères)
   2. Main Character Energy (principal) 5. texte courant
   3. Portfolio, Contact (secondaires)  6. contact (le plus discret)        */

/* 1. Titre du site : Airstrike, chrome et ombre rose */
h1 {
  font-family: "Airstrike", "Arial Black", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  /* le titre occupe toute la largeur : 1 em ≈ 0,1485 fois la largeur du texte */
  font-size: clamp(44px, 12vw, 104px);
  font-size: 14.85cqw;
  white-space: nowrap;
  line-height: 1;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(3px 3px 0 var(--rose));
}

h1 a {
  text-decoration: none;
}

.legende {
  margin-top: 0.7em;
  max-width: 30ch;
  font-size: clamp(15px, 1.25vw, 19px);
  font-weight: 700;
  line-height: 1.35;
}

/* Blocs : un filet sépare chaque niveau */
.bloc {
  padding-top: clamp(20px, 2.5vh, 32px);
  border-top: 1px solid var(--trait);
}

/* 2. L'émission : le bloc le plus en vue */
.bloc-principal {
  padding: 0;
  border-top: 0;
}

.bloc-corps {
  padding: clamp(18px, 2.4vw, 30px);
  border-left: 4px solid var(--rose);
  background: #F6F6F8;
}

.bloc-principal h2 {
  font-size: clamp(24px, 2.6vw, 38px);
}

/* 3. Titres des blocs secondaires */
h2 {
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.15;
}

/* 4. Étiquette et dates : repères, en petit */
.etiquette {
  margin-bottom: 0.35em;
  font-size: clamp(11px, 0.95vw, 13px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rose-fonce);
}

.radios {
  margin-top: 0.7em;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--texte-doux);
}

/* 5. Texte courant */
.description {
  margin-top: 0.8em;
  max-width: 48ch;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.6;
  color: var(--texte);
}

/* Boutons d'écoute : l'action principale */
.boutons {
  list-style: none;
  padding: 0;
  margin-top: 1.4em;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.boutons a {
  display: inline-block;
  padding: 10px 16px;
  background: var(--rose);
  color: var(--blanc);
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.boutons a:hover {
  background: var(--rose-fonce);
}

/* Portfolio : action secondaire, bouton en contour */
.bouton-second {
  margin-top: 0.9em;
}

.bouton-second a {
  display: inline-block;
  padding: 10px 16px;
  border: 2px solid var(--rose);
  color: var(--texte);
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 700;
  text-decoration: none;
}

.bouton-second a:hover {
  background: var(--rose);
  color: var(--blanc);
}

/* 6. Contact : le niveau le plus discret */
.liens {
  list-style: none;
  padding: 0;
  margin-top: 0.7em;
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.45em;
  row-gap: 0.1em;
  font-size: clamp(13px, 1.05vw, 15px);
}

.liens li:not(:last-child)::after {
  content: "•";
  margin-left: 0.45em;
  color: var(--rose);
}

.liens a {
  display: inline-block;
  padding-block: 5px; /* zone de clic confortable au doigt */
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--rose);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.liens a:hover {
  color: var(--rose-fonce);
}

/* ---------- Flammes en bas de l'écran ---------- */
.flammes-bas {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -2px;
  z-index: 4;
  height: var(--flammes-h);
  pointer-events: none;
  background-image: url("assets/img/flammes.png");
  background-image: image-set(url("assets/img/flammes.webp") type("image/webp"), url("assets/img/flammes.png") type("image/png"));
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: bottom left;
}

/* ---------- Mobile : la photo occupe le premier écran ---------- */
@media (max-width: 860px) {
  .photo-fixe {
    inset: 0 0 auto 0;
    height: 100svh;
  }

  /* le texte glisse par-dessus la photo */
  .contenu {
    width: 100%;
    padding-top: calc(100svh + var(--marge));
    background: none;
  }

  .contenu::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 100svh 0 0 0;
    background: var(--blanc);
  }

  .legende {
    max-width: none;
  }
}

/* ---------- Animations désactivées si l'appareil le demande ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .fumee span {
    opacity: 0.35;
    transform: translateY(-60vh) scale(1.1);
  }
}
