:root{
  --yellow:#ffd400;
  --yellow-2:#ffdf32;
  --yellow-dark:#e6b900;
  --blue:#083f73;
  --blue-2:#062c52;
  --blue-3:#051e39;
  --white:#ffffff;
  --ink:#092a47;
  --muted:#61778a;
  --bg:#f3f6f8;
  --line:#dbe4ea;
  --soft-blue:#eaf2f8;
  --shadow:0 22px 55px rgba(5,30,57,.12);
  --radius:24px;
}
*{box-sizing:border-box}
html{min-height:100%;background:var(--bg)}
body{
  margin:0;
  min-height:100vh;
  color:var(--ink);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    linear-gradient(180deg,#fff 0 72px,transparent 72px),
    radial-gradient(circle at 90% 12%,rgba(255,212,0,.20),transparent 25rem),
    #f4f7f9;
}
button,select,input{font:inherit}
button{cursor:pointer}
.page-shell{min-height:100vh;display:flex;flex-direction:column}

/* Header */
.topbar{
  height:78px;
  padding:0 max(24px,calc((100vw - 1140px)/2));
  display:flex;align-items:center;justify-content:space-between;
  background:var(--yellow);
  color:var(--blue-3);
  border-bottom:4px solid var(--blue);
  position:relative;z-index:10
}
.brand{display:flex;align-items:center;gap:13px}
.brand-symbol{
  width:48px;height:48px;border-radius:50%;
  background:var(--blue);color:var(--yellow);
  display:grid;place-items:center;position:relative;
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.12)
}
.brand-ferry{font-size:23px;line-height:1;position:relative;z-index:2;transform:translateY(-1px)}
.brand-wave{
  position:absolute;width:29px;height:8px;border-bottom:2px solid var(--yellow);
  border-radius:50%;bottom:8px
}
.brand-copy strong{
  display:block;font-size:17px;font-weight:950;letter-spacing:-.02em
}
.brand-copy span{
  display:block;font-size:11px;font-weight:700;color:#35536c;margin-top:2px
}
.version{
  border:2px solid rgba(6,44,82,.18);
  background:rgba(255,255,255,.48);
  border-radius:999px;padding:7px 12px;
  font-size:11px;font-weight:950;color:var(--blue)
}

/* Main / hero */
.main{width:min(1140px,calc(100% - 32px));margin:30px auto 28px}
.hero{
  min-height:315px;
  border-radius:30px;
  overflow:hidden;
  position:relative;
  display:grid;grid-template-columns:1.05fr .95fr;
  align-items:center;
  background:
    linear-gradient(115deg,var(--blue-3) 0%,var(--blue) 64%,#0c548f 100%);
  box-shadow:var(--shadow)
}
.hero::before{
  content:"";
  position:absolute;inset:0;
  background:
    linear-gradient(0deg,rgba(255,212,0,.10),transparent 44%),
    repeating-linear-gradient(135deg,rgba(255,255,255,.025) 0 1px,transparent 1px 15px);
  pointer-events:none
}
.hero-copy{padding:44px 0 44px 46px;position:relative;z-index:2}
.hero-kicker{
  display:inline-flex;
  padding:7px 11px;
  border-radius:999px;
  color:var(--blue-3);
  background:var(--yellow);
  font-size:11px;font-weight:950;letter-spacing:.08em
}
.hero h1{
  margin:17px 0 0;
  color:white;
  font-size:clamp(40px,5.2vw,66px);
  line-height:.92;
  letter-spacing:-.055em
}
.hero h1 span{color:var(--yellow)}
.hero p{
  max-width:610px;margin:19px 0 0;
  color:#c7dae8;font-size:15px;line-height:1.58
}
.hero-badges{display:flex;gap:9px;flex-wrap:wrap;margin-top:23px}
.hero-badges span{
  padding:8px 11px;border-radius:10px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.11);
  color:#e8f1f6;font-size:11px;font-weight:800
}

/* Ferry illustration */
.hero-art{height:100%;position:relative;display:flex;align-items:center;justify-content:center}
.sun-disc{
  position:absolute;width:255px;height:255px;border-radius:50%;
  background:var(--yellow);
  right:45px;top:28px;
  box-shadow:0 0 0 22px rgba(255,212,0,.08)
}
.corsica-ferry{
  width:min(540px,100%);
  position:relative;z-index:2;
  transform:translate(8px,17px);
  filter:drop-shadow(0 18px 15px rgba(0,0,0,.24))
}
.ferry-shadow ellipse{fill:rgba(0,0,0,.20)}
.hull-yellow{fill:var(--yellow)}
.hull-blue,.stripe-blue,.funnel-blue{fill:var(--blue-3)}
.bow-white,.deck-white{fill:white}
.small-stripe{opacity:.95}
.windows rect{fill:#244e70}
.funnel-yellow{fill:var(--yellow)}
.funnel-cap{fill:#061b30}
.lifeboats rect{fill:#f27422}
.ship-name{
  fill:var(--blue-3);
  font-size:21px;
  font-family:Georgia,"Times New Roman",serif;
  font-weight:700;
  letter-spacing:-.04em
}
.waves path{
  fill:none;stroke:#fff;stroke-width:4;
  stroke-linecap:round;opacity:.68
}

/* Search card */
.search-panel{
  width:calc(100% - 74px);
  margin:-28px auto 0;
  position:relative;z-index:5;
  background:white;
  border-radius:var(--radius);
  padding:26px 28px 25px;
  box-shadow:var(--shadow);
  border-top:5px solid var(--yellow)
}
.panel-title{
  display:flex;justify-content:space-between;align-items:center;
  margin-bottom:20px
}
.panel-title>div{display:flex;align-items:center;gap:9px}
.panel-title strong{font-size:16px;color:var(--blue-3)}
.step-number{
  width:28px;height:28px;border-radius:50%;
  display:grid;place-items:center;
  background:var(--blue);color:white;font-size:12px;font-weight:950
}
.panel-subtitle{font-size:11px;color:#7d909e;font-weight:750}
.route-grid{display:grid;grid-template-columns:1fr 56px 1fr;gap:14px;align-items:end}
.date-search-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:end;margin-top:17px}
.field label{
  display:block;margin:0 0 7px 3px;
  font-size:11px;font-weight:900;text-transform:uppercase;
  letter-spacing:.055em;color:#577083
}
.input-shell{position:relative}
.input-icon{
  position:absolute;z-index:2;left:16px;top:50%;transform:translateY(-50%);
  pointer-events:none;font-size:16px
}
select,input[type=date]{
  width:100%;height:58px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#f8fafb;
  color:var(--blue-3);
  padding:0 42px 0 45px;
  outline:none;font-weight:800;
  transition:.16s ease
}
select:hover,input[type=date]:hover{border-color:#afc2cf;background:white}
select:focus,input[type=date]:focus{
  border-color:var(--blue);
  background:white;
  box-shadow:0 0 0 4px rgba(8,63,115,.10)
}
.swap{
  width:52px;height:52px;margin-bottom:3px;
  border:0;border-radius:50%;
  background:var(--yellow);color:var(--blue-3);
  font-size:25px;font-weight:950;
  display:grid;place-items:center;
  box-shadow:0 9px 20px rgba(208,168,0,.24);
  transition:.2s ease
}
.swap:hover{background:var(--yellow-2);transform:rotate(180deg)}
.primary{
  height:58px;border:0;border-radius:14px;
  background:var(--yellow);color:var(--blue-3);
  display:flex;align-items:center;justify-content:center;gap:10px;
  font-weight:950;text-transform:uppercase;letter-spacing:.03em;
  box-shadow:0 10px 24px rgba(208,168,0,.20);
  transition:.16s ease
}
.primary:hover{background:var(--yellow-2);transform:translateY(-1px)}
.primary:disabled{opacity:.72;cursor:wait;transform:none}
.search-icon{font-size:17px}
.direction-help{
  display:flex;align-items:flex-start;gap:9px;
  margin-top:18px;padding:14px 15px;
  border-radius:12px;background:#f5f9fc;
  color:#61778a;font-size:11px;line-height:1.5
}
.help-icon{
  flex:none;width:19px;height:19px;border-radius:50%;
  display:grid;place-items:center;background:var(--blue);
  color:white;font-size:11px;font-weight:900
}

/* Results */
.result-zone{margin:27px 37px 0}
.loading,.warning{
  background:white;border-radius:18px;padding:25px;
  border:1px solid var(--line);text-align:center;
  box-shadow:0 10px 30px rgba(5,30,57,.06)
}
.warning{border-left:5px solid var(--yellow)}
.warning h2{margin:0 0 7px;color:var(--blue-3)}
.warning p{margin:0;color:var(--muted)}
.multi-note{
  margin-bottom:12px;padding:12px 15px;
  border-radius:12px;background:var(--blue);color:white;
  font-size:12px;font-weight:850
}
.boat-card{
  display:grid;grid-template-columns:190px 1fr;
  gap:24px;
  position:relative;overflow:hidden;
  background:white;border:1px solid var(--line);
  border-radius:21px;padding:22px;margin-bottom:14px;
  box-shadow:0 12px 32px rgba(5,30,57,.07)
}
.boat-card::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:7px;
  background:var(--yellow)
}
.boat-icon{
  height:160px;border-radius:16px;
  display:grid;place-items:center;
  background:
    linear-gradient(180deg,#eaf5fb 0 64%,#bedbe9 64% 100%);
  color:var(--blue);
  font-size:70px
}
.boat-card .small{
  font-size:10px;font-weight:950;letter-spacing:.12em;
  color:#8495a1;margin-bottom:5px
}
.boat-card h2{
  margin:0 0 5px;
  font-size:30px;line-height:1.05;letter-spacing:-.035em;
  color:var(--blue-3)
}
.boat-card p{margin:7px 0;color:#566e7f}
.boat-card p strong{color:var(--blue)}
.boat-card a{
  display:inline-flex;margin-top:9px;
  padding:7px 10px;border-radius:9px;
  color:var(--blue);background:#eef5f9;
  text-decoration:none;font-size:11px;font-weight:900
}
.boat-card a:hover{background:#e2eef5}

/* Bottom features */
.feature-row{
  margin:25px 37px 0;
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:11px
}
.feature{
  display:flex;align-items:center;justify-content:center;gap:10px;
  padding:13px;border-radius:13px;
  background:rgba(255,255,255,.72);
  border:1px solid var(--line)
}
.feature>span{font-size:19px}
.feature strong{display:block;font-size:11px;color:var(--blue-3)}
.feature small{display:block;font-size:9px;color:#8596a3;margin-top:2px}
footer{
  margin-top:auto;padding:25px;
  color:#8194a2;text-align:center;font-size:10px
}
.footer-dot{
  display:inline-block;width:7px;height:7px;border-radius:50%;
  background:var(--yellow-dark);margin-right:6px
}

/* Mobile */
@media(max-width:790px){
  .topbar{height:70px;padding:0 16px}
  .brand-symbol{width:42px;height:42px}
  .brand-copy strong{font-size:14px}
  .brand-copy span{display:none}
  .main{width:min(100% - 18px,1140px);margin-top:16px}
  .hero{
    min-height:auto;
    grid-template-columns:1fr;
    border-radius:23px
  }
  .hero-copy{padding:30px 23px 14px}
  .hero h1{font-size:43px}
  .hero p{font-size:13px}
  .hero-art{height:188px}
  .sun-disc{
    width:180px;height:180px;right:calc(50% - 90px);top:6px
  }
  .corsica-ferry{width:370px;max-width:100%;transform:translate(0,8px)}
  .search-panel{
    width:calc(100% - 12px);margin-top:-14px;padding:19px 17px 20px;
    border-radius:19px
  }
  .panel-subtitle{display:none}
  .route-grid,.date-search-grid{grid-template-columns:1fr}
  .swap{
    width:46px;height:46px;margin:-2px auto;
    transform:rotate(90deg)
  }
  .swap:hover{transform:rotate(270deg)}
  .result-zone,.feature-row{margin-left:6px;margin-right:6px}
  .boat-card{grid-template-columns:1fr;padding:18px}
  .boat-icon{height:105px;font-size:55px}
  .boat-card h2{font-size:25px}
  .feature-row{grid-template-columns:1fr}
}

.overnight{display:inline-block;margin-top:8px!important;padding:7px 10px;border-radius:10px;background:#fff8d4;color:#5d4a00!important;font-size:12px;font-weight:800}

.marine-card{
  margin-top:14px;
  padding:14px;
  border-radius:15px;
  background:linear-gradient(180deg,#f6fbfe,#edf6fb);
  border:1px solid #d8e8f1;
}
.marine-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
  color:var(--blue-3);
  font-size:12px;
  font-weight:900;
}
.marine-title strong{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:6px 9px;
  border-radius:999px;
  background:white;
  border:1px solid #dbe7ee;
  font-size:11px;
}
.marine-icons{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:9px;
}
.marine-item{
  min-height:86px;
  padding:10px 8px;
  border-radius:12px;
  background:white;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border:1px solid #e3edf3;
}
.marine-emoji{font-size:23px;line-height:1;margin-bottom:5px}
.marine-item small{font-size:9px;color:#8193a0;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.marine-item b{font-size:14px;color:var(--blue-3);margin-top:3px}
.marine-source{
  margin-top:9px;
  font-size:9px;
  color:#8a9aa5;
  text-align:right;
}
@media(max-width:560px){
  .marine-icons{grid-template-columns:repeat(3,1fr);gap:6px}
  .marine-item{min-height:78px;padding:8px 5px}
  .marine-item b{font-size:12px}
}

.boat-visual{
  width:104px;
  min-width:104px;
  height:78px;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  border:2px solid rgba(255,255,255,.85);
  box-shadow:0 5px 16px rgba(0,0,0,.12);
  display:flex;
  align-items:center;
  justify-content:center;
}
.boat-photo{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.boat-fallback{
  width:100%;
  height:100%;
  align-items:center;
  justify-content:center;
  font-size:34px;
}
.boat-content{min-width:0;flex:1}
.photo-credit{
  display:block;
  margin:-2px 0 7px;
  font-size:8px!important;
  line-height:1.2;
  opacity:.68;
  text-decoration:none!important;
}
.photo-credit:hover{opacity:1}
@media(max-width:560px){
  .boat-visual{width:92px;min-width:92px;height:69px;border-radius:12px}
}

.trip-tools{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:11px 0 3px;
}
.trip-chip{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid #dce7ee;
  background:#fff;
  color:var(--blue-3);
  font-size:10px;
  font-weight:900;
  text-decoration:none;
}
.trip-link:hover{transform:translateY(-1px)}
.trip-save{cursor:pointer;font-family:inherit}
.trip-save.saved{background:#fff4a8;border-color:#ead75a}
@media(max-width:560px){
  .trip-tools{gap:6px}
  .trip-chip{font-size:9px;padding:7px 9px}
}

.trip-track{
  background:#eaf4ff;
  border-color:#bdd7ed;
  color:#0c4d7c!important;
}
.trip-track:hover{
  background:#dceeff;
  transform:translateY(-1px);
}

/* V4.48 — Modern feature banner */
.hero{
  min-height:365px;
}
.hero-copy{
  padding-top:38px;
  padding-bottom:38px;
}
.hero-lead{
  max-width:620px;
  font-size:15px!important;
}
.feature-cloud{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  margin-top:22px;
  max-width:650px;
}
.feature-pill{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:56px;
  padding:10px 12px;
  border-radius:16px;
  background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.13);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  transition:.18s ease;
}
.feature-pill:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.13);
}
.feature-pill-icon{
  width:36px;
  height:36px;
  min-width:36px;
  border-radius:11px;
  display:grid;
  place-items:center;
  background:rgba(255,212,0,.14);
  font-size:18px;
}
.feature-pill span:last-child{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.feature-pill b{
  color:white;
  font-size:11px;
  line-height:1.1;
  letter-spacing:.01em;
}
.feature-pill small{
  margin-top:3px;
  color:#bcd2e2;
  font-size:9px;
  line-height:1.1;
}
.accent-pill{
  background:linear-gradient(135deg,rgba(255,212,0,.22),rgba(255,212,0,.08));
  border-color:rgba(255,212,0,.28);
}
.accent-pill .feature-pill-icon{
  background:var(--yellow);
}

@media(max-width:900px){
  .hero{
    grid-template-columns:1fr;
  }
  .hero-art{
    height:190px;
  }
  .feature-cloud{
    max-width:none;
  }
}

@media(max-width:560px){
  .hero{
    min-height:auto;
  }
  .hero-copy{
    padding:28px 20px 12px;
  }
  .hero h1{
    font-size:40px;
  }
  .feature-cloud{
    grid-template-columns:1fr 1fr;
    gap:7px;
  }
  .feature-pill{
    min-height:52px;
    padding:9px 9px;
    gap:8px;
    border-radius:14px;
  }
  .feature-pill-icon{
    width:32px;
    height:32px;
    min-width:32px;
    font-size:16px;
  }
  .feature-pill b{
    font-size:10px;
  }
  .feature-pill small{
    font-size:8px;
  }
}

.weather-trip-strip{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:9px;
  margin:14px 0 7px;
}
.weather-mini-card{
  min-width:0;
  padding:12px;
  border-radius:15px;
  background:linear-gradient(180deg,#ffffff,#f7fafc);
  border:1px solid #dde8ee;
  box-shadow:0 6px 16px rgba(5,30,57,.05);
}
.weather-sea{
  background:linear-gradient(180deg,#edf7fd,#e6f2f8);
  border-color:#cfe2ee;
}
.weather-mini-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:9px;
}
.weather-city{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--blue-3);
  font-size:11px;
  font-weight:950;
}
.weather-phase{
  flex:none;
  padding:4px 7px;
  border-radius:999px;
  background:#f0f4f7;
  color:#788b99;
  font-size:8px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.weather-main{
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--blue-3);
  font-size:21px;
  line-height:1;
}
.weather-main strong{font-size:18px}
.weather-meta{
  margin-top:8px;
  color:#6c808f;
  font-size:9px;
  font-weight:800;
  line-height:1.35;
}
.weather-mock-note{
  margin:0 0 10px;
  color:#8a9aa5;
  font-size:8px;
  text-align:right;
  font-style:italic;
}
@media(max-width:680px){
  .weather-trip-strip{
    display:flex;
    overflow-x:auto;
    gap:8px;
    padding-bottom:4px;
    scroll-snap-type:x mandatory;
  }
  .weather-mini-card{
    flex:0 0 78%;
    scroll-snap-align:start;
  }
}

.weather-trip-strip-two{
  grid-template-columns:repeat(2,1fr);
}

.weather-unavailable{opacity:.55}

.weather-loading{opacity:.6}

.live-crossings{
  margin:22px 0 20px;
  padding:20px;
  border-radius:22px;
  background:linear-gradient(145deg,#0d2f55,#123f70);
  box-shadow:0 16px 34px rgba(8,38,69,.14);
  color:white;
}
.live-crossings-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:14px;
  margin-bottom:14px;
}
.live-kicker{
  display:block;
  margin-bottom:4px;
  color:#ffd400;
  font-size:9px;
  font-weight:950;
  letter-spacing:.14em;
}
.live-crossings h2{
  margin:0;
  color:white;
  font-size:18px;
}
.live-estimate{
  font-size:9px;
  color:#bfd0df;
  white-space:nowrap;
}
.current-crossings-list{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding:2px 1px 5px;
  scroll-snap-type:x mandatory;
}
.live-card{
  flex:0 0 315px;
  scroll-snap-align:start;
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(10px);
}
.live-card-top{
  display:flex;
  gap:11px;
  align-items:center;
}
.live-ship-visual{
  width:72px;
  min-width:72px;
  height:54px;
  overflow:hidden;
  border-radius:12px;
  background:rgba(255,255,255,.12);
}
.live-ship-visual img{width:100%;height:100%;object-fit:cover;display:block}
.live-ship-visual span{width:100%;height:100%;display:grid;place-items:center;font-size:26px}
.live-card-copy h3{margin:3px 0 3px;font-size:14px;color:white}
.live-card-copy p{margin:0;font-size:10px;color:#d6e2eb}
.live-status{font-size:8px;font-weight:950;color:#ffd400;letter-spacing:.08em}
.pulse-dot{
  width:7px;height:7px;border-radius:50%;background:#37e57d;display:inline-block;margin-right:5px;
  box-shadow:0 0 0 0 rgba(55,229,125,.55);animation:livePulse 1.8s infinite;
}
@keyframes livePulse{70%{box-shadow:0 0 0 7px rgba(55,229,125,0)}100%{box-shadow:0 0 0 0 rgba(55,229,125,0)}}
.live-times{display:flex;justify-content:space-between;gap:8px;margin-top:12px;font-size:10px;font-weight:800}
.live-progress{margin-top:11px}
.live-progress-bar{height:7px;border-radius:999px;background:rgba(255,255,255,.12);overflow:hidden}
.live-progress-bar span{display:block;height:100%;background:#ffd400;border-radius:999px}
.live-progress small{display:block;margin-top:5px;color:#bcd0df;font-size:8px}
.live-track{
  display:inline-flex;margin-top:10px;padding:7px 10px;border-radius:999px;
  background:#ffd400;color:#102f51!important;font-size:9px;font-weight:950;text-decoration:none!important
}
.live-loading,.live-empty{
  width:100%;padding:18px;border-radius:14px;background:rgba(255,255,255,.07);
  color:#d5e1ea;font-size:11px;text-align:center
}
@media(max-width:560px){
  .live-crossings{padding:16px;margin-left:0;margin-right:0}
  .live-crossings-head{align-items:flex-start;flex-direction:column}
  .live-estimate{white-space:normal}
  .live-card{flex-basis:86%}
}


/* V4.61 · partage + fiche bateau */
.vessel-open,.vessel-name-link{cursor:pointer}
.vessel-name-link{display:inline-block;text-decoration:underline;text-decoration-color:rgba(13,58,98,.18);text-underline-offset:4px}
.vessel-name-link:hover{text-decoration-color:var(--yellow)}
.trip-vessel,.trip-share{border:0;cursor:pointer;font:inherit}
.trip-vessel{background:#eef5fa;color:var(--blue-3)}
.trip-share{background:#fff3a8;color:#193c5f}
.vessel-modal{position:fixed;inset:0;z-index:1000;display:none;align-items:flex-end;justify-content:center;padding:20px}
.vessel-modal.open{display:flex}
.vessel-modal-backdrop{position:absolute;inset:0;background:rgba(5,25,45,.64);backdrop-filter:blur(4px)}
.vessel-sheet{position:relative;z-index:1;width:min(760px,100%);max-height:min(88vh,820px);overflow:auto;border-radius:26px;background:white;box-shadow:0 30px 80px rgba(0,20,42,.35);animation:vesselUp .24s ease-out}
@keyframes vesselUp{from{transform:translateY(22px);opacity:.4}to{transform:none;opacity:1}}
.vessel-close{position:absolute;right:14px;top:14px;z-index:3;width:38px;height:38px;border:0;border-radius:50%;background:rgba(7,39,70,.86);color:white;font-size:25px;line-height:1;cursor:pointer}
.vessel-modal-content{padding:0 0 22px}
.vessel-sheet-loading{padding:60px 24px;text-align:center;color:#6e8291;font-weight:800}
.vessel-hero{display:grid;grid-template-columns:minmax(220px,42%) 1fr;min-height:235px;background:linear-gradient(135deg,#0b3159,#154d82);color:white}
.vessel-hero-photo{min-height:235px;background:#dce8ef;overflow:hidden}
.vessel-hero-photo img{width:100%;height:100%;object-fit:cover;display:block}
.vessel-hero-photo span{height:100%;display:grid;place-items:center;font-size:68px}
.vessel-hero-copy{align-self:center;padding:34px 52px 30px 28px}
.vessel-kicker{font-size:9px;font-weight:950;letter-spacing:.14em;color:var(--yellow)}
.vessel-hero-copy h2{margin:7px 0 13px;color:white;font-size:30px;line-height:1.05}
.vessel-badges{display:flex;flex-wrap:wrap;gap:7px}
.vessel-badges span{padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.12);font-size:9px;font-weight:900}
.vessel-badges .status-ok{background:rgba(52,218,119,.18);color:#89f3b6}
.vessel-badges .status-muted{background:rgba(255,255,255,.1);color:#cbd8e2}
.vessel-spec-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;padding:20px 20px 6px}
.vessel-spec{display:flex;align-items:center;gap:9px;min-height:67px;padding:11px;border-radius:15px;background:#f5f8fa;border:1px solid #e3ebf0}
.vessel-spec>span{font-size:19px}
.vessel-spec div{display:flex;min-width:0;flex-direction:column}
.vessel-spec small{color:#748896;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.vessel-spec strong{margin-top:4px;color:var(--blue-3);font-size:12px;line-height:1.15}
.vessel-sheet-actions{display:flex;flex-wrap:wrap;gap:8px;padding:14px 20px 0}
.vessel-sheet-actions a{display:inline-flex;align-items:center;padding:10px 13px;border-radius:999px;background:var(--yellow);color:var(--blue-3);font-size:10px;font-weight:950;text-decoration:none}
.vessel-sheet-actions a.secondary{background:#eaf2f7}
.vessel-data-note{margin:14px 20px 0;color:#78909f;font-size:9px;line-height:1.45}
.vessel-photo-credit{display:inline-block;margin:8px 20px 0}
body.modal-open{overflow:hidden}
.app-toast{position:fixed;left:50%;bottom:25px;z-index:1200;transform:translate(-50%,25px);padding:11px 16px;border-radius:999px;background:#092f56;color:white;box-shadow:0 10px 30px rgba(0,25,50,.25);font-size:11px;font-weight:900;opacity:0;pointer-events:none;transition:.2s ease}
.app-toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:680px){
  .vessel-modal{padding:0;align-items:flex-end}
  .vessel-sheet{max-height:92vh;border-radius:24px 24px 0 0}
  .vessel-hero{grid-template-columns:1fr;min-height:0}
  .vessel-hero-photo{height:190px;min-height:0}
  .vessel-hero-copy{padding:22px 20px}
  .vessel-hero-copy h2{font-size:26px}
  .vessel-spec-grid{grid-template-columns:repeat(2,1fr);padding:15px 14px 4px}
  .vessel-sheet-actions{padding:12px 14px 0}
  .vessel-data-note{margin:13px 14px 0}
  .vessel-photo-credit{margin-left:14px;margin-right:14px}
}


/* =========================================================
   V4.62 · Interface FUN / vacances
   La logique et les cartes résultats V4.61 restent intactes.
   ========================================================= */
body.v462{
  --fun-navy:#062b55;
  --fun-navy-2:#0a3d70;
  --fun-yellow:#ffd20a;
  --fun-sky:#35bdf6;
  --fun-pink:#ff5b86;
  --fun-green:#35c982;
  --fun-paper:#fffefa;
  background:
    radial-gradient(circle at 12% 18%,rgba(55,194,249,.18),transparent 28rem),
    linear-gradient(180deg,#e9f8ff 0%,#f8fbfd 58%,#eef8fc 100%);
  color:#082e57;
}
.v462 .page-shell{overflow:hidden}
.fun-topbar{
  min-height:92px;
  padding:12px max(18px,calc((100vw - 1400px)/2));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  background:linear-gradient(135deg,#05284f,#07396a 60%,#05284f);
  color:#fff;
  box-shadow:0 5px 18px rgba(4,35,68,.22);
  position:relative;
  z-index:20;
}
.fun-brand{
  display:flex;align-items:center;gap:13px;color:#fff;text-decoration:none;min-width:0
}
.fun-brand-badge{
  width:62px;height:62px;border-radius:50%;
  display:grid;place-items:center;font-size:34px;
  background:linear-gradient(145deg,#083c71,#07558d);
  border:3px solid rgba(63,195,255,.5);
  box-shadow:0 8px 20px rgba(0,0,0,.18),inset 0 0 0 4px rgba(255,255,255,.05);
}
.fun-brand-text{display:flex;flex-direction:column;line-height:1.06}
.fun-brand-text strong{
  font-size:clamp(20px,2.2vw,31px);
  font-weight:950;
  letter-spacing:-.7px;
}
.fun-brand-text em{font-style:normal;color:var(--fun-yellow)}
.fun-brand-text small{font-size:14px;font-weight:750;margin-top:5px;color:#f4fbff}
.fun-brand-text small b{color:var(--fun-yellow)}
.fun-nav{display:flex;align-items:center;gap:10px}
.nav-pill,.nav-round{
  border:1px solid rgba(80,194,255,.32);
  background:rgba(0,30,63,.42);
  color:#fff;
  box-shadow:0 6px 16px rgba(0,0,0,.12);
  transition:.2s ease;
}
.nav-pill{
  min-height:46px;border-radius:24px;padding:0 18px;font-weight:900
}
.nav-round{width:46px;height:46px;border-radius:50%;font-size:20px}
.nav-pill:hover,.nav-round:hover{transform:translateY(-2px);background:#0a497f}
.fun-version{
  position:static!important;
  display:grid;place-items:center;
  min-width:74px;height:42px;padding:0 14px;
  color:var(--fun-navy)!important;
  background:var(--fun-yellow)!important;
  border:2px solid rgba(255,255,255,.28)!important;
  border-radius:22px!important;
  font-weight:950!important;
  box-shadow:0 5px 14px rgba(0,0,0,.13)
}

.fun-main{
  width:min(1400px,100%);
  margin:0 auto;
  padding:0 18px 36px;
}
.fun-hero{
  position:relative;
  margin:0 -18px;
  overflow:hidden;
  background:#44c9fa;
  border-bottom:0;
  box-shadow:0 15px 30px rgba(3,55,92,.12);
}
.fun-hero img{
  display:block;width:100%;height:auto;
  min-height:260px;object-fit:cover;object-position:center;
}
.fun-feature-deck{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:12px;
  margin:-4px 28px 20px;
  position:relative;
  z-index:5;
}
.fun-feature-card{
  min-height:124px;
  border:3px solid rgba(255,255,255,.92);
  border-radius:23px;
  padding:13px 8px 12px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  color:#092d54;
  box-shadow:0 10px 25px rgba(5,54,91,.14),inset 0 -4px 0 rgba(8,46,83,.05);
  text-align:center;
  transform:rotate(var(--tilt,0deg));
  transition:.2s ease;
}
button.fun-feature-card{font:inherit;cursor:pointer}
.fun-feature-card:hover{transform:translateY(-5px) rotate(0);box-shadow:0 16px 30px rgba(5,54,91,.19)}
.fun-feature-icon{font-size:34px;line-height:1;margin-bottom:7px}
.fun-feature-card strong{font-size:15px;font-weight:950}
.fun-feature-card small{font-size:11px;font-weight:750;margin-top:3px;color:#395d7e}
.blue-card{background:linear-gradient(180deg,#eef9ff,#fff);--tilt:-.5deg}
.aqua-card{background:linear-gradient(180deg,#eefcff,#f8ffff);--tilt:.5deg}
.moon-card{background:linear-gradient(180deg,#fff8dc,#fffdf5);--tilt:-.3deg}
.pink-card{background:linear-gradient(180deg,#fff0f5,#fff9fb);--tilt:.4deg}
.star-card{background:linear-gradient(180deg,#fff8e2,#fffdf7);--tilt:-.4deg}
.green-card{background:linear-gradient(180deg,#eafff2,#f8fffb);--tilt:.3deg}

.fun-dashboard{
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(330px,.95fr);
  gap:18px;
  align-items:stretch;
}
.v462 .search-panel,.v462 .live-crossings{
  margin:0;
  border:0;
}
.fun-search-card,.fun-live-card{
  background:rgba(255,255,255,.96);
  border-radius:30px!important;
  box-shadow:0 16px 40px rgba(5,54,91,.13)!important;
  overflow:hidden;
}
.fun-search-card{padding:24px 28px!important}
.fun-live-card{padding:24px!important}
.fun-panel-title,.fun-live-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:22px
}
.fun-title-left{display:flex;align-items:center;gap:12px}
.fun-step{
  width:40px;height:40px;border-radius:50%;display:grid;place-items:center;
  background:var(--fun-navy);color:#fff;font-size:20px;font-weight:950;
  box-shadow:0 5px 10px rgba(5,43,85,.15)
}
.fun-panel-title h2,.fun-live-head h2{
  margin:0;text-transform:uppercase;letter-spacing:.3px;color:#092d54;
  font-size:clamp(19px,2vw,27px);font-weight:950
}
.squiggle{display:block;color:#0b4f87;font-weight:950;letter-spacing:-7px;margin-top:-3px}
.postcard-stamp{
  transform:rotate(3deg);
  border:2px dashed #1a5787;
  padding:7px 10px;
  border-radius:5px;
  font-weight:950;
  font-size:12px;
  color:#164a79;
  background:#f9fdff;
}
.v462 .route-grid{grid-template-columns:1fr 60px 1fr;gap:12px}
.fun-field label{
  font-size:12px!important;font-weight:950!important;text-transform:uppercase!important;letter-spacing:.45px
}
.departure-field label{color:#fb416c!important}
.arrival-field label{color:#1484d6!important}
.date-field label{color:#745bd7!important}
.v462 .input-shell{
  border:2px solid #dbe7f0!important;
  border-radius:17px!important;
  min-height:60px!important;
  box-shadow:inset 0 2px 5px rgba(7,48,83,.025);
  background:#fff!important
}
.v462 select,.v462 input[type="date"]{font-weight:900!important;color:#0a3159!important}
.fun-swap{
  width:50px!important;height:50px!important;
  border-radius:50%!important;background:var(--fun-yellow)!important;
  color:#07355f!important;align-self:end;margin-bottom:5px;
  box-shadow:0 7px 15px rgba(255,193,0,.28)!important;
  font-size:24px!important
}
.v462 .date-search-grid{grid-template-columns:1fr 1.05fr;gap:16px;margin-top:15px}
.fun-primary{
  min-height:60px!important;border-radius:18px!important;
  background:linear-gradient(180deg,#ffd90b,#ffc900)!important;
  color:#082f58!important;font-size:17px!important;font-weight:1000!important;
  text-transform:uppercase;
  box-shadow:0 8px 0 #eab700,0 12px 20px rgba(242,186,0,.24)!important;
  border:0!important;transform:translateY(-3px)
}
.fun-primary:hover{transform:translateY(-5px)!important}
.fun-help{
  display:grid!important;
  grid-template-columns:auto 1fr auto;
  gap:10px!important;
  align-items:center!important;
  margin-top:22px!important;
  border-radius:17px!important;
  background:#eef8ff!important;
  border:0!important;
  font-size:12px!important
}
.help-island{font-size:32px}

.fun-live-head{margin-bottom:12px}
.live-badge{
  border-radius:18px;background:#ff416d;color:#fff;padding:8px 12px;
  font-size:12px;font-weight:950;box-shadow:0 6px 12px rgba(255,65,109,.2)
}
.fun-live-list{display:grid!important;gap:9px!important}
.v462 .live-card{
  border:0!important;border-radius:17px!important;padding:11px!important;
  background:linear-gradient(100deg,#fff4f8,#f8fbff)!important;
  box-shadow:0 4px 13px rgba(12,54,89,.08)!important
}
.v462 .live-card-top{gap:10px!important}
.v462 .live-ship-visual{
  width:76px!important;height:62px!important;border-radius:13px!important;flex:0 0 76px!important
}
.v462 .live-card-copy h3{font-size:15px!important;margin:0 0 2px!important}
.v462 .live-card-copy p{font-size:12px!important;margin:0!important}
.v462 .live-status{font-size:9px!important;margin-bottom:3px!important}
.v462 .live-times{font-size:10px!important;margin-top:7px!important}
.v462 .live-progress{margin-top:7px!important}
.v462 .live-progress small{font-size:9px!important}
.v462 .live-track{font-size:10px!important;margin-top:6px!important}
.all-crossings-button{
  width:100%;margin-top:14px;padding:10px 16px;border-radius:18px;
  background:#fff;border:2px solid #ff527b;color:#ed3560;
  text-transform:uppercase;font-size:11px;font-weight:950;letter-spacing:.4px
}
.all-crossings-button span{float:right;font-size:18px;line-height:12px}
.fun-live-card .live-estimate{
  display:block!important;
  background:transparent!important;border:0!important;
  font-size:9px!important;text-align:center!important;margin-top:7px!important;color:#7690a5!important
}
.fun-result-zone{margin-top:22px}
.fun-benefits{
  margin-top:22px;background:#fff;border-radius:28px;
  box-shadow:0 13px 30px rgba(5,54,91,.11);
  display:grid;grid-template-columns:repeat(5,1fr);
  padding:18px 16px;
}
.fun-benefits>div{
  display:flex;align-items:center;gap:10px;padding:4px 16px;
  border-right:1px solid #dfeaf1;min-width:0
}
.fun-benefits>div:last-child{border-right:0}
.fun-benefits>div>span{font-size:32px}
.fun-benefits p{margin:0;min-width:0}
.fun-benefits strong{
  display:block;text-transform:uppercase;font-size:12px;font-weight:950;color:#0a3159
}
.fun-benefits small{display:block;font-size:10px;color:#526d84;margin-top:3px;line-height:1.25}
.fun-footer{
  margin-top:auto;padding:18px;text-align:center;background:#062b55;color:#dceeff;
  font-size:12px;font-weight:700
}
.fun-footer span{margin-right:6px}

/* Result zone becomes slightly more playful without changing its markup. */
.v462 .boat-card{
  border-radius:26px!important;
  box-shadow:0 16px 35px rgba(5,54,91,.14)!important;
  border:2px solid rgba(255,211,10,.55)!important;
  overflow:hidden
}
.v462 .boat-content h2{font-weight:1000!important}
.v462 .trip-chip{border-radius:18px!important}
.v462 .warning,.v462 .loading,.v462 .multi-note{border-radius:24px!important}

/* Responsive */
@media (max-width:1050px){
  .fun-feature-deck{grid-template-columns:repeat(3,1fr);margin:14px 8px 20px}
  .fun-dashboard{grid-template-columns:1fr}
  .fun-live-card{order:2}
  .fun-benefits{grid-template-columns:repeat(2,1fr)}
  .fun-benefits>div{border-right:0;border-bottom:1px solid #e3edf3;padding:12px}
  .fun-benefits>div:last-child{border-bottom:0}
}
@media (max-width:760px){
  .fun-topbar{min-height:76px;padding:8px 12px}
  .fun-brand-badge{width:50px;height:50px;font-size:27px}
  .fun-brand-text strong{font-size:18px}
  .fun-brand-text small{font-size:10px}
  .nav-pill{width:44px;min-width:44px;padding:0;font-size:0}
  .nav-pill:first-letter{font-size:18px}
  .nav-pill span{display:none}
  .nav-round{display:none}
  .fun-version{min-width:58px;height:36px;font-size:11px!important}
  .fun-main{padding:0 10px 24px}
  .fun-hero{margin:0 -10px}
  .fun-hero img{height:265px;object-fit:cover;object-position:center}
  .fun-feature-deck{grid-template-columns:repeat(2,1fr);gap:8px;margin:10px 2px 16px}
  .fun-feature-card{min-height:105px;border-radius:19px}
  .fun-feature-icon{font-size:28px}
  .fun-search-card,.fun-live-card{border-radius:23px!important;padding:18px!important}
  .postcard-stamp{display:none}
  .v462 .route-grid{grid-template-columns:1fr 48px 1fr;gap:6px}
  .v462 .input-shell{min-height:56px!important}
  .v462 .date-search-grid{grid-template-columns:1fr}
  .fun-swap{width:42px!important;height:42px!important;font-size:20px!important;margin-bottom:7px}
  .fun-primary{transform:none!important;box-shadow:0 6px 0 #eab700!important}
  .fun-help{grid-template-columns:auto 1fr!important}
  .help-island{display:none}
  .mobile-hide{display:none}
  .fun-benefits{grid-template-columns:1fr}
}
@media (max-width:480px){
  .fun-brand-text small{display:none}
  .fun-feature-deck{grid-template-columns:repeat(2,1fr)}
  .v462 .route-grid{grid-template-columns:1fr}
  .fun-swap{justify-self:center;align-self:center;transform:rotate(90deg);margin:0}
  .fun-panel-title h2,.fun-live-head h2{font-size:19px}
}


/* =========================================================
   V4.62.1 · Lisibilité des traversées en cours
   - Nom du bateau : bleu foncé
   - Trajet / destinations : noir
   - Horaires et progression : contraste renforcé
   ========================================================= */

.v462 .fun-live-card,
.v462 .fun-live-card * {
  opacity: 1 !important;
}

.v462 .live-card-copy h3,
.v462 .live-card h3,
.v462 .live-ship-name,
.v462 .live-card-copy .ship-name {
  color: #062b55 !important;
  text-shadow: none !important;
  opacity: 1 !important;
  font-weight: 950 !important;
}

.v462 .live-card-copy p,
.v462 .live-card .route,
.v462 .live-route,
.v462 .live-card-copy .route {
  color: #111111 !important;
  text-shadow: none !important;
  opacity: 1 !important;
  font-weight: 800 !important;
}

.v462 .live-times,
.v462 .live-times span,
.v462 .live-time,
.v462 .live-card time {
  color: #2d3d4b !important;
  opacity: 1 !important;
  font-weight: 800 !important;
}

.v462 .live-progress small,
.v462 .live-card .progress-label,
.v462 .live-card small {
  color: #4b6172 !important;
  opacity: 1 !important;
}

.v462 .live-status,
.v462 .live-status * {
  opacity: 1 !important;
  font-weight: 950 !important;
}

.v462 .live-card {
  color: #111111 !important;
}

.v462 .live-card a:not(.live-track) {
  color: #062b55 !important;
}

.v462 .live-loading,
.v462 .live-empty,
.v462 .live-error {
  color: #062b55 !important;
  font-weight: 800 !important;
}


/* =========================================================
   V4.62.2 · Correctif mobile iPhone / smartphones
   ========================================================= */
@media (max-width: 760px) {
  html, body { overflow-x: hidden !important; }
  body.v462 { width:100%; max-width:100vw; }

  .fun-topbar{
    width:100%;
    min-height:70px;
    padding:8px 12px;
    gap:8px;
    box-sizing:border-box;
  }
  .fun-brand{gap:8px; flex:1 1 auto; min-width:0}
  .fun-brand-badge{width:44px;height:44px;min-width:44px;font-size:23px;border-width:2px}
  .fun-brand-text strong{
    font-size:17px;
    line-height:1.02;
    max-width:175px;
    white-space:normal;
  }
  .fun-brand-text small{display:none}
  .fun-nav{gap:6px;flex:0 0 auto}
  .nav-pill{
    width:38px;min-width:38px;height:38px;min-height:38px;
    padding:0;border-radius:50%;font-size:0;
    display:grid;place-items:center;
  }
  .nav-pill::first-letter{font-size:17px}
  .nav-round{display:none!important}
  .fun-version{
    min-width:58px!important;height:36px!important;
    padding:0 8px!important;font-size:10px!important;
  }

  .fun-main{width:100%;max-width:100%;padding:0 10px 22px;box-sizing:border-box}
  .fun-hero{
    margin:0 -10px;
    width:calc(100% + 20px);
    height:auto;
  }
  .fun-hero img{
    width:100%;
    height:auto!important;
    min-height:0!important;
    object-fit:contain!important;
    object-position:center!important;
  }

  .fun-feature-deck{
    width:100%;
    margin:12px 0 16px;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }
  .fun-feature-card{
    min-width:0;
    min-height:105px;
    padding:10px 6px;
    border-radius:18px;
    transform:none!important;
  }
  .fun-feature-icon{font-size:27px;margin-bottom:5px}
  .fun-feature-card strong{font-size:14px;line-height:1.1}
  .fun-feature-card small{font-size:10px;line-height:1.15}

  .fun-dashboard{display:block;width:100%;min-width:0}
  .fun-search-card,.fun-live-card{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    padding:17px 14px!important;
    border-radius:22px!important;
    overflow:hidden;
  }
  .fun-live-card{margin-top:16px!important}

  .fun-panel-title,.fun-live-head{margin-bottom:16px}
  .fun-title-left{gap:9px;min-width:0}
  .fun-step{width:36px;height:36px;min-width:36px;font-size:17px}
  .fun-panel-title h2,.fun-live-head h2{
    font-size:18px!important;
    line-height:1.1;
    overflow-wrap:anywhere;
  }
  .postcard-stamp{display:none}

  .v462 .route-grid{
    display:grid;
    grid-template-columns:1fr!important;
    gap:8px!important;
    width:100%;
  }
  .fun-field{width:100%;min-width:0}
  .v462 .input-shell{
    width:100%;
    min-width:0;
    min-height:56px!important;
    box-sizing:border-box;
  }
  .v462 select,.v462 input[type="date"]{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    font-size:16px!important;
  }
  .fun-swap{
    justify-self:center!important;
    align-self:center!important;
    width:42px!important;height:42px!important;
    margin:0!important;
    transform:rotate(90deg)!important;
  }
  .v462 .date-search-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
    width:100%;
  }
  .fun-primary{
    width:100%;
    min-height:58px!important;
    font-size:14px!important;
    transform:none!important;
  }
  .fun-help{
    width:100%;
    box-sizing:border-box;
    grid-template-columns:auto 1fr!important;
    font-size:10px!important;
    line-height:1.35;
    padding:11px!important;
  }
  .help-island{display:none!important}
  .mobile-hide{display:none!important}

  .fun-live-list{width:100%;min-width:0}
  .v462 .live-card{
    width:100%;
    min-width:0;
    box-sizing:border-box;
    padding:11px!important;
  }
  .v462 .live-card-top{align-items:flex-start!important;min-width:0}
  .v462 .live-ship-visual{width:70px!important;height:58px!important;flex:0 0 70px!important}
  .v462 .live-card-copy{min-width:0;overflow:hidden}
  .v462 .live-card-copy h3{
    font-size:14px!important;
    white-space:normal!important;
    overflow-wrap:anywhere;
  }
  .v462 .live-card-copy p{font-size:11px!important;white-space:normal!important}
  .v462 .live-times{font-size:10px!important}
  .v462 .live-progress{width:100%!important}
  .v462 .live-track{display:inline-flex!important;max-width:100%;box-sizing:border-box}

  .fun-result-zone{width:100%;min-width:0}
  .v462 .boat-card{width:100%;max-width:100%;box-sizing:border-box}
  .v462 .boat-content{min-width:0}
  .v462 .boat-content h2{overflow-wrap:anywhere}

  .fun-benefits{
    width:100%;
    box-sizing:border-box;
    grid-template-columns:1fr!important;
    border-radius:22px;
    padding:10px 14px;
  }
  .fun-benefits>div{
    width:100%;
    box-sizing:border-box;
    border-right:0!important;
    border-bottom:1px solid #e3edf3;
    padding:10px 4px;
  }
  .fun-benefits>div:last-child{border-bottom:0}

  .vessel-sheet{
    width:calc(100vw - 20px)!important;
    max-width:calc(100vw - 20px)!important;
    max-height:88vh!important;
    box-sizing:border-box;
  }
}

@media (max-width: 390px) {
  .fun-brand-text strong{font-size:15px;max-width:145px}
  .fun-brand-badge{width:40px;height:40px;min-width:40px}
  .fun-version{min-width:52px!important;padding:0 5px!important}
  .fun-feature-card strong{font-size:13px}
  .fun-feature-card small{font-size:9px}
}


/* =========================================================
   V4.62.3 · Résultats directement sous la recherche
   ========================================================= */
.fun-dashboard{
  align-items:start !important;
}
.fun-left-column{
  display:flex;
  flex-direction:column;
  gap:16px;
  min-width:0;
}
.fun-left-column .fun-result-zone{
  margin-top:0 !important;
  width:100%;
  min-width:0;
}

/* Le résultat apparaît comme une vraie carte de voyage, sans attendre
   la hauteur du panneau "Traversées en cours" situé à droite. */
.v462 .fun-result-zone:not(:empty){
  animation:resultPop .28s ease-out;
}
@keyframes resultPop{
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:translateY(0)}
}

.v462 .fun-result-zone .boat-card{
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%) !important;
  border:3px solid #ffd20a !important;
  border-radius:28px !important;
  box-shadow:0 15px 34px rgba(6,43,85,.14) !important;
}
.v462 .fun-result-zone .boat-card::before{
  content:"🎟️  TA TRAVERSÉE";
  display:inline-flex;
  margin:16px 18px 0;
  padding:7px 12px;
  border-radius:999px;
  background:#062b55;
  color:#fff;
  font-size:11px;
  font-weight:950;
  letter-spacing:.5px;
}
.v462 .fun-result-zone .boat-content{
  padding-top:10px !important;
}
.v462 .fun-result-zone .boat-content h2{
  color:#062b55 !important;
}
.v462 .fun-result-zone .weather-card,
.v462 .fun-result-zone .marine-block,
.v462 .fun-result-zone .trip-chip{
  border-radius:18px !important;
}
.v462 .fun-result-zone .warning,
.v462 .fun-result-zone .loading,
.v462 .fun-result-zone .multi-note{
  margin:0 !important;
  background:#fff !important;
  border:2px solid #ffd20a !important;
  box-shadow:0 10px 24px rgba(6,43,85,.1) !important;
}

/* Sur mobile, le résultat reste immédiatement sous le formulaire,
   puis les traversées en cours viennent ensuite. */
@media (max-width:1050px){
  .fun-left-column{gap:14px}
  .fun-live-card{margin-top:16px !important}
}
@media (max-width:760px){
  .fun-left-column{width:100%}
  .v462 .fun-result-zone .boat-card::before{
    margin:12px 12px 0;
    font-size:10px;
  }
}


/* =========================================================
   V4.62.4 · Résultats parfaitement contenus dans leur colonne
   ========================================================= */

/* Annule les anciennes marges globales de .result-zone qui élargissaient
   artificiellement la carte et la faisaient déborder vers la colonne LIVE. */
.v462 .fun-left-column .fun-result-zone{
  margin:0 !important;
  padding:0 !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
  overflow:visible !important;
}

/* Chaque résultat reste strictement dans la largeur disponible. */
.v462 .fun-result-zone .boat-card{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
  margin:0 0 14px 0 !important;
}

/* Le pseudo-élément original de .boat-card était positionné en absolu
   comme un trait vertical. On le transforme réellement en badge horizontal. */
.v462 .fun-result-zone .boat-card::before{
  position:static !important;
  left:auto !important;
  right:auto !important;
  top:auto !important;
  bottom:auto !important;
  width:auto !important;
  height:auto !important;
  min-width:0 !important;
  display:inline-flex !important;
  align-items:center !important;
  align-self:start !important;
  justify-self:start !important;
  margin:0 0 10px 0 !important;
  padding:7px 12px !important;
  border-radius:999px !important;
  background:#062b55 !important;
  color:#ffffff !important;
  line-height:1 !important;
  white-space:nowrap !important;
  z-index:auto !important;
}

/* La photo ne peut plus être recouverte par le badge. */
.v462 .fun-result-zone .boat-card > .boat-visual,
.v462 .fun-result-zone .boat-visual{
  position:relative !important;
  z-index:1 !important;
}

/* Le badge occupe une ligne complète en haut, puis la photo et le contenu
   reprennent la grille du résultat sur les lignes suivantes. */
@media (min-width:761px){
  .v462 .fun-result-zone .boat-card{
    grid-template-columns:170px minmax(0,1fr) !important;
    column-gap:20px !important;
    row-gap:0 !important;
  }
  .v462 .fun-result-zone .boat-card::before{
    grid-column:1 / -1 !important;
  }
}

/* Sécurise les deux colonnes afin qu'aucun enfant ne puisse dépasser. */
.v462 .fun-dashboard{
  grid-template-columns:minmax(0,1.6fr) minmax(330px,.95fr) !important;
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}
.v462 .fun-left-column,
.v462 .fun-live-card{
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}

/* Sur tablette/mobile, on conserve l'empilement naturel. */
@media (max-width:1050px){
  .v462 .fun-dashboard{
    grid-template-columns:1fr !important;
  }
}
@media (max-width:760px){
  .v462 .fun-result-zone .boat-card{
    grid-template-columns:1fr !important;
    padding:15px !important;
  }
  .v462 .fun-result-zone .boat-card::before{
    margin:0 0 10px 0 !important;
    white-space:normal !important;
  }
}
