/* ==========================================================================
   Focaccio Airport Parking — Stationnement aéroportuaire (YUL)
   Feuille de styles principale
   --------------------------------------------------------------------------
   Thème clair, moderne, responsive (mobile-first).
   Palette : navy + teal, bouton d'action (CTA) contrasté.
   ========================================================================== */

/* ----------  Variables  ---------- */
:root {
  /* Couleurs de marque */
  --brand:        #0B2A4A;   /* navy profond */
  --brand-700:    #0E3358;
  --brand-600:    #14406e;
  --brand-500:    #1d5088;
  --accent:       #0EA5A4;   /* teal */
  --accent-600:   #0C8F8E;
  --accent-050:   #E6F7F7;
  --cta:          #F59E0B;   /* ambre — bouton Réserver */
  --cta-600:      #D98704;

  /* Neutres */
  --bg:           #ffffff;
  --bg-alt:       #F5F8FB;   /* fond de section alterné */
  --bg-soft:      #EEF3F8;
  --card:         #ffffff;
  --text:         #14202E;
  --muted:        #5A6B7B;
  --border:       #E2E8F0;
  --border-strong:#CBD5E1;

  /* Effets */
  --radius:       14px;
  --radius-sm:    10px;
  --radius-lg:    22px;
  --shadow-sm:    0 1px 2px rgba(11,42,74,.06), 0 1px 3px rgba(11,42,74,.08);
  --shadow:       0 6px 18px rgba(11,42,74,.08), 0 2px 6px rgba(11,42,74,.06);
  --shadow-lg:    0 18px 40px rgba(11,42,74,.14);
  --ring:         0 0 0 3px rgba(14,165,164,.35);

  /* Mise en page */
  --container:    1160px;
  --gutter:       clamp(16px, 4vw, 32px);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

/* ----------  Reset léger  ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: var(--accent-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--brand); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

/* Accessibilité : focus visible */
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--brand); color:#fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ----------  Bascule de langue (FR par défaut, EN masqué)  ---------- */
/* Le contenu français s'affiche même sans JavaScript => conformité Loi 96 */
.t.en { display: none; }
html.lang-en .t.fr { display: none; }
html.lang-en .t.en { display: revert; }

/* ----------  Conteneur & sections  ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(48px, 8vw, 96px) 0; }
[id] { scroll-margin-top: 88px; } /* compense l'en-tête fixe lors des ancres */
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.section-head .eyebrow { color: var(--accent-600); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-600); margin-bottom: .6rem;
}

/* ----------  Boutons  ---------- */
.btn {
  --btn-bg: var(--brand); --btn-fg:#fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: inherit; font-weight: 700; line-height: 1;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--cta      { --btn-bg: var(--cta); --btn-fg:#3a2600; box-shadow: 0 8px 20px rgba(245,158,11,.35); }
.btn--cta:hover{ --btn-bg: var(--cta-600); }
.btn--accent   { --btn-bg: var(--accent); }
.btn--accent:hover { --btn-bg: var(--accent-600); }
.btn--outline  { background: transparent; color: var(--brand); border-color: var(--border-strong); }
.btn--outline:hover { background: var(--bg-soft); box-shadow: none; transform: translateY(-1px); }
.btn--ghost    { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--lg { padding: 17px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ----------  En-tête / navigation  ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--brand); font-size: 1.15rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 40px; height: 40px; flex: 0 0 auto; }
.nav-links { display: none; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--text); font-weight: 600; font-size: .98rem; }
.nav-links a:hover { color: var(--accent-600); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 20px; }

/* Bascule de langue */
.lang-switch { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  font: inherit; font-weight: 700; font-size: .82rem; border: 0; background: transparent;
  color: var(--muted); padding: 8px 12px; cursor: pointer; line-height: 1;
}
.lang-switch button[aria-pressed="true"] { background: var(--brand); color: #fff; }

/* Menu mobile (hamburger) */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--border-strong);
  border-radius: 10px; background: #fff; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--brand);
  position: relative; transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
.nav[data-open="true"] .nav-toggle span { background: transparent; }
.nav[data-open="true"] .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav[data-open="true"] .nav-toggle span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .mobile-panel {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    padding: 14px var(--gutter) 22px;
  }
  .nav[data-open="true"] .mobile-panel { display: block; }
  .mobile-panel a { display: block; padding: 12px 4px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); }
  .mobile-panel .btn { margin-top: 14px; }
  .nav-actions .btn--cta { display: none; } /* CTA déjà présent dans le menu mobile + le héro */
}
@media (min-width: 901px) {
  .nav-links { display: flex; }
  .nav-toggle, .mobile-panel { display: none; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  /* Liens du menu + bouton ne tiennent pas sur une ligne → débordement horizontal ; le héro garde son bouton */
  .nav-actions .btn--cta { display: none; }
}

/* Petits écrans : compacter l'en-tête pour éviter tout débordement horizontal */
@media (max-width: 560px) {
  .brand { font-size: 1rem; min-width: 0; }
  .brand .logo { width: 32px; height: 32px; }
  .nav { gap: 8px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { padding: 9px 12px; font-size: .85rem; }
  .lang-switch button { padding: 7px 10px; }
  .admin-header { flex-wrap: wrap; }
  .admin-header-actions { flex-wrap: wrap; }
}

/* ----------  Hero  ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(14,165,164,.35), transparent 60%),
    linear-gradient(160deg, var(--brand) 0%, var(--brand-700) 45%, #0a3a52 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .18; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 26px 26px;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 40px; align-items: center; padding: clamp(48px,7vw,90px) 0; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: rgba(255,255,255,.9); max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 34px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; color: rgba(255,255,255,.92); }
.hero-badge svg { width: 22px; height: 22px; color: var(--accent); flex: 0 0 auto; }
.hero-visual {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg); padding: 26px; backdrop-filter: blur(6px);
}
.hero-visual h3 { color: #fff; }
.hero-quickfacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 8px; }
.quickfact { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-sm); padding: 16px; }
.quickfact .num { font-size: 1.5rem; font-weight: 800; color: #fff; }
.quickfact .lbl { font-size: .85rem; color: rgba(255,255,255,.8); }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
}

/* ----------  Grilles de cartes  ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .2s ease, border-color .2s;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-050); color: var(--accent-600); margin-bottom: 16px;
}
.card .icon svg { width: 28px; height: 28px; }

/* Carte service (courte / longue durée) */
.service-card { display: flex; flex-direction: column; }
.service-card .tag {
  align-self: flex-start; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-600); background: var(--accent-050); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.feature-list { list-style: none; padding: 0; margin: 16px 0 0; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; color: var(--text); }
.feature-list li svg { width: 20px; height: 20px; color: var(--accent-600); flex: 0 0 auto; margin-top: 3px; }

/* ----------  Étapes « Comment ça fonctionne »  ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; }
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps-3 { grid-template-columns: repeat(3, 1fr); }
}
.step { position: relative; padding-top: 8px; }
.step .num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); margin: 0; }

/* ----------  Bandeau tarifs (sans montant)  ---------- */
.pricing-banner {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-600) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 52px); text-align: center;
}
.pricing-banner h2 { color: #fff; }
.pricing-banner p { color: rgba(255,255,255,.9); max-width: 60ch; margin-inline: auto; }
.pricing-banner .btn { margin-top: 10px; }
.pricing-note { font-size: .9rem; color: rgba(255,255,255,.75); margin-top: 18px; }
.price-hero { margin: 6px 0 2px; }
.price-value { display: inline-block; font-size: clamp(2.4rem, 7vw, 3.8rem); font-weight: 800;
  color: #fff; letter-spacing: -.02em; line-height: 1.05; }
.price-value small { font-size: 1rem; font-weight: 600; color: rgba(255,255,255,.8); }

/* ----------  Emplacement / carte  ---------- */
.map-wrap { display: grid; gap: 26px; }
@media (min-width: 900px) { .map-wrap { grid-template-columns: 1fr 1.3fr; align-items: start; } }
.map-info .addr { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.map-info .addr svg { width: 24px; height: 24px; color: var(--accent-600); flex: 0 0 auto; margin-top: 2px; }
.map-embed {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-soft); box-shadow: var(--shadow-sm);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.map-consent {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px;
  align-items: center; justify-content: center; text-align: center; padding: 24px;
  background:
    linear-gradient(rgba(11,42,74,.55), rgba(11,42,74,.55)),
    repeating-linear-gradient(45deg, #dfe8f1, #dfe8f1 18px, #d5e0ea 18px, #d5e0ea 36px);
  color: #fff;
}
.map-consent svg { width: 40px; height: 40px; }
.map-consent p { max-width: 42ch; font-size: .92rem; color: rgba(255,255,255,.92); margin: 0; }

/* ----------  FAQ (accordéon natif)  ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-summary { max-width: 820px; margin: 0 auto 18px; padding: 14px 18px; background: var(--accent-050);
  border-left: 4px solid var(--accent); border-radius: var(--radius-sm); color: var(--text); }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff;
  padding: 0 20px; margin-bottom: 14px; box-shadow: var(--shadow-sm); transition: border-color .2s;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  list-style: none; cursor: pointer; font-weight: 700; color: var(--brand);
  padding: 18px 34px 18px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--accent-600); font-weight: 400; transition: transform .2s;
}
.faq details[open] summary::after { content: "\2013"; }
.faq .faq-body { padding: 0 0 18px; color: var(--muted); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ----------  Contact  ---------- */
.contact-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item svg { width: 24px; height: 24px; color: var(--accent-600); flex: 0 0 auto; margin-top: 2px; }
.contact-item .lbl { font-size: .85rem; color: var(--muted); }
.contact-item a, .contact-item strong { color: var(--brand); font-weight: 700; }

/* ----------  Pied de page  ---------- */
.site-footer { background: var(--brand); color: rgba(255,255,255,.82); padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.7); font-size: .95rem; max-width: 40ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center;
  font-size: .88rem; color: rgba(255,255,255,.66);
}
.footer-bottom a { text-decoration: underline; }

/* ----------  Bannière de consentement aux cookies (Loi 25)  ---------- */
.cookie-banner {
  position: fixed; z-index: 300; left: 16px; right: 16px; bottom: 16px;
  max-width: 560px; margin-inline: auto;
  background: #fff; color: var(--text); border: 1px solid var(--border-strong);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px;
  display: none;
}
.cookie-banner.is-visible { display: block; animation: cookiein .3s ease; }
@keyframes cookiein { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.cookie-banner h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.cookie-banner p { font-size: .92rem; color: var(--muted); margin-bottom: 16px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { flex: 1 1 auto; padding: 12px 16px; }
/* Bascule des boutons selon la vue (intro vs préférences) */
#cookie-save { display: none; }
.cookie-banner[data-view="prefs"] #cookie-save { display: inline-flex; }
.cookie-banner[data-view="prefs"] #cookie-customize { display: none; }
.cookie-prefs { margin: 6px 0 16px; display: none; }
.cookie-banner[data-view="prefs"] .cookie-prefs { display: block; }
.cookie-banner[data-view="prefs"] .cookie-intro { display: none; }
.cookie-option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--border); }
.cookie-option:first-child { border-top: 0; }
.cookie-option .txt { flex: 1; }
.cookie-option .txt strong { display: block; color: var(--brand); }
.cookie-option .txt span { font-size: .86rem; color: var(--muted); }
.cookie-option input[type="checkbox"] { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent-600); }
.cookie-option input:disabled { opacity: .5; }
.cookie-link-btn { background: none; border: 0; color: var(--accent-600); font: inherit; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; }

/* ----------  Formulaires  ---------- */
.form-page { background: var(--bg-alt); min-height: 100vh; }
.form-shell { display: grid; gap: 28px; padding: clamp(28px,5vw,56px) 0; }
@media (min-width: 920px) { .form-shell { grid-template-columns: 1.5fr .9fr; align-items: start; } }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(22px,4vw,38px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 20px; }
.field.row { display: grid; gap: 20px; }
@media (min-width: 620px) { .field.row.two { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 600; color: var(--brand); margin-bottom: 7px; font-size: .95rem; }
label .req { color: #DC2626; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: var(--ring); outline: none; }
input:invalid:not(:placeholder-shown) { border-color: #E39BA0; }
textarea { min-height: 110px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend { font-weight: 800; color: var(--brand); font-size: 1.15rem; margin-bottom: 6px; padding: 0; }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.consent input[type="checkbox"] { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--accent-600); }
.consent label { font-weight: 500; color: var(--text); margin: 0; font-size: .93rem; }
.form-divider { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }

/* Aparté / encadré d'information */
.aside-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); position: sticky; top: 90px; }
.aside-card h3 { font-size: 1.15rem; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.summary-line:last-of-type { border-bottom: 0; }
.summary-line .val { font-weight: 700; color: var(--brand); text-align: right; }

/* Note / avertissement (intégration à venir) */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: #FFF8E8; border: 1px solid #F5D98B; color: #6B4E02;
  border-radius: var(--radius-sm); padding: 16px 18px; font-size: .92rem;
}
.notice svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--cta-600); margin-top: 1px; }
.notice.info { background: var(--accent-050); border-color: #9FDCDB; color: #0A5E5D; }
.notice.info svg { color: var(--accent-600); }

/* Disponibilité en direct (page réservation) */
.avail { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius-sm);
  margin-top: 8px; font-weight: 600; border: 1px solid var(--border); }
.avail .avail-icon { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem; }
.avail.pending { background: var(--bg-alt); color: var(--muted); }
.avail.pending .avail-icon { background: var(--muted); }
.avail.ok  { background: #E3F6EC; border-color: #B7E6C8; color: #1B7A45; }
.avail.ok  .avail-icon { background: #1B9E52; }
.avail.bad { background: #FDECEA; border-color: #F5C2C0; color: #A12622; }
.avail.bad .avail-icon { background: #C0392B; }

/* Confirmation de réservation */
.success-check { width: 64px; height: 64px; border-radius: 50%; background: #E3F6EC; color: #1B9E52;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.success-check svg { width: 34px; height: 34px; }

/* Champ piège anti-robot (honeypot) : invisible pour les humains, sans provoquer de débordement */
.hp-field { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Vue de paiement (iframe Payfacto SHC) */
#shc-fields { min-height: 120px; margin-top: 10px; }
#shc-fields:empty { min-height: 0; margin-top: 0; }   /* vidé après un échec : pas de trou au-dessus du message */
.link-back { background: none; border: 0; color: var(--accent-600); font: inherit; font-weight: 600;
  cursor: pointer; padding: 0 0 12px; text-decoration: underline; }
.pay-error { margin-top: 14px; background: #FDECEA; border: 1px solid #F5C2C0; color: #A12622;
  padding: 12px 14px; border-radius: var(--radius-sm); font-size: .92rem; }
/* Après un échec de paiement : deux choix clairs */
.pay-retry { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pay-retry[hidden] { display: none; }
.pay-retry .btn { flex: 1 1 220px; justify-content: center; }

/* Sections « Payer avec Interac » et « carte » : insérées par shc.js dans notre page. Son CSS centre les
   légendes avec « margin:auto » (dans un fieldset flex), ce que Safari/WebKit ignore → texte décalé.
   Une légende flottante n'est plus dessinée « dans la bordure » : elle se comporte comme un bloc normal,
   centrable de façon identique dans tous les navigateurs. Spécificité ID pour passer devant le CSS de shc.js. */
#shc-fields #shc-redirect-payments-container { display: block; min-width: 0; margin: 12px 0 0;
  padding: 14px 16px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); text-align: center; }
#shc-fields #shc-redirect-payments-container.hidden { display: none; }
#shc-fields #shc-redirect-payments-container > legend,
#shc-fields .shc-iframe-fieldset > legend { float: left; width: 100%; margin: 0 0 10px; padding: 0;
  text-align: center; font-family: inherit; font-size: .95rem; font-weight: 700; line-height: 1.3; color: var(--brand); }
#shc-fields #shc-redirect-payments-container > :not(legend) { clear: both; display: block; width: 100%; margin: 8px auto 0; }
#shc-fields #shc-redirect-payments-container > legend + * { margin-top: 0; }
#shc-fields .shc-iframe-fieldset { min-width: 0; margin: 14px 0 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--border); }
#shc-fields .shc-iframe-fieldset > :not(legend) { clear: both; }
#shc-fields #shc-redirect-payments-container.hidden ~ .shc-iframe-fieldset { margin-top: 0; padding-top: 0; border-top: 0; }

/* ----------  Pages légales  ---------- */
.legal { background: var(--bg); }
.legal-wrap { max-width: 820px; margin-inline: auto; padding: clamp(32px,5vw,64px) 0; }
.legal-wrap h1 { margin-bottom: .2em; }
.legal-meta { color: var(--muted); font-size: .9rem; margin-bottom: 32px; }
.legal-wrap h2 { font-size: 1.4rem; margin-top: 2em; padding-top: .4em; }
.legal-wrap h3 { font-size: 1.1rem; margin-top: 1.4em; }
.legal-wrap p, .legal-wrap li { color: #33424F; }
.legal-toc { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 8px; }
.legal-toc ol { margin: 0; }
.legal-toc a { color: var(--brand); font-weight: 600; }
.placeholder { background: #FFF3CD; padding: 1px 6px; border-radius: 4px; font-weight: 700; color: #6B4E02; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 24px; }
.back-link svg { width: 18px; height: 18px; }

/* ----------  Utilitaires  ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--muted); }
.hide { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
