/* ============================================================
   HOME.CSS - HUGUET PRODUCTION
   Forme propre à l'entité : motif "salle de projection / pellicule"
   (hero, missions, réalisations, groupe, contact)

   Système hérité du groupe (inchangé) : --primary-color #00ADEF,
   --bg-color, --bg-alt, --border-color, --text-color, --text-light,
   --shadow, --transition (définis dans base.css).

   Tokens ajoutés, propres à cette entité :
   --ink        fond "salle de projection" (hero + réalisations)
   --ink-soft   variante plus claire de l'encre, pour les surfaces sombres secondaires
   --paper      blanc cassé utilisé sur fond sombre
   --font-display  Bebas Neue - titres uniquement, évoque les cartons de titre / génériques
   --font-mono     IBM Plex Mono - timecodes, repères techniques uniquement
   ============================================================ */

:root {
  --ink: #0b0d10;
  --ink-soft: #15181d;
  --paper: #f3f5f7;
  --font-display: 'Bebas Neue', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}


/* ============================================================
   HERO - salle de projection
   ============================================================ */

.cinema-hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 34px 0;
  overflow: hidden;
}

/* Bandes noires façon cinémascope, au-dessus du fond déjà sombre :
   elles marquent le cadrage plutôt que d'ajouter du contraste. */
.cinema-hero__bar {
  height: 34px;
  background: #000;
  position: relative;
}

.cinema-hero__bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px,
    transparent 10px
  );
}

.cinema-hero__inner {
  position: relative;
  padding: 90px 20px 100px;
  max-width: 760px;
}

/* Repères de cadrage aux quatre coins, comme un viseur caméra */
.viewfinder {
  position: absolute;
  inset: 34px 24px;
  pointer-events: none;
  z-index: 1;
}

.viewfinder__corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: rgba(255, 255, 255, 0.35);
  border-style: solid;
  border-width: 0;
}

.viewfinder__corner--tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.viewfinder__corner--tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.viewfinder__corner--bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.viewfinder__corner--br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

/* Ligne de lecture façon écran de contrôle caméra (OSD) : texte brut,
   pas de pilule ni de bordure - juste ce qu'affiche un vrai moniteur. */
.cinema-hero__osd {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 28px;
}

.cinema-hero__osd-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cinema-hero__osd-sep {
  color: rgba(255, 255, 255, 0.2);
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d4d;
  animation: rec-pulse 2s ease-in-out infinite;
}

@keyframes rec-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.timecode {
  color: rgba(255, 255, 255, 0.75);
}

.cinema-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--paper);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.cinema-hero__title span {
  color: var(--primary-color);
}

.cinema-hero__lead {
  font-size: 1.15rem;
  color: rgba(243, 245, 247, 0.72);
  max-width: 560px;
  margin-bottom: 40px;
}

.cinema-hero__lead a {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cinema-hero .hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-outline--dark {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--paper);
}

.btn-outline--dark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}


/* ============================================================
   MISSIONS - pellicule de film
   ============================================================ */

.filmstrip-section {
  padding-bottom: 70px;
}

.filmstrip {
  position: relative;
  padding: 18px 0;
}

/* Rails perforés au-dessus et en dessous de la bande, comme du 35mm */
.filmstrip__rail {
  height: 14px;
  background-image: radial-gradient(circle, var(--border-color) 2.5px, transparent 2.5px);
  background-size: 26px 14px;
  background-position: center;
  background-repeat: repeat-x;
  opacity: 0.9;
}

.filmstrip__track {
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  padding: 28px max(20px, calc((100vw - 1200px) / 2 + 20px)) 46px;
  scrollbar-width: thin;
}

.frame {
  position: relative;
  flex: 1 0 260px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 28px 24px;
  transition: var(--transition);
}

.frame--wide  { flex-basis: 300px; }
.frame--narrow { flex-basis: 230px; }
.frame--offset { transform: translateY(18px); }

.frame:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.frame--offset:hover {
  transform: translateY(14px);
}

.frame__index {
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--border-color);
}

.frame__icon {
  margin-bottom: 20px;
}

.frame__icon svg {
  width: 34px;
  height: 34px;
  stroke: var(--primary-color);
  stroke-width: 1.5;
}

.frame h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.frame p {
  color: var(--text-light);
  font-size: 0.92rem;
}


/* ============================================================
   RÉALISATIONS - salle de projection
   ============================================================ */

.screening-room {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 30px 0;
}

.screening-room__bar {
  height: 24px;
  background: #000;
}

.screening-room .container {
  padding-block: 60px;
}

.section__label--dark {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.section-title--dark {
  color: var(--paper);
}

.section-subtitle--dark {
  color: rgba(243, 245, 247, 0.65);
}

.reel {
  max-width: 860px;
  margin: 40px auto 0;
}

.reel__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.reel__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Bandeau "ardoise" sous la vidéo : titre / lieu-année, comme un clap de tournage */
.slate {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.slate__title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.slate__meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(243, 245, 247, 0.5);
}

.realisation-note {
  margin-top: 26px;
  text-align: center;
  font-size: 0.9rem;
}

.realisation-note--dark {
  color: rgba(243, 245, 247, 0.5);
}


/* ============================================================
   CONTACT
   ============================================================ */

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  background: var(--bg-color);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contact-info {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 40px;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.contact-info > p {
  margin-bottom: 30px;
  color: #e0f6ff;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  gap: 15px;
}

.info-icon svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
}

.info-item h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.info-item a,
.info-item p {
  color: #e0f6ff;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.info-item a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.contact-form-container {
  padding: 40px;
}

.contact-form {
  width: 100%;
}

.contact-form .btn {
  width: 100%;
}


/* --- Formulaire de contact --- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--bg-alt);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--bg-color);
  box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.1);
}

.form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
}

.form-message.hidden { display: none; }

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cinema-hero__inner {
    padding: 60px 4px 70px;
  }

  .viewfinder {
    inset: 20px 12px;
  }

  .cinema-hero__title {
    font-size: 2.5rem;
  }

  .cinema-hero .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cinema-hero .hero-buttons .btn,
  .cinema-hero .hero-buttons .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .frame--offset {
    transform: none;
  }

  .frame--offset:hover {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rec-dot {
    animation: none;
  }
}
