/* PsyMarne – styles communs (accueil, mentions légales, 404) */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-wght.woff2') format('woff2');
}

:root {
  --terra: #A85E38;
  --terra-dark: #8F4D2C;
  --terra-soft: #C87D55;
  --terra-50: #FBF1EB;
  --teal: #3D7472;
  --teal-dark: #24504E;
  --teal-soft: #609090;
  --teal-50: #EAF3F1;
  --ink: #1F1B18;
  --muted: #5B5550;
  --bg: #FBF8F5;
  --surface: #FFFFFF;
  --line: #ECE5DE;
  --radius-lg: 28px;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(31, 27, 24, 0.04), 0 12px 32px rgba(31, 27, 24, 0.06);
  --shadow-lg: 0 2px 4px rgba(31, 27, 24, 0.04), 0 24px 60px rgba(31, 27, 24, 0.10);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--muted);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: clip;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; }
strong { color: var(--ink); font-weight: 600; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.icon { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

section[id] { scroll-margin-top: 96px; }


/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  text-decoration: none; white-space: nowrap; border: 1px solid transparent;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-primary { background: var(--terra); color: #fff; box-shadow: 0 8px 20px rgba(168, 94, 56, 0.28); }
.btn-primary:hover { background: var(--terra-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, 0.7); color: var(--ink); border-color: var(--line); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-light { background: #fff; color: var(--teal-dark); }
.btn-light:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--teal-soft); outline-offset: 3px; }

/* ---------- En-tête flottant ---------- */
.header {
  position: sticky; top: 12px; z-index: 100;
  width: min(1180px, 100% - 24px); margin: 12px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 18px;
  background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(236, 229, 222, 0.9); border-radius: 999px;
  box-shadow: 0 8px 30px rgba(31, 27, 24, 0.06);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -0.02em; }
.brand img { width: 38px; height: 38px; }
.nav { display: flex; gap: 4px; list-style: none; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  font-size: 14px; font-weight: 600; color: var(--muted); transition: background-color 0.2s, color 0.2s;
}
.nav a:hover { background: var(--teal-50); color: var(--teal-dark); }
.header .btn { padding: 11px 20px; font-size: 14px; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); font-size: 20px; cursor: pointer; align-items: center; justify-content: center; }
.burger:hover { background: var(--teal-50); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px); z-index: -1; opacity: 0.55;
}
.hero::before { width: 520px; height: 520px; background: #F3D3BF; top: -120px; right: -80px; }
.hero::after { width: 460px; height: 460px; background: #CFE3DF; bottom: -160px; left: -120px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 700; letter-spacing: -0.035em; margin: 18px 0 18px; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--terra) 10%, var(--teal) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 20px; font-weight: 600; color: var(--terra); margin-bottom: 18px; }
.hero-lead { font-size: 18px; max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.chip .icon { color: var(--teal); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.blob {
  width: min(440px, 100%); aspect-ratio: 1;
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  background: linear-gradient(145deg, #FFFFFF 0%, #FFF6F0 45%, #EAF3F1 100%);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
}
.blob img { width: 70%; height: auto; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px;
  box-shadow: var(--shadow); font-size: 13px; line-height: 1.35; color: var(--muted);
}
.float-card strong { display: block; font-size: 14px; }
.float-card .badge {
  width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.float-1 { left: -40px; top: 6%; }
.float-1 .badge { background: var(--teal-50); color: var(--teal); }
.float-2 { right: -20px; bottom: 6%; }
.float-2 .badge { background: var(--terra-50); color: var(--terra); }

/* ---------- Titres de section ---------- */
.section { padding: 110px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; margin: 14px 0 14px; letter-spacing: -0.03em; }
.section-head p { font-size: 17px; }

/* ---------- Présentation ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-text p { font-size: 17px; }
.about-text p + p { margin-top: 16px; }
.features { display: grid; gap: 14px; }
.feature {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.feature .badge {
  width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--teal-50); color: var(--teal); font-size: 19px; flex-shrink: 0;
}
.feature h3 { font-size: 17px; margin-bottom: 4px; letter-spacing: -0.01em; }
.feature p { font-size: 14.5px; line-height: 1.6; }

/* ---------- Expertises (grille "bento") ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  position: relative; border-radius: var(--radius-lg); padding: 32px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile-xl { grid-column: span 4; background: linear-gradient(160deg, var(--teal-dark) 0%, #2E6664 100%); border: 0; color: #DCEBE8; }
.tile-xl h3, .tile-xl strong { color: #fff; }
.tile-sm { grid-column: span 2; }
.tile-md { grid-column: span 2; }
.tile .tile-icon {
  width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 22px; background: var(--terra-50); color: var(--terra);
}
.tile-xl .tile-icon { background: rgba(255, 255, 255, 0.12); color: #fff; }
.tile h3 { font-size: 22px; margin-bottom: 10px; }
.tile-xl h3 { font-size: 30px; }
.tile p { font-size: 15px; }
.tile-xl p { font-size: 16px; max-width: 560px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; list-style: none; }
.tags li { font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); }
.tile-xl .tags li { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.tile-xl::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 125, 85, 0.45), rgba(200, 125, 85, 0) 70%);
}

/* ---------- Déroulement ---------- */
.steps-section {
  position: relative; isolation: isolate;
  background:
    linear-gradient(180deg, rgba(251, 248, 245, 0.92) 0%, rgba(251, 248, 245, 0.72) 38%, rgba(251, 248, 245, 0.55) 100%),
    url('/images/fond-demarche.jpg') center / cover no-repeat;
}
.steps-section .step {
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.9); border-radius: var(--radius);
  padding: 28px 20px 26px; box-shadow: var(--shadow);
}
.steps-section .steps::before { top: 59px; z-index: 0; background: repeating-linear-gradient(90deg, rgba(168, 94, 56, 0.35) 0 8px, transparent 8px 14px); }
.steps-section .step-num { box-shadow: none; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; list-style: none; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 31px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.step { position: relative; text-align: center; padding: 0 10px; }
.step-num {
  position: relative; width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 2px solid var(--terra-soft); color: var(--terra);
  font-size: 22px; font-weight: 700; box-shadow: 0 0 0 8px var(--surface);
}
.step:last-child .step-num { background: var(--terra); color: #fff; border-color: var(--terra); }
.step h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -0.01em; }
.step p { font-size: 14.5px; line-height: 1.6; }

/* ---------- Tarifs ---------- */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 64px; }
.price {
  border-radius: var(--radius); padding: 26px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.price.highlight { background: var(--terra-50); border-color: #F0D9CB; }
.price .label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal); }
/* Alignement des étiquettes, prix et textes d'une carte à l'autre */
@supports (grid-template-rows: subgrid) {
  .price { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .price .label { align-self: start; }
  .price .amount { align-self: end; }
}
@supports not (grid-template-rows: subgrid) {
  .price .label { display: block; min-height: 46px; }
}
.price .label-detail { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.price .amount { font-size: 30px; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; margin: 10px 0 6px; line-height: 1.1; }
.price .amount small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price p { font-size: 14px; line-height: 1.55; }
.price-note { text-align: center; font-size: 14px; margin: -40px 0 56px; }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: border-color 0.2s, box-shadow 0.2s; }
.faq-item[open] { border-color: #CFE3DF; box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; position: relative;
  font-weight: 600; color: var(--ink); font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--teal-50); color: var(--teal);
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 500; transition: transform 0.25s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:focus-visible { outline: 3px solid var(--teal-soft); outline-offset: 2px; border-radius: 18px; }
.faq-reponse { padding: 0 24px 22px; font-size: 15px; }
.faq-reponse p + p, .faq-reponse ul + p, .faq-reponse p + ul { margin-top: 10px; }
.faq-reponse ul { padding-left: 20px; }
.faq-reponse li { margin-bottom: 6px; }

/* ---------- Rendez-vous ---------- */
.booking { background: var(--teal-dark); color: #CFE1DE; position: relative; overflow: hidden; }
.booking::before {
  content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; top: -260px; right: -200px;
  background: radial-gradient(circle, rgba(200, 125, 85, 0.35), rgba(200, 125, 85, 0) 65%);
}
.booking-grid { position: relative; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.booking .eyebrow { color: #9FC6C1; }
.booking h2 { color: #fff; font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; margin: 14px 0 16px; letter-spacing: -0.03em; }
.booking p { font-size: 17px; }
.booking-list { list-style: none; margin: 26px 0 32px; display: grid; gap: 12px; }
.booking-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: #fff; }
.booking-list .icon { color: #9FC6C1; }
.agenda {
  background: #fff; border-radius: var(--radius-lg); padding: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}
.agenda iframe { display: block; width: 100%; height: 540px; border: 0; border-radius: 20px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.place {
  border-radius: var(--radius); padding: 28px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.place .tile-icon {
  width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 18px; background: var(--teal-50); color: var(--teal);
}
.place h3 { font-size: 19px; margin-bottom: 6px; letter-spacing: -0.01em; }
.place p { font-size: 15px; }
.hours { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 4px 16px; font-size: 14px; margin-top: 14px; }
.hours dd { font-weight: 600; color: var(--ink); }
.place .note { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--teal); }
.place-link { display: inline-block; margin-top: 10px; font-size: 14.5px; font-weight: 700; color: var(--terra); text-decoration: none; }
.place-link:hover { text-decoration: underline; }
.tile .place-link { margin-top: 16px; }
.tile-xl .place-link { color: #F6D9C6; }
.tile-links { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.contact-bar {
  margin-top: 18px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
  padding: 22px 28px; border-radius: var(--radius); background: var(--terra-50); border: 1px solid #F0D9CB;
}
.contact-links { display: flex; flex-wrap: wrap; gap: 10px 30px; list-style: none; }
.contact-links a { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); text-decoration: none; font-size: 16px; }
.contact-links a:hover { color: var(--terra); }
.contact-links .icon { color: var(--terra); font-size: 18px; }
/* Carte */
.map-card {
  position: relative; isolation: isolate; margin-top: 18px; height: 380px; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #F7F2ED;
}
#real-map { position: absolute; inset: 0; z-index: 1; }
.map-overlay {
  position: absolute; inset: 0; z-index: 2; width: 100%; border: 0; padding: 0; margin: 0;
  background: transparent; cursor: pointer; display: block; font: inherit;
}
.map-overlay > svg { width: 100%; height: 100%; display: block; }
.map-cta {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 12px 20px; border-radius: 999px; background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; font-weight: 600; color: var(--teal-dark);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.map-overlay:hover .map-cta { transform: translateX(-50%) translateY(-2px); box-shadow: var(--shadow-lg); }
.map-overlay:focus-visible { outline: 3px solid var(--teal-soft); outline-offset: -3px; }
.map-card.active .map-overlay { display: none; }
.map-reset {
  display: none; position: absolute; top: 14px; right: 14px; z-index: 3; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; box-shadow: var(--shadow);
}
.map-card.active .map-reset { display: inline-flex; }

.contact-bar .partner {
  flex: 1 1 260px; text-align: center; font-size: 13.5px; line-height: 1.5; color: var(--muted);
  padding: 0 22px; border-left: 1px solid #EBD3C4; border-right: 1px solid #EBD3C4;
}
.partner a { color: var(--terra); font-weight: 600; white-space: nowrap; }

/* ---------- Pied de page ---------- */
.footer { background: #171412; color: #A8A29E; padding: 72px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-logo { display: inline-block; margin-bottom: 20px; opacity: 0.95; transition: opacity 0.2s; }
.footer-logo:hover { opacity: 1; }
.footer-logo img { width: 170px; height: auto; }
.footer .footer-title { color: #fff; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 8px; font-size: 15px; }
.footer a { color: #D6D3D1; text-decoration: none; }
.footer a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.08); color: #E7E5E4; font-size: 16px; transition: background-color 0.2s;
}
.socials a:hover { background: var(--terra); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: 48px; padding-top: 24px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Barre mobile ---------- */
.mobile-cta { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .header .btn-desktop { display: none; }
  .burger { display: flex; }
  .contact-bar { flex-direction: column; align-items: stretch; }
  .contact-bar .partner { flex: none; padding: 14px 0; border: 0; border-top: 1px solid #EBD3C4; border-bottom: 1px solid #EBD3C4; }
  .contact-bar .btn { align-self: center; }
  .header.open { border-radius: 26px; flex-wrap: wrap; }
  .header.open > nav { order: 3; width: 100%; }
  .header.open .nav { display: flex; flex-direction: column; width: 100%; padding: 6px 0 10px; }
  .header.open .nav a { padding: 12px 14px; font-size: 16px; }
}

@media (max-width: 960px) {
  .hero { padding: 40px 0 70px; }
  .hero-grid, .about-grid, .booking-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .blob { width: 240px; }
  .float-card { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-xl { grid-column: span 2; grid-row: auto; }
  .tile-sm, .tile-md { grid-column: span 1; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .prices { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 17px; }
  .hero-lead { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .blob { width: 112px; }
  .hero { padding: 24px 0 56px; }
  .hero-grid { gap: 22px; }
  .hero h1 { margin: 12px 0 12px; }
  .bento, .prices { grid-template-columns: 1fr; }
  .tile-xl, .tile-sm, .tile-md { grid-column: auto; }
  .tile, .tile-xl { padding: 26px; }
  .tile-xl h3 { font-size: 24px; }
  .steps { grid-template-columns: 1fr; text-align: left; }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; text-align: left; padding: 0; }
  .step-num { width: 52px; height: 52px; margin: 0; grid-row: span 2; font-size: 19px; }
  .agenda iframe { height: 560px; }
  .contact-bar { flex-direction: column; align-items: stretch; }
  .contact-bar .partner { flex: none; text-align: left; padding: 14px 0; border: 0; border-top: 1px solid #EBD3C4; border-bottom: 1px solid #EBD3C4; }
  .map-card { height: 300px; }
  .contact-links { flex-direction: column; }
  .contact-links a { min-height: 44px; }
  .footer-grid { grid-template-columns: 1fr; }

  .mobile-cta {
    display: flex; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 200;
    padding: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(14px);
    border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(31, 27, 24, 0.18);
  }
  .mobile-cta a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 10px;
    border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none;
  }
  .mobile-cta .call { background: var(--teal-50); color: var(--teal-dark); }
  .mobile-cta .rdv { background: var(--terra); color: #fff; }
  body { padding-bottom: 90px; }
}

/* Animation du logo (accueil) */
.hero-visual { perspective: 900px; }
.blob-halo {
  position: absolute; top: 50%; left: 50%; width: min(540px, 124%); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; z-index: 0; opacity: 0.75; filter: blur(26px); pointer-events: none;
  background: conic-gradient(from 0deg, rgba(200, 125, 85, 0.55), rgba(96, 144, 144, 0.5), rgba(243, 211, 191, 0.6), rgba(61, 116, 114, 0.45), rgba(200, 125, 85, 0.55));
  animation: halo-spin 22s linear infinite, fade-in 1.4s ease backwards;
}
.blob {
  position: relative; z-index: 1; transform-style: preserve-3d; will-change: transform;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  animation: blob-morph 14s ease-in-out infinite, blob-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.blob img { animation: logo-float 7s ease-in-out 1.3s infinite, logo-in 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s backwards; }
.float-card { z-index: 2; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.float-1 { animation: card-in-left 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.7s backwards, card-bob 6s ease-in-out 1.6s infinite; }
.float-2 { animation: card-in-right 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.9s backwards, card-bob 7s ease-in-out 2.4s infinite; }
.hero.is-paused .blob, .hero.is-paused .blob img, .hero.is-paused .blob-halo, .hero.is-paused .float-card { animation-play-state: paused; }

@keyframes halo-spin { to { rotate: 360deg; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes blob-morph {
  0%, 100% { border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; }
  33% { border-radius: 55% 45% 40% 60% / 55% 58% 42% 45%; }
  66% { border-radius: 45% 55% 60% 40% / 42% 50% 50% 58%; }
}
@keyframes blob-in { from { opacity: 0; scale: 0.82; } }
@keyframes logo-in { from { opacity: 0; transform: scale(0.6) rotate(-14deg); } }
@keyframes logo-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes card-in-left { from { opacity: 0; transform: translateX(-24px); } }
@keyframes card-in-right { from { opacity: 0; transform: translateX(24px); } }
@keyframes card-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

@media (prefers-reduced-motion: reduce) {
  .blob-halo, .blob, .blob img, .float-1, .float-2 { animation: none; }
  .blob { transition: none; }
}

/* Étiquettes qui changent au clic */
button.blob { border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; }
button.blob:focus-visible { outline: 3px solid var(--teal-soft); outline-offset: 6px; }
.float-card { cursor: pointer; user-select: none; }
.float-card:hover { box-shadow: var(--shadow-lg); }
.float-card .fc-sub { display: block; }
.float-card > span:last-child { transition: opacity 0.28s ease, translate 0.28s ease; }
.float-card .badge svg { transition: opacity 0.28s ease, scale 0.28s ease; }
.float-cards.is-swapping .float-card > span:last-child { opacity: 0; translate: 0 6px; }
.float-cards.is-swapping .float-card .badge svg { opacity: 0; scale: 0.6; }
.blob img.is-pop { animation: logo-float 7s ease-in-out infinite, logo-pop 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes logo-pop { 40% { transform: scale(1.06) rotate(-8deg); } }
.facts-dots {
  position: absolute; left: 50%; bottom: -26px; translate: -50% 0; display: flex; gap: 8px; z-index: 2;
}
.facts-dots span { width: 7px; height: 7px; border-radius: 50%; background: #D9CFC6; transition: background-color 0.3s, width 0.3s; }
.facts-dots span.on { width: 20px; border-radius: 999px; background: var(--terra-soft); }
@media (max-width: 960px) { .facts-dots { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .float-cards.is-swapping .float-card > span:last-child, .float-cards.is-swapping .float-card .badge svg { opacity: 1; translate: none; scale: none; }
  .blob img.is-pop { animation: none; }
}

/* Accessibilité (audit) */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
/* Contour de focus visible et homogène sur tous les éléments interactifs */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--teal-soft); outline-offset: 3px; border-radius: 8px;
}
.booking a:focus-visible, .footer a:focus-visible { outline-color: #FFFFFF; }
/* Contrastes renforcés */
.hero-sub { color: var(--terra-dark); }
.partner a { color: var(--terra-dark); }
/* Cibles tactiles >= 44 px */
.socials a { width: 44px; height: 44px; }
.footer ul a { display: inline-block; padding: 6px 0; }
.footer ul { gap: 2px; }
/* Mode contraste élevé de Windows : le titre en dégradé reste visible */
@media (forced-colors: active) {
  .hero h1 .accent { color: CanvasText; background: none; }
}

/* Illustrations des cartes Expertises */
.tile-illu { display: block; width: auto; height: 116px; margin: -6px 0 16px -6px; overflow: visible; }
.tile-illu-xl { position: absolute; top: 22px; right: 22px; height: 170px; margin: 0; z-index: 0; }
.tile-xl > :not(.tile-illu-xl) { position: relative; z-index: 1; }
.tile-xl h3 { margin-top: 6px; }
.tile-xl h3, .tile-xl > p { max-width: calc(100% - 240px); }
.tile .tile-illu { transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); transform-origin: 30% 80%; }
.tile:hover .tile-illu { transform: translateY(-3px) rotate(-1.5deg); }
.tile:hover .tile-illu-xl { transform: translateY(-3px) rotate(1.5deg); }
@media (max-width: 960px) {
  .tile-xl h3, .tile-xl > p { max-width: none; }
  .tile-illu-xl { position: static; height: 130px; margin: -4px 0 14px -6px; }
}
@media (prefers-reduced-motion: reduce) { .tile:hover .tile-illu { transform: none; } }

/* Photo de la façade (carte Saint-Brice-Courcelles) */
.place-photo { position: relative; margin: -28px -28px 0; }
.place-photo img { display: block; width: 100%; height: 180px; object-fit: cover; object-position: 62% 55%; }
.place-photo figcaption {
  position: absolute; right: 10px; bottom: 10px; padding: 2px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.85); font-size: 11px; color: var(--muted);
}
.place-illu svg { display: block; width: 100%; height: 180px; }
.place-with-photo .place-pin { position: relative; margin-top: -23px; border: 3px solid #fff; z-index: 1; }

/* Animations : lieux d'accueil */
.place {
  position: relative; overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.place::before {
  content: ""; position: absolute; top: 0; left: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--terra-soft), var(--teal-soft));
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.place::after {
  content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -70px; border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 144, 144, 0.16), rgba(96, 144, 144, 0) 70%);
  opacity: 0; transform: scale(0.6); transition: opacity 0.45s ease, transform 0.45s ease; pointer-events: none;
}
.place .tile-icon { transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s ease; }
.place:hover, .place:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #D3E4E0; }
.place:hover::before, .place:focus-within::before { transform: scaleX(1); }
.place:hover::after, .place:focus-within::after { opacity: 1; transform: scale(1); }
.place:hover .tile-icon, .place:focus-within .tile-icon { background: var(--teal); color: #fff; transform: rotate(-6deg) scale(1.06); }
.place:hover .tile-icon .icon { animation: pin-bounce 0.7s ease; }

@keyframes pin-bounce {
  0%, 100% { transform: translateY(0); }
  35% { transform: translateY(-5px); }
  60% { transform: translateY(1px); }
  80% { transform: translateY(-2px); }
}

/* Apparition au défilement (uniquement si JavaScript est actif) */
.js .reveal { opacity: 0; }
.js .reveal.is-visible {
  opacity: 1;
  animation: reveal-up 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  animation-delay: var(--d, 0ms);
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.is-visible { opacity: 1; animation: none; }
  .place:hover, .place:focus-within { transform: none; }
  .place:hover .tile-icon, .place:focus-within .tile-icon { transform: none; }
  .place:hover .tile-icon .icon { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
