/* ==========================================================
   PALETTE — change les couleurs ici, tout le site suit
   ========================================================== */
:root {
  --creme:   #FDFBE7;   /* fond crème pâle */
  --orange:  #F7941D;   /* orange du titre */
  --encre:   #3A3A38;   /* texte gris foncé */
  --encre-pale: #8A8A82;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--creme);
  color: var(--encre);
  font-family: 'Questrial', 'Century Gothic', sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

/* ==========================================================
   ACCUEIL (hero)
   ========================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 4vw 5vw;
  position: relative;
}

.hero h1 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  color: var(--orange);
  font-size: clamp(3.5rem, 14vw, 14rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 6vh;
  min-height: 1em;
}

.menu { list-style: none; }

.menu a {
  display: inline-block;
  color: var(--encre);
  text-decoration: none;
  padding: 0.35em 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--orange);
  transform: translateX(6px);
}

.menu a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.signature {
  position: absolute;
  bottom: 4vh;
  right: 5vw;
  color: var(--encre);
}

/* Animation du gros titre quand il change au survol du menu :
   le nouveau mot monte en fondu. */
@keyframes titre-pop {
  from { opacity: 0; transform: translateY(0.18em); }
  to   { opacity: 1; transform: none; }
}

.hero h1.anim {
  animation: titre-pop 0.35s ease;
}

/* ==========================================================
   BARRE DE NAVIGATION (pages intérieures)
   ========================================================== */
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem 2rem;
  padding: 2rem 5vw;
}

.topbar .logo {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--orange);
  text-decoration: none;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.topbar nav a {
  color: var(--encre);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.topbar nav a:hover,
.topbar nav a:focus-visible {
  color: var(--orange);
}

.topbar nav a[aria-current="page"] {
  color: var(--orange);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
}

/* ==========================================================
   PAGES CATÉGORIES — titre géant + couvertures de projets
   ========================================================== */
.titre-page {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  color: var(--orange);
  font-size: clamp(3rem, 11vw, 11rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 6vh;
}

.couvertures {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* Une couverture = une image cliquable qui mène à la page du projet */
.couverture {
  display: block;
  text-decoration: none;
  color: var(--encre);
}

.couverture .cadre {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
}

.couverture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.couverture:hover img,
.couverture:focus-visible img {
  transform: scale(1.04);
}

.couverture .cadre .placeholder {
  height: 100%;
}

.couverture .titre-projet {
  display: block;
  margin-top: 0.75rem;
  font-family: 'Anton', sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.couverture:hover .titre-projet,
.couverture:focus-visible .titre-projet {
  color: var(--orange);
}

.retour {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--encre-pale);
  text-decoration: none;
}

.retour:hover { color: var(--orange); }

/* ==========================================================
   SECTIONS DE PROJETS
   ========================================================== */
section {
  padding: 6vh 5vw 12vh;
}

section h2 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  color: var(--orange);
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

section > p {
  max-width: 60ch;
  margin-bottom: 3rem;
  color: var(--encre-pale);
}

.sous-titre {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  color: var(--encre);
  font-size: 1.4rem;
  margin: 5rem 0 2rem;
}

.grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.projet img,
.projet video {
  width: 100%;
  display: block;
  border-radius: 4px;
}

.projet figcaption {
  margin-top: 0.75rem;
  color: var(--encre);
}

.projet figcaption span {
  display: block;
  color: var(--encre-pale);
  font-size: 0.9em;
}

/* Espace réservé en attendant tes vraies images.
   Supprime la div .placeholder et décommente le <img> quand
   tu ajoutes ton visuel. */
.placeholder {
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--orange);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--encre-pale);
  text-align: center;
  padding: 1rem;
}

/* ==========================================================
   À PROPOS + CONTACT
   ========================================================== */
.a-propos p {
  max-width: 60ch;
  color: var(--encre);
  margin-bottom: 1rem;
}

.contact {
  margin-top: 2rem;
}

.contact a {
  color: var(--orange);
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
}

footer {
  padding: 6vh 5vw;
  color: var(--encre-pale);
  font-size: 0.9em;
}

/* Respect du mode « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu a, .topbar nav a { transition: none; }
  .hero h1.anim { animation: none; }
}
