/* Site public — École de plongée Aquanemo.
   Reprend l'identité du site d'origine : marine #0C3C60, bleu #39729B, bleu ciel #6EA4CA,
   bouton rouge #FF4040, bouton jaune #F6F604, Open Sans. Un seul fichier, sans framework. */
:root {
  --navy: #0c3c60; --navy-90: rgba(12, 60, 96, .9); --blue: #39729b; --sky: #6ea4ca; --sky-soft: rgba(110, 164, 202, .45);
  --cyan: #1eabc7; --yellow: #f6f604; --red: #ff4040; --ink: #12283a; --muted: #5b7186; --line: #d5e2ec;
  --paper: #ffffff; --wash: #eef4f8; --ok: #1f8a4c; --warn: #b7791f; --bad: #c0392b;
  --radius: 6px; --shadow: 0 6px 18px rgba(6, 30, 50, .22); --wrap: 1140px;
  --font: "Open Sans", "Segoe UI", Arial, sans-serif; --font-cta: "Poppins", "Open Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: #fff; background: var(--blue);
  background-image: linear-gradient(180deg, #2f6890 0%, #39729b 30%, #4b86b0 100%); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: #fff; }
a:hover { color: var(--yellow); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.muted { opacity: .8; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- En-tête ---------- */
.announce { background: var(--navy); text-align: center; font-weight: 700; font-size: 1.02rem; padding: 8px 16px 0; }
.announce a { text-decoration: none; }
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.header-row { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.brand img { display: block; height: 60px; width: auto; }
.main-nav { flex: 1; }
.main-nav > ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav a, .main-nav button.nav-top { display: block; padding: 10px 14px; color: #fff; text-decoration: none; font-family: Arial, Helvetica, sans-serif;
  font-size: 15px; background: none; border: 0; cursor: pointer; border-radius: 4px; }
.main-nav a:hover, .main-nav button.nav-top:hover, .main-nav .active > a { color: #d1e0eb; background: rgba(255, 255, 255, .08); }
.main-nav .sub { display: none; position: absolute; left: 0; top: 100%; min-width: 250px; background: var(--navy); list-style: none; margin: 0; padding: 6px;
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); max-height: 70vh; overflow: auto; }
.main-nav li:hover > .sub, .main-nav li:focus-within > .sub, .main-nav li.open > .sub { display: block; }
.main-nav .sub a { padding: 8px 12px; font-size: 14px; }
.main-nav .sub .sub-title { padding: 8px 12px 2px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); }
.header-actions { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.header-actions a { text-decoration: none; font-size: 14px; }
.header-actions .login { color: var(--cyan); }
.cart-link { position: relative; font-size: 1.35rem; line-height: 1; }
.cart-link .count { position: absolute; top: -8px; right: -12px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; min-width: 19px; height: 19px;
  border-radius: 10px; display: grid; place-items: center; padding: 0 5px; font-family: var(--font); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255, 255, 255, .4); color: #fff; font-size: 1.4rem; border-radius: 4px; padding: 4px 10px; cursor: pointer; }

/* ---------- Boutons ---------- */
.btn { display: inline-block; border: 0; border-radius: var(--radius); padding: 11px 26px; font: 600 15px/1.3 var(--font); text-decoration: none; cursor: pointer;
  text-align: center; transition: transform .12s ease, filter .12s ease; }
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.btn-red { background: var(--red); color: #fff; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; }
.btn-red:hover { color: #fff; }
.btn-yellow { background: var(--yellow); color: #000; font-family: var(--font-cta); font-weight: 600; }
.btn-yellow:hover { color: #000; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { color: #fff; }
.btn-outline { background: transparent; color: inherit; border: 1px solid currentColor; padding: 8px 18px; }
.btn-sm { padding: 6px 14px; font-size: 13.5px; }
.btn-block { display: block; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }

/* ---------- Accueil ---------- */
.hero { position: relative; min-height: min(78vh, 640px); display: grid; place-items: center; text-align: center; padding: 60px 16px; background: #123 center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 30, 50, .3), rgba(6, 30, 50, .12) 50%, rgba(57, 114, 155, .45)); }
.hero > div { position: relative; }
.hero h1 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); text-shadow: 0 2px 10px rgba(0, 0, 0, .5); margin-bottom: .35em; }
.hero .lead { font-size: clamp(1.02rem, 2vw, 1.3rem); margin-bottom: 1.6em; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.hero .btn-red { min-width: 280px; padding: 14px 30px; }
.hero .btn-yellow { margin-top: 70px; min-width: min(430px, 90vw); }
.band { padding: 44px 0; }
.band-sky { background: var(--sky-soft); }
.band-navy { background: var(--navy-90); }
.band h2.section { color: #fff; margin-bottom: 18px; }
.intro-box { border: 1px solid rgba(255, 255, 255, .25); background: rgba(57, 114, 155, .55); border-radius: var(--radius); padding: 16px 20px; font-weight: 600; text-align: center;
  box-shadow: var(--shadow); margin: 0 auto 30px; }
.title-xl { text-align: center; color: var(--navy); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card { background: var(--blue); border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; color: #fff; text-decoration: none; }
.card:hover { color: #fff; }
.card .thumb { aspect-ratio: 1.06; background: var(--navy) center/cover no-repeat; display: block; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.card .body { padding: 14px 18px 12px; display: flex; flex-direction: column; flex: 1; }
.card .kicker { color: var(--yellow); font-weight: 700; font-size: .95rem; }
.card h3 { font-weight: 400; font-size: 1.02rem; margin: 0 0 8px; }
.card p.sum { font-size: .9rem; opacity: .9; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card .more { margin-top: auto; align-self: flex-end; font-size: .85rem; text-decoration: underline; }
.card .price { font-weight: 700; margin-top: auto; }
.card .ribbon { position: absolute; top: 18px; left: -44px; transform: rotate(-45deg); background: var(--red); color: var(--yellow); font-weight: 800; font-style: italic;
  padding: 4px 50px; font-size: .95rem; text-transform: uppercase; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; text-align: center; margin-top: 10px; }
.steps .step img { width: 62px; height: 62px; object-fit: contain; }
.steps .step p { font-weight: 700; font-size: .92rem; margin: 8px 0 0; }
.band-navy h2.spaced { text-align: center; letter-spacing: .12em; }
.promo-grid { display: grid; grid-template-columns: minmax(240px, 330px) 1fr; gap: 30px; align-items: center; }
.promo { background: var(--blue); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius); padding: 18px; text-align: center; font-weight: 700; box-shadow: var(--shadow); }
.promo strong { display: block; color: var(--red); font-size: 1.7rem; font-weight: 800; text-shadow: 0 1px 0 rgba(255, 255, 255, .25); }
.promo img { max-width: 190px; margin-top: 8px; }
.news-form label { display: block; margin-bottom: 6px; }
.news-form .row { display: flex; gap: 8px; flex-wrap: wrap; }
.news-form input[type=email] { flex: 1; min-width: 220px; padding: 10px 12px; border: 0; border-radius: 4px; font: inherit; }
.news-form .consent { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; margin-top: 10px; }
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.trio .box { background: var(--navy); border-radius: 4px; padding: 20px 22px; box-shadow: var(--shadow); font-size: .92rem; display: flex; flex-direction: column; }
.trio .box h3 { text-align: center; letter-spacing: .05em; font-size: 1.15rem; }
.trio .box a { align-self: flex-end; margin-top: auto; font-size: .88rem; }
.upcoming { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }

/* ---------- Pages intérieures ---------- */
.page-hero { position: relative; background: var(--navy) center/cover no-repeat; padding: 64px 0 40px; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 60, 96, .55), rgba(12, 60, 96, .82)); }
.page-hero .wrap { position: relative; }
.page-hero h1 { margin: 0; }
.page-hero .sub { font-size: 1.1rem; margin-top: 6px; color: var(--yellow); font-weight: 600; }
.crumbs { font-size: .85rem; margin-bottom: 10px; opacity: .85; }
.crumbs a { text-decoration: none; }
.section { padding: 34px 0 54px; }
.panel { background: rgba(12, 60, 96, .38); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); }
.content h2 { margin-top: 1.4em; padding-top: .2em; color: #fff; }
.content h2:first-child { margin-top: 0; }
.content h3 { margin-top: 1.2em; color: var(--yellow); }
.content ul { padding-left: 1.2em; margin: 0 0 1em; }
.content li { margin-bottom: .3em; }
.content .price-line { font-size: 1.2rem; font-weight: 800; color: var(--yellow); }
.content-figure img { border-radius: var(--radius); max-height: 440px; display: block; margin: 8px 0 18px; box-shadow: var(--shadow); }
.content-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 10px 0 20px; }
.content-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; display: block; box-shadow: var(--shadow); background: rgba(255, 255, 255, .08); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 28px; align-items: start; }
.sticky { position: sticky; top: 96px; }

/* ---------- Cartes blanches, formulaires, tableaux ---------- */
.paper { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
.paper a { color: var(--blue); }
.paper a.btn-navy, .paper a.btn-red { color: #fff; }
.paper a.btn-yellow { color: #000; }
.paper h2, .paper h3 { color: var(--navy); }
.paper + .paper { margin-top: 20px; }
.field { margin-bottom: 14px; }
.field label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 3px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #b9cad8; border-radius: 4px; font: inherit; color: var(--ink); background: #fff; }
textarea { min-height: 110px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: .92rem; margin-bottom: 10px; }
.check input { margin-top: 4px; flex: none; width: 17px; height: 17px; }
.opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--blue); background: var(--wash); box-shadow: inset 0 0 0 1px var(--blue); }
.opt input { margin-top: 5px; }
.opt .name { flex: 1; font-size: .93rem; }
.opt .amt { font-weight: 800; white-space: nowrap; color: var(--navy); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tbl th, .tbl td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tbl .num { text-align: right; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.totals { margin-left: auto; width: min(340px, 100%); font-size: .95rem; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals .grand { border-top: 2px solid var(--navy); margin-top: 6px; padding-top: 8px; font-weight: 800; font-size: 1.12rem; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: .78rem; font-weight: 700; background: var(--wash); color: var(--navy); white-space: nowrap; }
.badge.ok { background: #dff3e6; color: var(--ok); } .badge.warn { background: #fdf0d5; color: var(--warn); } .badge.bad { background: #fbe1dd; color: var(--bad); }
.flashes { width: min(var(--wrap), 100% - 32px); margin: 16px auto 0; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--radius); background: #fff; color: var(--ink); border-left: 5px solid var(--blue); box-shadow: var(--shadow); }
.flash.success { border-color: var(--ok); } .flash.danger { border-color: var(--bad); } .flash.warning { border-color: var(--warn); }
.empty { text-align: center; padding: 30px 10px; opacity: .85; }
.testmode { background: var(--yellow); color: #000; text-align: center; font-size: .85rem; font-weight: 700; padding: 4px; }

/* ---------- Calendrier ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filters a { padding: 7px 16px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .5); text-decoration: none; font-size: .9rem; }
.filters a.on { background: var(--yellow); color: #000; border-color: var(--yellow); font-weight: 700; }
.month { margin: 26px 0 10px; font-size: 1.2rem; letter-spacing: .04em; }
.event { display: grid; grid-template-columns: 74px 1fr auto; gap: 16px; align-items: center; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 12px 16px;
  margin-bottom: 10px; box-shadow: var(--shadow); }
.event .date { background: var(--navy); color: #fff; border-radius: 4px; text-align: center; padding: 6px 4px; line-height: 1.1; }
.event .date b { display: block; font-size: 1.5rem; }
.event .date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.event h3 { margin: 0 0 2px; color: var(--navy); font-size: 1.04rem; }
.event h3 a { color: inherit; text-decoration: none; }
.event .meta { font-size: .86rem; color: var(--muted); }
.event .side { text-align: right; }

/* ---------- FAQ ---------- */
details.faq { background: var(--navy); border-radius: var(--radius); margin-bottom: 10px; box-shadow: var(--shadow); }
details.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--yellow); }
details.faq[open] summary::after { content: "–"; }
details.faq .answer { padding: 0 18px 14px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); margin-top: 40px; padding: 34px 0 20px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 26px; }
.site-footer h3 { font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { text-decoration: none; line-height: 1.9; }
.social { display: flex; gap: 14px; font-size: 1.5rem; }
.legal { border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 24px; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; font-size: .84rem; }
.legal nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav { display: none; position: absolute; left: -16px; right: -16px; top: 100%; background: var(--navy); padding: 8px 16px 16px; max-height: 80vh; overflow: auto; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; }
  .main-nav .sub { position: static; display: block; box-shadow: none; padding-left: 14px; max-height: none; }
  .header-row { position: relative; flex-wrap: wrap; }
  .header-actions { order: 2; }
  .two-col, .promo-grid { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .event { grid-template-columns: 62px 1fr; }
  .event .side { grid-column: 1 / -1; text-align: left; }
  .hero .btn-yellow { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .announce, .btn, .flashes { display: none !important; } body { background: #fff; color: #000; } .paper { box-shadow: none; } }
