/* Charte reprise de c02.app */
:root {
  --fond: #333033;
  --fenetre: #2b292c;
  --barre: #1e1d1f;
  --trait: #3c393e;
  --rouge: #ff3333;
  --rouge-clair: #ff4d4d;
  --rouge-fonce: #e60000;
  --badge: #e74c3c;
  --gris: #a09d9f;
  --noir: #111111;
  --blanc: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fond);
  color: var(--blanc);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}

main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* En-tête */
.barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(16px, 5vw, 50px);
}
.logo img { display: block; width: clamp(56px, 8vw, 80px); height: auto; }
.pilule-noire {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(.8rem, 1.6vw, 1.1rem);
  color: var(--blanc);
  background: var(--noir);
  padding: .9em 2em;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease;
}
.pilule-noire:hover { background: #000; }

/* Titre */
.hero { text-align: center; padding: clamp(24px, 6vw, 60px) 0 clamp(28px, 5vw, 48px); }
.badge {
  display: inline-block;
  background: var(--badge);
  color: var(--blanc);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
}
.hero h1 {
  margin: 16px 0 8px;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -.5px;
  color: var(--rouge);
}
.hero p { margin: 0; color: var(--rouge-clair); font-size: clamp(1rem, 2.2vw, 1.35rem); }

.etat { text-align: center; color: var(--gris); }
.etat[hidden] { display: none; }

/* Grille de fenêtres */
.grille {
  list-style: none;
  margin: 0;
  padding: 0 0 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 400px));
  justify-content: center;
  gap: 28px;
}

.fenetre {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--fenetre);
  border: 1px solid var(--trait);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  color: inherit;
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
}
.fenetre:hover, .fenetre:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
  outline: none;
}
.fenetre:focus-visible { border-color: var(--rouge); }

.fenetre-barre {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--barre);
  border-bottom: 1px solid var(--trait);
}
.point { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.point.r { background: #ff5f56; }
.point.j { background: #ffbd2e; }
.point.v { background: #27c93f; }
.url {
  margin-left: 10px;
  flex: 1;
  min-width: 0;
  background: var(--fenetre);
  color: var(--gris);
  border: 1px solid var(--trait);
  border-radius: 6px;
  padding: 3px 12px;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vignette {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  font-size: 4rem;
}
.vignette img { width: 38%; height: auto; border-radius: 22%; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }

.contenu {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 22px 22px 26px;
}
.contenu h2 {
  margin: 4px 0 0;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1.1;
  letter-spacing: -.5px;
  color: var(--rouge);
}
.contenu p { margin: 0; flex: 1; color: var(--rouge-clair); font-size: .98rem; }

.bouton {
  display: inline-block;
  margin-top: 8px;
  background: var(--rouge);
  color: var(--blanc);
  padding: 11px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(255, 51, 51, .3);
  transition: background .3s ease, box-shadow .3s ease;
}
.fenetre:hover .bouton, .fenetre:focus-visible .bouton {
  background: var(--rouge-fonce);
  box-shadow: 0 6px 20px rgba(255, 51, 51, .5);
}

/* Pied de page */
.pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 32px clamp(16px, 5vw, 50px);
  font-family: 'Manrope', sans-serif;
  color: var(--rouge);
}
.pied-logo { font-weight: 700; font-size: 1.9rem; }
.pied a { color: var(--rouge); }

@media (prefers-reduced-motion: reduce) {
  .fenetre, .bouton { transition: none; }
  .fenetre:hover { transform: none; }
}
