/* ==========================================================================
   ELIPFILMS — Feuille de style commune
   Direction : éditoriale cinéma, papier crème, accent rouge cinéma
   Mobile-first
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  --bg:          #f7f3ed;
  --bg-soft:     #efe9df;
  --ink:         #111111;
  --ink-soft:    #3a3a3a;
  --muted:       #6b6b6b;
  --rule:        #d8cfc1;
  --accent:      #b8141a;
  --accent-soft: #d23a3f;

  --serif:  'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans:   'Manrope', system-ui, -apple-system, sans-serif;

  --maxw: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grain subtil pour ambiance papier */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

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

/* ---------- Layout commun ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 22px 24px;
  position: relative;
  z-index: 1;
}

/* ---------- Logo ELIPFILMS en tête ---------- */
.brand {
  margin: 8px auto 28px;
  max-width: 420px;
  animation: fadeUp .8s ease both;
}
.brand img { width: 100%; height: auto; }

/* ---------- Typographie ---------- */
.lede {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 18px;
}
.lede em { color: var(--ink-soft); }

.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.25;
  letter-spacing: .01em;
  text-align: center;
  margin: 22px 0 30px;
  color: var(--ink);
}
.tagline .accent { color: var(--accent); font-style: normal; }

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  margin: 36px 0 18px;
  color: var(--ink);
}
.section-title::before,
.section-title::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin: 0 14px 6px;
}

h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.1rem;
  letter-spacing: .18em;
  text-align: center;
  margin: 18px 0 8px;
  text-transform: uppercase;
}
h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 14px auto 0;
}

.subtitle {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 28px;
}

p { margin: 0 0 14px; }

/* ---------- Listes carrière/livres/films ---------- */
.cv-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.cv-list li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--rule);
  font-size: .98rem;
}
.cv-list li:last-child { border-bottom: none; }
.cv-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 18px;
  width: 10px; height: 1px;
  background: var(--accent);
}
.cv-list em, .cv-list i { font-style: italic; color: var(--ink); font-weight: 500; }
.cv-list a { border-bottom: 1px dotted var(--accent); }
.cv-list a:hover { color: var(--accent); }

/* ---------- Photo Eric Lipmann ---------- */
.portrait {
  margin: 18px auto 28px;
  max-width: 360px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
}
.portrait img { width: 100%; display: block; }

/* ---------- 3 boutons d'entrée (index) ---------- */
.gates {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin: 12px 0 24px;
}
.gate {
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
  transition: transform .25s ease, background .25s ease;
}
.gate:hover, .gate:focus-visible {
  transform: translateY(-3px);
  background: var(--bg-soft);
  outline: none;
}
.gate img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.18));
}
.gate .flag {
  width: 78px;
  height: 50px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 3px 10px rgba(0,0,0,.22);
}
.gate-label {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Bouton retour ---------- */
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 10px 18px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: all .25s ease;
  margin: 28px auto 0;
}
.back:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.back-wrap { text-align: center; }

/* ---------- Footer mentions légales ---------- */
.legal {
  margin: 40px 0 0;
  padding: 22px 0 18px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: .72rem;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
  letter-spacing: .02em;
}
.legal strong {
  display: block;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.legal a { color: var(--muted); border-bottom: 1px dotted var(--rule); }
.legal a:hover { color: var(--accent); }

/* ---------- Animation d'entrée ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp .7s ease both; }
.reveal-1 { animation-delay: .1s; }
.reveal-2 { animation-delay: .25s; }
.reveal-3 { animation-delay: .4s; }
.reveal-4 { animation-delay: .55s; }

/* ---------- Tablette / desktop ---------- */
@media (min-width: 720px) {
  .wrap { padding: 48px 32px 32px; }
  h1 { font-size: 2.6rem; }
  .section-title { font-size: 1.85rem; }
  .tagline { font-size: 1.7rem; }
  .gate img { width: 90px; height: 90px; }
  .gate .flag { width: 100px; height: 64px; }
}
