/* ==========================================================================
   ATP Theme — design system
   Mobile first · polices système (0 requête) · contrastes AA
   ========================================================================== */
:root {
	--c-ink: #0b1f3a;          /* bleu nuit : texte & fonds forts */
	--c-ink-2: #23395b;
	--c-muted: #5a6b82;
	--c-line: #dfe5ee;
	--c-bg: #ffffff;
	--c-bg-alt: #f4f7fb;
	--c-accent: #f2a91f;       /* ambre : actions */
	--c-accent-ink: #0b1f3a;
	--c-accent-hover: #e09812;
	--c-ok: #0a7d32;
	--c-err: #b3261e;
	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 8px 28px rgba(11, 31, 58, .10);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--fs-base: 1.0625rem;
	--fs-h1: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem);
	--fs-h2: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
	--space: clamp(1rem, .8rem + 1vw, 1.5rem);
	--section: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
	--container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: var(--fs-base); line-height: 1.6; color: var(--c-ink); background: var(--c-bg); padding-bottom: 64px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-ink-2); text-underline-offset: 2px; }
a:hover { color: var(--c-ink); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .container { padding-inline: 24px; } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--c-ink); color: #fff; padding: 8px 12px; z-index: 100; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }

/* ---------- Boutons ---------- */
.atp-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.3em; border-radius: 999px; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; text-align: center; }
.atp-btn--primary { background: var(--c-accent); color: var(--c-accent-ink); }
.atp-btn--primary:hover { background: var(--c-accent-hover); color: var(--c-accent-ink); }
.atp-btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.atp-btn--ghost:hover { background: var(--c-ink); color: #fff; }
.atp-btn--light { background: #fff; color: var(--c-ink); }
.atp-btn--sm { min-height: 40px; padding: .45em 1em; font-size: .95rem; }
.atp-btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--c-line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--c-ink); line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 1.1rem; }
.brand__tag { font-size: .8rem; color: var(--c-muted); }
.brand__logo { max-height: 44px; width: auto; }
.nav-toggle { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 24px; height: 2px; background: var(--c-ink); position: relative; content: ""; }
.nav-toggle__bar::before { position: absolute; top: -7px; }
.nav-toggle__bar::after { position: absolute; top: 7px; }
.nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--c-line); padding: 8px 16px 20px; box-shadow: var(--shadow); }
.nav.is-open { display: block; }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__list a { display: block; padding: 12px 4px; text-decoration: none; font-weight: 600; color: var(--c-ink); border-bottom: 1px solid var(--c-line); }
.nav__list .sub-menu { list-style: none; padding-left: 16px; }
.nav__actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
@media (min-width: 1140px) {
	.nav-toggle { display: none; }
	.nav { display: flex; position: static; align-items: center; gap: 24px; padding: 0; box-shadow: none; border: 0; background: none; }
	.nav__list { display: flex; gap: 4px; }
	.nav__list a { border: 0; padding: 8px 10px; border-radius: var(--radius-sm); white-space: nowrap; }
	.nav__list a:hover { background: var(--c-bg-alt); }
	.nav__list .sub-menu { display: none; }
	.nav__actions { margin: 0; }
}

/* ---------- Fil d'Ariane ---------- */
.atp-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 12px 0; font-size: .9rem; color: var(--c-muted); }
.atp-breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 6px; }
.atp-breadcrumb a { color: var(--c-muted); }

/* ---------- Hero ---------- */
.atp-hero { background: linear-gradient(180deg, var(--c-bg-alt), #fff); padding: 24px 0 var(--section); }
.atp-hero--home { background: var(--c-ink); color: #fff; padding-top: var(--section); }
.atp-hero--home h1, .atp-hero--home .atp-hero__lead { color: #fff; }
.atp-hero--home .atp-btn--ghost { color: #fff; border-color: #fff; }
.atp-hero--home .atp-btn--ghost:hover { background: #fff; color: var(--c-ink); }
.atp-hero__grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .atp-hero__grid { grid-template-columns: 1.05fr .95fr; align-items: start; gap: 48px; } .atp-hero__text { position: sticky; top: 96px; } }
.atp-hero__lead { font-size: 1.125rem; color: var(--c-ink-2); max-width: 60ch; }
.atp-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--c-accent); margin-bottom: .5em; }
.checklist { list-style: none; padding: 0; margin: 0 0 8px; }
.checklist li { padding-left: 28px; position: relative; margin: 6px 0; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--c-accent); border-bottom: 3px solid var(--c-accent); transform: rotate(-45deg); }
.atp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 20px 0 0; }
.atp-facts div { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 10px 12px; }
.atp-facts dt { font-size: .8rem; color: var(--c-muted); }
.atp-facts dd { margin: 0; font-weight: 800; font-size: 1.05rem; }
.atp-note { font-size: .875rem; color: var(--c-muted); }

/* ---------- Formulaire ---------- */
.atp-booking { background: #fff; color: var(--c-ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; border: 1px solid var(--c-line); }
@media (min-width: 640px) { .atp-booking { padding: 28px; } }
.atp-booking__title { font-size: 1.35rem; margin-bottom: .25em; }
.atp-booking__lead { font-size: .95rem; color: var(--c-muted); }
.atp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.atp-field { display: flex; flex-direction: column; min-width: 0; }
.atp-field--full { grid-column: 1 / -1; }
.atp-field label { font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.atp-field input, .atp-field select, .atp-field textarea { width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--c-ink); background: #fff; border: 1.5px solid #b8c3d3; border-radius: var(--radius-sm); }
.atp-field textarea { min-height: 84px; }
.atp-field input:focus, .atp-field select:focus, .atp-field textarea:focus { border-color: var(--c-ink); outline: 3px solid rgba(242,169,31,.45); outline-offset: 0; }
.atp-field [aria-invalid="true"] { border-color: var(--c-err); }
.atp-check { flex-direction: row; align-items: flex-start; gap: 10px; }
.atp-check input { width: 22px; min-height: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--c-ink); }
.atp-check label { font-weight: 400; }
.atp-check .atp-error { flex-basis: 100%; }
.atp-error { color: var(--c-err); font-size: .85rem; margin: 4px 0 0; min-height: 0; }
.atp-error:empty { display: none; }
.atp-form__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.atp-form__actions .atp-btn { flex: 1 1 220px; }
.atp-alert { padding: 12px 14px; border-radius: var(--radius-sm); margin: 12px 0; font-size: .95rem; }
.atp-alert--ok { background: #e7f6ec; color: #0b5a26; border: 1px solid #b6e2c4; }
.atp-alert--err { background: #fdecea; color: #8c1d18; border: 1px solid #f3c1bc; }
.atp-form__result:empty { display: none; }
.atp-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.atp-quickcab { margin-top: 20px; }

/* ---------- Sections & cartes ---------- */
.section { padding: var(--section) 0; }
.section--alt { background: var(--c-bg-alt); }
.section--cta { background: var(--c-ink); color: #fff; text-align: center; }
.section--cta h2 { color: #fff; }
.section--cta .atp-hero__cta { justify-content: center; }
.section__head { max-width: 72ch; margin-bottom: 24px; }
.atp-cards { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.atp-card__link { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); text-decoration: none; color: var(--c-ink); transition: border-color .15s, box-shadow .15s; }
.atp-card__link:hover { border-color: var(--c-ink); box-shadow: var(--shadow); }
.atp-card__title { font-weight: 800; font-size: 1.08rem; }
.atp-card__text { color: var(--c-muted); font-size: .95rem; }
.atp-card__price { margin-top: auto; font-weight: 700; color: var(--c-ink-2); }
.link-more { font-weight: 700; }

/* ---------- Contenu ---------- */
.prose { max-width: 75ch; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--c-line); padding: 8px 10px; text-align: left; }
.page-content { padding-top: 16px; padding-bottom: var(--section); }
.meta { color: var(--c-muted); font-size: .9rem; }
.atp-body { display: grid; gap: 40px; padding-top: var(--section); padding-bottom: var(--section); }
@media (min-width: 1000px) { .atp-body { grid-template-columns: minmax(0, 1fr) 320px; } }
.atp-steps { padding-left: 1.3em; }
.atp-steps--cards { list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; }
.atp-steps--cards li { counter-increment: s; background: var(--c-bg-alt); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.atp-steps--cards li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--c-accent); font-weight: 800; display: grid; place-items: center; margin-bottom: 6px; }
.atp-faq details { border: 1px solid var(--c-line); border-radius: var(--radius-sm); margin: 8px 0; background: #fff; }
.atp-faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style-position: inside; }
.atp-faq details > div { padding: 0 16px 6px; }
.atp-legal-note { margin-top: 2em; padding: 14px 16px; background: var(--c-bg-alt); border-left: 4px solid var(--c-accent); border-radius: var(--radius-sm); font-size: .925rem; }
.atp-links { display: flex; flex-direction: column; gap: 24px; }
.atp-links__title { font-size: 1.05rem; margin-bottom: .5em; }
.atp-links ul { list-style: none; margin: 0; padding: 0; }
.atp-links li a { display: block; padding: 7px 0; border-bottom: 1px solid var(--c-line); text-decoration: none; }
.atp-links li a:hover { text-decoration: underline; }
.atp-links__cols { columns: 2 140px; column-gap: 20px; }
.post-cta { margin-top: 2em; padding: 20px; border-radius: var(--radius); background: var(--c-bg-alt); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.post-cta p { margin: 0; flex-basis: 100%; }
.atp-mentions dt { font-weight: 700; margin-top: .8em; }
.atp-mentions dd { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #08172c; color: #c9d4e3; padding: var(--section) 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-footer .brand__name { color: #fff; }
.site-footer__title { font-weight: 800; color: #fff; margin-bottom: .6em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
.legal-list { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Barre d'actions mobile ---------- */
.mobile-bar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); background: var(--c-ink); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(0,0,0,.15); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 56px; color: #fff; font-weight: 700; text-decoration: none; border-right: 1px solid rgba(255,255,255,.15); }
.mobile-bar a:first-child { background: var(--c-accent); color: var(--c-accent-ink); }
.mobile-bar a:last-child { border-right: 0; }
@media (min-width: 900px) { .mobile-bar { display: none; } }

/* Compatibilité contenus WPBakery restants (pages non encore réécrites) */
.vc_row { margin-left: 0 !important; margin-right: 0 !important; }
