/* Carte des ports de l'accueil (démo 17/10/2026, en ligne le 18/10/2026) */
.dc-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); grid-template-areas: "intro map" "cal cal"; column-gap: 2.5rem; row-gap: 1.5rem; align-items: stretch; }
.dc-intro { grid-area: intro; display: flex; flex-direction: column; min-width: 0; }
.dc-map { grid-area: map; }
.dc-cal { grid-area: cal; margin: 0; }
.dc-card-slot { margin-top: auto; }
.dc-map { position: relative; display: flex; flex-direction: column; background: #e3f2fc; border: 1px solid #d3e9f8; border-radius: 24px; padding: .9rem 1rem .6rem; overflow: hidden; min-width: 0; }
.dc-map-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.dc-k { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #4a6a85; }
.dc-hint { font-size: .8rem; color: #4a6a85; }
.dc-svg { display: block; width: 100%; height: auto; margin: auto; touch-action: manipulation; }
.dc-land { fill: #fff; stroke: #b9dcf3; stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dc-svg.is-zoomed .dc-land { filter: none; }
.dc-svg { --lab-px: 12; }
.dc-labels2 text { font-weight: 600; fill: #475569; }
.dc-pt circle { fill: #0ca5e9; stroke: #fff; stroke-width: 1.4; transition: r .15s, fill .15s; }
.dc-pt.is-big circle { stroke-width: 2.4; }
.dc-pt.is-hover circle { fill: #0369a1; }
.dc-pt.is-sel circle { fill: #0369a1; }
.dc-pt:focus-visible { outline: none; } .dc-pt:focus-visible circle { fill: #0369a1; }
.dc-sel-ring { fill: none; stroke: #0369a1; stroke-width: 2.5; opacity: .35; pointer-events: none; transition: cx .35s ease, cy .35s ease; }
.dc-labels { --fs: 17; --sw: 5; font-size: 17px; stroke-width: 5px; }
.dc-labels text { font-family: Inter, system-ui, sans-serif; font-weight: 700; font-size: inherit; fill: #2D3748; paint-order: stroke; stroke: #fff; stroke-width: inherit; stroke-linejoin: round; pointer-events: none; }
.dc-tip { position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 12px)); background: #2D3748; color: #fff; font-size: .8rem; font-weight: 700;
  padding: .3rem .6rem; border-radius: 8px; white-space: nowrap; pointer-events: none; }
.dc-card-slot .v3-hero-card { transition: opacity .2s; }
.dc-card-slot.is-loading .v3-hero-card { opacity: .55; }
.dc .v3-hc-curve { height: 150px; margin-top: 1.2rem; }
.dc-cal .s5-chart { height: 130px; }
@media (prefers-reduced-motion: reduce) { .dc-sel-ring, .dc-pt circle { transition: none; } }
@media (max-width: 900px) {
  .dc-split { display: flex; flex-direction: column; gap: 0; }
  .dc-intro { display: contents; }
  .dc-intro .v3-title { order: 1; } .dc-intro .v3-sub { order: 2; } .dc-intro .v3-search { order: 3; }
  .dc-map { order: 4; margin-bottom: 1rem; } .dc-card-slot { order: 5; margin: 0 0 1.2rem; } .dc-cal { order: 6; }
}
@media (max-width: 600px) {
  .dc-map { padding: .8rem .6rem .4rem; border-radius: 20px; }
  .dc-hint { font-size: .74rem; }
  .dc-labels { --fs: 21; --sw: 6; }
  .dc .v3-hc-curve { height: 130px; }
}
/* Zoom */
.dc-zoom { position: absolute; right: .8rem; bottom: .8rem; display: flex; flex-direction: column; background: #fff; border: 1px solid #d3e9f8; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(12,74,110,.10); z-index: 2; }
.dc-zoom button { width: 2.4rem; height: 2.4rem; border: 0; background: #fff; color: #2D3748; font: 600 1.25rem/1 Inter, system-ui, sans-serif; cursor: pointer; display: grid; place-items: center; }
.dc-zoom button + button { border-top: 1px solid #e2eef7; }
.dc-zoom button i { font-size: .85rem; }
.dc-zoom button:hover:not(:disabled) { background: #f0f8fe; color: #0369a1; }
.dc-zoom button:disabled { color: #cbd5e0; cursor: default; }
.dc-zoom button:focus-visible { outline: 2px solid #0ca5e9; outline-offset: -2px; }
.dc-svg { user-select: none; -webkit-user-select: none; }
.dc-svg.is-zoomed { cursor: grab; touch-action: none; }
.dc-svg.is-dragging { cursor: grabbing; }
.dc-svg.is-dragging .dc-pt circle { transition: none; }
.dc-pt circle { transition: fill .15s; }

/* Raccourcis régions, plein écran mobile (17/10/2026) */
.dc-regions { display: flex; gap: 2px; margin: .6rem 0 0; padding: 3px; background: #e7f1f8; border-radius: 12px; }
.dc-regions button { flex: 1 1 auto; border: 0; background: transparent; color: #4a5568; font: 600 .78rem/1 Inter, system-ui, sans-serif; padding: .55rem .35rem; border-radius: 9px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.dc-regions button:hover { color: #0369a1; }
.dc-regions button.is-on { background: #fff; color: #0369a1; box-shadow: 0 1px 3px rgba(45,55,72,.14), 0 0 0 1px rgba(45,55,72,.04); }
.dc-regions button:focus-visible, .dc-close:focus-visible, .dc-expand:focus-visible { outline: 2px solid #0ca5e9; outline-offset: 2px; }
.dc-close, .dc-expand, .dc-sheet, .dc-hint-m, .dc-full-title { display: none; }
.dc-close { margin-left: auto; height: 2.4rem; padding: 0 .9rem; gap: .4rem; border: 0; border-radius: 999px; background: #2D3748; color: #fff; font: 700 .85rem/1 Inter, system-ui, sans-serif; cursor: pointer; flex: none; }
.dc-full-title b { display: block; font-size: 1.05rem; font-weight: 800; color: #2D3748; letter-spacing: -.01em; }
.dc-full-title small { display: block; font-size: .75rem; color: #718096; margin-top: .1rem; }

@media (max-width: 900px) {
  .dc-hint-d { display: none; }
  /* Carte dans la page : figée et basse, un tap l'ouvre */
  .dc-map:not(.is-full) { cursor: pointer; }
  .dc-map:not(.is-full) .dc-hint-m { display: inline; }
  .dc-map:not(.is-full) .dc-svg { height: 300px; touch-action: auto; }
  .dc-map:not(.is-full) .dc-regions, .dc-map:not(.is-full) .dc-zoom { display: none; }
  .dc-map:not(.is-full) .dc-expand { display: inline-flex; align-items: center; gap: .45rem; position: absolute; left: 50%; bottom: .9rem; transform: translateX(-50%);
    border: 0; background: #2D3748; color: #fff; font: 700 .85rem/1 Inter, system-ui, sans-serif; padding: .7rem 1rem; border-radius: 999px; box-shadow: 0 8px 20px rgba(45,55,72,.25); }

  /* Plein écran */
  html.dc-lock, html.dc-lock body { overflow: hidden; overscroll-behavior: none; }
  .dc-map.is-full { position: fixed; inset: 0; z-index: 100000; margin: 0; border: 0; border-radius: 0; padding: 0; display: flex; flex-direction: column; background: #e3f2fc; }
  .is-full .dc-map-head { align-items: center; padding: calc(.55rem + env(safe-area-inset-top, 0px)) 1rem .55rem; background: #fff; border-bottom: 1px solid #e2eef7; }
  .is-full .dc-k, .is-full .dc-hint { display: none !important; }
  .is-full .dc-full-title { display: block; min-width: 0; }
  .is-full .dc-close { display: inline-flex; align-items: center; }
  .dc-map.is-full { transition: transform .26s cubic-bezier(.2,.8,.2,1), opacity .2s; }
  .dc-map.is-full.is-entering { transform: translateY(40px); opacity: 0; }
  .is-full .dc-regions { margin: .6rem .75rem 0; box-shadow: 0 4px 14px rgba(12,74,110,.08); background: #fff; border: 1px solid #d3e9f8; }
  .is-full .dc-regions button.is-on { background: #0369a1; color: #fff; box-shadow: none; }
  .is-full .dc-svg { flex: 1 1 auto; min-height: 0; height: auto; width: 100%; margin: 0; touch-action: none; }
  .is-full .dc-zoom { top: calc(8.4rem + env(safe-area-inset-top, 0px)); bottom: auto; }
  @media (prefers-reduced-motion: reduce) { .dc-map.is-full { transition: none; } }
  .is-full .dc-sheet { display: block; flex: none; padding: .5rem .75rem calc(.75rem + env(safe-area-inset-bottom, 0px)); }
  .dc-sheet .v3-hero-card { padding: .85rem 1rem .7rem; border-radius: 20px; }
  .dc-sheet .v3-hc-head { flex-direction: row; align-items: center; gap: .6rem; }
  .dc-sheet .v3-hc-k { font-size: .7rem; }
  .dc-sheet .v3-hc-now b { font-size: 1.6rem; }
  .dc-sheet .v3-hc-link { font-size: .78rem; padding: .3rem .6rem; }
  .dc-sheet .v3-hc-curve { height: 82px; margin: .7rem .3rem .2rem; }
  .dc-sheet .tcm b { font-size: .68rem; }
  .dc-sheet .v3-hc-axis { font-size: .62rem; }
  .dc-sheet .v3-hero-card:hover { transform: none; }
}
@media (max-width: 900px) {
  .dc-sheet .v3-hc-head > div { min-width: 0; }
  .dc-sheet .v3-hc-k { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dc-sheet .v3-hc-now { flex-wrap: nowrap; }
  .dc-sheet .v3-hc-now span { white-space: nowrap; font-size: .9rem; }
}

/* Mise en page : titre, carte à gauche, marée + calendrier à droite */
.dc2-head { margin-bottom: 1.75rem; }
.dc2-head .v3-sub { margin: 0; }
.dc2-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 2rem; align-items: start; }
.dc2 .dc-map, .dc2 .dc-cal { grid-area: auto; }
.dc2-side { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; position: sticky; top: 6.5rem; }
.dc2 .dc-card-slot { margin: 0; }
.dc2 .dc-cal { margin: 0; }
.dc2-side .v3-hc-curve { height: 200px; }
@media (max-width: 900px) {
  .dc2-head { margin-bottom: 1.25rem; }
  .dc2-grid { display: flex; flex-direction: column; align-items: stretch; gap: 1rem; }
  .dc2 .dc-map { margin: 0; order: 0; }
  .dc2-side .v3-hc-curve { height: 130px; }
  .dc2-side { position: static; gap: 1rem; }
}

.dc2 .v3-ports-head { margin-top: 2.5rem; }
