/* ============================================================
   DOMICILAT — feuille de style principale
   ============================================================ */

:root {
  --primary: #1c5d96;
  --primary-dark: #123f68;
  --primary-light: #e8f1fa;
  --accent: #e08a4d;
  --accent-dark: #c56f34;
  --ink: #1f2836;
  --ink-soft: #57647a;
  --bg: #f7f9fc;
  --bg-alt: #eef3f9;
  --white: #ffffff;
  --border: #dde4ee;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(18, 63, 104, 0.10);
  --shadow-sm: 0 4px 14px rgba(18, 63, 104, 0.09);
  --max-width: 1180px;
  --font-head: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--primary-dark);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  z-index: 999;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--primary-dark);
  line-height: 1.25;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: #fbeee0;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section { padding: 72px 0; }
.section--alt { background: var(--primary-light); }
.section--tight { padding: 48px 0; }
.section-head { max-width: 700px; margin: 0 auto 44px; text-align: center; }
.section-head p { font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(224,138,77,.35); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary-dark); transform: translateY(-2px); }
.btn-ghost { background: var(--white); border-color: var(--border); color: var(--primary-dark); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.top-bar {
  background: var(--primary-dark);
  color: #dcebf8;
  font-size: .82rem;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.top-bar a { color: #dcebf8; }
.top-bar a[href^="tel:"] { font-weight: 600; }
.top-bar .phones { display: flex; gap: 18px; flex-wrap: wrap; }
.top-bar .phones span { white-space: nowrap; }
.top-bar .badges { display: flex; gap: 10px; opacity: .85; }

header.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary-dark);
}
.logo img { height: 46px; width: auto; display: block; }
.logo .mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}
.logo small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .62rem; letter-spacing: .1em; color: var(--ink-soft); text-transform: uppercase; }

.nav-inner-head { display: none; }
nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0; padding: 0;
}
nav.main-nav a {
  display: block;
  padding: 9px 12px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .86rem;
  color: var(--ink);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
nav.main-nav ul { flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; }
nav.main-nav a:hover, nav.main-nav a[aria-current="page"] {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.header-badge { display: flex; align-items: center; }
.header-badge img { height: 32px; width: auto; }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 42px; height: 42px;
  border-radius: 10px;
  align-items: center; justify-content: center;
  position: relative;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--primary-dark); margin: 4px auto; transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

.nav-close {
  display: none;
  margin-left: auto;
  background: var(--primary-light);
  border: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  color: var(--primary-dark);
  font-size: 1.1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- Mobile call bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  background: var(--white);
  box-shadow: 0 -6px 20px rgba(0,0,0,.1);
  padding: 10px 14px;
  gap: 10px;
}
.mobile-call-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  padding: 13px 10px;
  border-radius: 999px;
}
.mobile-call-bar .call { background: var(--primary); color: var(--white); }
.mobile-call-bar .quote { background: var(--accent); color: var(--white); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 55;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--primary-dark);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Honeypot anti-spam field */
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.table-hint { font-size: .78rem; color: var(--ink-soft); margin: 8px 0 0; display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at top right, #cfe1f0 0%, var(--bg) 55%);
  padding: 76px 0 90px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stats .stat strong { display: block; font-family: var(--font-head); font-size: 1.8rem; color: var(--primary-dark); }
.hero-stats .stat span { font-size: .82rem; color: var(--ink-soft); }
.hero-art {
  position: relative;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-art .glow {
  position: absolute;
  width: 260px; height: 260px;
  background: var(--accent);
  filter: blur(70px);
  opacity: .45;
  border-radius: 50%;
  top: -40px; right: -40px;
  z-index: 1;
}
.hero-art svg { position: relative; width: 62%; height: auto; z-index: 2; }
.hero-art img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 380px;
}
.hero-badge {
  position: absolute;
  bottom: 20px; left: 20px;
  z-index: 3;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  color: var(--primary-dark);
}

/* ---------- Photos ---------- */
.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-photo { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; margin: -30px -30px 20px; }
.card-photo img { width: 100%; height: 190px; object-fit: cover; display: block; }

.photo-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.photo-gallery .photo-frame img { height: 220px; }

.badge-float {
  position: absolute;
  width: 110px;
  z-index: 4;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.18));
}

.partner-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.partner-strip img { height: 52px; width: auto; object-fit: contain; opacity: .9; }
.partner-strip img.tall { height: 74px; }

.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: .88rem;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
a.chip:hover, a.chip:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.split-photo {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 44px;
  align-items: center;
}
.split-photo.reverse { grid-template-columns: 1.1fr .9fr; }
.split-photo.reverse .photo-frame { order: 2; }
@media (max-width: 860px) {
  .split-photo, .split-photo.reverse { grid-template-columns: 1fr; }
  .split-photo.reverse .photo-frame { order: 0; }
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 64px 0 56px;
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: #d3e6f5; max-width: 640px; margin: 0 auto; }
.breadcrumb { font-size: .82rem; color: #a9d0ef; margin-bottom: 14px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testimonial-card { display: flex; flex-direction: column; }
.testimonial-card .quote-mark { font-family: var(--font-head); font-size: 2.4rem; line-height: 1; color: var(--primary); opacity: .5; margin-bottom: 4px; }
.testimonial-card .quote { font-style: italic; color: var(--ink); margin: 0 0 16px; flex-grow: 1; }
.testimonial-card .who { margin: 0; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; }
.card ul { margin: 12px 0 0; padding-left: 20px; color: var(--ink-soft); }
.card ul li { margin-bottom: 6px; }

.icon-list { list-style: none; margin: 0; padding: 0; }
.icon-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: var(--ink-soft);
}
.icon-list li svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }

/* ---------- Values / steps ---------- */
.value-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.value-row:last-child { border-bottom: none; }
.value-row .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent);
  min-width: 46px;
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--white); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
thead th {
  background: var(--primary-dark);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  text-align: left;
  padding: 14px 18px;
  font-size: .88rem;
}
tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
  color: var(--ink-soft);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--bg); }
.tag-price { font-family: var(--font-head); font-weight: 700; color: var(--primary-dark); }
.tag-reduced { color: var(--accent-dark); font-weight: 600; }

/* ---------- Aides accordion-ish cards ---------- */
.aide-card { border-radius: var(--radius); background: var(--white); border: 1px solid var(--border); padding: 26px 28px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.aide-card h3 { color: var(--primary-dark); }
.aide-card .meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 14px; }
.aide-card .meta h4 { font-family: var(--font-head); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-dark); margin: 0 0 8px; }
.aide-card .meta p, .aide-card .meta ul { font-size: .9rem; margin: 0; }
.aide-card .meta ul { padding-left: 18px; color: var(--ink-soft); }

/* ---------- Agency cards ---------- */
.agency-card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.agency-card h3 { margin-bottom: 4px; }
.agency-card .addr { color: var(--ink-soft); font-size: .92rem; margin-bottom: 14px; }
.agency-card .row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: .9rem; color: var(--ink-soft); }
.agency-card .row svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--ink); }
.field label .req { color: var(--accent-dark); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: .95rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); background: var(--white);
}
.field.checkbox { flex-direction: row; align-items: flex-start; gap: 10px; }
.field.checkbox input { width: 18px; height: 18px; margin-top: 3px; }
.field.checkbox label { font-weight: 400; font-size: .85rem; color: var(--ink-soft); }
.form-note { font-size: .8rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  border-radius: 24px;
  padding: 52px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: #d3e6f5; margin: 0; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--ink);
  color: #ccd6e0;
  padding: 60px 0 24px;
  margin-top: 60px;
}
footer.site-footer .grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px; }
footer.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
footer.site-footer p, footer.site-footer li { color: #9aa8ba; font-size: .9rem; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer ul li { margin-bottom: 10px; }
footer.site-footer a:hover { color: var(--white); }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--white); margin-bottom: 14px; }
.footer-logo img { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
  color: #7c8ba0;
}
.footer-bottom a { color: #7c8ba0; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { min-height: 280px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  footer.site-footer .grid { grid-template-columns: 1fr 1fr; }
  .aide-card .meta { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { padding-bottom: 66px; }
  .top-bar .container { padding-top: 6px; padding-bottom: 6px; gap: 8px; }
  .top-bar .phones { flex-wrap: nowrap; gap: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: .72rem; max-width: 100%; }
  .top-bar .phones::-webkit-scrollbar { display: none; }
  .top-bar .badges { display: none; }
  nav.main-nav { position: fixed; inset: 66px 0 0 0; background: var(--white); padding: 20px; transform: translateY(-110%); transition: transform .25s ease; z-index: 40; overflow-y: auto; }
  nav.main-nav.open { transform: translateY(0); }
  nav.main-nav ul { flex-direction: column; }
  nav.main-nav a { padding: 14px 16px; font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-ghost { display: none; }
  .header-badge { display: none; }
  .nav-close { display: flex; }
  .nav-inner-head { display: flex; align-items: center; margin-bottom: 10px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  footer.site-footer .grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 36px 24px; }
  .section { padding: 52px 0; }
  .mobile-call-bar { display: flex; }
  .back-to-top { bottom: 78px; }
  .table-hint { display: block; }
}
