/* ParaHost rejoint LunaticHost : page d'annonce et compte à rebours */

/* Polices du site ParaHost, si le dossier assets/fonts est à côté ; sinon, polices du système */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("../assets/fonts/figtree-latin.woff2") format("woff2");
}

:root {
  --ink: #10302e;
  --ink-2: #2f4a47;
  --sand: #f5ecdc;
  --accent: #c8432c;
  --accent-hover: #ad3522;
  --card: rgba(255, 250, 240, .74);
  --line: rgba(16, 48, 46, .16);
  --display: "Bricolage Grotesque", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --text: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 16px/1.6 var(--text);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}
h1, h2, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- mise en page : ciel du coucher de soleil, contenu, scène, pied de page ---------- */
.page {
  min-height: 100svh;
  display: flex; flex-direction: column;
  background: linear-gradient(#d99a9b 0%, #e3a3a0 18%, #f0b493 48%, #f8c88d 72%, #fddc9b 100%);
}

.brands {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px;
  padding: clamp(18px, 4vh, 44px) 20px 0;
  font: 600 1.35rem/1 var(--display); letter-spacing: -0.02em;
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-partner { padding: 6px 14px; border-radius: 999px; background: var(--ink); color: #f5ecdc; }
.brand-partner:hover { background: #1d4744; }
.joins { font: 500 15px/1 var(--text); letter-spacing: 0; color: var(--ink-2); }

.hero {
  flex: 1 0 auto;
  width: min(100% - 40px, 820px);
  margin: 0 auto;
  padding: clamp(18px, 4vh, 48px) 0 clamp(14px, 3vh, 32px);
  display: grid; justify-items: center; gap: clamp(12px, 2.2vh, 22px);
  text-align: center;
}
h1 {
  font: 500 min(clamp(2.1rem, 1.2rem + 3.6vw, 3.8rem), 8svh)/1.04 var(--display);
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 16ch;
}
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 54ch; text-wrap: pretty; }

/* ---------- compte à rebours ---------- */
.countdown { display: grid; justify-items: center; gap: 10px; margin-top: 4px; }
.countdown-title { font: 500 1.15rem/1.3 var(--display); }
.timer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 2vw, 16px); }
.unit {
  min-width: clamp(70px, 18vw, 128px);
  padding: clamp(10px, 1.8vh, 16px) clamp(6px, 1.5vw, 14px);
  display: grid; gap: 4px; justify-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 10px 30px -18px rgba(60, 30, 20, .5);
}
.num {
  font: 500 min(clamp(2rem, 1.3rem + 3vw, 3.6rem), 7svh)/1 var(--display);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.label { font-size: 14px; color: var(--ink-2); }
.when { font-size: 15px; color: var(--ink-2); }
.when time { font-weight: 500; color: var(--ink); }
.countdown.is-open .num { color: var(--accent); }

/* ---------- boutons ---------- */
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 500 16px/1 var(--text); text-decoration: none;
  transition: transform 150ms var(--ease), background-color 150ms var(--ease), border-color 150ms var(--ease);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-quiet { background: rgba(255, 250, 240, .8); border-color: rgba(16, 48, 46, .2); }
.btn:active { transform: translateY(1px) scale(.985); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-quiet:hover { background: #fffaf0; border-color: var(--ink); }
}

/* ---------- scène ---------- */
.scene { position: relative; height: clamp(170px, 30svh, 380px); overflow: hidden; flex: none; }
/* la scène garde toute sa hauteur (le sommet et le mât restent visibles) ;
   la mer et les collines débordent du dessin pour remplir les grands écrans */
.scene svg {
  position: absolute; bottom: 0; left: 50%;
  height: 100%; width: auto; aspect-ratio: 1600 / 420; max-width: none;
  transform: translateX(-50%); overflow: visible; display: block;
}
/* téléphones : scène un peu plus basse, pour voir à la fois le soleil et le mât du Morne */
@media (max-width: 700px) { .scene { height: 190px; } }
@media (max-width: 360px) { .scene { height: 170px; } }
.ship { transition: transform 1s linear; }

.sun-glow { animation: glow 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes glow { 50% { opacity: .75; transform: scale(.96); } }
.mast-light { animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.wave { opacity: 0; animation: wave 2.4s ease-out infinite; }
.w2 { animation-delay: .4s; }
.w3 { animation-delay: .8s; }
@keyframes wave { 25% { opacity: .9; } 100% { opacity: 0; } }
.ripples { animation: ripple 3.2s ease-in-out infinite; }
@keyframes ripple { 50% { transform: translateX(14px); opacity: .25; } }
.ship-bob { animation: bob 4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes bob { 50% { transform: translateY(-2px) rotate(-.6deg); } }
.leds circle { animation: blink 1.2s steps(1) infinite; }
.leds circle:nth-child(3n + 2) { animation-duration: 1.7s; animation-delay: -.5s; }
.leds circle:nth-child(3n) { animation-duration: 2.3s; animation-delay: -1.1s; }
.palm g { animation: sway 3.6s ease-in-out infinite; transform-box: view-box; transform-origin: 1477px 234px; }
@keyframes sway { 50% { transform: rotate(1.6deg); } }

/* ---------- pied de page ---------- */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 20px max(20px, calc((100% - 1160px) / 2));
  background: var(--sand);
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2);
}
.foot a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- petits écrans ---------- */
@media (max-width: 520px) {
  .unit { min-width: 0; padding: 12px 4px; border-radius: 14px; }
  .label { font-size: 12px; }
  .actions { width: 100%; }
  .btn { flex: 1 1 100%; }
  .foot { justify-content: center; text-align: center; }
}

/* ---------- mouvement réduit : tout au repos ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .wave { opacity: .6; }
}
