/* ==========================================================================
   Samuel Godran — Portfolio Comédien (samuelgodran.com)
   Esthétique cinéma éditorial français · Ultra-rapide · 100 % Responsive
   ========================================================================== */

:root {
  --bg-cinema: #0d0e12;
  --bg-cinema-elev: #15171e;
  --bg-ivory: #f8f5ef;
  --bg-white: #ffffff;
  --ink-dark: #15171c;
  --ink-muted: #565c68;
  --ink-light: #f6f4ef;
  --ink-light-muted: #a9afb9;
  --gold: #c8a46b;
  --gold-deep: #96733b;
  --border-light: #e5dfd4;
  --border-dark: rgba(255, 255, 255, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1140px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-dark);
  background: var(--bg-cinema);
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #0d0e12;
  padding: 10px 16px;
  font-weight: 700;
  z-index: 200;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  border-radius: var(--radius-sm);
}

.container {
  width: min(var(--max-w), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(13, 14, 18, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dark);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink-light);
}

.brand-monogram {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(200, 164, 107, 0.55);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.brand-text {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-light-muted);
  transition: color 0.16s ease;
}

.site-nav a:hover {
  color: var(--ink-light);
}

.site-nav .nav-cv-btn {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(200, 164, 107, 0.5);
  color: var(--gold);
  font-weight: 600;
}

.site-nav .nav-cv-btn:hover {
  background: var(--gold);
  color: #0d0e12;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-dark);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.8px;
  background: var(--ink-light);
}

/* Typography & Buttons */
.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.hero .eyebrow,
.section-cinema .eyebrow {
  color: var(--gold);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  margin: 0;
  line-height: 1.12;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.14s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 13px;
}

.btn-full {
  width: 100%;
}

.btn-gold {
  background: var(--gold);
  color: #0d0e12;
  font-weight: 700;
}
.btn-gold:hover {
  background: #d7b680;
}

.btn-dark {
  background: var(--ink-dark);
  color: var(--ink-light);
}
.btn-dark:hover {
  background: #282c36;
}

.btn-outline-light {
  background: transparent;
  color: var(--ink-light);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-outline-light:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-light);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.13);
}

.btn-outline-dark {
  background: transparent;
  color: var(--ink-dark);
  border-color: #cfc7b9;
}
.btn-outline-dark:hover {
  border-color: var(--ink-dark);
  background: var(--bg-ivory);
}

/* Hero */
.hero {
  background: radial-gradient(circle at 80% 20%, rgba(200, 164, 107, 0.11), transparent 48%), var(--bg-cinema);
  color: var(--ink-light);
  padding: 58px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 54px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(44px, 6.2vw, 72px);
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin-bottom: 16px;
}

.hero-location {
  margin: 0 0 26px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-light-muted);
}

.hero-location .dot {
  color: var(--gold);
  margin-inline: 6px;
}

.hero-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 26px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
}

.hero-spec dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 2px;
}

.hero-spec dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-light);
}

.hero-bio {
  margin: 0 0 30px;
  color: #c8cdd6;
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-portrait {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(200, 164, 107, 0.25);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 430px;
  justify-self: end;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-cinema {
  background: #12141a;
  color: var(--ink-light);
  border-top: 1px solid var(--border-dark);
}

.section-ivory {
  background: var(--bg-ivory);
  color: var(--ink-dark);
}

.section-white {
  background: var(--bg-white);
  color: var(--ink-dark);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.section-header h2 {
  font-size: clamp(30px, 4vw, 42px);
}

.text-link-light {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.text-link-light:hover {
  text-decoration: underline;
}

/* Bande-démo */
.video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #07080a;
  border: 1px solid var(--border-dark);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-poster-btn {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #07080a;
  cursor: pointer;
  display: block;
  text-align: left;
}

.video-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.video-poster-btn:hover .video-poster-img {
  transform: scale(1.03);
  opacity: 0.92;
}

.video-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 14, 18, 0.15) 0%, rgba(13, 14, 18, 0.72) 100%);
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(200, 164, 107, 0.94);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-poster-btn:hover .play-badge {
  transform: translate(-50%, -50%) scale(1.07);
  background: #dbbb86;
}

.play-triangle {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-style: solid;
  border-width: 12px 0 12px 21px;
  border-color: transparent transparent transparent #0d0e12;
}

.video-poster-caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  right: 18px;
  color: var(--ink-light);
  font-size: 13px;
  font-weight: 600;
}

.video-side-card {
  background: var(--bg-cinema-elev);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.video-side-card h3 {
  font-size: 22px;
  color: var(--ink-light);
}

.video-side-text {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-light-muted);
  line-height: 1.65;
}

.video-meta-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-dark);
}

.video-meta-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
}

.video-meta-row span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-light-muted);
}

.video-meta-row a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

/* Book Photo Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.photo-card {
  margin: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(21, 23, 28, 0.09);
}

.photo-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #ece7de;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: zoom-in;
}

.photo-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 0.35s ease;
}

.photo-card:hover .photo-trigger img {
  transform: scale(1.035);
}

.photo-caption {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.photo-caption strong {
  font-size: 14px;
  color: var(--ink-dark);
}

.photo-caption span {
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* Filmographie & Formation */
.filmo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.75fr);
  gap: 48px;
  align-items: start;
}

.credit-group + .credit-group {
  margin-top: 34px;
}

.credit-group h3 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 14px;
}

.credit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.credit-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
}

.credit-year {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}

.credit-year.is-undated {
  color: #b7ad9d;
  font-weight: 400;
}

.credit-body strong {
  color: var(--ink-dark);
  font-size: 15.5px;
}

.credit-role {
  color: #313640;
  font-size: 15px;
}

.credit-dir {
  display: block;
  color: var(--ink-muted);
  font-size: 13.5px;
  margin-top: 2px;
}

.edu-card {
  background: var(--bg-ivory);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px;
}

.edu-card h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.edu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.edu-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

.edu-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.edu-dates {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}

.edu-list strong {
  font-size: 16px;
  color: var(--ink-dark);
}

.edu-list span:last-child {
  font-size: 13.8px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* Fiche technique */
.specs-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.spec-panel {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

.spec-panel h3 {
  font-size: 21px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.spec-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.spec-dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14.2px;
}

.spec-dl dt {
  color: var(--ink-muted);
  font-weight: 500;
}

.spec-dl dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  color: var(--ink-dark);
}

.tags-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags-list li {
  background: var(--bg-ivory);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13.2px;
  font-weight: 600;
  color: var(--ink-dark);
}

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 44px;
  align-items: center;
}

.contact-copy h2 {
  font-size: clamp(32px, 4.2vw, 46px);
  margin-bottom: 14px;
}

.contact-sub {
  margin: 0;
  color: var(--ink-light-muted);
  font-size: 15.5px;
  max-width: 440px;
}

.contact-card {
  background: var(--bg-cinema-elev);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-dark);
}

.contact-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
}

.contact-value {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink-light);
  text-decoration: none;
  word-break: break-word;
}
.contact-value:hover {
  color: var(--gold);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  font-weight: 600;
}

.contact-links a {
  color: var(--ink-light-muted);
  text-decoration: none;
}
.contact-links a:hover {
  color: var(--gold);
}

.copy-feedback {
  margin: 0;
  min-height: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: #5eead4;
}

/* Footer */
.site-footer {
  background: #090a0d;
  color: var(--ink-light-muted);
  border-top: 1px solid var(--border-dark);
  padding: 26px 0;
  font-size: 13.5px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a,
.footer-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--ink-light-muted);
  text-decoration: none;
  cursor: pointer;
}

.footer-links a:hover,
.footer-btn:hover {
  color: var(--gold);
}

/* Lightbox */
.lightbox[hidden],
.modal[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}

.lightbox-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 12, 0.9);
  backdrop-filter: blur(8px);
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  width: min(980px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--ink-light);
}

.lightbox-caption {
  display: flex;
  flex-direction: column;
}

.lightbox-caption span {
  font-size: 13px;
  color: var(--ink-light-muted);
}

.lightbox-controls {
  display: flex;
  gap: 8px;
}

.lightbox-stage {
  display: grid;
  place-items: center;
  min-height: 0;
}

.lightbox-stage img {
  max-height: 78vh;
  max-width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

/* Modal Mentions Légales */
.modal {
  position: fixed;
  inset: 0;
  z-index: 125;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-box {
  position: relative;
  z-index: 2;
  width: min(560px, 94vw);
  background: var(--bg-white);
  color: var(--ink-dark);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.45);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-head h3 {
  font-size: 22px;
}

.modal-body p {
  margin: 0 0 12px;
  font-size: 14.2px;
  color: #363c48;
}

.modal-body code {
  background: var(--bg-ivory);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 13px;
}

/* 404 Page */
.notfound-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: var(--ink-light);
}

.notfound-card {
  max-width: 480px;
}

.notfound-card h1 {
  font-size: 64px;
  color: var(--gold);
  margin-bottom: 12px;
}

.notfound-card p {
  color: var(--ink-light-muted);
  margin: 0 0 26px;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .video-layout,
  .filmo-grid,
  .contact-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero-portrait {
    justify-self: center;
    width: 100%;
    max-width: 360px;
    order: -1;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .specs-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(13, 14, 18, 0.98);
    border-bottom: 1px solid var(--border-dark);
    padding: 18px 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    padding: 36px 0 54px;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
    line-height: 1.5;
  }

  .hero-portrait {
    max-width: 320px;
  }

  .hero-specs {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 58px 0;
  }

  .photo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .credit-item {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
  }
}
