/* ============================================================
   raccordement-fibre-optique.fr — Design moderne
   ============================================================ */

body { font-family: 'Open Sans', sans-serif; background: #f8f9fa; color: #333; }

/* ---------- NAVBAR override ---------- */
.navbar-custom { background: #fff; border-bottom: 2px solid #e9ecef; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.navbar-custom .navbar-brand { font-weight: 700; color: #1a73e8 !important; font-size: 20px; }
.navbar-custom .nav > li > a { color: #555 !important; font-size: 14px; }
.navbar-custom .nav > li > a:hover { color: #1a73e8 !important; background: none; }

/* ---------- HERO ---------- */
.hero-fibre {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #1976d2 100%);
  color: #fff;
  padding: 60px 0 50px;
  margin-top: 51px;
}
.hero-fibre h1 { font-size: 28px; font-weight: 700; margin: 0 0 10px; line-height: 1.3; }
.hero-fibre h1 em { font-style: normal; color: #90caf9; }
.hero-fibre .hero-sub { font-size: 15px; color: #bbdefb; margin-bottom: 16px; }
.hero-badge {
  display: inline-block; border-radius: 4px; font-size: 12px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  padding: 3px 10px; margin-bottom: 14px;
}
.badge-rip    { background: #43a047; color: #fff; }
.badge-amii   { background: #fb8c00; color: #fff; }
.badge-amel   { background: #8e24aa; color: #fff; }
.badge-ztd    { background: #1e88e5; color: #fff; }
.badge-other  { background: #546e7a; color: #fff; }
.hero-meta-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta-list li { font-size: 13px; color: #bbdefb; }
.hero-meta-list li strong { color: #fff; }

/* Coverage ring */
.coverage-wrap { text-align: center; padding: 10px 0; }
.coverage-ring {
  width: 160px; height: 160px; margin: 0 auto 12px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  position: relative;
  background: rgba(255,255,255,.1);
  border: 6px solid rgba(255,255,255,.15);
}
.coverage-ring::before {
  content: '';
  position: absolute;
  width: 148px; height: 148px;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color, #43a047) var(--ring-pct, 0%), rgba(255,255,255,.2) 0%);
}
.coverage-ring-inner {
  width: 118px; height: 118px;
  background: #0d47a1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  position: relative; z-index: 1;
}
.coverage-pct  { font-size: 32px; font-weight: 800; color: #fff; line-height: 1; }
.coverage-lbl  { font-size: 10px; color: #bbdefb; text-transform: uppercase; letter-spacing: .5px; }
.coverage-trend { font-size: 13px; color: #c8e6c9; }

/* ---------- STATS ---------- */
.stats-section { background: #fff; padding: 28px 0; border-bottom: 1px solid #e9ecef; }
.stat-card {
  text-align: center; padding: 20px 12px;
  border-right: 1px solid #e9ecef;
}
.stat-card:last-child { border-right: none; }
.stat-value { font-size: 30px; font-weight: 800; color: #0d47a1; line-height: 1.1; margin-bottom: 4px; }
.stat-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .5px; }
.stat-sub   { font-size: 12px; color: #aaa; margin-top: 4px; }
@media (max-width:767px) {
  .stat-card { border-right: none; border-bottom: 1px solid #e9ecef; padding: 14px 10px; }
  .stat-value { font-size: 24px; }
}

/* ---------- OPERATORS ---------- */
.ops-section { padding: 36px 0; background: #fff; border-bottom: 1px solid #e9ecef; }
.ops-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.ops-section .ops-sub { color: #777; font-size: 14px; margin-bottom: 22px; }
.ops-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.op-btn {
  display: flex; align-items: center; gap: 8px;
  border: 2px solid #e0e0e0; border-radius: 8px;
  padding: 10px 18px; background: #fff; text-decoration: none; color: #333;
  font-size: 14px; font-weight: 600; transition: border-color .2s, box-shadow .2s;
  min-width: 140px;
}
.op-btn:hover { border-color: #1976d2; box-shadow: 0 2px 8px rgba(25,118,210,.15); text-decoration: none; color: #1976d2; }
.op-btn img { height: 22px; width: auto; }
.op-btn-free { font-size: 18px; font-weight: 800; color: #e5004b; }
.op-btn-orange { font-size: 18px; font-weight: 800; color: #f60; }
.op-btn-sfr    { font-size: 18px; font-weight: 800; color: #e40000; }
.op-btn-bt     { font-size: 18px; font-weight: 800; color: #009ee3; }
.op-btn-red    { font-size: 18px; font-weight: 800; color: #d40000; }
.op-btn-sosh   { font-size: 18px; font-weight: 800; color: #ff6600; }

/* ---------- CONTENT ---------- */
.content-section { padding: 42px 0 20px; }
.content-section h2 { font-size: 22px; font-weight: 700; margin-bottom: 14px; color: #1a237e; }
.content-section h3 { font-size: 17px; font-weight: 700; margin: 22px 0 10px; color: #333; }
.content-section p  { font-size: 15px; line-height: 1.75; color: #444; margin-bottom: 14px; }
.content-section strong { color: #0d47a1; }

/* Deployment progress bar */
.deploy-bar-wrap { margin: 20px 0; }
.deploy-bar-label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.deploy-bar { background: #e0e0e0; border-radius: 10px; height: 14px; overflow: hidden; }
.deploy-bar-inner { height: 100%; border-radius: 10px; background: linear-gradient(90deg, #1976d2, #42a5f5); transition: width .6s ease; }

/* Info box */
.info-box { background: #e3f2fd; border-left: 4px solid #1976d2; border-radius: 4px; padding: 14px 18px; margin: 20px 0; font-size: 14px; color: #1a237e; }
.info-box strong { display: block; margin-bottom: 4px; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq-section { padding: 36px 0; border-top: 1px solid #e9ecef; }
.faq-section h2 { font-size: 22px; font-weight: 700; margin-bottom: 20px; color: #1a237e; }
.faq-item { border: 1px solid #e0e0e0; border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; cursor: pointer;
  font-size: 15px; font-weight: 600; color: #222;
  list-style: none; background: #fff;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: #1976d2; font-weight: 300; flex-shrink: 0; margin-left: 10px; }
.faq-item[open] summary { background: #f0f7ff; border-bottom: 1px solid #e0e0e0; }
.faq-item[open] summary::after { content: '−'; }
.faq-body { padding: 14px 18px; font-size: 14px; line-height: 1.7; color: #555; background: #fff; }
.faq-body strong { color: #0d47a1; }

/* ---------- RELATED PAGES ---------- */
.related-section { padding: 28px 0 36px; border-top: 1px solid #e9ecef; }
.related-section h3 { font-size: 16px; font-weight: 700; color: #555; margin-bottom: 14px; }
.related-links { display: flex; flex-wrap: wrap; gap: 8px; }
.related-link {
  display: inline-block; padding: 7px 16px; border: 1px solid #1976d2;
  border-radius: 20px; font-size: 13px; color: #1976d2;
  text-decoration: none; transition: background .2s, color .2s;
}
.related-link:hover { background: #1976d2; color: #fff; text-decoration: none; }
.related-link.active { background: #1976d2; color: #fff; }

/* ---------- FOOTER ---------- */
.footer-fibre { background: #1a237e; color: #c5cae9; padding: 28px 0 18px; margin-top: 40px; }
.footer-fibre .footer-brand { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.footer-fibre p { font-size: 13px; margin: 0; }
.footer-fibre a { color: #90caf9; text-decoration: none; }
.footer-fibre a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 18px; padding-top: 14px; font-size: 12px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- COMMUNES TABLE ---------- */
.communes-section { padding: 28px 0 36px; border-top: 1px solid #e9ecef; }
.communes-section h2 { font-size: 20px; font-weight: 700; color: #1a237e; margin-bottom: 6px; }
.communes-filter { margin-bottom: 14px; }
.communes-filter input {
  width: 100%; max-width: 400px; padding: 8px 16px;
  border: 1px solid #ddd; border-radius: 20px; font-size: 14px; outline: none;
}
.communes-filter input:focus { border-color: #1976d2; box-shadow: 0 0 0 3px rgba(25,118,210,.1); }
.communes-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.communes-table th {
  background: #f5f5f5; padding: 10px 12px; text-align: left;
  font-weight: 700; color: #555; border-bottom: 2px solid #e0e0e0;
  cursor: pointer; white-space: nowrap; user-select: none;
}
.communes-table th:hover { background: #e8f0fe; color: #1976d2; }
.communes-table th[data-asc="1"]::after { content: ' ▲'; font-size: 10px; color: #1976d2; }
.communes-table th[data-asc="0"]::after { content: ' ▼'; font-size: 10px; color: #1976d2; }
.communes-table td { padding: 7px 12px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.communes-table tr:hover td { background: #f9f9f9; }
.communes-table td a { color: #1976d2; text-decoration: none; font-weight: 600; }
.communes-table td a:hover { text-decoration: underline; }
.com-cov-bar { display: inline-block; width: 70px; height: 6px; background: #eee; border-radius: 3px; vertical-align: middle; overflow: hidden; margin-right: 6px; }
.com-cov-fill { display: block; height: 100%; border-radius: 3px; }
.com-pct-text { font-size: 12px; color: #444; }

/* ---------- NEARBY CITIES ---------- */
.nearby-section { padding: 24px 0 30px; border-top: 1px solid #e9ecef; }
.nearby-section h3 { font-size: 16px; font-weight: 700; color: #555; margin-bottom: 14px; }
.nearby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 8px; }
.nearby-card {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid #e0e0e0; border-radius: 6px;
  padding: 8px 10px; background: #fff; text-decoration: none; color: #333;
  transition: border-color .15s, box-shadow .15s;
}
.nearby-card:hover { border-color: #1976d2; box-shadow: 0 2px 6px rgba(25,118,210,.1); color: #1976d2; text-decoration: none; }
.nearby-pct { font-size: 11px; font-weight: 700; color: #fff; background: #43a047; border-radius: 3px; padding: 2px 5px; flex-shrink: 0; }
.nearby-name { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nearby-meta { display: block; font-size: 11px; color: #888; }

/* ---------- RESPONSIVE ---------- */
@media (max-width:767px) {
  .hero-fibre h1 { font-size: 22px; }
  .hero-fibre { padding: 40px 0 30px; }
  .coverage-ring { width: 130px; height: 130px; }
  .coverage-ring::before { width: 118px; height: 118px; }
  .coverage-ring-inner { width: 95px; height: 95px; }
  .coverage-pct { font-size: 26px; }
  .ops-grid .op-btn { min-width: calc(50% - 5px); }
  .stat-card { padding: 12px 8px; }
  .com-cov-bar { width: 40px; }
  .communes-table td:last-child, .communes-table th:last-child { display: none; }
  .nearby-grid { grid-template-columns: 1fr 1fr; }
}
