/* =========================================================
   Setsuna Prod · feuille de style
   Univers : noir, crème, kanji, beaucoup d'espace
   ========================================================= */

:root {
  --noir: #000000;
  --noir-2: #0b0b0b;           /* fonds des cadres vides */
  --creme: #F0ECE4;            /* couleur du logo */
  --creme-2: rgba(240, 236, 228, 0.66);  /* texte secondaire */
  --creme-3: rgba(240, 236, 228, 0.36);  /* indications discrètes */
  --filet: rgba(240, 236, 228, 0.14);    /* traits fins */

  /* Police : Jost si elle est installée dans assets/fonts, sinon une géométrique du système */
  --police: "Jost", "Futura", "Avenir Next", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --marge: clamp(20px, 5vw, 72px);
  --espace-section: clamp(112px, 16vh, 180px);
  --lent: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  background: var(--noir);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--noir);
  color: var(--creme);
  font-family: var(--police);
  font-weight: 400;
  font-size: clamp(16px, 0.5vw + 14px, 18px);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 1px solid var(--creme); outline-offset: 4px; }

::selection { background: var(--creme); color: var(--noir); }

/* Lien d'évitement (clavier) */
.evitement {
  position: absolute; left: var(--marge); top: -100px; z-index: 10;
  padding: 8px 14px; background: var(--creme); color: var(--noir);
}
.evitement:focus { top: 16px; }

/* Petites capitales espacées, comme « SETSUNA PROD » sur le logo */
.metier,
.entete nav a,
.section-titre,
.savoir-faire,
.pied,
.video-texte,
.video-bientot,
.contact-liens {
  text-transform: uppercase;
  letter-spacing: 0.38em;
  font-size: 0.72rem;
  font-weight: 400;
}

/* ---------- En-tête ---------- */
.entete {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px var(--marge);
}
.entete-kanji img { height: 18px; width: auto; opacity: 0.9; }
.entete nav { display: flex; gap: clamp(18px, 3vw, 44px); }
.entete nav a { color: var(--creme-2); transition: color 0.4s; }
.entete nav a:hover { color: var(--creme); }

/* ---------- Ouverture ---------- */
.ouverture {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(20px, 4vh, 44px);
  padding: 96px 0 56px;
}
.logo { margin: 0; }
.logo img { width: clamp(220px, 26vw, 400px); }
.metier { margin: 0 0 clamp(8px, 2vh, 24px); color: var(--creme-2); padding-left: 0.38em; text-align: center; }

/* Cadre cinémascope 2.39:1, bord à bord, comme les cartes de visite */
.cadre {
  position: relative; margin: 0;
  width: min(100%, calc(52svh * 2.39));
  aspect-ratio: 2.39 / 1;
  background: var(--noir-2);
}
.tc {
  position: absolute; left: var(--marge); bottom: -32px;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  color: var(--creme-3);
}

/* Apparition depuis le noir */
@media (prefers-reduced-motion: no-preference) {
  .logo, .metier, .cadre, .entete { animation: fondu 1.6s var(--lent) both; }
  .metier { animation-delay: 0.25s; }
  .cadre { animation-delay: 0.5s; }
  .entete { animation-delay: 0.9s; }
}
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Lecteur vidéo (image + bouton, la vidéo ne se charge qu'au clic) ---------- */
.video {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%;
  padding: 0; border: 0; background: var(--noir-2);
  cursor: pointer; overflow: hidden;
}
.video img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.6s var(--lent), opacity 0.8s var(--lent);
}
.video:hover img { transform: scale(1.015); }
.video-lecture {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 60%);
  opacity: 0.92; transition: opacity 0.6s;
}
.video:hover .video-lecture { opacity: 1; }
.video-icone {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(240, 236, 228, 0.7);
  position: relative;
  backdrop-filter: blur(2px);
}
.video-icone::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  transform: translate(-35%, -50%);
  border-style: solid; border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--creme);
}
.video-bientot { display: none; }

/* Vidéo pas encore en ligne : pas de bouton lecture */
.video.sans-video { cursor: default; }
.video.sans-video:hover img { transform: none; }
.video.sans-video .video-lecture { display: none; }
.video.sans-video .video-bientot {
  display: block; position: absolute; right: var(--marge); bottom: 18px;
  color: var(--creme-2);
}
.projet .video.sans-video .video-bientot { display: none; }

.lecteur { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

/* ---------- Sections ---------- */
.section { padding: var(--espace-section) var(--marge) 0; max-width: 1440px; margin: 0 auto; }
.section-titre {
  display: flex; align-items: baseline; gap: 18px;
  margin: 0 0 clamp(40px, 7vh, 72px);
  color: var(--creme-2);
}
.section-titre span { font-family: var(--mono); letter-spacing: 0.1em; color: var(--creme-3); }

/* ---------- Projets ---------- */
.grille {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(56px, 8vh, 96px) clamp(24px, 3vw, 48px);
}
@media (min-width: 820px) { .grille { grid-template-columns: 1fr 1fr; } }

.media { position: relative; aspect-ratio: 16 / 9; background: var(--noir-2); overflow: hidden; }
.projet h3 { margin: 22px 0 6px; font-size: 1.12rem; font-weight: 500; letter-spacing: 0.02em; line-height: 1.3; }
.role { margin: 0; color: var(--creme-2); font-size: 0.92rem; line-height: 1.6; }

/* Emplacements à remplir (à retirer quand le contenu est prêt) */
.vide {
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--filet);
  color: var(--creme-3); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
}

/* ---------- À propos ---------- */
.a-propos-grille {
  display: grid; gap: clamp(40px, 6vw, 96px);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 820px) { .a-propos-grille { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.portrait { aspect-ratio: 4 / 5; max-width: 440px; width: 100%; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.texte { max-width: 34rem; }
.texte p { margin: 0 0 1.1em; color: var(--creme-2); }
.texte .texte-fort { color: var(--creme); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.3; font-weight: 400; margin-bottom: 0.9em; }
.savoir-faire {
  list-style: none; padding: 28px 0 0; margin: 28px 0 0;
  border-top: 1px solid var(--filet);
  display: flex; flex-wrap: wrap; gap: 12px 36px;
  color: var(--creme);
}

/* ---------- Contact ---------- */
.contact { text-align: center; padding-bottom: var(--espace-section); }
.contact .section-titre { justify-content: center; }
.contact-accroche { margin: 0 0 20px; color: var(--creme-2); }
.contact-mail {
  display: inline-block;
  font-size: clamp(1.35rem, 4.2vw, 3.2rem); font-weight: 400; letter-spacing: 0.01em; line-height: 1.2;
  padding-bottom: 6px; border-bottom: 1px solid var(--filet);
  transition: border-color 0.5s;
  overflow-wrap: anywhere;
}
.contact-mail:hover { border-color: var(--creme); }
.contact-liens {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px;
  color: var(--creme-2);
}
.contact-liens a { border-bottom: 1px solid transparent; transition: border-color 0.4s, color 0.4s; }
.contact-liens a:hover { color: var(--creme); border-color: var(--creme-2); }

/* ---------- Pied de page ---------- */
.pied {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding: 28px var(--marge);
  border-top: 1px solid var(--filet);
  color: var(--creme-3); font-size: 0.66rem;
}
.pied a { transition: color 0.4s; }
.pied a:hover { color: var(--creme); }

/* ---------- Page texte (mentions légales) ---------- */
.page-texte { max-width: 46rem; margin: 0 auto; padding: 160px var(--marge) var(--espace-section); }
.page-texte h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 400; margin: 0 0 64px; }
.page-texte h2 { margin: 56px 0 16px; }
.page-texte p { margin: 0 0 6px; color: var(--creme-2); }
.page-texte strong { color: var(--creme); font-weight: 500; }
.page-texte a { border-bottom: 1px solid var(--filet); }
.page-texte a:hover { border-color: var(--creme); }

/* ---------- Petits écrans ---------- */
@media (max-width: 520px) {
  .metier, .entete nav a, .section-titre, .savoir-faire, .pied, .video-texte, .video-bientot, .contact-liens {
    letter-spacing: 0.22em;
  }
  .entete { padding-top: 22px; }
  .entete nav { gap: 16px; }
  .entete-kanji img { height: 15px; }
  .video-icone { width: 44px; height: 44px; }
  .video-texte { display: none; }
  .tc { bottom: -28px; }
}
