/* The BlackPearl Artist — ambiance pirate : mer de nuit, parchemin, or des doublons.
   Polices : Pirata One (titres), IM Fell English (texte), Inter (champs et chiffres, pour la lisibilité). */
:root { --nuit: #060d14; --mer: #0b1c27; --mer-2: #12293a; --parchemin: #ecdcb6; --parchemin-2: #dcc795; --encre: #2b1d10;
  --encre-2: #5c4428; --or: #d6a93c; --or-2: #f3d27a; --nacre: #efe6d2; --nacre-2: #a9b4ba; --sang: #8f2a1f; --vert: #2f6b3e;
  --rayon: 14px; --titre: 'Pirata One', 'IM Fell English', Georgia, serif; --texte: 'IM Fell English', Georgia, serif;
  --net: Inter, system-ui, sans-serif; }
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; background: var(--nuit); }
body { color: var(--nacre); font: 400 18px/1.55 var(--texte); -webkit-font-smoothing: antialiased; min-height: 100vh;
  background: radial-gradient(ellipse 120% 900px at 50% -200px, #1a3448 0, transparent 70%),
    linear-gradient(180deg, var(--nuit) 0, var(--mer) 1200px, var(--nuit) 100%) var(--nuit); }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .5;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff8, transparent), radial-gradient(1px 1px at 72% 9%, #fff7, transparent),
    radial-gradient(1.5px 1.5px at 38% 30%, #fff6, transparent), radial-gradient(1px 1px at 88% 34%, #fff8, transparent),
    radial-gradient(1px 1px at 56% 14%, #fff5, transparent), radial-gradient(1px 1px at 24% 42%, #fff4, transparent); }
a { color: var(--or-2); }
img { display: block; max-width: 100%; }
.titre-serif { font-family: var(--titre); font-weight: 400; letter-spacing: .01em; }

/* --- Navigation --- */
.bp-nav { position: sticky; top: 0; z-index: 10; background: rgba(6,13,20,.86); backdrop-filter: blur(10px); border-bottom: 1px solid #d6a93c33; }
.bp-nav .in { max-width: 1120px; margin: 0 auto; padding: 12px 22px; display: flex; align-items: center; gap: 18px; }
.bp-nav .marque { font-family: var(--titre); font-size: 26px; color: var(--nacre); text-decoration: none; margin-right: auto; display: flex; align-items: center; gap: 10px; }
.bp-nav .marque b { color: var(--or-2); font-weight: 400; }
.bp-nav .marque svg { width: 30px; height: 30px; flex: none; }
.bp-nav a.lien { color: var(--nacre-2); text-decoration: none; font-size: 18px; }
.bp-nav a.lien:hover { color: var(--or-2); }

/* --- Boutons : doublons d'or --- */
.bp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border-radius: 99px;
  border: 2px solid #8a6416; background: radial-gradient(circle at 35% 30%, var(--or-2), var(--or) 60%, #a77a1f);
  color: #2a1a05; font: 700 16px var(--net); text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 0 #6e4f12, 0 10px 24px #0008; transition: transform .15s; }
.bp-btn:hover { transform: translateY(-1px); }
.bp-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.bp-btn.contour { background: transparent; color: var(--or-2); border-color: #d6a93c88; box-shadow: none; }
.bp-btn.petit { padding: 7px 16px; font-size: 14px; }

/* --- Héros --- */
.bp-hero { max-width: 1120px; margin: 0 auto; padding: 80px 22px 40px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 50px; align-items: center; }
.bp-hero .devise { font: italic 20px var(--texte); color: var(--or); letter-spacing: .04em; }
.bp-hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.05; margin-top: 8px; text-shadow: 0 4px 30px #000; }
.bp-hero .accroche { font: italic 24px/1.4 var(--texte); color: var(--or); margin: 18px 0 0; }
.bp-hero h1 em { color: var(--or-2); font-style: normal; }
.bp-hero p { color: #cfd6d9; font-size: 21px; margin: 22px 0 30px; max-width: 540px; }
.bp-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
/* Carte au trésor + petite boussole qui bouge sans cesse, centrée au-dessus */
.bp-hero .vitrine { position: relative; display: grid; place-items: center; }
.bp-hero .vitrine .carte { width: 100%; height: auto; filter: drop-shadow(0 30px 50px #000c); transform: rotate(-2deg); }
.bp-hero .vitrine .boussole { position: absolute; left: 50%; top: 50%; width: 26%; min-width: 92px; margin: 0;
  transform: translate(-50%, -50%); filter: drop-shadow(0 10px 18px #000d); animation: bp-flotte 4s ease-in-out infinite; }
.bp-hero .vitrine .rose { transform-origin: 100px 100px; animation: bp-cherche 6s ease-in-out infinite; }
@keyframes bp-flotte { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -56%); } }
@keyframes bp-cherche { 0% { transform: rotate(0); } 20% { transform: rotate(48deg); } 35% { transform: rotate(-30deg); }
  55% { transform: rotate(160deg); } 70% { transform: rotate(120deg); } 85% { transform: rotate(390deg); } 100% { transform: rotate(360deg); } }

/* Promo de Noël : -25 % en grand, en relief, qui clignote */
.bp-promo { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; text-decoration: none;
  max-width: 1076px; margin: 20px auto 0; padding: 22px 26px; border-radius: 20px; color: #fff; text-align: center;
  background: repeating-linear-gradient(135deg, #8f1d1d 0 22px, #a52525 22px 44px); border: 3px solid var(--or);
  box-shadow: 0 0 0 5px #2b1d10, 0 20px 50px #000b, 0 0 40px #f3d27a44; }
.bp-promo-titre { font: 400 30px var(--titre); color: var(--or-2); }
.bp-promo-chiffre { font: 400 clamp(76px, 12vw, 130px)/1 var(--titre); color: #fff6d0; letter-spacing: .02em;
  text-shadow: 1px 1px 0 #e2b24a, 2px 2px 0 #d29f35, 3px 3px 0 #bd8a26, 4px 4px 0 #a77a1f, 5px 5px 0 #8a6416, 6px 6px 0 #6e4f12,
    7px 7px 0 #523a0c, 10px 14px 18px #000a;
  animation: bp-clignote 1.1s steps(1, end) infinite, bp-pulse 1.1s ease-in-out infinite; }
.bp-promo-texte { font-size: 21px; line-height: 1.3; }
.bp-promo-texte small { color: #ffe3a3; font-size: 16px; }
@keyframes bp-clignote { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes bp-pulse { 0%, 100% { transform: scale(1) rotate(-4deg); } 50% { transform: scale(1.08) rotate(-4deg); } }
.bp-recap .total b .barre { display: block; font: 400 18px var(--net); color: var(--encre-2); text-align: right; }
@media (prefers-reduced-motion: reduce) {
  .bp-hero .vitrine .boussole, .bp-hero .vitrine .rose, .bp-promo-chiffre { animation: none; }
}
.bp-vagues { display: block; width: 100%; height: 60px; color: var(--mer-2); }

/* --- Sections --- */
.bp-section { max-width: 1120px; margin: 0 auto; padding: 56px 22px; }
.bp-section h2 { font-size: clamp(40px, 5vw, 58px); margin-bottom: 6px; color: var(--or-2); }
.bp-section .sous { color: #c3cbcf; margin-bottom: 30px; max-width: 680px; font-size: 19px; }
.bp-ornement { display: flex; align-items: center; gap: 12px; color: var(--or); margin-bottom: 4px; }
.bp-ornement::before, .bp-ornement::after { content: ''; height: 1px; width: 46px; background: linear-gradient(90deg, transparent, var(--or)); }
.bp-ornement::after { transform: scaleX(-1); }

/* --- Parchemin (cartes) --- */
.parchemin { color: var(--encre); border-radius: var(--rayon);
  background: radial-gradient(ellipse at 20% 10%, #f6ead0 0, transparent 55%), radial-gradient(ellipse at 90% 90%, #c9ad74 0, transparent 50%),
    linear-gradient(135deg, var(--parchemin), var(--parchemin-2));
  box-shadow: inset 0 0 40px #8a5f2a55, inset 0 0 6px #5c3d1a88, 0 18px 40px #000a; }
.parchemin a { color: var(--sang); }

.bp-galerie { columns: 3 280px; column-gap: 20px; }
.bp-oeuvre { break-inside: avoid; margin: 0 0 20px; padding: 12px; cursor: zoom-in; transform: rotate(-.4deg); }
.bp-oeuvre:nth-child(even) { transform: rotate(.5deg); }
.bp-oeuvre img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 2px 8px #3b28144d; }
.bp-oeuvre .legende { padding: 12px 4px 4px; }
.bp-oeuvre h3 { font-family: var(--titre); font-size: 26px; font-weight: 400; color: var(--encre); }
.bp-oeuvre p { color: var(--encre-2); font-size: 16px; margin-top: 2px; white-space: pre-wrap; }
.bp-vide { color: var(--nacre-2); border: 2px dashed #d6a93c55; border-radius: var(--rayon); padding: 34px; text-align: center; font-size: 19px; }

.bp-tarifs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.bp-tarif { padding: 22px 22px 20px; text-align: center; }
.bp-tarif .nom { font-size: 18px; color: var(--encre-2); }
.bp-tarif b { display: block; font: 400 44px/1.1 var(--titre); color: var(--sang); margin: 4px 0; }
.bp-tarif span { font-size: 16px; color: var(--encre-2); }

/* --- Formulaire --- */
.bp-form { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.bp-carte { padding: 28px; }
.bp-etape { font: 400 26px var(--titre); color: var(--sang); margin: 26px 0 10px; display: flex; align-items: center; gap: 10px; }
.bp-etape:first-child { margin-top: 0; }
.bp-etape::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, #8a5f2a88, transparent); }
.bp-choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.bp-choix label { position: relative; display: block; background: #fff6e266; border: 1.5px solid #8a5f2a66; border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: background .15s; }
.bp-choix label:hover { background: #fff6e2aa; }
.bp-choix input { position: absolute; opacity: 0; pointer-events: none; }
.bp-choix label:has(input:checked) { border-color: var(--sang); background: #fff8e8; box-shadow: 0 0 0 1.5px var(--sang) inset; }
.bp-choix label:has(input:checked)::after { content: '☠'; position: absolute; top: 8px; right: 12px; color: var(--sang); font-size: 18px; }
.bp-choix label:has(input:focus-visible) { outline: 2px solid var(--sang); outline-offset: 2px; }
.bp-choix strong { display: block; font: 700 16px var(--net); }
.bp-choix small { color: var(--encre-2); font-size: 15px; }
.bp-champ { display: block; margin-top: 12px; }
.bp-champ span { display: block; font-size: 16px; color: var(--encre-2); margin-bottom: 4px; }
.bp-champ input, .bp-champ textarea { width: 100%; background: #fffaf0; border: 1.5px solid #8a5f2a77; border-radius: 10px; padding: 11px 13px;
  color: var(--encre); font: 16px var(--net); }
.bp-champ input:focus, .bp-champ textarea:focus { outline: none; border-color: var(--sang); }
.bp-champ textarea { min-height: 86px; resize: vertical; }
.bp-depot { display: grid; place-items: center; text-align: center; gap: 8px; border: 2px dashed #8a5f2a99; border-radius: 14px; padding: 22px;
  cursor: pointer; color: var(--encre-2); background: #fff6e244; }
.bp-depot img { max-height: 220px; border-radius: 8px; }
.bp-case { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 16px; color: var(--encre-2); }
.bp-case input { margin-top: 4px; accent-color: var(--sang); width: 18px; height: 18px; flex: none; }

.bp-recap { position: sticky; top: 80px; }
.bp-recap .ligne { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; color: var(--encre-2); border-bottom: 1px dashed #8a5f2a55; }
.bp-recap .ligne span:last-child { font-family: var(--net); font-size: 15px; }
.bp-recap .total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
.bp-recap .total b { font: 400 40px var(--titre); color: var(--sang); }
.bp-pispi { margin-top: 18px; background: #2b1d10; color: var(--parchemin); border-radius: 12px; padding: 16px; }
.bp-pispi strong { font-family: var(--net); }
.bp-pispi .bp-note { color: #d8c69c; }
.bp-pispi .alias { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.bp-pispi code { flex: 1 1 200px; font: 600 14px ui-monospace, Consolas, monospace; color: var(--or-2); background: #0006; padding: 10px 12px; border-radius: 8px; word-break: break-all; }
.bp-note { font-size: 15px; color: var(--encre-2); margin-top: 10px; }
.bp-ok { background: #e3efd9; border: 2px solid var(--vert); color: #1f4a29; border-radius: 14px; padding: 18px; line-height: 1.55; font-size: 19px; }
.bp-erreur { background: #f6dcd3; border: 1.5px solid var(--sang); color: var(--sang); border-radius: 12px; padding: 12px 16px; margin-top: 14px; font-family: var(--net); font-size: 15px; }

.bp-zoom { position: fixed; inset: 0; background: #000e; display: grid; place-items: center; padding: 24px; z-index: 50; cursor: zoom-out; }
.bp-zoom img { max-width: 100%; max-height: 86vh; border-radius: 8px; border: 4px solid #8a6416; }
.bp-zoom p { color: var(--nacre); text-align: center; margin-top: 12px; max-width: 700px; }

.bp-whatsapp { display: inline-flex; align-items: center; gap: 8px; font-family: var(--net); font-weight: 600; }

/* --- Pages de texte (conditions) --- */
.bp-texte { max-width: 860px; margin: 40px auto 90px; padding: 46px 44px; }
.bp-texte h1 { font-size: clamp(44px, 6vw, 64px); margin-bottom: 8px; color: var(--sang); }
.bp-texte h2 { font: 400 30px var(--titre); margin: 28px 0 6px; color: var(--sang); }
.bp-texte p, .bp-texte li { color: var(--encre); margin-bottom: 8px; }
.bp-texte ul { padding-left: 22px; }

/* --- Admin --- */
.bp-table { width: 100%; border-collapse: collapse; font: 14px var(--net); }
.bp-table th, .bp-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #8a5f2a44; vertical-align: top; }
.bp-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--encre-2); }
.bp-table select { background: #fffaf0; color: var(--encre); border: 1px solid #8a5f2a77; border-radius: 8px; padding: 4px; }

.bp-pied { border-top: 1px solid #d6a93c33; padding: 30px 22px; text-align: center; color: var(--nacre-2); font-size: 17px; }

@media (max-width: 860px) {
  .bp-hero, .bp-form { grid-template-columns: 1fr; }
  .bp-hero { padding-top: 44px; }
  .bp-promo { margin: 10px 12px 0; gap: 8px; flex-direction: column; }
  .bp-recap { position: static; }
  .bp-nav a.lien.cache-mobile { display: none; }
  .bp-texte { padding: 30px 22px; margin: 20px 12px 60px; }
  .bp-carte { padding: 20px; }
}

/* Logo (médaillon tiré du tampon de Davy, sans les textes) */
.bp-nav .marque img { width: 40px; height: 40px; flex: none; }
.bp-hero .logo-hero { width: 320px; height: auto; margin-bottom: 18px; }
.bp-pied .logo-pied { width: 64px; height: 64px; margin: 0 auto 10px; }
.bp-pied em { color: var(--or-2); }
@media (max-width: 860px) { .bp-hero .logo-hero { width: 250px; } }

/* Citation sous la carte au trésor */
.vitrine-col { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.citation { font: italic 400 24px/1.35 var(--texte); text-align: center; max-width: 480px;
  background: linear-gradient(180deg, #fff3c4 0%, #f3d27a 40%, #c8962e 75%, #f3d27a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
  filter: drop-shadow(0 2px 6px #000c); }
.citation span { display: block; font: 400 22px var(--titre); letter-spacing: .1em; margin-top: 4px; }

/* Promo : clignotement franc (pas de fondu), message de Noël agrandi */
.bp-promo-titre { font-size: clamp(38px, 5.5vw, 64px); line-height: 1; }
.bp-promo-chiffre { animation: bp-clignote-net 1s step-end infinite !important; transform: rotate(-4deg); }
@keyframes bp-clignote-net { 0%, 100% { visibility: visible; } 50% { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .bp-promo-chiffre { animation: none !important; } }

/* ---------- Mer animée en arrière-plan (CSS seul, aucune vidéo) ---------- */
.bp-mer { position: fixed; left: 0; right: 0; bottom: 0; height: 50vh; pointer-events: none; z-index: 0; overflow: hidden; }
.bp-mer::before { content: ''; position: absolute; left: 50%; bottom: 0; width: 40vw; height: 100%; transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 75% at 50% 100%, #f3d27a2e, transparent 70%); animation: bp-reflet 7s ease-in-out infinite; }
.bp-vague { position: absolute; left: 0; bottom: 0; width: 100%; background-repeat: repeat-x; animation: linear infinite; }
@keyframes bp-reflet { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.bp-vague.v1 { height: 60%; opacity: 0.55; background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201440%20220'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0%2070%20C%20180.0%2040%20540.0%2040%20720.0%2070%20S%201260.0%20100%201440%2070%20L%201440%20220%20L%200%20220%20Z'%20fill='%231d4a66'/%3E%3Cpath%20d='M0%2070%20C%20180.0%2040%20540.0%2040%20720.0%2070%20S%201260.0%20100%201440%2070'%20fill='none'%20stroke='%239fd0ea99'%20stroke-width='3'%20stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 1440px 100%; animation: bp-v1 34s linear infinite; }
@keyframes bp-v1 { to { background-position-x: 1440px; } }
.bp-vague.v2 { height: 46%; opacity: 0.8; background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201100%20220'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0%2080%20C%20137.5%2044%20412.5%2044%20550.0%2080%20S%20962.5%20116%201100%2080%20L%201100%20220%20L%200%20220%20Z'%20fill='%2316394f'/%3E%3Cpath%20d='M0%2080%20C%20137.5%2044%20412.5%2044%20550.0%2080%20S%20962.5%20116%201100%2080'%20fill='none'%20stroke='%237fb5d399'%20stroke-width='3'%20stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 1100px 100%; animation: bp-v2 24s linear infinite; }
@keyframes bp-v2 { to { background-position-x: -1100px; } }
.bp-vague.v3 { height: 32%; opacity: 0.95; background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20900%20220'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0%2060%20C%20112.5%2034%20337.5%2034%20450.0%2060%20S%20787.5%2086%20900%2060%20L%20900%20220%20L%200%20220%20Z'%20fill='%230e283a'/%3E%3Cpath%20d='M0%2060%20C%20112.5%2034%20337.5%2034%20450.0%2060%20S%20787.5%2086%20900%2060'%20fill='none'%20stroke='%235f97b899'%20stroke-width='3'%20stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 900px 100%; animation: bp-v3 16s linear infinite; }
@keyframes bp-v3 { to { background-position-x: 900px; } }
.bp-vague.v4 { height: 18%; opacity: 1; background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20700%20220'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0%2050%20C%2087.5%2032%20262.5%2032%20350.0%2050%20S%20612.5%2068%20700%2050%20L%20700%20220%20L%200%20220%20Z'%20fill='%23081a28'/%3E%3Cpath%20d='M0%2050%20C%2087.5%2032%20262.5%2032%20350.0%2050%20S%20612.5%2068%20700%2050'%20fill='none'%20stroke='%233f739399'%20stroke-width='3'%20stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 700px 100%; animation: bp-v4 11s linear infinite; }
@keyframes bp-v4 { to { background-position-x: -700px; } }
.bp-vague.v2 { animation-name: bp-v2, bp-gonfle; animation-duration: 24s, 6s; animation-timing-function: linear, ease-in-out; }
.bp-vague.v3 { animation-name: bp-v3, bp-gonfle; animation-duration: 16s, 4.5s; animation-timing-function: linear, ease-in-out; }
@keyframes bp-gonfle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
/* le contenu passe au-dessus de la mer */
body > header, body > section, body > main, body > footer, body > a.bp-promo, body > div:not(.bp-mer):not(.bp-zoom) { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .bp-vague, .bp-mer::before { animation: none; } }
