/* Le composant est entièrement préfixé pour éviter les conflits avec Impreza. */
.sdis11-centre{--sdc-navy:#122b45;--sdc-deep:#081a2b;--sdc-red:#c62e3b;--sdc-muted:#5b6e80;--sdc-paper:#f4f7fa;font-family:inherit;color:var(--sdc-navy);line-height:1.65;max-width:1250px;margin:0 auto 55px}.sdis11-centre *{box-sizing:border-box}.sdis11-centre-hero{position:relative;min-height:420px;background:linear-gradient(125deg,#09233d,#194766);color:white;border-radius:18px;overflow:hidden;display:flex;align-items:flex-end}.sdis11-centre-hero-photo{position:absolute;inset:0}.sdis11-centre-cover{width:100%;height:100%;object-fit:cover;display:block}.sdis11-centre-hero.has-photo:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,18,35,.9),rgba(3,18,35,.35));z-index:1}.sdis11-centre-hero-inner{position:relative;z-index:2;padding:62px 58px;width:100%}.sdis11-centre-kicker{text-transform:uppercase;font-size:.8rem;letter-spacing:.16em;font-weight:700;color:#bfd5e4}.sdis11-centre-hero h1{font-size:clamp(2.1rem,5vw,4.2rem);line-height:1.08;margin:18px 0 12px!important;color:white!important;max-width:850px}.sdis11-centre-hero p{font-size:1.25rem;color:#e5eff6;margin:0 0 28px}.sdis11-centre-btn{display:inline-flex;gap:8px;align-items:center;justify-content:center;padding:11px 20px;border-radius:8px;font-weight:750;text-decoration:none!important;transition:filter .2s}.sdis11-centre-btn:hover{filter:brightness(1.12)}.sdis11-centre-btn-light{background:#fff;color:#14334c!important}.sdis11-centre-btn-dark{background:var(--sdc-navy);color:#fff!important}.sdis11-centre-body{padding:44px 0}.sdis11-centre-section-title{display:flex;align-items:center;gap:14px;margin:0 0 22px}.sdis11-centre-section-title span{font-size:.85rem;color:var(--sdc-red);font-weight:800;letter-spacing:.1em}.sdis11-centre-section-title h2{margin:0!important;color:var(--sdc-navy);font-size:clamp(1.45rem,2.8vw,2.1rem);line-height:1.25}.sdis11-centre-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.sdis11-centre-card{padding:22px 24px;border:1px solid #e3eaf0;background:var(--sdc-paper);border-radius:12px;min-height:116px;font-size:1.04rem;font-weight:700}.sdis11-centre-card a{color:var(--sdc-navy)}.sdis11-centre-card-chef{display:flex;flex-direction:column;justify-content:center}.sdis11-centre-chef-inline{display:flex;align-items:center;gap:14px;min-width:0}.sdis11-centre-chef-avatar{flex:none;width:74px;height:74px;border-radius:50%;overflow:hidden;background:#dbe5ee;border:3px solid #fff;box-shadow:0 2px 10px #102b431c}.sdis11-centre-chef-photo{display:block;width:100%;height:100%;object-fit:cover;object-position:center}.sdis11-centre-chef-nom{min-width:0;overflow-wrap:anywhere;font-size:1.04rem;line-height:1.4}.sdis11-centre-label{display:block;text-transform:uppercase;letter-spacing:.08em;font-size:.72rem;color:var(--sdc-muted);margin-bottom:8px;font-weight:750}.sdis11-centre-text-section{padding-top:55px}.sdis11-centre-prose{max-width:880px;font-size:1.075rem;color:#354d63}.sdis11-centre-prose p{margin-bottom:15px}.sdis11-centre-activity{display:grid;grid-template-columns:1fr 1fr;gap:16px}.sdis11-centre-stat{padding:28px;border-radius:12px;background:var(--sdc-navy);color:white;display:flex;flex-direction:column;gap:3px}.sdis11-centre-stat strong{font-size:3rem;line-height:1.1;color:#fff}.sdis11-centre-stat span{font-size:1rem}.sdis11-centre-equipment{padding:18px 28px;border:1px solid #dae4ed;border-radius:12px}.sdis11-centre-equipment h3{margin:0 0 10px;font-size:1.15rem;color:var(--sdc-navy)}.sdis11-centre-equipment ul{margin:0;padding-left:22px}.sdis11-centre-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.sdis11-centre-gallery>div{overflow:hidden;border-radius:12px;height:285px;background:#e4ebf2}.sdis11-centre-gallery img{width:100%;height:100%;object-fit:cover}.sdis11-centre-address{font-weight:650;font-size:1.05rem}.sdis11-centre-map-slot{border-radius:12px;padding:20px;background:#e9f0f6;margin-bottom:18px}.sdis11-centre-map-slot p{color:var(--sdc-muted);font-size:.83rem;margin:8px 0 0}.sdis11-centre-map-trigger{border:0;border-radius:9px;padding:12px 18px;background:var(--sdc-navy);color:#fff;font-size:1rem;font-weight:700;cursor:pointer}.sdis11-centre-map-frame{width:100%;height:360px;border:0;border-radius:9px;background:white}.sdis11-centre-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;border-top:1px solid #d9e3ed;margin-top:58px;padding-top:20px;color:var(--sdc-muted);font-size:.9rem}.sdis11-centre-footer strong{color:var(--sdc-red)}.sdis11-centre-preview{background:#fff3d5;border-left:4px solid #b17e00;padding:12px 18px;margin-bottom:20px;color:#513d0e}.sdis11-centres-directory{max-width:1150px;margin:0 auto}.sdis11-centres-search-label{display:block;font-weight:750;margin-bottom:9px}.sdis11-centres-search{display:block;box-sizing:border-box;border:1px solid #cbd9e4;border-radius:9px;min-height:48px;padding:10px 14px;width:100%;margin-bottom:22px}.sdis11-centres-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.sdis11-centres-result{border:1px solid #dee6ee;border-radius:11px;padding:19px;text-decoration:none!important;display:flex;flex-direction:column;color:#16314b!important;gap:5px;min-height:145px}.sdis11-centres-result:hover{box-shadow:0 12px 20px #132a411a}.sdis11-centres-result strong{font-size:1.08rem}.sdis11-centres-result span:not(.sdis11-centres-arrow){font-size:.87rem;color:#637588}.sdis11-centres-arrow{margin-top:auto;font-size:.87rem;color:#bf2939}.sdis11-centres-result[hidden]{display:none!important}
@media(max-width:900px){.sdis11-centre-cards,.sdis11-centres-results{grid-template-columns:repeat(2,minmax(0,1fr))}.sdis11-centre-hero-inner{padding:40px 32px}.sdis11-centre-hero{min-height:360px}}
@media(max-width:600px){.sdis11-centre{margin-bottom:30px}.sdis11-centre-hero{min-height:380px;border-radius:12px}.sdis11-centre-hero-inner{padding:28px 23px}.sdis11-centre-hero p{font-size:1rem}.sdis11-centre-body{padding:28px 0}.sdis11-centre-cards,.sdis11-centre-activity,.sdis11-centre-gallery,.sdis11-centres-results{grid-template-columns:1fr}.sdis11-centre-card{min-height:unset}.sdis11-centre-text-section{padding-top:35px}.sdis11-centre-gallery>div{height:230px}.sdis11-centre-map-frame{height:290px}}


/* v1.2.0 — Bandeau photo du bâtiment avec fondu, sans portrait du chef */
.sdis11-centre-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5,24,43,.30), rgba(5,24,43,0) 70%);
}
.sdis11-centre-hero.has-photo::before {
  background: linear-gradient(90deg, rgba(5,23,40,.94) 0%, rgba(6,27,48,.82) 32%, rgba(6,27,48,.36) 67%, rgba(4,22,40,.10) 100%), linear-gradient(0deg, rgba(4,18,34,.42), transparent 60%);
}
.sdis11-centre-hero-photo { pointer-events: none; }
.sdis11-centre-cover { object-position:center 48%; }

/* Statistiques par type d'intervention : barres accessibles, sans bibliothèque externe */
.sdis11-centre-chart { margin-top:18px; background:#f7f9fc; border:1px solid #dfe7ef; border-radius:14px; padding:28px 30px 22px; }
.sdis11-centre-chart-intro h3 { margin:0 0 4px!important; font-size:1.32rem; color:var(--sdc-navy); }
.sdis11-centre-chart-intro p { margin:0 0 24px; color:#617387; font-size:.95rem; }
.sdis11-centre-chart-rows { display:grid; gap:18px; }
.sdis11-centre-chart-row-labels { display:flex; justify-content:space-between; align-items:baseline; gap:15px; margin-bottom:7px; }
.sdis11-centre-chart-label { font-weight:700; color:#233e57; }
.sdis11-centre-chart-value { font-weight:800; white-space:nowrap; font-variant-numeric:tabular-nums; color:#17324b; }
.sdis11-centre-chart-value small { color:#697f90; font-size:.85rem; font-weight:500; }
.sdis11-centre-chart-track { height:13px; border-radius:999px; background:#e1e8ef; overflow:hidden; }
.sdis11-centre-chart-bar { display:block; height:100%; border-radius:inherit; background:var(--sdc-bar-color,#265a84); max-width:100%; }
.sdis11-centre-chart-accidents { --sdc-bar-color:#dd8044; }
.sdis11-centre-chart-incendies { --sdc-bar-color:#c53f4f; }
.sdis11-centre-chart-diverses { --sdc-bar-color:#4b8e9a; }
.sdis11-centre-chart-risques { --sdc-bar-color:#8463a7; }
.sdis11-centre-chart-secours { --sdc-bar-color:#295e96; }
.sdis11-centre-chart-footnote { font-size:.81rem; color:#667b8b; margin:21px 0 0; }
.sdis11-centre-data-warning { padding:12px 15px; border-left:4px solid #bd7d22; background:#fff4db; color:#513d0e; border-radius:4px; margin-top:14px; }
@media(max-width:600px) {
  .sdis11-centre-chart { padding:21px 17px 19px; }
  .sdis11-centre-chart-row-labels { gap:5px; align-items:flex-start; }
  .sdis11-centre-chart-label { font-size:.9rem; line-height:1.35; max-width:64%; }
  .sdis11-centre-chart-value { font-size:.93rem; }
  .sdis11-centre-chart-value small { font-size:.75rem; }
  .sdis11-centre-hero.has-photo::before { background:linear-gradient(90deg,rgba(5,23,40,.90),rgba(5,23,40,.48)),linear-gradient(0deg,rgba(5,23,40,.35),transparent); }
}

.sdis11-centre-activity > :only-child { grid-column:1 / -1; }

/* v1.3.0 — Portrait du chef bien plus grand et mise en page lisible */
.sdis11-centre .sdis11-centre-card-chef {
  grid-column: span 2;
  min-height: 248px;
  padding: 24px 28px;
  border-color: #cbdce9;
  background: linear-gradient(130deg, #f1f6fa, #e7eff6);
}
.sdis11-centre .sdis11-centre-chef-inline {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
}
.sdis11-centre .sdis11-centre-chef-avatar {
  flex: 0 0 164px;
  width: 164px;
  height: 188px;
  overflow: hidden;
  border-radius: 14px;
  background: #dbe5ee;
  border: 3px solid #fff;
  box-shadow: 0 9px 26px rgba(10, 35, 58, .14);
}
.sdis11-centre .sdis11-centre-chef-avatar img.sdis11-centre-chef-photo {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 0;
  margin: 0;
}
.sdis11-centre .sdis11-centre-chef-nom {
  font-size: clamp(1.22rem, 2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.28;
}
/* La répartition n'est plus supprimée lorsque les saisies sont incomplètes. */
.sdis11-centre .sdis11-centre-chart-alert {
  background: #fff7e6;
  border: 1px solid #efd49c;
  border-left: 4px solid #b7791f;
  border-radius: 8px;
  color: #684814;
  font-size: .92rem;
  padding: 12px 16px;
  margin: 0 0 23px;
  line-height: 1.5;
}
.sdis11-centre .sdis11-centre-chart-track { min-height: 14px; }
.sdis11-centre .sdis11-centre-chart-bar { min-height: 14px; }
@media (max-width:900px) {
  .sdis11-centre .sdis11-centre-card-chef { grid-column: span 2; }
  .sdis11-centre .sdis11-centre-chef-avatar { flex-basis: 150px; width: 150px; height: 172px; }
}
@media (max-width:600px) {
  .sdis11-centre .sdis11-centre-card-chef { grid-column: span 1; min-height: 0; padding: 20px 18px; }
  .sdis11-centre .sdis11-centre-chef-inline { gap: 15px; }
  .sdis11-centre .sdis11-centre-chef-avatar { flex: 0 0 132px; width: 132px; height: 154px; }
  .sdis11-centre .sdis11-centre-chef-nom { font-size: 1.12rem; }
}
@media (max-width:360px) {
  .sdis11-centre .sdis11-centre-chef-avatar { flex-basis: 108px; width: 108px; height: 132px; }
  .sdis11-centre .sdis11-centre-chef-inline { gap: 12px; }
}

/* v1.3.0 ajustement final : portrait mis en avant sur toute la largeur */
.sdis11-centre .sdis11-centre-card-chef { grid-column: 1 / -1; min-height: 275px; }
.sdis11-centre .sdis11-centre-chef-avatar { flex-basis: 196px; width:196px; height:220px; }
@media (max-width:900px) {
  .sdis11-centre .sdis11-centre-card-chef { grid-column: 1 / -1; }
  .sdis11-centre .sdis11-centre-chef-avatar { flex-basis:174px; width:174px; height:196px; }
}
@media (max-width:600px) {
  .sdis11-centre .sdis11-centre-card-chef { grid-column: 1; min-height:0; }
  .sdis11-centre .sdis11-centre-chef-avatar { flex: 0 0 142px; width:142px; height:170px; }
}
