/* PHI : charte. Écrit à la main, léger, sans dépendance. */
@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("/fonts/open-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap;
}

:root {
  --teal: #00897B;
  --teal-dark: #00695f;
  --gold: #D4A017;
  --dark: #1A2332;
  --ink: #1A2332;
  --muted: #5a6573;
  --bg: #ffffff;
  --bg-soft: #f4f8f7;
  --line: #dfe7e6;
  --radius: 12px;
  --font-title: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.6;
  color: var(--ink); background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--font-title); line-height: 1.2; margin: 0 0 .6em; color: var(--dark); }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--dark); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand img { width: 150px; height: auto; }

.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; }
.menu summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: var(--dark); border-radius: 2px; content: ""; position: relative; }
.burger::before { position: absolute; top: -6px; }
.burger::after { position: absolute; top: 6px; }
.nav { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(26,35,50,.14); padding: .5rem; display: flex; flex-direction: column; }
.nav a { padding: .7rem .9rem; border-radius: 8px; text-decoration: none; color: var(--dark); font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg-soft); color: var(--teal-dark); }

.nav-desk { display: none; }
@media (min-width: 980px) {
  .brand img { width: 180px; }
  .menu { display: none; }
  .nav-desk { display: flex; gap: .15rem; }
  .nav-desk a { padding: .5rem .7rem; font-size: .95rem; border-radius: 8px; text-decoration: none; color: var(--dark); font-weight: 600; }
  .nav-desk a:hover, .nav-desk a[aria-current="page"] { background: var(--bg-soft); color: var(--teal-dark); }
}

/* Boutons */
.btn { display: inline-block; padding: .85rem 1.4rem; border-radius: 999px; background: var(--teal); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--teal); transition: background .15s; }
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--dark); }
.btn-gold:hover { background: #b8870f; border-color: #b8870f; color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }
.center .actions { justify-content: center; }

/* Accueil */
.hero { background: linear-gradient(135deg, var(--dark) 0%, #123a3f 60%, var(--teal-dark) 100%); color: #fff; padding: clamp(3rem, 10vw, 6rem) 0; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.15rem; max-width: 640px; color: #e4efee; }
.eyebrow { color: var(--gold); font-family: var(--font-title); font-style: italic; font-size: 1.15rem; margin-bottom: .6rem; }

.section { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.band { background: var(--bg-soft); }
.tiles { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); background: #fff; transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(26,35,50,.12); }
.tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--bg-soft); }
.tile-body { display: flex; flex-direction: column; gap: .25rem; padding: 1rem; font-size: .95rem; }
.tile-body strong { font-family: var(--font-title); font-size: 1.15rem; color: var(--dark); }

/* Boutique */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.chip { padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--dark); font-weight: 600; font-size: .95rem; background: #fff; }
.chip:hover { border-color: var(--teal); color: var(--teal-dark); }
.chip[aria-current="page"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); background: #fff; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(26,35,50,.12); }
.card-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; background: var(--bg-soft); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img img.tall { object-fit: contain; }
.card-img img.ph { width: 56px; height: 56px; object-fit: contain; opacity: .6; }
.card-body { display: flex; flex-direction: column; gap: .3rem; padding: .85rem; }
.card-body strong { font-size: .98rem; line-height: 1.3; }
.price { color: var(--teal-dark); font-weight: 700; }
.price.on-request { color: var(--muted); font-weight: 600; }
.price.big { font-size: 1.6rem; font-family: var(--font-title); margin-bottom: 1rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.product { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .product { grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: start; } }
.product-img img { width: 100%; height: auto; border-radius: var(--radius); background: var(--bg-soft); }
.product-img img.tall { width: auto; max-height: 560px; margin: 0 auto; }
.notice { background: #fff8e1; border-left: 4px solid var(--gold); padding: .7rem 1rem; border-radius: 6px; }
.prose p { margin-bottom: .8em; }
.small { font-size: .85rem; }
.ticks { margin: 0 0 1em; padding-left: 1.2rem; }
.ticks li { margin-bottom: .3rem; }
.table-wrap { overflow-x: auto; margin-bottom: 1em; }
.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data th, .data td { text-align: left; vertical-align: top; padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
.data th { background: var(--bg-soft); color: var(--dark); }
.product-info h2 { font-size: 1.25rem; margin-top: 1.4rem; }

/* Pied de page */
.site-footer { background: var(--dark); color: #cfd8dc; padding: 3rem 0 6rem; }
.site-footer a { color: #fff; }
.site-footer .muted { color: #b8c4cb; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { font-family: var(--font-title); font-size: 1.4rem; color: #fff; margin-bottom: .2rem; }
.signature { color: var(--gold); font-family: var(--font-title); font-style: italic; margin-bottom: .8rem; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: .5rem; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { margin-bottom: .35rem; }
.footer-note { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; color: #9fb0b8; }

/* Bouton WhatsApp flottant (affiché seulement si un numéro est configuré) */
.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; display: flex; align-items: center; gap: .5rem; background: var(--teal); color: #fff; text-decoration: none; padding: .75rem 1.1rem; border-radius: 999px; font-weight: 700; box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.wa-float:hover { background: var(--teal-dark); color: #fff; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Panier, formulaires, suivi */
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--dark); border-radius: 999px; margin-left: auto; }
.cart-link:hover { background: var(--bg-soft); color: var(--teal-dark); }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--gold); color: var(--dark); font-size: .72rem; font-weight: 800; line-height: 18px; text-align: center; }
.cart-count[hidden] { display: none; }
@media (min-width: 980px) { .cart-link { margin-left: .25rem; } }
.btn-outline { background: transparent; color: var(--teal-dark); }
.btn-outline:hover { background: var(--bg-soft); color: var(--teal-dark); }
button.btn { font: inherit; font-weight: 700; cursor: pointer; }
.notice.ok { border-left-color: var(--teal); background: #e8f5f3; }
.cart-lines { margin-bottom: 1rem; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.cart-name { font-weight: 700; color: var(--dark); text-decoration: none; }
.cart-total { justify-self: end; }
.qty { display: inline-flex; align-items: center; gap: .4rem; }
.qbtn { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 1.1rem; cursor: pointer; }
.qbtn:hover { border-color: var(--teal); }
.qval { min-width: 1.6rem; text-align: center; font-weight: 700; }
button.link { background: none; border: 0; padding: 0; color: var(--teal-dark); text-decoration: underline; cursor: pointer; font: inherit; justify-self: end; }
.total { font-size: 1.2rem; }
.summary { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1rem 0 1.5rem; }
.recap { margin-bottom: .6rem; }
.recap li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px dashed var(--line); }
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
.form input, .form textarea, .form select { font: inherit; padding: .7rem .8rem; border: 1px solid #b9c6c4; border-radius: 8px; background: #fff; width: 100%; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--teal); }
.form fieldset { border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem; display: grid; gap: .5rem; }
.form .radio { display: flex; align-items: center; gap: .6rem; font-weight: 400; }
.form .radio input { width: auto; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.alert { background: #fdecea; border-left: 4px solid #c62828; padding: .7rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.lead { font-size: 1.15rem; }

/* Administration */
body.admin { background: var(--bg-soft); }
.admin-bar { background: var(--dark); color: #fff; }
.admin-bar a { color: #fff; }
.admin-row { display: flex; align-items: center; gap: 1.2rem; min-height: 54px; }
.admin-row nav { margin-right: auto; }
.admin-bar button.link { color: #fff; }
.admin-main { padding-top: 1.5rem; padding-bottom: 3rem; }
.admin-main .data { background: #fff; }
.num { text-align: right; white-space: nowrap; }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; background: #e0e7e6; font-size: .8rem; font-weight: 700; }
.s-nouvelle { background: #fff1c2; } .s-payee, .s-livree { background: #cdeee9; } .s-annulee { background: #f6d5d2; }
.admin-grid { display: grid; gap: 1rem; }
@media (min-width: 800px) { .admin-grid { grid-template-columns: 1fr 1fr; } }
.admin-form { max-width: 460px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.login { margin: 2rem auto; }
@media print { .site-header, .site-footer, .wa-float, .admin-bar, .actions, .admin-form { display: none !important; } }

[hidden] { display: none !important; }

.pay-methods { display: flex; flex-wrap: wrap; gap: .6rem; margin: .8rem 0 1.4rem; }
.pay-methods .btn { flex: 1 1 8rem; }
.pay-methods .alert { flex-basis: 100%; margin: .4rem 0 0; }
.pay-methods button:disabled { opacity: .6; cursor: wait; }
.btn.btn-alt { background: transparent; color: var(--teal); border: 2px solid var(--teal); }

.inline-form { margin: .6rem 0 1rem; }

.packs { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 640px) { .packs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .packs { grid-template-columns: repeat(3, 1fr); } }
.pack .card-body { gap: .5rem; height: 100%; }
.pack .btn { margin-top: auto; text-align: center; }

/* Pages légales et contenus (étape 7) */
.prose h2 { margin-top: 2rem; font-size: 1.25rem; }
.prose p, .prose li { max-width: 70ch; }
.prose ul { padding-left: 1.2rem; }
.todo { background: #fff3b0; padding: 0 .25rem; border-radius: 3px; font-style: normal; }
.draft-banner { background: #fff8e1; border-bottom: 1px solid var(--gold); padding: .6rem 0; font-size: .9rem; }
.steps3 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 1.2rem 0; padding: 0; list-style: none; }
.steps3 li { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; background: #fff; }
.steps3 strong { display: block; font-family: "Playfair Display", serif; font-size: 1.3rem; color: var(--teal-dark); }
.step-img { display: block; width: 100%; height: auto; max-height: 160px; object-fit: contain; margin: 0 auto .6rem; }
.two-col { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ok-box { background: #e8f5f3; border-left: 4px solid var(--teal); padding: .8rem 1rem; border-radius: 6px; margin-bottom: 1rem; }

.price-member { color: var(--teal); font-weight: 700; }
