/* ==========================================================================
   Clinique Val de Grâce — feuille de style (mobile d'abord)
   Palette tirée du logo : bleu clinique + rouge croix, sur blanc et bleu glacier.
   ========================================================================== */

:root {
  --marine: #0b2a4a;
  --ink: #17324f;
  --muted: #516882;
  --blue: #0a7bd6;
  --blue-dark: #075fa8;
  --sky: #eaf3fb;
  --sky-2: #d9e9f6;
  --line: #d3e1ee;
  --red: #e4002b;
  --red-dark: #bf0023;
  --rose: #c42b6b;
  --rose-soft: #fdeaf2;
  --rose-line: #f4c6da;
  --white: #fff;
  --green: #1f9d55;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 42, 74, .06), 0 8px 28px -12px rgba(11, 42, 74, .22);
  --gutter: clamp(18px, 5vw, 40px);
  --maxw: 1160px;
  --dock-h: 66px;

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; display: block; }
svg path { fill-rule: evenodd; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--marine); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 7.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--marine); color: #fff; padding: 10px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.only-m { display: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 9vw, 96px); }
.section-tint { background: var(--sky); }
.section-dark { background: var(--marine); color: #cfe0f1; }
.section-dark h2, .section-dark h3 { color: #fff; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ------------------------------- Boutons ------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-line { border-color: var(--marine); color: var(--marine); background: transparent; }
@media (hover: hover) { .btn-line:hover { background: var(--marine); color: #fff; } }
.btn-white { background: #fff; color: var(--marine); }
.btn-white:hover { background: var(--sky); color: var(--marine); }
.btn-rose { background: var(--rose); color: #fff; }
.btn-rose:hover { background: #a3205a; color: #fff; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* -------------------------------- En-tête ------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.topbar { background: var(--marine); color: #cfe0f1; font-size: .875rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar-phone { display: none; }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live i { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

.bar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--marine); }
.brand img { width: 52px; height: 52px; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font: 800 1.2rem var(--f-display); letter-spacing: -.01em; }
.brand small { font-size: .8rem; color: var(--muted); font-weight: 500; margin-top: 3px; }
.brand-light { color: #fff; }
.brand-light small { color: #9fb9d4; }

.burger { width: 48px; height: 48px; border: 0; background: var(--sky); border-radius: 14px; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2.5px; background: var(--marine); border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav {
  position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); background: #fff; z-index: 60;
  padding: 92px 24px 32px; display: flex; flex-direction: column; gap: 4px;
  transform: translateX(105%); transition: transform .3s ease; box-shadow: -20px 0 50px rgba(11, 42, 74, .25);
  visibility: hidden;
}
.nav.open { transform: none; visibility: visible; }
.nav a:not(.btn) { padding: 16px 6px; font: 700 1.25rem var(--f-display); color: var(--marine); text-decoration: none; border-bottom: 1px solid var(--line); }
.nav a[aria-current="page"]:not(.btn) { color: var(--blue); }
.nav .nav-cta { margin-top: 20px; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(11, 42, 74, .55); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .3s; }
.nav-backdrop.show { opacity: 1; pointer-events: auto; }
.burger { position: relative; z-index: 70; }

/* ---------------------------------- Hero -------------------------------- */
.hero { position: relative; background: linear-gradient(180deg, var(--sky) 0%, #fff 100%); overflow: hidden; }
.hero-in { display: grid; gap: 28px; padding-block: 28px 44px; }
.hero h1 { margin-bottom: .35em; }
.hero p.lead { margin-bottom: 1.4em; }
.hero-media { position: relative; }
.hero-photo { border-radius: 28px 28px 28px 120px; overflow: hidden; aspect-ratio: 4 / 3.3; box-shadow: var(--shadow); background: var(--sky-2); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hslides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hslides::-webkit-scrollbar { display: none; }
.hslides img { flex: 0 0 100%; scroll-snap-align: start; }
.seal { position: absolute; left: -6px; bottom: -22px; width: 124px; height: 124px; filter: drop-shadow(0 10px 18px rgba(11, 42, 74, .28)); }
.seal .disc { fill: var(--blue); }
.seal .core { fill: var(--red); }
.seal text { font: 700 10.5px var(--f-body); fill: #fff; letter-spacing: .1em; }
.seal .ring { transform-origin: 60px 60px; animation: spin 40s linear infinite; }
.seal .big { font: 800 23px var(--f-display); letter-spacing: 0; }
.seal .small { font: 600 8.5px var(--f-body); letter-spacing: .16em; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: .95rem; color: var(--muted); }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 18px; height: 18px; fill: var(--blue); flex: none; }

/* Accès rapides */
.quick { display: grid; gap: 12px; margin-top: -4px; }
.q-tile { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.q-tile:hover { transform: translateY(-2px); border-color: var(--blue); color: var(--ink); }
.q-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-content: center; flex: none; background: var(--sky); }
.q-ico svg { width: 26px; height: 26px; fill: var(--blue-dark); }
.q-tile.urgent .q-ico { background: #ffe5ea; }
.q-tile.urgent .q-ico svg { fill: var(--red); }
.q-tile.rose .q-ico { background: var(--rose-soft); }
.q-tile.rose .q-ico svg { fill: var(--rose); }
.q-tile b { display: block; font: 700 1.1rem var(--f-display); color: var(--marine); }
.q-tile span.s { font-size: .95rem; color: var(--muted); line-height: 1.35; display: block; }

/* ------------------------------ En-têtes de section --------------------- */
.sec-head { max-width: 680px; margin-bottom: clamp(24px, 5vw, 44px); }
.sec-head.center { margin-inline: auto; }
.tag { display: inline-block; font-weight: 700; font-size: .95rem; color: var(--blue-dark); background: var(--sky); border-radius: 999px; padding: 6px 14px; margin-bottom: 14px; }
.tag.rose { background: #fff; color: var(--rose); border: 1px solid var(--rose-line); }

/* ------------------------------ Groupes de services --------------------- */
.groups { display: grid; gap: 18px; }
.g-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.g-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.g-card img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; background: var(--sky-2); }
.g-body { padding: 20px 20px 22px; }
.g-body h3 { margin-bottom: .3em; }
.g-body p { color: var(--muted); margin-bottom: 12px; font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: .85rem; font-weight: 600; background: var(--sky); color: var(--blue-dark); padding: 5px 11px; border-radius: 999px; }

/* ------------------------------- Pourquoi nous --------------------------- */
.why { display: grid; gap: 0; }
.why li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.why li:last-child { border-bottom: 1px solid var(--line); }
.why .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--sky); display: grid; place-content: center; }
.why .ic svg { width: 22px; height: 22px; fill: var(--blue-dark); }
.why h3 { margin-bottom: .2em; font-size: 1.15rem; }
.why p { margin: 0; color: var(--muted); }
.split { display: grid; gap: 32px; }
.split-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* -------------------------------- Campagne ------------------------------- */
.campaign { background: var(--rose-soft); border: 1px solid var(--rose-line); border-radius: 28px; overflow: hidden; display: grid; }
.campaign-photo { position: relative; min-height: 220px; }
.campaign-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.campaign-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(196, 43, 107, .15), rgba(196, 43, 107, .55)); }
.ribbon { position: absolute; z-index: 2; left: 16px; bottom: 16px; width: 54px; height: 54px; background: #fff; border-radius: 50%; display: grid; place-content: center; }
.ribbon svg { width: 30px; height: 30px; fill: var(--rose); }
.campaign-body { padding: 28px 22px 30px; }
.campaign-body h2 { color: #7d1442; }
.campaign-body p { color: #5a2a40; }
.ticks { display: grid; gap: 10px; margin: 0 0 22px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.rose-ticks li::before { background-color: var(--rose); }
.warn li::before { background: var(--rose) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' d='M12 6v7M12 18v.5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* --------------------------------- Galerie -------------------------------- */
.scroller { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 18px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.scroller figure { margin: 0; flex: 0 0 78%; scroll-snap-align: center; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--sky-2); }
.scroller img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.scroller.auto { scroll-snap-type: none; scrollbar-width: none; }
.scroller.auto::-webkit-scrollbar { display: none; }
.scroller figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-weight: 600; font-size: .95rem; background: linear-gradient(transparent, rgba(11, 42, 74, .82)); }

/* ------------------------------- Horaires / infos ------------------------- */
.info-grid { display: grid; gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: .6em; }
.mv p { margin: 0; color: var(--muted); }
.hours { display: grid; gap: 0; margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.hours div:last-child { border: 0; }
.hours dt { font-weight: 600; color: var(--marine); }
.hours dd { margin: 0; color: var(--green); font-weight: 700; }

/* ------------------------------ Pages intérieures ------------------------- */
.page-hero { background: linear-gradient(180deg, var(--sky), #fff); padding-block: 36px 24px; }
.page-hero.rose { background: linear-gradient(180deg, var(--rose-soft), #fff); }
.page-hero h1 { font-size: clamp(2rem, 6.5vw, 3.2rem); margin-bottom: .3em; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

.svc-nav { display: flex; gap: 8px; overflow-x: auto; padding: 4px var(--gutter) 10px; margin: 18px calc(var(--gutter) * -1) 0; scrollbar-width: none; }
.svc-nav::-webkit-scrollbar { display: none; }
.svc-nav a { flex: none; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--marine); white-space: nowrap; }
.svc-nav a:hover { border-color: var(--blue); }

.svc-group { padding-block: clamp(28px, 6vw, 56px); border-top: 1px solid var(--line); }
.svc-group:first-of-type { border-top: 0; }
.svc-layout { display: grid; gap: 22px; }
.svc-photo { border-radius: var(--radius); overflow: hidden; }
.svc-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.acc { display: grid; gap: 10px; }
.acc details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.acc details[open] { border-color: var(--blue); box-shadow: var(--shadow); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; min-height: 60px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary b { font: 700 1.1rem var(--f-display); color: var(--marine); display: block; }
.acc summary span { font-size: .92rem; color: var(--muted); display: block; line-height: 1.35; margin-top: 2px; }
.acc summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--sky); color: var(--blue-dark); display: grid; place-content: center; font: 600 1.3rem/1 var(--f-body); transition: transform .2s; }
.acc details[open] summary::after { content: "–"; background: var(--blue); color: #fff; }
.acc .acc-body { padding: 0 18px 18px; }
.acc .acc-body p { margin-bottom: 14px; }

/* Cartes campagnes */
.camp-list { display: grid; gap: 18px; }
.camp-card { display: grid; background: #fff; border: 1px solid var(--rose-line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); }
.camp-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.camp-card .b { padding: 22px; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: #e3f6ec; color: #11703b; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.soon { background: #fff3d6; color: #8a5a00; }
.status.closed { background: #eceff3; color: #5b6572; }
.two-col { display: grid; gap: 26px; }

/* -------------------------------- Formulaires ----------------------------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--shadow); }
.form-card.rose { border-color: var(--rose-line); }
.form-card h2 { font-size: 1.6rem; }
.fields { display: grid; gap: 16px; }
.field label, .field legend { display: block; font-weight: 700; font-size: .98rem; color: var(--marine); margin-bottom: 6px; padding: 0; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: 500 1rem var(--f-body); color: var(--ink);
  background: #fff; border: 1.5px solid #b9cde0; border-radius: var(--radius-sm); appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23075fa8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 20px no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10, 123, 214, .18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.err { color: var(--red-dark); font-size: .92rem; font-weight: 600; margin-top: 6px; }
.fields .two { display: grid; gap: 16px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.check input { width: 24px; height: 24px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--blue); }
.moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border: 0; padding: 0; margin: 0; }
.moments label { margin: 0; }
.moments input { position: absolute; opacity: 0; pointer-events: none; }
.moments span { display: grid; place-content: center; min-height: 52px; border: 1.5px solid #b9cde0; border-radius: var(--radius-sm); font-weight: 600; text-align: center; padding: 6px; font-size: .95rem; cursor: pointer; transition: all .15s; }
.moments input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.moments input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.form-note { font-size: .9rem; color: var(--muted); margin: 14px 0 0; }

.alert { border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 20px; font-weight: 600; display: flex; gap: 12px; align-items: flex-start; }
.alert svg { width: 24px; height: 24px; flex: none; margin-top: 1px; }
.alert-success { background: #e3f6ec; color: #0d5c31; border: 1px solid #a7dcbf; }
.alert-success svg { fill: #1f9d55; }
.alert-error { background: #ffe9ed; color: #8e0a22; border: 1px solid #f5b6c1; }
.alert-error svg { fill: var(--red); }
.thanks { text-align: center; padding: 26px 10px; }
.thanks .big { width: 72px; height: 72px; border-radius: 50%; background: #e3f6ec; display: grid; place-content: center; margin: 0 auto 16px; }
.thanks .big svg { width: 36px; height: 36px; fill: var(--green); }

.contact-list { display: grid; gap: 14px; }
.contact-list a, .contact-list div { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; text-decoration: none; color: var(--ink); }
.contact-list svg { width: 24px; height: 24px; fill: var(--blue-dark); flex: none; }
.contact-list b { display: block; font-family: var(--f-display); color: var(--marine); }
.contact-list small { color: var(--muted); font-size: .92rem; display: block; line-height: 1.3; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--sky); }
.map iframe { width: 100%; height: 300px; border: 0; display: block; }

/* ----------------------------------- Pied --------------------------------- */
.site-footer { background: var(--marine); color: #b7cde3; padding-top: 48px; font-size: .98rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2 { font: 700 1.05rem var(--f-display); color: #fff; margin-bottom: .8em; }
.foot-grid { display: grid; gap: 30px; padding-bottom: 30px; }
.foot-grid li { margin-bottom: 8px; }
.foot-brand p { margin-top: 14px; max-width: 42ch; }
.foot-bottom { display: grid; gap: 6px; padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .88rem; color: #8fa9c4; }

/* ---------------------------- Barre d'actions mobile ----------------------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.15fr 1.3fr; gap: 6px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -14px rgba(11, 42, 74, .35);
}
.dock a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; border-radius: 14px; text-decoration: none; font-weight: 700; font-size: .88rem; padding: 0 4px; white-space: nowrap; }
.dock svg { width: 20px; height: 20px; fill: currentColor; }
.dock-call { background: var(--sky); color: var(--marine); }
.dock-wa { background: #e3f6ec; color: #0d5c31; }
.dock-rdv { background: var(--red); color: #fff; }

/* ================================ >= 600px =============================== */
@media (min-width: 600px) {
  .quick { grid-template-columns: repeat(3, 1fr); }
  .q-tile { flex-direction: column; align-items: flex-start; }
  .groups { grid-template-columns: repeat(2, 1fr); }
  .fields .two { grid-template-columns: 1fr 1fr; }
  .scroller figure { flex-basis: 46%; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 30px; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ================================ >= 900px =============================== */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
  .topbar-phone { display: inline; }
  .bar { min-height: 84px; }
  .burger, .nav-backdrop { display: none; }
  .nav { position: static; transform: none; visibility: visible; width: auto; padding: 0; flex-direction: row; align-items: center; gap: 4px; box-shadow: none; background: transparent; }
  .nav a:not(.btn) { padding: 10px 14px; font: 600 1rem var(--f-body); border: 0; border-radius: 999px; }
  .nav a:not(.btn):hover { background: var(--sky); }
  .nav a[aria-current="page"]:not(.btn) { background: var(--sky); color: var(--blue-dark); }
  .nav .nav-cta { margin: 0 0 0 10px; min-height: 46px; }

  .hero-in { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; padding-block: 56px 70px; }
  .hero-photo { aspect-ratio: 4 / 4.2; border-radius: 34px 34px 34px 160px; }
  .seal { width: 150px; height: 150px; left: -34px; bottom: -26px; }
  .quick { margin-top: -38px; position: relative; z-index: 2; }

  .groups { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
  .split.rev .split-photo { order: 2; }
  .campaign { grid-template-columns: 1fr 1.05fr; }
  .campaign-photo { min-height: 100%; }
  .campaign-body { padding: 52px 48px; }
  .scroller { margin-inline: 0; padding-inline: 0; }
  .scroller figure { flex-basis: 31%; }
  .info-grid { grid-template-columns: repeat(3, 1fr); }
  .svc-layout { grid-template-columns: 340px 1fr; gap: 44px; align-items: start; }
  .svc-photo { position: sticky; top: 130px; }
  .svc-nav { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; }
  .camp-card { grid-template-columns: 1fr 1.1fr; }
  .camp-card img { height: 100%; aspect-ratio: auto; }
  .two-col { grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
  .two-col .sticky { position: sticky; top: 130px; }
  .foot-bottom { grid-template-columns: auto 1fr; gap: 24px; }
  .foot-bottom span:last-child { text-align: right; }
}

@media (min-width: 1200px) {
  .scroller figure { flex-basis: 23%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   MOBILE (< 900px) — mise en page compacte, pensée pour le pouce.
   Le design ordinateur (>= 900px) n'est pas modifié.
   ========================================================================== */
@media (max-width: 899px) {
  html { scroll-padding-top: 70px; }
  .only-d { display: none; }
  .only-m { display: inline; }
  body { font-size: 1rem; line-height: 1.55; }
  .topbar { display: none; }
  .bar { min-height: 62px; }
  .brand img { width: 40px; height: 40px; }
  .brand strong { font-size: 1.05rem; }
  .brand small { font-size: .74rem; margin-top: 2px; }
  .burger { width: 42px; height: 42px; border-radius: 12px; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav { padding-top: 84px; }

  h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  h2 { font-size: clamp(1.4rem, 5.6vw, 1.75rem); margin-bottom: .45em; }
  h3 { font-size: 1.05rem; }
  .lead { font-size: 1rem; }
  .section { padding-block: 34px; }
  .sec-head { margin-bottom: 18px; }
  .tag { font-size: .85rem; padding: 5px 12px; margin-bottom: 10px; }

  /* Boutons : toujours côte à côte, taille raisonnable */
  .btn { min-height: 46px; padding: 0 1em; font-size: .92rem; line-height: 1.15; gap: .45em; text-align: center; }
  .btn svg { width: 1.1em; height: 1.1em; }
  .btn-row { flex-wrap: nowrap; gap: 8px; }
  .btn-row .btn { flex: 1 1 0; min-width: 0; padding-inline: .7em; }

  /* Hero : la photo en premier, pleine largeur, puis le texte */
  .hero-in { gap: 0; padding-block: 0 26px; }
  .hero-media { order: -1; margin-inline: calc(var(--gutter) * -1); }
  .hero-photo { border-radius: 0 0 30px 30px; aspect-ratio: 16 / 11.5; box-shadow: none; }
  .seal { width: 86px; height: 86px; left: var(--gutter); bottom: -24px; }
  .hero-text { padding-top: 40px; }
  .hero h1 { margin-bottom: .3em; }
  .hero p.lead { margin-bottom: 1em; }
  .hero-facts { margin-top: 14px; gap: 6px 16px; font-size: .86rem; }
  .hero-facts li:nth-child(3) { display: none; }
  .hero-facts svg { width: 16px; height: 16px; }

  /* Accès rapides : 3 tuiles sur une ligne */
  .quick { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
  .q-tile { flex-direction: column; align-items: center; text-align: center; padding: 14px 6px 12px; gap: 8px; border-radius: 16px; box-shadow: none; }
  .q-ico { width: 44px; height: 44px; border-radius: 14px; }
  .q-ico svg { width: 22px; height: 22px; }
  .q-tile b { font-size: .86rem; line-height: 1.2; }
  .q-tile span.s { display: none; }

  /* Services : grille 2 colonnes compacte */
  .groups { grid-template-columns: 1fr 1fr; gap: 10px; }
  .g-card { border-radius: 16px; }
  .g-card img { aspect-ratio: 4 / 3; }
  .g-body { padding: 12px 12px 14px; }
  .g-body h3 { font-size: .95rem; line-height: 1.2; margin: 0; }
  .g-body p, .g-body .chips { display: none; }

  /* Pourquoi nous */
  .split { gap: 22px; }
  .why li { grid-template-columns: 38px 1fr; gap: 12px; padding: 14px 0; }
  .why .ic { width: 38px; height: 38px; border-radius: 11px; }
  .why .ic svg { width: 19px; height: 19px; }
  .why h3 { font-size: 1rem; }
  .why p { font-size: .94rem; line-height: 1.45; }
  .split-photo { border-radius: 16px; }
  .split-photo img { aspect-ratio: 16 / 10; }

  /* Campagne */
  .campaign { border-radius: 22px; }
  .campaign-photo { min-height: 150px; }
  .campaign-photo img { object-position: center 40%; }
  .ribbon { width: 44px; height: 44px; left: 14px; bottom: 12px; }
  .ribbon svg { width: 24px; height: 24px; }
  .campaign-body { padding: 18px 16px 20px; }
  .campaign-body p { font-size: .96rem; }
  .ticks { gap: 8px; margin-bottom: 16px; font-size: .95rem; }
  .ticks li { padding-left: 26px; }
  .ticks li::before { width: 16px; height: 16px; background-size: 11px; top: .3em; }

  /* Galerie */
  .scroller { gap: 10px; padding-bottom: 10px; }
  .scroller figure { flex-basis: 64%; border-radius: 14px; }
  .scroller img { aspect-ratio: 4 / 3.2; }
  .scroller figcaption { font-size: .85rem; padding: 22px 10px 8px; }

  /* Infos */
  .info-grid { gap: 10px; }
  .card { padding: 16px; border-radius: 16px; }
  .card h3 { margin-bottom: .35em; }
  .mv p { font-size: .95rem; }
  .hours div { padding: 8px 0; font-size: .95rem; }

  /* Pages intérieures */
  .page-hero { padding-block: 18px 12px; }
  .page-hero h1 { font-size: clamp(1.6rem, 6.6vw, 2rem); }
  .crumbs { font-size: .82rem; margin-bottom: 8px; }
  .svc-nav { margin-top: 12px; gap: 6px; }
  .svc-nav a { padding: 8px 13px; font-size: .88rem; }
  .svc-group { padding-block: 22px; }
  .svc-layout { gap: 14px; }
  .svc-photo img { aspect-ratio: 16 / 8; }
  .svc-layout h2 { margin-top: 12px !important; }
  .acc { gap: 8px; }
  .acc summary { padding: 12px 14px; min-height: 54px; }
  .acc summary b { font-size: 1rem; }
  .acc summary span { font-size: .85rem; }
  .acc summary::after { width: 28px; height: 28px; font-size: 1.15rem; }
  .acc .acc-body { padding: 0 14px 14px; }
  .acc .acc-body p { font-size: .95rem; margin-bottom: 10px; }
  .acc .acc-body .btn { width: 100%; }
  .camp-card .b { padding: 16px; }

  /* Formulaires */
  .two-col { gap: 20px; }
  .form-card { padding: 18px 14px; border-radius: 16px; }
  .form-card h2 { font-size: 1.35rem; }
  .fields { gap: 12px; }
  .fields .two { gap: 12px; }
  .field label, .field legend { font-size: .92rem; margin-bottom: 4px; }
  .field input, .field select, .field textarea { min-height: 48px; padding: 10px 12px; font-size: 16px; }
  .moments span { min-height: 46px; font-size: .9rem; }
  .contact-list { gap: 8px; }
  .contact-list a, .contact-list div { padding: 12px; gap: 12px; }
  .contact-list svg { width: 22px; height: 22px; }
  .map iframe { height: 240px; }

  /* Pied de page */
  .site-footer { padding-top: 30px; font-size: .94rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-grid li { margin-bottom: 6px; }
  .foot-grid > div:last-child li { word-break: break-word; }
}

@media (max-width: 380px) {
  .btn { font-size: .86rem; }
  .q-tile b { font-size: .8rem; }
  .groups { gap: 8px; }
}
