/* crapule³ — feuille de style du site */
:root {
  --ground: #ffffff;
  --ink: #000000;
  --ink-900: #111111;
  --on-media: #ffffff;
  --muted-on-dark: #9a9a9a;
  --ember: #ED6E2D;
  --display: "Inter", system-ui, sans-serif;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--display);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  background: var(--ground);
  color: var(--ink);
}
/* Pages plein écran : la couleur derrière les barres du navigateur reprend le bord de l'image */
html.is-accueil, html.is-accueil body { background: #3f0002; }
html.is-apropos, html.is-apropos body { background: #464646; }
html.is-contact, html.is-contact body { background: #6a6a6a; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .75; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* ---------- En-tête ---------- */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
  padding: calc(24px + env(safe-area-inset-top)) calc(var(--gutter) + env(safe-area-inset-right)) 24px calc(var(--gutter) + env(safe-area-inset-left));
}
.wordmark { font-size: 34px; line-height: .9; font-weight: 600; letter-spacing: -0.03em; }
.nav-desktop { display: flex; gap: 16px; flex-wrap: wrap; }
.nav-link { font-size: 16px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; padding: 14px 0; display: inline-block; }
.menu-btn {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: inherit;
}
.menu-panel {
  position: relative;
  z-index: 2;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 16px 32px;
}
.menu-panel.is-open { display: flex; }
.menu-panel a { font-size: 34px; line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; padding: 6px 0; }

/* ---------- Pages plein écran (accueil, à propos, contact) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: calc(100lvh + env(safe-area-inset-bottom) + 100px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--on-media);
}
/* Le fond (vidéo / photo) fait partie de la page et occupe toute sa hauteur.
   La page fait la hauteur « maximale » de l'écran (100lvh) : sur téléphone,
   le bas passe sous la barre flottante de Safari au lieu de s'arrêter au-dessus. */
.hero__media,
.hero__veil {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.hero__media { object-fit: cover; display: block; }
.hero__veil { background: rgba(0, 0, 0, .4); }
.hero__content { position: relative; z-index: 1; margin-top: auto; margin-bottom: calc(2 * env(safe-area-inset-bottom) + 100px + (100lvh - 100dvh)); }
@media (min-width: 1025px) {
  .hero { min-height: 100vh; }
  .hero__content { margin-bottom: 0; }
}

/* À propos */
.apropos__media { object-position: 85% 50%; }
.apropos__content {
  padding: 0 30px 64px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
}
.apropos__content h1,
.apropos__content p { margin: 0 0 0 clamp(0px, 7vw, 106px); }
.apropos__content h1 { font-size: 28px; line-height: 1; font-weight: 600; }
.apropos__content p { max-width: 680px; font-size: 17px; line-height: 1.2; font-weight: 500; }

/* Contact */
.contact__media { object-position: 60% 50%; }
.contact__content { padding: 0 48px 120px; display: flex; flex-direction: column; gap: 40px; }
.contact__content h1 { margin: 0; font-size: 50px; line-height: .9; font-weight: 600; letter-spacing: -0.03em; text-transform: uppercase; }
.contact__list {
  margin: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px 0;
  font-size: 20px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.contact__list dt, .contact__list dd { margin: 0; }
.contact__list .mail { margin-bottom: 24px; }
.contact__list .tels { display: flex; flex-direction: column; gap: 16px; }
.contact__insta { align-self: flex-start; font-size: 24px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; color: var(--muted-on-dark); padding: 10px 0; }

/* ---------- Projets ---------- */
.page-projets { padding-bottom: 120px; }
.page-title {
  margin: 0;
  padding: 80px var(--gutter) 120px;
  font-size: clamp(40px, 4.2vw, 59px);
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.projects {
  display: flex;
  flex-direction: column;
  gap: 144px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}
.projects video {
  display: block;
  width: 100%;
  aspect-ratio: 863 / 677;
  object-fit: cover;
  background: var(--ink-900);
}

/* ---------- Tablette ---------- */
@media (max-width: 1024px) {
  .projects { gap: 96px; }
}

/* ---------- Téléphone ---------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .site-header { padding: calc(20px + env(safe-area-inset-top)) 16px 20px; }
  .nav-desktop { display: none; }
  .menu-btn { display: inline-flex; }
  .apropos__content { padding: 0 16px 48px; }
  .contact__content { padding: 0 16px 80px; }
  .projects { gap: 64px; }
  .page-title { padding: 48px 16px 64px; }
}
@media (min-width: 641px) {
  .menu-panel, .menu-panel.is-open { display: none; }
}
