/* =========================================================
   ARKANEO — compléments communes à toutes les pages
   (le design de chaque page reste dans la page elle-même)
   ========================================================= */

/* Police Inter hébergée sur le site (plus d’appel à Google Fonts) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-wght-italic.woff2") format("woff2"); }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
img, video { max-width: 100%; }
:focus-visible { outline: 3px solid #DBBD6A; outline-offset: 3px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: #DBBD6A; color: #0F0B54; padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Menu mobile ---------- */
.menu-btn { display: none; }
.menu-mobile { display: none; }
@media (max-width: 820px) {
  .nav { padding: 12px 18px !important; gap: 12px !important; flex-wrap: nowrap !important; }
  .nav img { height: 40px !important; }
  .nav nav { gap: 10px !important; }
  .nav .btn-navy { padding: 11px 16px !important; font-size: 12px !important; white-space: nowrap; }
  .menu-btn {
    display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0;
    border: 1px solid #E4E3EC; border-radius: 50%; background: #FFFFFF; color: #0F0B54; cursor: pointer; padding: 0;
  }
  .menu-btn svg { width: 20px; height: 20px; }
  .menu-btn .i-close { display: none; }
  .menu-btn[aria-expanded="true"] .i-open { display: none; }
  .menu-btn[aria-expanded="true"] .i-close { display: block; }
  .menu-mobile[data-open] {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: #FFFFFF; border-top: 1px solid #EEEEF2; border-bottom: 1px solid #EEEEF2;
    box-shadow: 0 18px 40px rgba(15, 11, 84, .12);
    max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .menu-mobile ul { list-style: none; margin: 0; padding: 8px 24px 24px; }
  .menu-mobile li { border-bottom: 1px solid #EEEEF2; }
  .menu-mobile a {
    display: flex; justify-content: space-between; align-items: center; padding: 18px 0;
    font-weight: 900; font-style: italic; font-size: 20px; text-transform: uppercase; text-decoration: none; color: #0F0B54;
  }
  .menu-mobile a::after { content: "→"; font-style: normal; color: #A8873A; }
  .menu-mobile a[aria-current="page"] { color: #A8873A; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 380px) {
  .nav .btn-navy { padding: 10px 12px !important; font-size: 11px !important; letter-spacing: .3px !important; }
}

/* ---------- Objectifs : cartes et tableau des tarifs sur mobile ---------- */
@media (max-width: 560px) {
  .obj-grid { grid-template-columns: minmax(0, 1fr) !important; padding-left: 18px !important; padding-right: 18px !important; }
  .obj { padding: 28px 22px !important; min-width: 0; }
  .obj h2 { font-size: 21px !important; }
}
@media (max-width: 720px) {
  .tarif-head { display: none !important; }
  .tarif-row { grid-template-columns: 1fr auto !important; gap: 4px 16px !important; padding: 18px 20px !important; }
  .tarif-row > span:nth-child(1) { grid-column: 1; grid-row: 1; }
  .tarif-row > span:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 14px !important; }
  .tarif-row > span:nth-child(3) { grid-column: 1; grid-row: 3; font-size: 14px !important; }
  .tarif-row > span:nth-child(4) { grid-column: 2; grid-row: 1 / span 3; align-self: center; text-align: right; }
}

/* ---------- Page Contact : grand ARKANEO décoratif ---------- */
.contact-mark { font-size: min(230px, 16.4vw) !important; }
@media (max-width: 820px) {
  .contact-mark { bottom: 56px !important; }
  .contact-mark, .contact-mark span { -webkit-text-stroke-width: 1.5px !important; }
  .contact-hero-in { padding-top: 72px !important; padding-bottom: calc(16.4vw + 120px) !important; }
}

/* ---------- Formulaire de contact ---------- */
.form-consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: #55556A; }
.form-consent input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: #0F0B54; }
.form-consent a { color: #0F0B54; }
.form-status { grid-column: 1 / -1; margin: 0; min-height: 1.4em; font-size: 15px; font-weight: 600; color: #0F0B54; }
.hp { position: absolute !important; left: -9999px !important; }
@media (max-width: 560px) {
  .contact-form { padding: 28px 20px !important; grid-template-columns: 1fr !important; margin-top: -48px !important; }
  .contact-form > div { grid-column: 1 / -1 !important; }
}

/* ---------- Filtres du blog ---------- */
.chip { cursor: pointer; font-family: inherit; }
.chip:not(.is-active) { background: #FFFFFF !important; color: #0F0B54 !important; border: 1px solid #E4E3EC !important; }
.chip.is-active { background: #0F0B54 !important; color: #FFFFFF !important; border: 1px solid #0F0B54 !important; }
[data-cat][hidden] { display: none !important; }

/* ---------- Pages de texte (articles, mentions légales, CGV…) ---------- */
.page-head { background: #0F0B54; color: #FFFFFF; }
.page-head .in { max-width: 820px; margin: 0 auto; padding: 96px 32px 72px; display: flex; flex-direction: column; gap: 18px; }
.page-head .kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 5px; text-transform: uppercase; color: #DBBD6A; }
.page-head h1 { margin: 0; font-weight: 900; font-style: italic; font-size: clamp(34px, 5vw, 58px); line-height: 1.04; letter-spacing: -.5px; text-transform: uppercase; color: #FFFFFF; }
.page-head .meta { margin: 0; font-size: 14px; color: #D9D8EA; }
.page-head .meta a { color: #DBBD6A; }
.prose { max-width: 820px; margin: 0 auto; padding: 72px 32px 112px; font-size: 17px; font-weight: 300; line-height: 1.75; color: #55556A; }
.prose h2 { margin: 2em 0 .6em; font-weight: 900; font-style: italic; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.15; text-transform: uppercase; color: #0F0B54; }
.prose h3 { margin: 1.6em 0 .5em; font-weight: 800; font-size: 19px; color: #0F0B54; }
.prose h2:first-child, .prose > :first-child { margin-top: 0; }
.prose strong, .prose b { font-weight: 700; color: #0F0B54; }
.prose a { color: #0F0B54; text-decoration-color: #DBBD6A; text-underline-offset: 3px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: #DBBD6A; }
.prose .lead { font-size: 19px; color: #0F0B54; font-weight: 400; }
.prose img { width: 100%; height: auto; border-radius: 10px; margin: 8px 0 32px; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0 0 1.5em; }
.prose dt { font-weight: 700; color: #0F0B54; }
.prose dd { margin: 0; }
@media (max-width: 560px) {
  .prose { padding: 48px 20px 80px; }
  .page-head .in { padding: 64px 20px 48px; }
  .prose dl { grid-template-columns: 1fr; gap: 2px; }
  .prose dd { margin-bottom: 10px; }
}
.prose .muted { color: #8A8AA0; font-size: 15px; }
.todo { background: #FFF1CC; color: #5A3E00; padding: 2px 6px; border-radius: 3px; font-weight: 600; }
.back { display: inline-block; margin-top: 40px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid #DBBD6A; color: #0F0B54; }

/* ---------- Pied de page : liens ---------- */
footer a[href^="tel:"], footer a[href^="mailto:"], footer a[href*="maps"] { color: #D9D8EA; text-decoration: none; }
footer a:hover { color: #DBBD6A !important; }

/* ---------- Parallaxe des images de fond ---------- */
img.plx { top: -12% !important; bottom: auto !important; height: 124% !important; will-change: transform; }

/* ---------- Apparitions sobres au défilement ---------- */
.js [data-rv] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .8s cubic-bezier(.2, .65, .3, 1), transform .8s cubic-bezier(.2, .65, .3, 1);
  transition-delay: var(--rv-d, 0ms);
}
.js [data-rv].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-rv] { opacity: 1; transform: none; transition: none; }
  img.plx { top: 0 !important; height: 100% !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Barre fixe (mobile) ---------- */
.mobile-bar { display: none; }
@media (max-width: 820px) {
  .mobile-bar {
    display: flex; gap: 8px; align-items: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom)); background: #0F0B54;
    font-family: "Inter", system-ui, sans-serif;
    box-shadow: 0 -6px 20px rgba(15, 11, 84, .18);
  }
  .mb-book {
    flex: 1; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 40px;
    background: #DBBD6A; color: #0F0B54 !important; text-decoration: none;
    font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; white-space: nowrap;
  }
  .mb-ico {
    flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25); color: #FFFFFF !important;
  }
  .mb-ico svg { width: 20px; height: 20px; }
  .mb-wa { background: #25D366; border-color: #25D366; }
  .mb-wa .wa-logo { width: 22px; height: 22px; }
  body { padding-bottom: 56px; }
}

/* ---------- Bulle WhatsApp (ordinateur) ---------- */
.wa-widget { position: fixed; right: 24px; bottom: 24px; z-index: 55; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-family: "Inter", system-ui, sans-serif; }
.wa-toggle { width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer; background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(15, 11, 84, .25); transition: transform .25s ease; }
.wa-toggle:hover { transform: scale(1.06); }
.wa-toggle .wa-logo { width: 34px; height: 34px; }
.wa-teaser { margin: 0; padding: 10px 16px; border-radius: 18px 18px 4px 18px; background: #FFFFFF; color: #0F0B54; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 8px 24px rgba(15, 11, 84, .16); }
.wa-panel { width: 340px; border-radius: 16px; overflow: hidden; background: #FFFFFF; box-shadow: 0 24px 60px rgba(15, 11, 84, .25); }
.wa-panel[hidden], .wa-teaser[hidden] { display: none; }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 18px; background: #0F0B54; color: #FFFFFF; }
.wa-head img { width: 40px; height: 40px; border-radius: 50%; background: #FFFFFF; padding: 4px; object-fit: contain; }
.wa-title { margin: 0; font-weight: 900; font-style: italic; font-size: 17px; text-transform: uppercase; }
.wa-sub { margin: 2px 0 0; font-size: 13px; color: #D9D8EA; }
.wa-close { margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #FFFFFF; cursor: pointer; display: grid; place-items: center; }
.wa-close:hover { background: rgba(255, 255, 255, .12); }
.wa-close svg { width: 18px; height: 18px; }
.wa-body { padding: 22px 18px; background: #F7F7FA; }
.wa-bubble { margin: 0; max-width: 92%; padding: 12px 14px; background: #FFFFFF; border-radius: 4px 14px 14px 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); font-size: 15px; line-height: 1.45; color: #0F0B54; }
.wa-open { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 16px 16px; min-height: 50px; border-radius: 40px; background: #25D366; color: #0F0B54 !important; text-decoration: none; font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.wa-open:hover { background: #1FBF5B; }
.wa-open .wa-logo { width: 22px; height: 22px; }
@media (max-width: 820px) { .wa-widget { display: none; } }

.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: #DBBD6A; }
