/* Pêche au Portugal — feuille de style unique du site */

:root {
  --navy: #14334a;
  --navy-2: #1b4560;
  --teal: #1f6f8b;
  --teal-light: #eaf2f6;
  --cream: #f6f1e7;
  --orange: #e07b1f;
  --text: #1d2a33;
  --muted: #5d6b75;
  --line: #d5dde2;
  --bg: #fbfcfd;
  --card: #ffffff;
  --radius: 12px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --teal-light: #16303d;
    --cream: #2a2620;
    --text: #e3e9ee;
    --muted: #9aa8b2;
    --line: #2d3c47;
    --bg: #0f1a22;
    --card: #15232d;
    --teal: #5fb3cf;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--teal); }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- En-tête ---------- */

.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 96px; }
.hero h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.1; }
.hero .lieu { margin: 6px 0 14px; font-size: clamp(1.2rem, 3vw, 1.6rem); }
.hero .resume { margin: 0; color: #cfe0ea; max-width: 34em; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fish {
  position: absolute; right: max(16px, calc((100% - var(--max)) / 2 + 16px));
  bottom: 22px; width: clamp(120px, 22vw, 230px); z-index: 1;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--navy-2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.nav ul {
  display: flex; gap: 4px; margin: 0 auto; padding: 0 16px;
  max-width: var(--max); list-style: none;
  overflow-x: auto; scrollbar-width: none;
}
.nav ul::-webkit-scrollbar { display: none; }
.nav a {
  display: block; padding: 14px 12px; white-space: nowrap;
  color: #e3eef4; text-decoration: none; font-weight: 600; font-size: .95rem;
}
.nav a:hover, .nav a:focus-visible { color: #fff; background: rgba(255, 255, 255, .1); }

/* ---------- Sections ---------- */

main section { padding: 40px 0 8px; }
h2 {
  margin: 0 0 16px; color: var(--navy); font-size: 1.6rem;
  padding-bottom: 6px; border-bottom: 3px solid var(--orange); display: inline-block;
}
h3 { margin: 32px 0 2px; color: var(--navy); font-size: 1.2rem; }
.sous-titre { margin: 0 0 12px; color: var(--muted); font-style: italic; }
.note { color: var(--muted); font-size: .9rem; }
@media (prefers-color-scheme: dark) { h2, h3 { color: #cfe3ee; } }

.encart {
  background: var(--cream); border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px; margin: 32px 0 0;
}
.encart p { margin: 0 0 6px; }
.encart p:last-child { margin: 0; }

ul.liste { padding-left: 1.2em; }
ul.liste li { margin: 4px 0; }

/* ---------- Tableau cannes ---------- */

.tableau { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.tableau th, .tableau td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tableau th[scope="row"] { white-space: nowrap; }
.tableau thead th { background: var(--teal); color: #fff; font-size: .9rem; }
@media (prefers-color-scheme: dark) { .tableau thead th { background: #1f6f8b; } }
.tableau tbody tr:nth-child(even) { background: var(--teal-light); }

@media (max-width: 640px) {
  .tableau thead { display: none; }
  .tableau, .tableau tbody, .tableau tr, .tableau th, .tableau td { display: block; width: 100%; }
  .tableau tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .tableau th, .tableau td { border: 0; padding: 2px 14px; }
  .tableau td:last-child { color: var(--muted); }
}

/* ---------- Cartes leurres ---------- */

.leurres {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
@media (max-width: 520px) {
  .leurres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .leurre .corps { padding: 10px; }
  .leurre h4 { font-size: .92rem; }
  .leurre .coloris, .leurre .acheter { font-size: .84rem; }
}
.leurre {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.leurre .photos {
  display: flex; background: #fff; aspect-ratio: 4 / 3; padding: 10px;
}
.leurre .photos img { flex: 1; min-width: 0; height: 100%; object-fit: contain; }
.leurre .corps { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.leurre h4 { margin: 0; font-size: 1rem; }
.leurre .coloris { margin: 0; color: var(--muted); font-size: .92rem; flex: 1; }
.leurre .acheter { margin: 4px 0 0; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px; }
.leurre .acheter a {
  text-decoration: none; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--teal); font-weight: 600;
}
.leurre .acheter a:hover { background: var(--teal); color: #fff; }

/* ---------- Pied de page ---------- */

footer { margin-top: 48px; padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

/* ---------- Impression ---------- */

@media print {
  .nav { display: none; }
  .hero .wrap { padding-top: 24px; padding-bottom: 60px; }
  .hero, .tableau thead th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  main section { padding-top: 16px; }
  .leurres { grid-template-columns: repeat(3, 1fr); }
  .leurre, h3 { break-inside: avoid; }
  .leurre .acheter a { border: 0; padding: 0; }
}
