/* Homepage-only sections (hero, dossier, article cards, popular, CTA, stats).
   Split out of site.css so these generic class names (.hero, .hero-inner, ...)
   no longer bleed onto other pages. Pushed only by home.blade.php. */
    /* ─── HERO ───────────────────────────────────────────── */
    .hero {  background: linear-gradient(155deg,var(--navy) 0%,#063266 60%,var(--blue) 100%);
      
      position: relative;
      min-height: 560px;
      display: flex;
      align-items: flex-end;
      overflow: hidden;
    }
    .hero-bg {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(to left, rgba(5,32,96,.97) 40%, rgba(5,32,96,.72) 100%),
        url('https://images.unsplash.com/photo-1580582932707-520aed937b7b?w=1600&q=80') center/cover no-repeat;
    }
    /* Zellige-inspired geometric overlay */
    .hero-pattern {
      position: absolute;
      inset: 0;
      opacity: .05;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23f7ec11'%3E%3Cpolygon points='40,0 80,40 40,80 0,40'/%3E%3C/g%3E%3C/svg%3E");
      background-size: 80px 80px;
    }
    /* Yellow accent bar on right side – now flips with direction */
    .hero-accent {
      position: absolute;
      inset-inline-end: 0;
      top: 0;
      bottom: 0;
      width: 6px;
      background: var(--yellow);
    }
    .hero-inner {
      position: relative;
      max-width: 1200px;
      margin: 0 auto;
      padding: 80px 32px 72px;
      width: 100%;
      display: grid;
      grid-template-columns: 1fr 360px;
      gap: 48px;
      align-items: end;
    }
    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(247,236,17,.13);
      border: 1px solid rgba(247,236,17,.3);
      color: var(--yellow);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 1px;
      text-transform: uppercase;
      padding: 5px 14px;
      border-radius: 3px;
      margin-bottom: 20px;
    }
    .hero-title {
      font-size: clamp(26px, 3.5vw, 46px);
      font-weight: 900;
      color: #fff;
      line-height: 1.3;
      margin-bottom: 20px;
    }
    .hero-title em {
      font-style: normal;
      color: var(--yellow);
    }
    .hero-subtitle {
      color: rgba(255,255,255,.82);
      font-size: 17px;
      margin-bottom: 36px;
      max-width: 560px;
      line-height: 1.75;
      font-family: var(--serif);
    }
    .hero-cta-row {
      display: flex;
      gap: 12px;
      align-items: center;
    }
    .hero-motto {
      margin-top: 28px;
      font-size: 15px;
      color: rgba(255,255,255,.55);
      font-family: var(--serif);
      font-style: italic;
    }

    .hero-boxes { display: flex; flex-direction: column; gap: 16px; }
    .hero-box {
      border-radius: 3px;
      padding: 24px 26px;
      transition: all .25s;
      cursor: pointer;
    }
    .hero-box-glass {
      background: rgba(255,255,255,.1);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255,255,255,.18);
      color: #fff;
    }
    .hero-box-glass:hover {
      background: rgba(255,255,255,.18);
      border-color: rgba(247,236,17,.5);
    }
    .hero-box-yellow {
      background: var(--yellow);
      border: 1px solid var(--ydk);
      color: var(--navy);
    }
    .hero-box-yellow:hover { background: var(--ydk); }
    .hero-box-title {
      font-size: 15px;
      font-weight: 700;
      margin-bottom: 8px;
      line-height: 1.4;
    }
    .hero-box-link {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      font-weight: 600;
      margin-top: 4px;
    }
    .hero-box-glass .hero-box-link { color: var(--yellow); }
    .hero-box-yellow .hero-box-link { color: var(--blue); }
    .arrow-icon { transition: transform .2s; display: inline-block; }
    .hero-box:hover .arrow-icon { transform: translateX(-4px); }

    /* ─── DOSSIER DU MOIS ────────────────────────────────── */
    .dossier-section { background: linear-gradient(135deg,var(--navy) 0%,#063266 60%,var(--blue) 100%); overflow: hidden; }
    .dossier-label-bar {
      background: var(--yellow);
      padding: 0;
    }
    .dossier-label-text {
      max-width: 1200px;
      margin: 0 auto;
      padding: 10px 32px;
      font-size: 13px;
      font-weight: 900;
      color: var(--navy);
      letter-spacing: 1.5px;
      text-transform: uppercase;
    }
    .dossier-inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 56px 32px 72px;
      display: grid;
      grid-template-columns: 400px 1fr;
      gap: 64px;
      align-items: center;
    }
    .dossier-image {
      border-radius: 3px;
      overflow: hidden;
      aspect-ratio: 4/3;
      background: var(--navy);
      border: 3px solid rgba(247,236,17,.3);
    }
    .dossier-image img {
      width: 100%; height: 100%;
      object-fit: cover;
      opacity: .85;
      transition: opacity .3s;
    }
    .dossier-image:hover img { opacity: 1; }
    .dossier-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
    .tag {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .7px;
      padding: 4px 12px;
      border-radius: 3px;
    }
    .tag-yellow { background: var(--yellow); color: var(--navy); }
    .tag-outline-w { border: 1px solid rgba(255,255,255,.35); color: rgba(255,255,255,.75); }
    .dossier-title {
      font-size: 30px;
      font-weight: 900;
      color: #fff;
      margin-bottom: 18px;
      line-height: 1.3;
    }
    .dossier-excerpt {
      color: rgba(255,255,255,.8);
      font-size: 15px;
      line-height: 1.8;
      margin-bottom: 32px;
      font-family: var(--serif);
    }
    .btn-dossier {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--navy);
      background: var(--yellow);
      padding: 12px 28px;
      border-radius: var(--radius);
      font-size: 15px;
      font-weight: 700;
      transition: all .2s;
      border: 2px solid var(--yellow);
    }
    .btn-dossier:hover { background: var(--ydk); border-color: var(--ydk); }

    /* ─── ARTICLE CARDS ──────────────────────────────────── */
    .cards-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }
    .card {
      background: #fff;
      border-radius: 3px;
      border: 1px solid var(--rule);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transition: box-shadow .25s, transform .25s;
      cursor: pointer;
    }
    .card:hover {
      box-shadow: 0 10px 32px rgba(9,74,140,.12);
      transform: translateY(-4px);
    }
    .card-img {
      aspect-ratio: 16/9;
      overflow: hidden;
      background: var(--bll);
    }
    .card-img img {
      width: 100%; height: 100%;
      object-fit: cover;
      transition: transform .4s;
    }
    .card:hover .card-img img { transform: scale(1.05); }
    .card-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
    .card-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
    .tag-blue { background: var(--bll); color: var(--blue); }
    .tag-outline { border: 1px solid var(--rule); color: var(--muted); }
    .card-title {
      font-size: 16px;
      font-weight: 700;
      line-height: 1.45;
      flex: 1;
      color: var(--ink);
      margin-bottom: 10px;
    }
    .card-date { font-size: 12px; color: var(--muted); margin-top: auto; padding-top: 10px; border-top: 1px solid var(--rule); }

    /* ─── POPULAR DOSSIERS ───────────────────────────────── */
    .popular-section { background: var(--bll); }
    .popular-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }
    .popular-card {
      background: var(--blue);
      border-radius: 3px;
      padding: 28px 26px;
      color: #fff;
      position: relative;
      overflow: hidden;
      cursor: pointer;
      transition: background .2s, transform .2s;
      border-top: 4px solid var(--yellow);
    }
    .popular-card:hover { background: var(--navy); transform: translateY(-3px); }
    .popular-card-tag {
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: var(--yellow);
      margin-bottom: 12px;
    }
    .popular-card-title {
      font-size: 18px;
      font-weight: 800;
      color: #fff;
      line-height: 1.4;
      margin-bottom: 8px;
    }
    .popular-card-date { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 12px; }

    /* ─── NOW + CTA ──────────────────────────────────────── */
    .now-section { background: #fff; }
    .now-grid {
      display: grid;
      grid-template-columns: 1fr 320px;
      gap: 36px;
      align-items: start;
    }
    .inline-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .inline-card {
      background: var(--bll);
      border-radius: 3px;
      padding: 22px;
      border: 1px solid transparent;
      transition: border-color .2s;
      cursor: pointer;
    }
    .inline-card:hover { border-color: var(--blue); }
    .inline-card-title {
      font-size: 15px;
      font-weight: 700;
      margin-bottom: 10px;
      line-height: 1.45;
      color: var(--ink);
    }
    .inline-card-excerpt { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
    .read-more {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 13px;
      font-weight: 700;
      color: var(--blue);
      margin-top: 12px;
    }
    .cta-box {
      background: var(--blue);
      border-radius: 3px;
      padding: 36px 28px;
      color: #fff;
      display: flex;
      flex-direction: column;
      gap: 20px;
      border-top: 4px solid var(--yellow);
    }
    .cta-box-title {
      font-size: 20px;
      font-weight: 800;
      color: #fff;
      line-height: 1.4;
    }
    .cta-box-text {
      font-size: 14px;
      color: rgba(255,255,255,.8);
      line-height: 1.7;
      font-family: var(--serif);
    }

    /* ─── STATS BAR ──────────────────────────────────────── */
    .stats-section {
      background: var(--yellow);
      padding: 40px 0;
    }
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0;
      text-align: center;
    }
    .stat-item {
      padding: 0 24px;
      border-left: 1px solid rgba(9,74,140,.15);
    }
    .stat-item:last-child { border-left: none; }
    .stat-number {
      font-size: 40px;
      font-weight: 900;
      color: var(--blue);
      line-height: 1;
      margin-bottom: 6px;
    }
    .stat-label {
      font-size: 14px;
      font-weight: 700;
      color: var(--navy);
    }

    /* ─── DIVIDER ────────────────────────────────────────── */
    .divider { border: none; border-top: 1px solid var(--rule); margin: 0; }


/* ─── RESPONSIVE (home content) ───────────────────────────────────────────
   These collapses used to live in site.css, but after the hero/dossier/cards
   base rules were split into this file they must live HERE too — home.css loads
   after site.css, so only rules defined here win over the desktop base grids. */
@media (max-width: 900px){
  .hero-inner,.dossier-inner,.cards-grid,.popular-grid,.now-grid{grid-template-columns:1fr}
  .hero-inner{padding:60px 24px 48px}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
  .inline-cards{grid-template-columns:1fr}
}
@media (max-width: 580px){
  .hero-inner{padding:0 16px 32px}
  .hero-badge{font-size:10px;padding:4px 12px}
  .dossier-inner{padding:40px 16px;grid-template-columns:1fr}
  .cards-grid{grid-template-columns:1fr}
  .now-grid{grid-template-columns:1fr}
  .popular-grid{grid-template-columns:1fr}
}
@media (max-width: 480px){
  .hero-inner{padding:32px 12px 24px}
  .hero-title{font-size:22px}
  .hero-subtitle{font-size:15px}
  .hero-badge{font-size:10px;padding:4px 10px}
  .hero-box{padding:16px}
  .hero-box-title{font-size:14px}
  .hero-box-link{font-size:12px}
  .hero-cta-row{flex-direction:column;align-items:stretch}
  .hero-cta-row .btn{justify-content:center}
  .stats-grid{grid-template-columns:1fr}
  .stat-item{padding:12px 0;border-left:none;border-bottom:1px solid rgba(9,74,140,.15)}
  .stat-item:last-child{border-bottom:none}
  .stat-number{font-size:28px}
  .stat-label{font-size:12px}
  .cards-grid{grid-template-columns:1fr}
  .popular-grid{grid-template-columns:1fr}
  .now-grid{grid-template-columns:1fr}
  .card-body{padding:16px}
  .dossier-inner{padding:32px 12px;grid-template-columns:1fr}
  .dossier-image{aspect-ratio:auto}
  .dossier-title{font-size:24px}
  .dossier-excerpt{font-size:14px}
  .cta-box{padding:24px}
}
