/* === RESET & BASE === */

  body { font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; margin: 24px; }
  h1 { margin: 0 0 8px 0; font-size: 28px; }
  p { margin: 0 0 18px 0; color: #333; line-height: 1.4; }
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
  .card { border: 1px solid #ddd; border-radius: 12px; padding: 14px; transition: all 0.15s; }
  .card:hover { border-color: #999; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
  .card a { text-decoration: none; color: inherit; display: block; }
  .meta { color: #666; font-size: 14px; margin-top: 6px; }
  .tag { display: inline-block; font-size: 12px; padding: 2px 8px; border: 1px solid #ccc; border-radius: 999px; color: #555; margin-top: 10px; background: #fff; }
  .error { color: #a00; background: #fee; border: 1px solid #fbb; padding: 10px; border-radius: 10px; }

  .credit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .credit-overlay.hidden { display: none; }

  .credit-box {
    background: #fff;
    border-radius: 16px;
    padding: 24px 32px;
    min-width: 320px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.35);
    animation: creditIn 0.25s ease-out;
  }
    
    .credit-section {
      margin-bottom: 12px;
    }

    .credit-box {
      max-width: 400px;
      text-align: center;
    }

    #infoText {
      font-size: 14px;
    }

  .credit-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
  }

  .credit-text {
    font-family: ui-monospace, monospace;
    font-size: 14px;
    line-height: 1.6;
  }

  .credit-text a {
    color: #0066ff;
    text-decoration: none;
  }

  .credit-hint {
    margin-top: 12px;
    font-size: 11px;
    color: #666;
    font-family: ui-monospace, monospace;
  }

  @keyframes creditIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    color: #111;
  }
  .btn:hover { background: #f5f5f5; }

  .hero-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
    margin: 14px 0 14px 0;
  }
  .panel {
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 14px;
    background: #fff;
  }
  .panel small { color:#666; font-family: ui-monospace, monospace; }
  .panel-title { font-weight: 700; margin-bottom: 10px; }
  .panel-row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
  .input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 14px;
    min-width: 220px;
    outline: none;
  }
  .input:focus { border-color:#0066ff; box-shadow: 0 0 0 3px rgba(0,102,255,0.15); }
  .hint { color:#666; font-size: 12px; margin-top: 8px; font-family: ui-monospace, monospace; }

  .info-box {
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 14px;
    background: #fff;
    margin: 0 0 18px 0;
  }
  .info-box .mono { font-family: ui-monospace, monospace; color:#666; font-size: 12px; }

  .main-layout {
    max-width: 1100px;
    margin: 0 auto;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 16px;
    align-items: start;
  }

  .main-content {
    flex: 1;
    min-width: 0;
  }

  .side-column {
    width: 120px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 20px;
  }

  .side-link {
    display: block;
    text-decoration: none;
    color: #111;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 6px;
    background: #fff;
    text-align: center;
    font-size: 11px;
  }

  .side-link:hover { background: #f5f5f5; }

  .side-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #ccc;
    border-radius: 6px;
    margin-bottom: 4px;
    object-fit: cover;
  }

  /* Toggle langue FR/EN */
  .lang-toggle { display: flex; gap: 4px; }
  .lang-btn {
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #666;
  }
  .lang-btn:hover { background: #f5f5f5; }
  .lang-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
  }

  .card {
    position: relative;
    overflow: hidden;
  }

  /* Background de vignette (lazy via JS) */
  .card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 0;
    background-color: #e9e9e9; /* placeholder */
  }
  .card a {
    position: relative;
    z-index: 1;
  }

/* ========================================
 FOCUS EDITORIAL
 ======================================== */
.focus-box {
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
border-radius: 16px;
padding: 20px;
margin-bottom: 20px;
color: #fff;
}

.focus-box.hidden { display: none; }

.focus-header {
margin-bottom: 12px;
}

.focus-title {
font-size: 18px;
font-weight: 700;
margin: 0 0 4px 0;
}

.focus-subtitle {
font-size: 14px;
color: rgba(255,255,255,0.7);
margin: 0;
}

.focus-description {
font-size: 13px;
line-height: 1.5;
color: rgba(255,255,255,0.85);
margin-bottom: 16px;
}

.focus-films {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
gap: 12px;
}

.focus-film {
border-radius: 10px;
overflow: hidden;
background: rgba(255,255,255,0.1);
cursor: pointer;
transition: transform 0.15s, box-shadow 0.15s;
}

.focus-film:hover {
transform: translateY(-3px);
box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.focus-film img {
width: 100%;
aspect-ratio: 16/9;
object-fit: cover;
display: block;
}

.focus-film-title {
padding: 8px;
font-size: 11px;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.focus-footer {
margin-top: 14px;
text-align: right;
}

.focus-link {
color: #64b5f6;
text-decoration: none;
font-size: 13px;
font-weight: 600;
}

.focus-link:hover {
text-decoration: underline;
}
    




  /* ========================================
     FILTRES
     ======================================== */
  .filters-bar {
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    margin-bottom: 16px;
  }

  .filters-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
  }

  .filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
  }

  .filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
    min-width: 130px;
    outline: none;
  }
  .filter-select:hover { border-color: #999; }
  .filter-select:focus {
    border-color: #0066ff;
    box-shadow: 0 0 0 2px rgba(0,102,255,0.12);
  }

  .filter-reset {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    color: #666;
    margin-left: auto;
  }
  .filter-reset:hover {
    background: #f5f5f5;
    color: #111;
  }

  .filters-count {
    font-family: ui-monospace, monospace;
    font-size: 12px;
    color: #666;
    margin-left: 10px;
  }
    
    
    .btn{
        border:1px solid #ddd;
        background:#fff;
        border-radius:12px;
        padding:8px 12px;
        cursor:pointer;
        font-size:14px;
      }
      .btn:hover{ background:#f7f7f7; }

      .auth-row{
        display:flex;
        gap:8px;
        align-items:center;
        flex-wrap:wrap;
        margin-top:10px;
      }
      .auth-status{
        font-family: ui-monospace, monospace;
        font-size: 12px;
        color:#666;
      }
      .auth-input{
        width: 100%;
        box-sizing: border-box;
        padding: 10px 12px;
        border: 1px solid #ddd;
        border-radius: 12px;
        font-size: 14px;
        margin-top: 8px;
      }
      .auth-error{
        color:#a00;
        background:#fee;
        border:1px solid #fbb;
        padding:10px;
        border-radius:10px;
        margin-top:10px;
      }
      .auth-ok{
        color:#064;
        background:#efe;
        border:1px solid #bfb;
        padding:10px;
        border-radius:10px;
        margin-top:10px;
      }
    

    .newsletter-btn {
      background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
      color: #fff;
      border: none;
      padding: 12px 18px;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: transform 0.15s, box-shadow 0.15s;
    }

    .newsletter-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
      color: #fff;
      
    }
    
    
    
    
  /* Type badges sur les cartes */
  .type-badge {
    display: inline-block;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 6px;
    font-weight: 500;
  }
  .type-badge.film { background: #e3f2fd; color: #1565c0; }
  .type-badge.animated { background: #fce4ec; color: #c2185b; }
  .type-badge.documentary { background: #e8f5e9; color: #2e7d32; }

