/* ============================================================
   IGN BÉNIN — PAGE "DIRECTIONS & IMPLANTATIONS"
   Complément ponctuel à content.css : grille des services
   départementaux (carte + zone de couverture + téléphone).
   Strictly token-based.
   ============================================================ */

/* aperçu carte des antennes départementales (remarque wetest) — image générée
   à partir des vraies limites départementales du projet (assets/data), pas
   une carte inventée. Image + légende côte à côte au-delà de 780px. */
.antenna-map { display: grid; grid-template-columns: 1fr; gap: var(--space-5); align-items: center; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-5); margin: var(--space-5) 0; }
.antenna-map img { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 auto; }
.antenna-map-legend { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.antenna-map-legend li { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-sm); color: var(--text-secondary); font-weight: var(--fw-medium); }
.antenna-map-legend .aml-swatch { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }

.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-4); margin: var(--space-6) 0; }

.dept-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-5); transition: var(--transition); }
.dept-card:hover { border-color: var(--green-300); box-shadow: var(--shadow-sm); }
.dept-card .dc-tag { display: block; font-family: var(--font-mono); font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--green-600); font-weight: var(--fw-bold); margin-bottom: var(--space-2); }
.dept-card .dc-zone { font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--text-primary); line-height: var(--lh-snug); margin-bottom: var(--space-3); }
.dept-card .dc-tel { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--green-700); text-decoration: none; }
.dept-card .dc-tel svg { width: 16px; height: 16px; flex-shrink: 0; }
.dept-card .dc-tel:hover { color: var(--green-900); text-decoration: underline; text-underline-offset: 2px; }

/* organigramme : image SVG statique (schéma), le détail des rôles est
   décrit en texte juste en dessous (voir .direction-roles) */
.orgchart-image { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-5); overflow-x: auto; }
.orgchart-image img { display: block; width: 100%; height: auto; min-width: 640px; }

.dr-heading { font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--text-primary); margin: var(--space-7) 0 var(--space-4); }

.direction-roles { display: grid; grid-template-columns: 1fr; gap: var(--space-4); margin-top: var(--space-5); }
.direction-role { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-5); }
.direction-role h4 { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; font-size: var(--fs-base); font-weight: var(--fw-bold); color: var(--text-primary); margin: 0 0 var(--space-3); }
.direction-role .dr-acr { font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: var(--fw-semibold); color: var(--green-700); background: var(--green-50); padding: 3px 8px; border-radius: var(--radius-sm); letter-spacing: var(--tracking-wide); }
.direction-role > p { font-size: var(--fs-sm); color: var(--text-secondary); line-height: var(--lh-normal); margin: 0 0 var(--space-4); }
.dr-services { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.dr-services li { position: relative; padding-left: var(--space-5); font-size: var(--fs-sm); line-height: var(--lh-normal); color: var(--text-secondary); }
.dr-services li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; background: var(--green-500); border-radius: 1px; transform: rotate(45deg); }
.dr-services li strong { color: var(--text-primary); }

@media (min-width: 780px) {
  .direction-roles { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 780px) {
  .antenna-map { grid-template-columns: 320px 1fr; }
  .antenna-map img { margin: 0; }
}

/* bloc d'implantation (adresse / téléphone / email) sous l'organigramme
   mobile-first : 1 colonne par défaut, 2 colonnes à partir de 681px */
.hq-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); margin: var(--space-6) 0; }
.hq-card { background: var(--bg-sunken); border-radius: var(--radius-lg); padding: var(--space-5); }
.hq-card h3 { margin: 0 0 var(--space-3); font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--text-primary); }
.hq-card h3 .hq-acr { display: block; font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: var(--fw-medium); color: var(--text-muted); letter-spacing: var(--tracking-wide); margin-top: 3px; }
.hq-card .hq-line { display: flex; align-items: flex-start; gap: var(--space-2); font-size: var(--fs-sm); color: var(--text-secondary); margin-top: var(--space-2); line-height: var(--lh-normal); }
.hq-card .hq-line svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--green-600); }
.hq-card a { color: var(--green-700); font-weight: var(--fw-medium); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--green-300); }
.hq-card a:hover { text-decoration-color: var(--green-700); }

/* CTA de fin de page — empilée en mobile, ligne au-delà de 681px */
.directions-cta { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-5); background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius-xl); padding: var(--space-5); margin: var(--space-7) auto 0; max-width: 720px; }
.directions-cta p { margin: 0; color: var(--text-secondary); font-size: var(--fs-base); max-width: 440px; }

@media (min-width: 681px) {
  .hq-grid { grid-template-columns: 1fr 1fr; }
  .directions-cta { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: var(--space-6); }
}
