/* Wingfoil Occitanie - test site (EagleEye Prod) */
:root {
  --deep: #062a3d;
  --sea: #0b4f6c;
  --lagoon: #19a7b5;
  --foam: #e9f7f8;
  --sand: #f6efe3;
  --sun: #ff8a3d;
  --ink: #10222e;
  --muted: #5b6f7c;
  --ok: #1fa971;
  --light: #8cc63f;
  --strong: #f2a516;
  --wild: #e2553d;
  --calm: #9aa9b3;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(6, 42, 61, .12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; color: var(--ink); background: #fff; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--sea); }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
section { padding: 5rem 0; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--lagoon); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.015em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin: .4rem 0 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 44rem; }

/* Top bar */
.top { position: fixed; inset: 0 0 auto 0; z-index: 1000; display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.25rem; color: #fff; transition: background .3s, box-shadow .3s; }
.top.solid { background: rgba(6, 42, 61, .92); backdrop-filter: blur(8px); box-shadow: 0 2px 16px rgba(0,0,0,.2); }
.brand { font-weight: 800; letter-spacing: .02em; color: #fff; text-decoration: none; font-size: 1.1rem; }
.brand span { color: var(--sun); }
.top nav a { color: #fff; text-decoration: none; margin-left: 1.2rem; font-weight: 600; font-size: .95rem; opacity: .9; }
.top nav a:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 760px) { .top nav a:not(.cta-mini) { display: none; } }
.cta-mini { background: var(--sun); padding: .45rem .9rem; border-radius: 99px; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; color: #fff; background: var(--deep) url("../img/hero.jpg") center 40% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,42,61,.35) 0%, rgba(6,42,61,0) 35%, rgba(6,42,61,.75) 100%); }
.hero .wrap { position: relative; padding-bottom: 6rem; width: 100%; }
.badge { display: inline-block; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); padding: .3rem .85rem; border-radius: 99px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.8rem, 8vw, 6rem); margin: 1rem 0 .8rem; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.hero p { font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 38rem; opacity: .95; }
.btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.btn { display: inline-block; padding: .9rem 1.5rem; border-radius: 99px; font-weight: 700; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-sun { background: var(--sun); color: #fff; box-shadow: 0 8px 24px rgba(255,138,61,.45); }
.btn-ghost { border: 2px solid rgba(255,255,255,.8); color: #fff; }
.live-strip { position: relative; margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.live-chip { background: rgba(6,42,61,.55); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); border-radius: 12px; padding: .5rem .8rem; font-size: .9rem; }
.live-chip b { font-size: 1.05rem; }
.dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--ok); margin-right: .35rem; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31,169,113,.7); } 70% { box-shadow: 0 0 0 10px rgba(31,169,113,0); } 100% { box-shadow: 0 0 0 0 rgba(31,169,113,0); } }

/* Intro */
.intro { background: var(--sand); }
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }
.intro-photos { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.intro-photos img { border-radius: var(--radius); box-shadow: var(--shadow); height: 100%; object-fit: cover; }
.intro-photos img:first-child { grid-row: span 2; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.fact { background: #fff; border-radius: 14px; padding: 1rem; box-shadow: var(--shadow); }
.fact b { display: block; font-size: 1.35rem; color: var(--sea); }
.fact span { font-size: .9rem; color: var(--muted); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* Live wind */
.live { background: linear-gradient(180deg, var(--foam), #fff); }
.live-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.updated { color: var(--muted); font-size: .9rem; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.legend i { display: inline-block; width: .75rem; height: .75rem; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.btn-refresh { border: 2px solid var(--sea); background: #fff; color: var(--sea); padding: .5rem 1rem; border-radius: 99px; font-weight: 700; cursor: pointer; }
.btn-refresh:hover { background: var(--sea); color: #fff; }
#map { height: 440px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 2rem; z-index: 1; }
.spots { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1.4rem; }
.spot { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.spot-img { position: relative; height: 190px; background: var(--sea) center / cover no-repeat; }
.spot-img .type { position: absolute; top: .8rem; left: .8rem; background: rgba(255,255,255,.92); color: var(--ink); font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 99px; text-transform: uppercase; letter-spacing: .06em; }
.spot-img .verdict { position: absolute; bottom: .8rem; left: .8rem; color: #fff; font-weight: 800; font-size: .85rem; padding: .3rem .75rem; border-radius: 99px; background: var(--calm); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.spot-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.spot h3 { font-size: 1.25rem; }
.spot .town { color: var(--muted); font-size: .88rem; margin-top: -.5rem; }
.spot .desc { font-size: .93rem; color: #33464f; }
.wind-row { display: flex; align-items: center; gap: 1rem; }
.arrow { width: 54px; height: 54px; flex: none; border-radius: 50%; background: var(--foam); display: grid; place-items: center; }
.arrow svg { width: 30px; height: 30px; transition: transform .6s ease; }
.wind-main b { font-size: 2rem; line-height: 1; }
.wind-main small { color: var(--muted); font-size: .85rem; }
.wind-sub { font-size: .85rem; color: var(--muted); }
.source { font-size: .78rem; color: var(--muted); border-top: 1px dashed #d5e2e8; padding-top: .55rem; }
.source .beacon-live { color: var(--ok); font-weight: 700; }
.source .beacon-off { color: var(--wild); font-weight: 700; }
.warn { font-size: .82rem; background: #fff4e6; color: #8a4b00; border-radius: 10px; padding: .45rem .7rem; }
.forecast { display: flex; align-items: flex-end; gap: 3px; height: 54px; }
.forecast div { flex: 1; border-radius: 3px 3px 0 0; background: var(--calm); min-height: 3px; position: relative; }
.forecast-labels { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); margin-top: .3rem; }
.c-calm { background: var(--calm) !important; } .c-light { background: var(--light) !important; } .c-ok { background: var(--ok) !important; } .c-strong { background: var(--strong) !important; } .c-wild { background: var(--wild) !important; }
.note { font-size: .82rem; color: var(--muted); margin-top: 1.5rem; }

/* Parallax band */
.band { position: relative; min-height: 70vh; display: flex; align-items: center; color: #fff; background: var(--deep) url("../img/turquoise.jpg") center / cover fixed no-repeat; }
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,42,61,.75), rgba(6,42,61,.15)); }
.band .wrap { position: relative; }
.band h2 { max-width: 34rem; }
.band p { max-width: 32rem; font-size: 1.1rem; opacity: .95; }
@media (hover: none) { .band { background-attachment: scroll; } }

/* Winds explainer */
.winds-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
@media (max-width: 760px) { .winds-grid { grid-template-columns: 1fr; } }
.wind-card { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.wind-card img { height: 240px; width: 100%; object-fit: cover; }
.wind-card div { padding: 1.3rem 1.4rem 1.5rem; }
.wind-card h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.wind-card .tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: .2rem .6rem; border-radius: 99px; background: var(--foam); color: var(--sea); margin: 0 .3rem .6rem 0; }

/* Gear */
.gear { background: var(--deep); color: #eaf5f8; }
.gear .lead { color: #b9d3dd; }
.gear-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.gear-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.4rem; }
.gear-card .icon { font-size: 2rem; }
.gear-card h3 { margin: .5rem 0 .4rem; color: #fff; }
.gear-card p { font-size: .93rem; color: #b9d3dd; }
table { width: 100%; border-collapse: collapse; margin-top: 2rem; font-size: .95rem; background: rgba(255,255,255,.04); border-radius: 14px; overflow: hidden; }
th, td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,.1); }
th { background: rgba(255,255,255,.08); color: #fff; }
.small { font-size: .82rem; color: #9fbcc8; margin-top: .8rem; }

/* Gallery */
.gallery { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: .8rem; margin-top: 2rem; }
.gallery button { border: 0; padding: 0; cursor: zoom-in; border-radius: 14px; overflow: hidden; background: var(--foam); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery button:hover img { transform: scale(1.06); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; } }
dialog { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; margin: auto; }
dialog::backdrop { background: rgba(3, 18, 27, .9); }
dialog img { max-width: 94vw; max-height: 86vh; border-radius: 10px; }
dialog p { color: #dfeef3; font-size: .85rem; text-align: center; margin-top: .5rem; }

/* Safety */
.safety { background: var(--sand); }
.safety-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin-top: 2rem; }
.safety-item { background: #fff; border-radius: 14px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.safety-item b { display: block; margin-bottom: .3rem; color: var(--sea); }

/* Final */
.final { position: relative; color: #fff; text-align: center; background: var(--deep) url("../img/sunset.jpg") center / cover no-repeat; padding: 8rem 0; }
.final::before { content: ""; position: absolute; inset: 0; background: rgba(6,42,61,.45); }
.final .wrap { position: relative; }
.final h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }

footer { background: #03141d; color: #9fb4bf; font-size: .85rem; padding: 3rem 0; }
footer h3 { color: #fff; font-size: 1rem; margin: 1.5rem 0 .6rem; }
footer a { color: #cfe6ee; }
footer ul { list-style: none; columns: 2 22rem; column-gap: 2rem; }
footer li { margin-bottom: .35rem; break-inside: avoid; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .dot { animation: none; } }

/* Placeholder content (test page) */
.fake { display: inline-block; background: #fde8e4; color: #a23a26; border: 1px dashed #e2553d; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 6px; margin-bottom: .6rem; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.3rem; margin-top: 2rem; }
.pcard { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.pcard img { height: 180px; width: 100%; object-fit: cover; }
.pcard div { padding: 1.2rem 1.3rem 1.4rem; }
.pcard h3 { margin-bottom: .3rem; }
.pcard .meta { color: var(--muted); font-size: .88rem; margin-bottom: .6rem; }
.pcard ul { padding-left: 1.1rem; font-size: .92rem; color: #33464f; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.quote { background: var(--foam); border-radius: var(--radius); padding: 1.4rem; }
.quote p { font-size: 1.02rem; font-style: italic; }
.quote cite { display: block; margin-top: .8rem; font-style: normal; font-weight: 700; color: var(--sea); font-size: .9rem; }
.agenda { margin-top: 2rem; display: grid; gap: .8rem; }
.event { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; align-items: center; background: #fff; border-radius: 14px; padding: 1rem 1.2rem; box-shadow: var(--shadow); }
.event .date { text-align: center; color: var(--sun); font-weight: 800; line-height: 1.1; }
.event .date b { display: block; font-size: 1.8rem; color: var(--sea); }
.stays { background: var(--foam); }
