/* =====================================================================
   Page "Secteur d'intervention" — hub SEO des pages mots-clés par commune.
   Style NEUTRE et SURCHARGEABLE (variables --se-*). Aucun padding horizontal
   propre : <main> fournit deja la gouttiere (pas de double-padding mobile).
   ===================================================================== */
.secteur {
    --se-text: #1f2433;
    --se-muted: #6b7280;
    --se-accent: #1b6ec2;
    --se-soft: rgba(17, 24, 39, .06);
    --se-line: #e6e9f0;
    color: var(--se-text);
    max-width: 1100px;
    margin: 0 auto;
}

.secteur-head { margin: 0 0 24px; }
.secteur-head h1 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 36px); line-height: 1.15; }
.secteur-head p { margin: 0; color: var(--se-muted); font-size: 1.05rem; }

/* Sommaire des communes (listes longues) */
.secteur-index { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.secteur-index a {
    font-size: .9rem; font-weight: 600; line-height: 1; text-decoration: none;
    padding: 8px 14px; border-radius: 999px; background: var(--se-soft); color: var(--se-text);
    transition: background .15s ease, color .15s ease;
}
.secteur-index a:hover { background: var(--se-accent); color: #fff; }

/* Niveau RÉGION (mode region) : gros séparateur de section */
.secteur-region { scroll-margin-top: 90px; margin: 0 0 40px; }
.secteur-region-title {
    margin: 0 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--se-accent);
    font-size: clamp(20px, 3vw, 28px);
}

/* Niveau DÉPARTEMENT (modes department + region) */
.secteur-dept { scroll-margin-top: 90px; margin: 0 0 32px; }
.secteur-region .secteur-dept { margin: 0 0 24px; }
.secteur-dept-title {
    margin: 0 0 16px; font-size: 1.35rem; color: var(--se-text);
}
.secteur-region .secteur-dept-title { font-size: 1.15rem; color: var(--se-muted); font-weight: 700; }

/* Grille de communes : colonnes auto sur desktop, empilées sur mobile */
.secteur-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px 32px; }
.secteur-zone { scroll-margin-top: 90px; min-width: 0; }
.secteur-commune-title {
    display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
    margin: 0 0 12px; padding-bottom: 9px; border-bottom: 1px solid var(--se-line);
    font-size: 1.1rem;
}
.secteur-cp { font-size: .8rem; font-weight: 500; color: var(--se-muted); }
.secteur-zone ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.secteur-zone li { margin: 0; }
.secteur-zone a { display: inline-block; padding: 4px 0; color: var(--se-text); text-decoration: none; }
.secteur-zone a:hover { color: var(--se-accent); }

@media (max-width: 600px) {
    .secteur-grid { grid-template-columns: 1fr; gap: 22px; }
    .secteur-head p { font-size: .98rem; }
    .secteur-zone a { padding: 7px 0; }   /* cibles tactiles plus confortables */
}
