/* Maquettes d'accueil 1-2-3 (17/10/2026) */
.lvl-gm { --lvl: #dc2626; } .lvl-fo { --lvl: #ea580c; } .lvl-mo { --lvl: #2563eb; } .lvl-pe { --lvl: #059669; }

/* Courbe partagée */
.tide-curve { display: block; width: 100%; height: 100%; overflow: visible; }
.tide-curve .c-line { stroke: var(--c-line, #0ea5e9); stroke-width: 3; stroke-linecap: round; }
.tide-curve .c-line-past { stroke: var(--c-past, rgba(14,165,233,.35)); stroke-width: 3; stroke-linecap: round; }
.tide-curve .now-line { stroke: var(--c-now, #f97316); stroke-width: 1.5; stroke-dasharray: 3 4; }
.tide-curve-marks { position: absolute; inset: 0; pointer-events: none; }
.tcm { position: absolute; transform: translate(-50%, -50%); }
.tcm i { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--c-dot, #0ea5e9); box-shadow: 0 0 0 3px var(--c-ring, #fff); }
.tcm-low i { background: var(--c-ring, #fff); border: 2px solid var(--c-dot, #0ea5e9); box-sizing: border-box; }
.tcm b { position: absolute; left: 50%; transform: translateX(-50%); font-size: .75rem; font-weight: 700; white-space: nowrap; color: var(--c-lab, #2D3748); font-variant-numeric: tabular-nums; }
.tcm-high b { bottom: 14px; } .tcm-low b { top: 14px; }
.tcm.is-past { opacity: .45; }
.tcm-now { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--c-now, #f97316);
  box-shadow: 0 0 0 3px var(--c-ring, #fff), 0 0 0 9px rgba(249,115,22,.18); }

/* ============ 1. ÉPURÉ ============ */
.v1 { background: radial-gradient(1200px 500px at 50% -10%, #e0f2fe 0%, rgba(224,242,254,0) 70%), #fff; padding: 3.5rem 1.25rem 4rem; }
.v1-wrap { max-width: 1120px; margin: 0 auto; }
.v1-eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 auto 1.2rem; padding: .35rem .8rem; border-radius: 999px;
  background: #fff; border: 1px solid #e2e8f0; color: #334155; font-size: .85rem; font-weight: 600; box-shadow: 0 2px 8px rgba(15,23,42,.04); }
.v1 > .v1-wrap > .v1-eyebrow { display: flex; width: max-content; }
.v1-live { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,.18); }
.v1-title { text-align: center; font-size: clamp(2.3rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; color: #2D3748; margin: 0 0 1rem; text-wrap: balance; }
.v1-title span { background: linear-gradient(90deg, #0ea5e9, #2563eb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v1-sub { text-align: center; color: #475569; font-size: 1.1rem; margin: 0 auto 1.8rem; max-width: 36rem; }
.v1-search.hero-search { max-width: 620px; margin: 0 auto; position: relative; }
.v1-search input { width: 100%; height: 3.6rem; border-radius: 16px; border: 1px solid #cbd5e1; background: #fff; padding: 0 1.2rem 0 3.2rem;
  font: inherit; font-size: 1.05rem; color: #2D3748; box-shadow: 0 10px 30px rgba(15,23,42,.08); outline: none; transition: border-color .2s, box-shadow .2s; }
.v1-search input:focus { border-color: #0ea5e9; box-shadow: 0 0 0 4px rgba(14,165,233,.15), 0 10px 30px rgba(15,23,42,.08); }
.v1-search > i { position: absolute; left: 1.2rem; top: 1.8rem; transform: translateY(-50%); color: #94a3b8; z-index: 2; }
.v1-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin: 1.2rem auto 2.8rem; max-width: 860px; }
.v1-chips a { padding: .4rem .8rem; border-radius: 999px; background: #f1f5f9; color: #334155; text-decoration: none; font-size: .88rem; font-weight: 600; transition: background .2s, color .2s; }
.v1-chips a:hover { background: #0ea5e9; color: #fff; }
.v1-bento { display: grid; grid-template-columns: 1fr 1.8fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.v1-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 24px; padding: 1.4rem; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 12px 32px rgba(15,23,42,.05); text-decoration: none; color: inherit; }
.v1-k { margin: 0 0 .6rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.v1-coef-nums { display: flex; align-items: baseline; gap: .6rem; }
.v1-coef-nums span { font-size: 3.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--lvl); font-variant-numeric: tabular-nums; }
.v1-coef-nums em { font-style: normal; color: #cbd5e1; font-size: 1.6rem; }
.v1-lvl { margin: .5rem 0 1rem; font-weight: 700; color: var(--lvl); }
.v1-scale { position: relative; height: 6px; border-radius: 999px; background: linear-gradient(90deg, #059669 0 25%, #2563eb 25% 50%, #ea580c 50% 70%, #dc2626 70%); }
.v1-scale i { position: absolute; top: 50%; width: 16px; height: 16px; margin-left: -8px; transform: translateY(-50%); border-radius: 50%; background: #fff; border: 3px solid #2D3748; }
.v1-curve-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.v1-curve-head a { color: #0ea5e9; font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.v1-now { margin: 0; font-size: 1rem; color: #475569; } .v1-now b { font-size: 1.6rem; color: #2D3748; letter-spacing: -.02em; margin-right: .3rem; }
.v1-curve-box { position: relative; height: 150px; margin-top: .8rem; }
.v1-gm { background: linear-gradient(160deg, #fff1f2, #fff); border-color: #fecdd3; display: flex; flex-direction: column; transition: transform .2s; }
.v1-gm:hover { transform: translateY(-2px); }
.v1-gm-c { margin: auto 0 0; font-size: 3.4rem; font-weight: 800; letter-spacing: -.04em; color: #dc2626; line-height: 1; }
.v1-gm-d { margin: .4rem 0 0; font-weight: 700; color: #9f1239; }
.v1-list { background: #fff; border: 1px solid #e2e8f0; border-radius: 24px; padding: .4rem 1.4rem; box-shadow: 0 12px 32px rgba(15,23,42,.05); }
.v1-list-head, .v1-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1rem; align-items: center; }
.v1-list-head { padding: .8rem 0; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; border-bottom: 1px solid #f1f5f9; }
.v1-row { padding: .85rem 0; border-bottom: 1px solid #f1f5f9; text-decoration: none; color: #2D3748; transition: background .15s; }
.v1-row:last-child { border-bottom: 0; }
.v1-row:hover b { color: #0ea5e9; }
.v1-port b { display: block; font-weight: 700; } .v1-port small { color: #64748b; font-size: .8rem; }
.v1-times { display: flex; gap: .4rem; flex-wrap: wrap; }
.v1-times i { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; padding: .2rem .5rem; border-radius: 8px; }
.v1-low i { color: #475569; }
.v1-times i.is-past { color: #cbd5e1; }
.v1-times i.is-next { background: #0ea5e9; color: #fff; }
.v1 { --c-line: #0ea5e9; --c-past: #bae6fd; --c-ring: #fff; }

/* ============ 2. OCÉAN NUIT ============ */
.v2 { position: relative; overflow: hidden; color: #e2e8f0; padding: 3.5rem 1.25rem 6rem;
  background: radial-gradient(900px 500px at 80% 0%, rgba(14,165,233,.35), transparent 60%), radial-gradient(700px 400px at 0% 30%, rgba(37,99,235,.25), transparent 60%), linear-gradient(180deg, #04162b 0%, #072a4d 60%, #0b3b66 100%); }
.v2-waves { position: absolute; left: 0; right: 0; bottom: 0; width: 200%; height: 220px; pointer-events: none; }
.v2-waves path { fill: rgba(255,255,255,.04); animation: v2drift 18s linear infinite; }
.v2-waves .w2 { fill: rgba(56,189,248,.06); animation-duration: 26s; } .v2-waves .w3 { fill: #fff; opacity: 1; animation: none; }
@keyframes v2drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.v2-wrap { position: relative; max-width: 1120px; margin: 0 auto; }
.v2-top { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; align-items: center; }
.v2-eyebrow { margin: 0 0 1rem; color: #7dd3fc; font-weight: 700; font-size: .9rem; letter-spacing: .04em; }
.v2-title { margin: 0 0 1rem; font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; color: #fff; text-wrap: balance; }
.v2-title span { color: #38bdf8; text-shadow: 0 0 40px rgba(56,189,248,.45); }
.v2-sub { margin: 0 0 1.6rem; color: #94a3b8; font-size: 1.08rem; max-width: 34rem; }
.v2-search.hero-search { position: relative; max-width: 540px; margin: 0; }
.v2-search input { width: 100%; height: 3.5rem; border-radius: 16px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08);
  color: #fff; padding: 0 1.2rem 0 3.1rem; font: inherit; font-size: 1.02rem; outline: none; backdrop-filter: blur(12px); }
.v2-search input::placeholder { color: #94a3b8; }
.v2-search input:focus { border-color: #38bdf8; box-shadow: 0 0 0 4px rgba(56,189,248,.2); }
.v2-search > i { position: absolute; left: 1.15rem; top: 1.75rem; transform: translateY(-50%); color: #7dd3fc; z-index: 2; }
.v2-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; max-width: 560px; }
.v2-chips a { padding: .35rem .75rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); color: #cbd5e1; text-decoration: none; font-size: .85rem; font-weight: 600; transition: all .2s; }
.v2-chips a:hover { background: #38bdf8; border-color: #38bdf8; color: #04162b; }
.v2-glass { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 24px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.v2-coef { position: relative; padding: 1.8rem; text-align: center; }
.v2-ring { width: 170px; height: 170px; margin: 0 auto; display: block; transform: rotate(-90deg); }
.v2-ring circle { fill: none; stroke-width: 10; } .ring-bg { stroke: rgba(255,255,255,.1); } .ring-fg { stroke: var(--lvl); stroke-linecap: round; }
.v2-coef-in { position: absolute; left: 0; right: 0; top: 1.8rem; height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.v2-coef-big { font-size: 3.4rem; font-weight: 800; color: #fff; letter-spacing: -.04em; line-height: 1; }
.v2-coef-then { color: #94a3b8; font-weight: 600; font-size: .9rem; }
.v2-coef-k { margin: 1rem 0 .2rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: #94a3b8; font-weight: 700; }
.v2-coef-l { margin: 0 0 1rem; font-weight: 700; color: #fff; }
.v2-gm { display: block; padding: .6rem .8rem; border-radius: 12px; background: rgba(220,38,38,.18); color: #fecaca; text-decoration: none; font-weight: 600; font-size: .9rem; }
.v2-h2 { margin: 3rem 0 1rem; font-size: 1.4rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.v2-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.v2-port { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.1rem; text-decoration: none; color: #e2e8f0; border-radius: 18px; transition: transform .2s, border-color .2s, background .2s; }
.v2-port:hover { transform: translateY(-3px); border-color: rgba(56,189,248,.6); background: rgba(255,255,255,.1); }
.v2-port-n { font-weight: 800; color: #fff; font-size: 1.05rem; } .v2-port-d { font-size: .78rem; color: #94a3b8; margin-bottom: .6rem; }
.v2-tides { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; }
.v2-t { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .95rem; padding: .2rem .45rem; border-radius: 8px; color: #e2e8f0; }
.v2-t i { width: 8px; height: 8px; border-radius: 50%; }
.v2-t.hi i { background: #38bdf8; } .v2-t.lo i { border: 2px solid #94a3b8; box-sizing: border-box; }
.v2-t.is-past { opacity: .35; } .v2-t.is-next { background: #38bdf8; color: #04162b; } .v2-t.is-next i { background: #04162b; border-color: #04162b; }
.v2-legend { display: flex; gap: 1rem; justify-content: center; margin-top: 1rem; font-size: .8rem; color: #94a3b8; }
.v2-legend .v2-t { font-size: .8rem; }
@media (prefers-reduced-motion: reduce) { .v2-waves path { animation: none; } }

/* ============ 3. TABLEAU DE BORD ============ */
.v3 { background: linear-gradient(180deg, #f0f9ff 0%, #fff 70%); padding: 3rem 1.25rem 4rem; }
.v3-wrap { max-width: 1160px; margin: 0 auto; }
.v3-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 2.5rem; align-items: center; }
.v3-title { margin: 0 0 .9rem; font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; color: #0ca5e9; text-wrap: balance; }
.v3-sub { margin: 0 0 1.5rem; color: #475569; font-size: 1.05rem; }
.v3-search.hero-search { position: relative; margin: 0 0 1.4rem; max-width: none; }
.v3-search input { width: 100%; height: 3.4rem; border-radius: 14px; border: 1px solid #cbd5e1; background: #fff; padding: 0 1rem 0 3rem; font: inherit; font-size: 1rem; outline: none; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.v3-search input:focus { border-color: #0ea5e9; box-shadow: 0 0 0 4px rgba(14,165,233,.15); }
.v3-search > i { position: absolute; left: 1.1rem; top: 1.7rem; transform: translateY(-50%); color: #94a3b8; z-index: 2; }
.v3-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.v3-stat { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; text-decoration: none; color: inherit; }
.v3-stat-gm { border-color: #fecdd3; background: #fff7f7; }
.v3-k { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.v3-v { display: flex; align-items: baseline; gap: .35rem; } .v3-v b { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; color: var(--lvl, #dc2626); line-height: 1.1; }
.v3-v em { font-style: normal; color: #cbd5e1; font-size: 1.4rem; }
.v3-s { font-size: .88rem; font-weight: 600; color: #334155; }
.v3-hero-card { --c-line: #fff; --c-past: rgba(255,255,255,.45); --c-dot: #fff; --c-ring: #0284c7; --c-lab: #fff; --c-now: #fbbf24;
  display: block; position: relative; padding: 1.4rem 1.4rem 1rem; border-radius: 28px; color: #fff; text-decoration: none;
  background: radial-gradient(500px 260px at 90% 0%, rgba(255,255,255,.22), transparent 60%), linear-gradient(150deg, #0ea5e9 0%, #0369a1 100%);
  box-shadow: 0 24px 60px rgba(3,105,161,.35); transition: transform .25s; }
.v3-hero-card:hover { transform: translateY(-3px); }
.v3-hc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.v3-hc-k { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.v3-hc-now { display: flex; align-items: baseline; gap: .5rem; margin-top: .2rem; } .v3-hc-now b { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.v3-hc-now span { font-weight: 600; opacity: .9; }
.v3-hc-link { font-size: .85rem; font-weight: 700; padding: .35rem .7rem; border-radius: 999px; background: rgba(255,255,255,.18); white-space: nowrap; }
.v3-hc-curve { position: relative; height: 190px; margin: 1.6rem .5rem .4rem; }
.v3-hc-axis { display: flex; justify-content: space-between; font-size: .72rem; opacity: .7; padding: 0 .3rem; }
.v3-ports-head { display: flex; justify-content: space-between; align-items: baseline; margin: 3rem 0 1rem; }
.v3-ports-head h2 { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: #2D3748; }
.v3-ports-head span { font-size: .85rem; color: #64748b; }
.v3-ports { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.v3-port { --c-line: #0ea5e9; --c-past: #bae6fd; --c-ring: #fff; display: flex; flex-direction: column; gap: .6rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; text-decoration: none; color: #2D3748; transition: transform .2s, box-shadow .2s, border-color .2s; }
.v3-port:hover { transform: translateY(-3px); border-color: #7dd3fc; box-shadow: 0 14px 30px rgba(14,165,233,.14); }
.v3-port-h b { display: block; font-weight: 800; } .v3-port-h small { color: #64748b; font-size: .78rem; }
.v3-spark { position: relative; display: block; height: 56px; }
.v3-spark .tcm-now { width: 10px; height: 10px; margin: -5px 0 0 -5px; box-shadow: 0 0 0 2px #fff; }
.v3-port-t { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; }
.v3-port-t span { display: flex; align-items: baseline; gap: .3rem; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .92rem; padding: .15rem .4rem; border-radius: 7px; }
.v3-port-t small { font-size: .62rem; font-weight: 700; color: #94a3b8; }
.v3-port-t .is-past { opacity: .4; } .v3-port-t .is-next { background: #0ea5e9; color: #fff; } .v3-port-t .is-next small { color: #e0f2fe; }

/* ============ Mobile ============ */
@media (max-width: 900px) {
  .v1-bento { grid-template-columns: 1fr 1fr; } .v1-curve { grid-column: 1 / -1; grid-row: 1; }
  .v2-top, .v3-split { grid-template-columns: 1fr; }
  .v2-grid, .v3-ports { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .v1, .v2, .v3 { padding-top: 2rem; }
  .v1-sub, .v2-sub, .v3-sub { font-size: .98rem; }
  .v1-chips, .v2-chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin-left: -1.25rem; margin-right: -1.25rem; padding: 0 1.25rem .3rem; scrollbar-width: none; }
  .v1-chips::-webkit-scrollbar, .v2-chips::-webkit-scrollbar { display: none; }
  .v1-chips a, .v2-chips a { flex: none; }
  .v1-chips { margin-bottom: 1.8rem; }
  .v1-coef-nums span, .v1-gm-c { font-size: 2.6rem; }
  .v1-card { padding: 1.1rem; border-radius: 20px; }
  .v1-curve-box { height: 130px; }
  .v1-list { padding: .2rem 1rem; }
  .v1-list-head { display: none; }
  .v1-row { grid-template-columns: 1fr auto; row-gap: .3rem; }
  .v1-port { grid-row: 1 / span 2; }
  .v1-times { justify-content: flex-end; flex-wrap: nowrap; }
  .v1-times::before { content: 'PM'; font-size: .62rem; font-weight: 700; color: #94a3b8; align-self: center; margin-right: .1rem; }
  .v1-low::before { content: 'BM'; }
  .v1-times i { padding: .15rem .4rem; font-size: .92rem; }
  .v2-ring { width: 140px; height: 140px; } .v2-coef-in { height: 140px; } .v2-coef-big { font-size: 2.8rem; }
  .v2-grid { grid-template-columns: 1fr; } .v2-port { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: .5rem; }
  .v2-port-d { margin: 0; } .v2-tides { width: 100%; grid-template-columns: repeat(4, auto); justify-content: space-between; margin-top: .4rem; }
  .v2-t { font-size: .88rem; padding: .15rem .35rem; }
  .v3-hc-curve { height: 150px; margin-top: 1.4rem; }
  .v3-hc-now b { font-size: 2rem; }
  .v3-ports { grid-template-columns: 1fr; gap: .6rem; }
  .v3-port { display: grid; grid-template-columns: 1fr 110px; grid-template-rows: auto auto; column-gap: .8rem; row-gap: .5rem; align-items: center; }
  .v3-spark { grid-column: 2; grid-row: 1; height: 44px; }
  .v3-port-t { grid-column: 1 / -1; grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .v3-ports-head span { display: none; }
}

/* Recherche : neutralise le retrait de .hero-search (index.css) */
.v1-search.hero-search, .v2-search.hero-search, .v3-search.hero-search { padding: 0; }
.v1-search .search-results, .v2-search .search-results, .v3-search .search-results { left: 0; right: 0; }
.v1-search > i, .v2-search > i, .v3-search > i { font-size: 1.05rem; }

/* Les colonnes de grille ne doivent pas s'élargir au contenu (rangée de villes qui défile) */
.v1-bento > *, .v2-top > *, .v3-split > *, .v2-grid > *, .v3-ports > *, .v3-stats > * { min-width: 0; }
.v2, .v3, .v1 { overflow-x: clip; }
.v3-hc-now b, .v1-now b { white-space: nowrap; }
@media (max-width: 600px) {
  .v3-hc-head { flex-direction: column; gap: .6rem; }
  .v3-hc-now { flex-wrap: wrap; }
  .v3-chips-fix {}
  .v2-coef { padding: 1.4rem 1.1rem; }
  .v2-title { font-size: 2.3rem; }
}

/* V3 retenue : cartes coefficient et grande marée, à plat (17/10) */
.v3-stats { align-items: stretch; }
.v3-stat { position: relative; display: flex; flex-direction: column; padding: 1rem 1.1rem; border-radius: 20px; background: #fff;
  border: 1px solid #e2e8f0; text-decoration: none; color: #2D3748; box-shadow: 0 1px 2px rgba(45,55,72,.04);
  transition: border-color .2s, box-shadow .2s; }
.v3-stat-gm:hover { border-color: #fca5a5; box-shadow: 0 8px 22px rgba(220,38,38,.10); }
.v3-k { display: flex; justify-content: space-between; align-items: center; font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #718096; }
.v3-ico { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 10px; letter-spacing: 0;
  background: color-mix(in srgb, var(--lvl) 10%, #fff); color: var(--lvl); font-size: .85rem; }
.v3-v { display: flex; align-items: baseline; gap: .3rem; margin: .35rem 0 .1rem; }
.v3-v b { font-size: 2.3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--lvl, #dc2626); font-variant-numeric: tabular-nums; }
.v3-v em { font-style: normal; color: #cbd5e0; font-size: 1.3rem; }
.v3-when { font-weight: 700; font-size: .95rem; color: #2D3748; white-space: nowrap; }
.v3-foot { margin-top: auto; padding-top: .7rem; }
.v3-pill { display: inline-block; font-size: .74rem; font-weight: 700; color: var(--lvl); background: color-mix(in srgb, var(--lvl) 10%, #fff);
  padding: .22rem .6rem; border-radius: 999px; white-space: nowrap; }
.v3-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding-top: .6rem; }
.v3-seg i { height: 4px; border-radius: 3px; background: color-mix(in srgb, var(--sc) 20%, #fff); }
.v3-seg i.on { background: var(--sc); }
.v3-seg .s-pe { --sc: #059669; } .v3-seg .s-mo { --sc: #2563eb; } .v3-seg .s-fo { --sc: #ea580c; } .v3-seg .s-gm { --sc: #dc2626; }
/* La carte grande marée n'a pas de jauge : on aligne sa pastille sur le bas */
.v3-stat-gm .v3-foot { padding-bottom: calc(.6rem + 4px); }

/* Recherche intégrée */
.v3-search.hero-search { z-index: 20; margin-bottom: 1.2rem; }
.v3-search input { -webkit-appearance: none; appearance: none; height: 3.5rem; border-radius: 16px; border: 1px solid #dbe3ec; background: #fff;
  padding: 0 3.8rem 0 3rem; font-size: 1rem; color: #2D3748; box-shadow: 0 1px 2px rgba(45,55,72,.05), 0 8px 24px rgba(45,55,72,.06); }
.v3-search input::-webkit-search-cancel-button { display: none; }
.v3-search input:focus { transform: none; border-color: #0ca5e9; box-shadow: 0 0 0 4px rgba(12,165,233,.15), 0 8px 24px rgba(45,55,72,.06); }
.v3-search > i { left: 1.1rem; top: 1.75rem; color: #a0aec0; }
.v3-search .search-go { position: absolute; right: .45rem; top: .45rem; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 12px;
  background: #0ca5e9; color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .2s; }
.v3-search .search-go i { position: static; transform: none; color: #fff; font-size: .95rem; }
.v3-search .search-go:hover { background: #0284c7; }
.v3-search .search-go:focus-visible { outline: 2px solid #0ca5e9; outline-offset: 2px; }
.v3-search .search-results { top: calc(100% + .4rem); border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 16px 40px rgba(45,55,72,.12); }
.v3-search .search-result-item { padding: .8rem 1rem; color: #2D3748; font-weight: 600; gap: .7rem; }
.v3-search .search-result-item::before { content: '\f3c5'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: #0ca5e9; font-size: .85rem; }
.v3-search .search-result-item:hover, .v3-search .search-result-item:first-child { background: #f0f9ff; color: #0284c7; }
.v3-search .search-no-result { color: #718096; }

@media (max-width: 600px) {
  .v3-stats { gap: .6rem; }
  .v3-stat { padding: .9rem .95rem; border-radius: 18px; }
  .v3-v b { font-size: 2rem; }
  .v3-pill { font-size: .72rem; padding: .2rem .5rem; }
  .v3-when { font-size: .92rem; }
  .v3-port-t { grid-template-columns: 1fr 1fr; justify-content: stretch; gap: .3rem .5rem; }
  .v3-port-t span { font-size: .95rem; justify-self: start; }
}

/* ===== Bloc coefficient / grande marée : 4 propositions (?s=1..4) ===== */
/* s1 : une carte, deux moitiés */
.s1 { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; overflow: hidden; box-shadow: 0 1px 2px rgba(45,55,72,.04); }
.s1-half { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.15rem; text-decoration: none; color: #2D3748; min-width: 0; }
.s1-half + .s1-half { border-left: 1px solid #edf2f7; }
a.s1-half { transition: background .2s; } a.s1-half:hover { background: #fffafa; }
.s1-k { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #718096; }
.s1-v { display: flex; align-items: baseline; gap: .35rem; margin: .3rem 0 .15rem; }
.s1-v b { font-size: 2.2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--lvl); font-variant-numeric: tabular-nums; }
.s1-v em { font-style: normal; color: #cbd5e0; font-size: 1.2rem; }
.s1-s { display: inline-flex; align-items: center; gap: .4rem; font-size: .86rem; font-weight: 600; color: #4a5568; white-space: nowrap; }
.s1-s i { width: 8px; height: 8px; border-radius: 50%; background: var(--lvl); }

/* s2 : graphique 14 jours */
.s2 { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 1rem 1.15rem .8rem; box-shadow: 0 1px 2px rgba(45,55,72,.04); }
.s2-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.s2-k { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #718096; }
.s2-v { display: flex; align-items: baseline; gap: .3rem; margin-top: .25rem; }
.s2-v b { font-size: 1.9rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--lvl); }
.s2-v em { font-style: normal; color: #cbd5e0; }
.s2-gm { text-align: right; text-decoration: none; color: #2D3748; }
.s2-gm-v { display: block; margin-top: .25rem; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.s2-gm-v b { font-size: 1.9rem; font-weight: 800; letter-spacing: -.04em; color: #dc2626; line-height: 1; }
.s2-chart { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; height: 92px; margin-top: .9rem; }
.s2-bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; min-width: 0; }
.s2-col { position: relative; border-radius: 4px 4px 2px 2px; background: color-mix(in srgb, var(--lvl) 28%, #fff); }
.s2-bar.is-today .s2-col, .s2-bar.is-gm .s2-col { background: var(--lvl); }
.s2-lab { position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%); font-size: .68rem; font-weight: 800; color: var(--lvl); }
.s2-day { margin-top: .3rem; text-align: center; font-size: .62rem; font-weight: 600; color: #a0aec0; font-variant-numeric: tabular-nums; }
.s2-bar.is-today .s2-day { color: #2D3748; }

/* s3 : sans carte */
.s3 { display: flex; align-items: center; gap: 1.4rem; padding: .3rem 0; }
.s3-item { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #2D3748; }
.s3-item + .s3-item { padding-left: 1.4rem; border-left: 1px solid #e2e8f0; }
.s3-item b { font-size: 2.5rem; font-weight: 800; letter-spacing: -.045em; line-height: 1; color: var(--lvl); white-space: nowrap; }
.s3-item b em { font-style: normal; color: #cbd5e0; font-size: 1.4rem; margin: 0 .15rem; }
.s3-item span { font-size: .82rem; font-weight: 600; line-height: 1.3; color: #718096; }
a.s3-item:hover span { color: #dc2626; }

/* s4 : dans la carte de Brest */
.s4 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem -.2rem 0; padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.22); }
.s4-i { display: flex; flex-direction: column; gap: .05rem; }
.s4-k { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.s4-i b { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.s4-s { font-size: .85rem; font-weight: 600; opacity: .9; }

@media (max-width: 600px) {
  .s1-v b { font-size: 1.9rem; } .s1-half { padding: .9rem .95rem; } .s1-s { font-size: .8rem; }
  .s2-chart { height: 80px; gap: 3px; }
  .s3 { gap: 1rem; } .s3-item + .s3-item { padding-left: 1rem; } .s3-item b { font-size: 2.1rem; } .s3-item { gap: .5rem; } .s3-item span { font-size: .76rem; }
}

/* s2 monochrome (17/10) : une seule couleur, le bleu du site */
.s2 { --b0: #e3f2fc; --b1: #9fd6f5; --b2: #0ca5e9; --b3: #0369a1; }
.s2-v b { color: #2D3748; }
.s2-lvl { display: block; margin-top: .3rem; font-size: .82rem; font-weight: 600; color: #718096; }
.s2-gm-v b { color: #0369a1; }
.s2-chart { position: relative; --day-h: 1.05rem; --lab-h: 0; }
.s2-bar { position: relative; z-index: 1; }
.s2-col { background: var(--b0); }
.s2-bar.is-high .s2-col { background: var(--b1); }
.s2-bar.is-today .s2-col { background: var(--b2); }
.s2-bar.is-gm .s2-col { background: var(--b3); }
.s2-bar.is-today .s2-lab { color: var(--b2); } .s2-bar.is-gm .s2-lab { color: var(--b3); }
.s2-day { height: var(--day-h); margin-top: .25rem; }
.s2-thr { position: absolute; left: 0; right: 0; border-top: 1px dashed #cbd5e0; z-index: 0; }
.s2-thr i { position: absolute; right: 0; top: -.95rem; font-style: normal; font-size: .6rem; font-weight: 700; color: #a0aec0; }
/* Points « maintenant » sans jaune ni orange */
.v3-hero-card { --c-now: #ffffff; }
.v3-hero-card .tcm-now { box-shadow: 0 0 0 3px #0284c7, 0 0 0 8px rgba(255,255,255,.22); }
.v3-hero-card .tide-curve .now-line { stroke: rgba(255,255,255,.75); }
.v3-port { --c-now: #0369a1; }
.v3-port .tcm-now { box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgba(3,105,161,.15); }
.v3-port .tide-curve .now-line { stroke: #a0aec0; }
/* Mobile : espace sous la recherche et le bloc */
@media (max-width: 600px) { .v3-alt { margin-top: .2rem; } }

/* Graphique : la ligne 90 et les barres partagent la même échelle */
.s2-chart { --pb: 1.35rem; padding-bottom: var(--pb); box-sizing: border-box; height: 104px; }
.s2-bar { height: 100%; }
.s2-day { position: absolute; left: 0; right: 0; bottom: calc(-1 * var(--pb)); margin: 0; line-height: var(--pb); height: var(--pb); }
@media (max-width: 600px) { .s2-chart { height: 96px; } }

/* s5 : le calendrier seul */
.s5 { display: block; background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 1rem 1.1rem .85rem; text-decoration: none; color: #2D3748;
  box-shadow: 0 1px 2px rgba(45,55,72,.04); transition: border-color .2s, box-shadow .2s; }
.s5:hover { border-color: #9fd6f5; box-shadow: 0 10px 26px rgba(12,165,233,.10); }
.s5-head { display: flex; justify-content: space-between; align-items: center; }
.s5-k { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #718096; }
.s5-link { font-size: .8rem; font-weight: 700; color: #0ca5e9; } .s5-link i { font-size: .65rem; margin-left: .15rem; }
.s5-chart { position: relative; display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; height: 150px; margin-top: .7rem;
  --pt: 1.2rem; --pb: 2.3rem; padding: var(--pt) 0 var(--pb); box-sizing: border-box; }
.s5-col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; z-index: 1; }
.s5-bar { display: block; border-radius: 5px 5px 3px 3px; background: #e3f2fc; }
.s5-col.is-high .s5-bar { background: #9fd6f5; }
.s5-col.is-today .s5-bar { background: #0ca5e9; }
.s5-col.is-gm .s5-bar { background: #0369a1; }
.s5-num { display: block; text-align: center; margin-bottom: 3px; font-size: .66rem; font-weight: 700; color: #a0aec0; font-variant-numeric: tabular-nums; }
.s5-col.is-today .s5-num { color: #0ca5e9; font-weight: 800; } .s5-col.is-gm .s5-num { color: #0369a1; font-weight: 800; }
.s5-day { position: absolute; left: 0; right: 0; bottom: calc(-1 * var(--pb)); height: var(--pb); display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: #4a5568; font-variant-numeric: tabular-nums; line-height: 1.2; }
.s5-day b { font-size: .58rem; font-weight: 700; color: #a0aec0; text-transform: uppercase; }
.s5-col.is-today .s5-day { color: #0ca5e9; } .s5-col.is-today .s5-day b { color: #0ca5e9; }
.s5-thr { position: absolute; left: 0; right: 0; border-top: 1px dashed #cbd5e0; z-index: 0; }
.s5-legend { display: flex; gap: 1rem; margin-top: .35rem; font-size: .72rem; font-weight: 600; color: #718096; }
.s5-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.s5-legend i { width: 10px; height: 10px; border-radius: 3px; } .lg-today { background: #0ca5e9; } .lg-high { background: #9fd6f5; }
@media (max-width: 600px) { .s5-chart { gap: 3px; height: 140px; } .s5-num { font-size: .6rem; } .s5-legend { font-size: .68rem; gap: .8rem; } }

/* Actualités (remplace « Prochaines grandes marées ») */
.home-news { padding: 3.5rem 1.25rem; background: #fff; }
.hn-wrap { max-width: 1160px; margin: 0 auto; }
.hn-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.1rem; }
.hn-head h2 { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: #2D3748; }
.hn-head a { color: #0ca5e9; font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.hn-head a i { font-size: .7rem; margin-left: .15rem; }
.hn-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.hn-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; overflow: hidden; text-decoration: none; color: #2D3748;
  transition: border-color .2s, box-shadow .2s, transform .2s; min-width: 0; }
.hn-card:hover { border-color: #9fd6f5; box-shadow: 0 12px 28px rgba(12,165,233,.12); transform: translateY(-2px); }
.hn-img { display: block; aspect-ratio: 16 / 9; background: #e3f2fc; overflow: hidden; }
.hn-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hn-body { display: flex; flex-direction: column; gap: .35rem; padding: .85rem 1rem 1rem; }
.hn-date { font-size: .75rem; font-weight: 600; color: #718096; }
.hn-title { font-size: .98rem; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .hn-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .home-news { padding: 2.5rem 1.25rem; }
  .hn-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 1.25rem; gap: .8rem; margin: 0 -1.25rem; padding: 0 1.25rem .4rem; scrollbar-width: none; }
  .hn-row::-webkit-scrollbar { display: none; }
  .hn-card { flex: 0 0 78%; scroll-snap-align: start; }
}

/* Mobile et tablette (une colonne) : la courbe de Brest passe avant le calendrier des coefficients (demande du 17/10) */
@media (max-width: 900px) {
  .v3-split { row-gap: 0; }
  .v3-intro { display: contents; }
  .v3-title { order: 1; } .v3-sub { order: 2; } .v3-search { order: 3; }
  .v3-hero-card { order: 4; margin-bottom: 1.2rem; }
  .v3-alt { order: 5; margin-top: 0; }
}
