/* ── Page téléchargements formulaires AMO ─────────────────────────────────── */
:root {
  --dl-blue:    #1a90d0;
  --dl-blue-dk: #1272a8;
  --dl-green:   #2e9e6e;
  --dl-bg:      #f4f8fb;
  --dl-border:  #d6e8f0;
  --dl-text:    #1a2e44;
  --dl-muted:   #5a7a8a;
  --dl-cnops:   #1272a8;
  --dl-cnss:    #1a6e3c;
  --dl-ald:     #c0392b;
  --dl-shadow:  0 4px 20px rgba(26,144,208,.10);
}

/* ── Breadcrumb ─────────────────────────────────────────────────────────────── */
.dl-breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--dl-border);
  padding: .65rem 0;
}
.dl-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--dl-muted);
}
.dl-breadcrumb a {
  color: var(--dl-blue);
  text-decoration: none;
}
.dl-breadcrumb a:hover { text-decoration: underline; }

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.dl-hero {
  background: linear-gradient(135deg, var(--dl-blue-dk) 0%, var(--dl-blue) 60%, #30b8e8 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
  text-align: center;
}
.dl-hero__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: .9;
}
.dl-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 .75rem;
}
.dl-hero p {
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 1.5rem;
  opacity: .92;
  line-height: 1.6;
}
.dl-anam-link {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  border-radius: 30px;
  padding: .5rem 1.25rem;
  font-size: .9rem;
  text-decoration: none;
  transition: background .2s;
}
.dl-anam-link:hover { background: rgba(255,255,255,.28); }
.dl-anam-link i { margin-right: .35rem; }

/* ── Info cards ──────────────────────────────────────────────────────────────── */
.dl-info {
  padding: 2.5rem 0;
  background: #fff;
  border-bottom: 1px solid var(--dl-border);
}
.dl-info__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.dl-info__card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  font-size: .93rem;
  line-height: 1.6;
}
.dl-info__card i {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: .15rem;
}
.dl-info__card strong { display: block; margin-bottom: .35rem; font-size: 1rem; }
.dl-info__card p { margin: 0; color: var(--dl-text); }
.dl-info__card--blue {
  background: #edf5fb;
  border: 1px solid #c5ddf0;
  color: var(--dl-blue-dk);
}
.dl-info__card--blue i { color: var(--dl-blue); }
.dl-info__card--green {
  background: #edf7f3;
  border: 1px solid #b8dece;
  color: #1a3e2a;
}
.dl-info__card--green i { color: var(--dl-green); }

/* ── Section formulaires ─────────────────────────────────────────────────────── */
.dl-section { padding: 3rem 0; }
.dl-section--alt { background: var(--dl-bg); }

.dl-section__header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--dl-border);
}
.dl-section__header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dl-text);
  margin: 0 0 .25rem;
}
.dl-section__header p {
  font-size: .9rem;
  color: var(--dl-muted);
  margin: 0;
}

/* ── Badge organisme ─────────────────────────────────────────────────────────── */
.dl-org-badge {
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .05em;
  padding: .5rem 1rem;
  border-radius: 8px;
  flex-shrink: 0;
  color: #fff;
}
.dl-org-badge--cnops { background: var(--dl-cnops); }
.dl-org-badge--cnss  { background: var(--dl-cnss); }

/* ── Grille de cartes ────────────────────────────────────────────────────────── */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.1rem;
}

/* ── Carte de téléchargement ─────────────────────────────────────────────────── */
.dl-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--dl-border);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  text-decoration: none;
  color: var(--dl-text);
  transition: box-shadow .2s, transform .15s, border-color .2s;
  box-shadow: 0 2px 8px rgba(26,144,208,.06);
}
.dl-card:hover {
  box-shadow: var(--dl-shadow);
  transform: translateY(-2px);
  border-color: var(--dl-blue);
}
.dl-card--highlight {
  border-left: 4px solid var(--dl-ald);
}

.dl-card__icon {
  font-size: 1.8rem;
  color: var(--dl-blue);
  margin-bottom: .6rem;
}
.dl-card--highlight .dl-card__icon { color: var(--dl-ald); }

.dl-card__body { flex: 1; }
.dl-card__body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 .4rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
}
.dl-card__body p {
  font-size: .87rem;
  color: var(--dl-muted);
  margin: 0 0 .6rem;
  line-height: 1.5;
}
.dl-card__usage {
  display: block;
  font-size: .78rem;
  color: #87a3b0;
  font-style: italic;
}

.dl-card__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid var(--dl-border);
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--dl-blue);
  color: #fff;
  border-radius: 6px;
  padding: .4rem .9rem;
  font-size: .85rem;
  font-weight: 500;
  transition: background .2s;
}
.dl-card:hover .dl-btn { background: var(--dl-blue-dk); }
.dl-card--highlight .dl-btn { background: var(--dl-ald); }
.dl-card--highlight:hover .dl-btn { background: #a0312a; }

/* ── Badges inline ───────────────────────────────────────────────────────────── */
.dl-badge {
  display: inline-block;
  background: #edf5fb;
  color: var(--dl-blue);
  border-radius: 4px;
  padding: .1rem .4rem;
  font-size: .75rem;
  font-weight: 600;
}
.dl-badge--ald {
  background: #fce9e8;
  color: var(--dl-ald);
  font-size: .72rem;
}

/* ── CTA ─────────────────────────────────────────────────────────────────────── */
.dl-cta {
  background: linear-gradient(135deg, var(--dl-blue-dk), #30b8e8);
  padding: 3rem 0;
}
.dl-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.dl-cta__text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 .4rem;
}
.dl-cta__text p { color: rgba(255,255,255,.88); margin: 0; }
.dl-cta__actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.dl-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.dl-cta .primary-btn {
  background: #fff;
  color: var(--dl-blue-dk);
}
.dl-cta .primary-btn:hover { background: #edf5fb; }
.dl-cta .secondary-btn {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
}
.dl-cta .secondary-btn:hover { background: rgba(255,255,255,.25); }

/* ── Note source officielle ──────────────────────────────────────────────────── */
.dl-source {
  background: #fff;
  border-top: 1px solid var(--dl-border);
  padding: 1.25rem 0;
}
.dl-source p {
  font-size: .83rem;
  color: var(--dl-muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.dl-source a { color: var(--dl-blue); text-decoration: none; }
.dl-source a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .dl-hero h1 { font-size: 1.5rem; }
  .dl-hero p  { font-size: .95rem; }
  .dl-info__grid { grid-template-columns: 1fr; }
  .dl-section__header { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .dl-grid { grid-template-columns: 1fr; }
  .dl-cta__inner { flex-direction: column; text-align: center; }
  .dl-cta__actions { justify-content: center; }
}
