/* ==========================================================================
   L'étrange histoire de l'aquaponey — feuille de style
   Mobile-first, palette inspirée de la couverture (marine / eau / arc-en-ciel)
   ========================================================================== */

:root {
  --navy: #123c5e;
  --navy-deep: #0c2b45;
  --pool: #29b6d8;
  --pool-light: #e3f6fb;
  --sand: #f7f9fb;
  --ink: #21313f;
  --muted: #5b6d7c;
  --gold: #f5c518;
  --white: #ffffff;
  --rainbow: linear-gradient(90deg, #e63946, #f77f00, #f5c518, #43aa8b, #277da1, #9d4edd);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(12, 43, 69, .12);
  --font-title: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--pool); }
a:hover { color: var(--navy); }

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--navy-deep); color: #fff; }

.btn-ghost {
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn-small { padding: .45rem 1rem; font-size: .9rem; }
.btn-alert {
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
  white-space: nowrap;
}
.btn-alert:hover { color: var(--navy-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 60, 94, .96);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid transparent;
  border-image: var(--rainbow) 1;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .55rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-text {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}
.brand-text small {
  font-size: .62rem;
  letter-spacing: .35em;
  color: var(--pool);
}

.site-nav ul {
  display: flex;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--gold); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: .4rem;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(41, 182, 216, .25), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  overflow: hidden;
  padding: 3.5rem 0 6.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(245, 197, 24, .45);
  border-radius: 999px;
  padding: .35rem .9rem;
  margin: 0 0 1.2rem;
}

.hero h1 {
  font-family: var(--font-title);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.02;
  margin: 0 0 .4rem;
  letter-spacing: .01em;
}
.hero h1 .accent {
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.25rem, 3.4vw, 1.7rem);
  color: var(--pool);
  margin: 0 0 1.4rem;
}

.hero-lead {
  font-size: 1.08rem;
  color: #d8e6f0;
  max-width: 34rem;
  margin: 0 0 1.8rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-bottom: 2.2rem;
}
.hero-ctas .btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.hero-ctas .btn-ghost:hover { border-color: var(--gold); }

.countdown {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .7rem;
}
.count-item {
  min-width: 72px;
  text-align: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  padding: .55rem .6rem .5rem;
}
.count-item span {
  display: block;
  font-family: var(--font-title);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}
.count-item small {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #a9c4d8;
}
.count-label {
  width: 100%;
  margin: .3rem 0 0;
  font-size: .85rem;
  color: #a9c4d8;
  font-style: italic;
}

.hero-cover {
  justify-self: center;
  max-width: 340px;
  position: relative;
  z-index: 2;
}
.hero-cover img {
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  transform: rotate(2.5deg);
  transition: transform .3s ease;
}
.hero-cover img:hover { transform: rotate(0deg) scale(1.02); }

/* vaguelettes bas de hero */
.water {
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 90px;
  background:
    radial-gradient(60px 26px at 30px 26px, var(--pool) 98%, transparent) repeat-x,
    radial-gradient(60px 26px at 90px 26px, var(--white) 98%, transparent) repeat-x;
  background-size: 120px 90px, 120px 90px;
  background-position: 0 100%, 60px calc(100% + 14px);
  opacity: .97;
}

/* ---------- Bandeau canular ---------- */
.strip {
  background: var(--pool-light);
  border-block: 1px solid #cceef7;
  padding: 1.6rem 0;
}
.strip p {
  margin: 0;
  max-width: 60rem;
  font-size: 1.05rem;
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--sand); }

.section-head {
  max-width: 44rem;
  margin-bottom: 2.6rem;
}
.section-head h2 {
  font-family: var(--font-title);
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 .5rem;
  position: relative;
  padding-bottom: .7rem;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 90px;
  height: 4px;
  border-radius: 2px;
  background: var(--rainbow);
}
.section-head p { color: var(--muted); margin: 0; font-size: 1.1rem; }

.two-col {
  display: grid;
  gap: 2.5rem;
}

.prose p { margin: 0 0 1.1rem; }
.prose h2 {
  font-family: var(--font-title);
  text-transform: uppercase;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 1rem;
}

/* ---------- Feature list ---------- */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.feature-list li {
  display: flex;
  gap: .9rem;
  background: var(--white);
  border: 1px solid #e3ecf2;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: 0 3px 12px rgba(12, 43, 69, .05);
}
.feature-list li > span { font-size: 1.5rem; line-height: 1.2; }
.feature-list h3 {
  margin: 0 0 .2rem;
  font-size: 1.02rem;
  color: var(--navy);
}
.feature-list p { margin: 0; font-size: .93rem; color: var(--muted); }

/* ---------- Stats ---------- */
.stats {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.stat {
  text-align: center;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.3rem .8rem;
}
.stat strong {
  display: block;
  font-family: var(--font-title);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
}
.stat span { font-size: .85rem; color: #c4d7e6; }

/* ---------- Citation ---------- */
.quote-band {
  background: linear-gradient(90deg, var(--pool) 0%, #1a8fb0 100%);
  padding: 3rem 0;
}
.quote-band blockquote {
  margin: 0;
  color: #fff;
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
  text-align: center;
  max-width: 52rem;
  margin-inline: auto;
}

/* ---------- Accordéon sommaire ---------- */
.accordion { display: grid; gap: .8rem; max-width: 56rem; }

.accordion details {
  background: var(--white);
  border: 1px solid #e3ecf2;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(12, 43, 69, .04);
}
.accordion summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.2rem;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion .num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--pool-light);
  color: var(--pool);
  font-size: 1rem;
  font-weight: 800;
}
.accordion .chev {
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .25s ease;
}
.accordion details[open] .chev { transform: rotate(225deg); }
.accordion details p {
  margin: 0;
  padding: 0 1.2rem 1.2rem 4.4rem;
  color: var(--muted);
}
.accordion details[open] summary { border-bottom: 1px dashed #e3ecf2; margin-bottom: .8rem; }

/* ---------- Cartes auteurs ---------- */
.cards {
  display: grid;
  gap: 1.6rem;
}
.card {
  background: var(--white);
  border: 1px solid #e3ecf2;
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-5px); }
.card img {
  width: 128px;
  height: 148px;
  object-fit: cover;
  border-radius: 50% / 44%;
  margin: 0 auto 1rem;
  border: 4px solid var(--pool-light);
}
.card h3 {
  font-family: var(--font-title);
  font-size: 1.45rem;
  margin: 0;
  color: var(--navy);
  text-transform: uppercase;
}
.card .role {
  color: var(--pool);
  font-weight: 600;
  font-size: .92rem;
  margin: .15rem 0 .8rem;
}
.card p { font-size: .95rem; color: var(--muted); }
.card a { font-weight: 600; text-decoration: none; }

/* ---------- Contributeurs ---------- */
.contributors { margin-top: 3.2rem; }
.contributors h3 {
  font-family: var(--font-title);
  text-transform: uppercase;
  font-size: 1.5rem;
  color: var(--navy);
  margin: 0 0 1.2rem;
}
.chips {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.chips li {
  background: var(--pool-light);
  border: 1px solid #cceef7;
  color: var(--navy);
  border-radius: 999px;
  padding: .35rem .9rem;
  font-size: .88rem;
  font-weight: 600;
}
.chips small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: .74rem;
}
.muted { color: var(--muted); font-size: .92rem; }

/* ---------- Agenda ---------- */
.events {
  list-style: none;
  margin: 0 0 2.4rem;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: 56rem;
}
.event {
  display: flex;
  gap: 1.2rem;
  background: var(--white);
  border: 1px solid #e3ecf2;
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  box-shadow: 0 2px 8px rgba(12, 43, 69, .04);
}
.event-date {
  flex: 0 0 86px;
  text-align: center;
  align-self: center;
  border-right: 3px solid;
  border-image: var(--rainbow) 1;
  padding-right: 1rem;
}
.event-date strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}
.event-date span { font-size: .8rem; color: var(--muted); }
.event-body h3 { margin: 0 0 .25rem; font-size: 1.08rem; color: var(--navy); }
.event-body h3 a { color: inherit; text-decoration: none; border-bottom: 2px solid var(--pool); }
.event-body p { margin: 0; font-size: .95rem; color: var(--muted); }

.center { text-align: center; }
.center .btn { margin-left: .6rem; }

/* ---------- Fiche / specs ---------- */
.specs {
  display: grid;
  gap: .6rem;
  margin: 0 0 2.2rem;
  max-width: 46rem;
}
.specs > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  padding: .75rem 1rem;
  background: var(--sand);
  border-radius: 10px;
}
.specs dt { font-weight: 700; color: var(--navy); }
.specs dd { margin: 0; color: var(--muted); }

/* ---------- Revendeurs ---------- */
.ean-band {
  display: grid;
  gap: 1rem;
  margin: 0 0 2rem;
}
.ean-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1.1rem;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  border-left: 6px solid var(--gold);
  box-shadow: var(--shadow);
}
.ean-label {
  color: #c4d7e6;
  font-size: .92rem;
  font-weight: 600;
  flex: 1 1 12rem;
}
.ean-code {
  font-family: var(--font-title);
  font-size: clamp(1.25rem, 3.5vw, 1.7rem);
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--gold);
  white-space: nowrap;
}
.ean-copy {
  border: 1px solid rgba(255, 255, 255, .4);
  background: transparent;
  color: #fff;
  font: 600 .82rem var(--font-body);
  border-radius: 999px;
  padding: .35rem 1rem;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.ean-copy:hover { border-color: var(--gold); color: var(--gold); }
.ean-copy.copied {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
}
.ean-strong {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .05em;
  color: var(--navy);
}

.sellers {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.seller {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .15rem;
  height: 100%;
  background: var(--white);
  border: 1px solid #e3ecf2;
  border-radius: var(--radius);
  padding: 1.7rem 1.1rem 1.5rem;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(12, 43, 69, .06);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.seller::before {
  content: attr(data-initial);
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  margin-bottom: .8rem;
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 800;
  background: var(--pool-light);
  color: var(--navy);
}
.sellers li:nth-child(6n+2) .seller::before { background: #e63946; color: #fff; }
.sellers li:nth-child(6n+3) .seller::before { background: #f77f00; color: #fff; }
.sellers li:nth-child(6n+4) .seller::before { background: #f5c518; color: var(--navy-deep); }
.sellers li:nth-child(6n+5) .seller::before { background: #43aa8b; color: #fff; }
.sellers li:nth-child(6n) .seller::before { background: #277da1; color: #fff; }
.sellers li:nth-child(6n+1) .seller::before { background: #9d4edd; color: #fff; }
.seller:hover {
  transform: translateY(-5px);
  border-color: var(--pool);
  box-shadow: var(--shadow);
}
.seller strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.15;
}
.seller span { font-size: .85rem; color: var(--muted); }
.seller-featured {
  background: var(--navy);
  border-color: var(--navy);
}
.sellers li:first-child .seller-featured::before { background: var(--gold); color: var(--navy-deep); }
.seller-featured strong { color: var(--gold); }
.seller-featured span { color: #c4d7e6; }
.seller-featured:hover { border-color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #b9cddd;
  padding: 3rem 0 1.5rem;
  border-top: 4px solid transparent;
  border-image: var(--rainbow) 1;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer-title {
  font-family: var(--font-title);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  margin: 0 0 .6rem;
}
.site-footer p { margin: 0 0 .4rem; font-size: .95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: var(--pool); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 1.3rem;
  font-size: .85rem;
  color: #7e97ab;
}

/* ---------- Animations reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Desktop ≥ 760px
   ========================================================================== */
@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .hero-cover { max-width: 400px; }
  .two-col { grid-template-columns: 1.05fr .95fr; align-items: start; }
  .feature-list { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .ean-band { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr; }
}

/* ==========================================================================
   Mobile ≤ 900px : menu burger
   ========================================================================== */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    box-shadow: 0 18px 30px rgba(0, 0, 0, .35);
  }
  .site-nav.open { max-height: 22rem; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: .6rem 1.4rem 1.2rem;
  }
  .site-nav a {
    display: block;
    padding: .8rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .btn-alert { display: none; }
  .hero { padding-top: 2.4rem; }
  .hero-cover { order: -1; max-width: 240px; }
  .accordion details p { padding-left: 1.2rem; }
  .specs > div { grid-template-columns: 1fr; gap: .1rem; }
  .center .btn { display: block; margin: .8rem auto 0; max-width: 20rem; }
}
