:root{
    --brand:#0f5270;
    --accent:#e8584f;
    --bg:#fff;
    --card:rgba(255,255,255,.06);
    --stroke:#454545;
    --muted:rgba(255,255,255,.75);
  }

  *{ box-sizing:border-box; }


#map-content p {

  color: #000;
}
  /* --- LAYOUT --- */
  .wrap{
    width: min(1200px, 100%);
    background: var(--bg);
    display:grid;
    gap:18px;
    padding: 18px;
    align-items:start;

    grid-template-columns:
      clamp(70px, 10vw, 120px)    /* DOM */
      minmax(0, 1fr)              /* Map */
      clamp(260px, 28vw, 340px);  /* Side */

    grid-template-areas: "dom map side";
  }

  .svg-col{ grid-area: dom; width:100%; min-width:0; }
  .wrap > .card{ grid-area: map; }
  .card.side{ grid-area: side; height: 100%; }

  /* --- CARDS --- */
  .card{
    background: var(--card);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    overflow:hidden;background: rgba(15,82,112,.06);

  }

  header{ padding:18px 18px 0; }
  h1{ margin:0; font-size:20px; }
  p{
    margin:8px 0 0;
    color:var(--muted);
    line-height:1.45;
    font-size:14px;
  }

  /* --- MAP --- */
  .fr-map{
    position:relative;
    padding:18px;
  }

  .fr-svg{
    width:100%;
    height:auto;
    display:block;
    border-radius:14px;
    background: rgba(255,255,255,.04);
  }

  .fr-region{
    cursor:pointer;
    outline:none;
  }

  .fr-region path,
  .fr-region polygon,
  .fr-region polyline,
  .fr-region rect{
    fill: #dcdde1;
    stroke: var(--stroke);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
    transition: transform .12s ease, fill .12s ease, opacity .12s ease;
    transform-origin:center;
  }

  .fr-region:hover path,
  .fr-region:hover polygon,
  .fr-region:hover polyline,
  .fr-region:hover rect{
    fill: rgba(15,82,112,.95);
    opacity:.98;
  }

  .fr-region.is-active path,
  .fr-region.is-active polygon,
  .fr-region.is-active polyline,
  .fr-region.is-active rect{
    fill: rgba(232,88,79,.95);
  }

  /* Tooltip */


  .fr-tooltip{
    position:fixed;
    z-index:9999;
    pointer-events:none;

    background: rgba(15,82,112,.98);
    border: 1px solid rgba(255,255,255,.178);
    color:#fff;
    font-size:13px;
    padding:6px 10px;
    border-radius:12px;

    transform: translate(-50%, -125%);
    white-space:nowrap;
    opacity:0;
    transition: opacity .08s ease;
    box-shadow: 0 16px 35px rgba(0,0,0,.35);
  }
.fr-tooltip{
  transition: opacity .12s ease;
}

  /* quand au moins une région est hover -> tooltip visible */
.fr-map:has(.fr-region:hover) #frTooltip{
  opacity: 1;
}

/* bonus clavier */
.fr-map:has(.fr-region:focus-visible) #frTooltip{
  opacity: 1;
}


  /* --- SIDE PANEL --- */
  .side{
    padding:18px;
    display:flex;
    flex-direction:column;
    gap:12px;
  }

  .badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:6px 10px;
    border-radius:999px;
    background: #e8584f;
    color:#fff;
    margin: 0 auto;
    font-size:17px;
    width:fit-content;
  }

  .panel{
    padding:0;
    border-radius:16px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
  }

  .kv{
    display: block;
   
    gap:10px;
    font-size:14px;
    padding:10px 0;
    border-top:1px solid rgba(255,255,255,.08);
  }
  .kv:first-child{ border-top:0; padding-top:0; }

  .k{ color: #454545; }
  .v{ font-weight:700; font-size: 21px; text-align: center; }
.panel a { color: #000;}
  .actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:12px;
  }



  /* --- OUTRE-MER --- */
  .svg-col__title{
    margin:0;
    font-size:13px; color: #454545;
    font-weight:400; text-align: center;
  }

  .svg-col__list{
    display:flex;
    flex-direction:column;
    gap:3px;
  }

  .svg-col__item{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    color: rgba(255,255,255,.26);
    border-radius:14px;
    outline:none;
  }

  .svg-col__item:focus-visible{
    box-shadow: 0 0 0 3px rgba(232,88,79,.25);
  }

  .svg-col__svg{
    width:100%;
    height:auto;
    display:block;
    max-width:110px;
    transition: transform .18s ease, color .18s ease, filter .18s ease;
  }

  /* force currentColor (écrase inline fill) */
  .svg-col__svg path{
    fill: currentColor !important;
    stroke: var(--stroke);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
  }

  .svg-col__item:hover,
  .svg-col__item:focus-visible{
    color: rgba(15,82,112,.98) !important;
  }

  .svg-col__item:hover .svg-col__svg,
  .svg-col__item:focus-visible .svg-col__svg{
    transform: scale(1.06);
    filter: drop-shadow(0 6px 14px rgba(0,0,0,.18));
    
  }

  .svg-col__item.is-active{
    color: var(--accent);
  }

  .svg-col__item.is-active .svg-col__svg{
    transform: scale(1.08);
    filter: drop-shadow(0 10px 18px rgba(232,88,79,.25));
  }

  .svg-col__icon{
    display:inline-flex;
    padding:8px;
    border-radius:14px;
    background: rgba(15,82,112,.06);
    transition: background .18s ease, transform .18s ease;
  }

  .svg-col__item:hover .svg-col__icon,
  .svg-col__item.is-active .svg-col__icon{
    background: rgba(232,88,79,.12);
  }

  /* --- RESPONSIVE --- */
  @media (max-width: 900px){
    .wrap{
      grid-template-columns: 1fr;
      grid-template-areas:
        "map"
        "dom"
        "side";
    }

    .svg-col__list{
      flex-direction:row;
      flex-wrap:wrap;
      justify-content:center;
      gap:12px;
    }

    .svg-col__svg{
      width: clamp(70px, 22vw, 110px);
      max-width: none;
    }
  }

.btn-region{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:14px;
  background: rgb(15, 82, 112,.9);
  border:1px solid rgba(232,88,79,.35);
  font-weight:700; font-size: 14px;
  color:#fff !important;
  text-decoration:none;
}
.btn-region:hover{
  background: rgb(15, 82, 112,.6);
}