/* ============================================
   Objectif-Couple — Centre de consultation conjugale
   Stylesheet moderne (responsive, accessible)
   ============================================ */

:root {
  --navy: #004765;
  --navy-dark: #00364d;
  --gold: #8a7a2e;
  --gold-light: #b5a44e;
  --cream: #faf8f4;
  --cream-dark: #f1ece1;
  --ink: #262626;
  --muted: #5c5c5c;
  --white: #ffffff;
  --border: #e5dfd2;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0, 54, 77, 0.08);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: #fff; }
.site-header__top {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
}
.brand { display: flex; align-items: center; text-decoration: none; color: #fff; }
.brand__logo {
  height: 54px;
  width: auto;
  max-width: 100%;
  display: block;
}

/* ---------- Navigation ---------- */
.nav { background: var(--navy-dark); }
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 12px; }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  padding: 12px 8px;
  font-weight: 600;
}
.nav__toggle::before { content: "☰ "; }
.nav__list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__item a {
  display: block;
  color: #eaf1f5;
  text-decoration: none;
  font-size: 0.92rem;
  padding: 12px 14px;
  transition: background 0.15s, color 0.15s;
}
.nav__item a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav__item a[aria-current="page"] {
  background: var(--gold);
  color: #fff;
  font-weight: 600;
}

/* ---------- Layout ---------- */
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 20px 56px;
}
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin: 0 0 18px; }
.breadcrumb a { color: var(--navy); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 1.4em 0 0.5em;
}
h1 {
  font-size: 1.9rem;
  margin-top: 0;
  padding-bottom: 0.35em;
  border-bottom: 2px solid var(--gold);
}
h2 { font-size: 1.4rem; color: var(--navy); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--navy); }
a:hover { color: var(--gold); }
strong { color: var(--navy-dark); }
blockquote {
  margin: 1.2em 0;
  padding: 0.8em 1.2em;
  border-left: 4px solid var(--gold);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--muted);
}
ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }

/* ---------- Cards / callouts ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.card h2, .card h3 { margin-top: 0; }
.callout {
  background: #fff8e6;
  border: 1px solid #e9dcae;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
}
.callout--navy { background: #eaf3f7; border-color: #c8dde6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s;
}
.btn:hover { background: var(--gold-light); color: #fff; }
.btn--navy { background: var(--navy); }
.btn--navy:hover { background: var(--navy-dark); }

/* ---------- Services grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 20px 0;
}
.grid .card { margin-bottom: 0; }

/* ---------- Testimonials ---------- */
.testimonial { margin-bottom: 22px; }
.testimonial__name { font-weight: 700; color: var(--navy); margin-bottom: 4px; }

/* ---------- FAQ ---------- */
.faq-item { margin-bottom: 16px; }
.faq-item h3 { cursor: default; }

/* ---------- Forms ---------- */
form fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 20px;
}
form legend {
  font-family: Georgia, serif;
  font-weight: 700;
  color: var(--navy);
  padding: 0 8px;
}
label { display: block; margin: 10px 0 4px; font-weight: 600; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}
input[type="radio"] { margin-right: 6px; }
.radio-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-right: 22px;
  flex-wrap: wrap;
}
.question-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 14px;
}
.question-block p { margin: 0 0 8px; font-weight: 600; color: var(--navy-dark); }
.scale { display: flex; flex-wrap: wrap; gap: 10px; }
.scale label {
  margin: 0;
  font-weight: 400;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Table (plan du site) ---------- */
table.sitemap { width: 100%; border-collapse: collapse; }
table.sitemap td, table.sitemap th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #cfe0e8;
  padding: 28px 20px 20px;
  font-size: 0.9rem;
}
.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.site-footer h4 { color: #fff; font-family: Georgia, serif; margin: 0 0 8px; }
.site-footer a { color: #d8e4ea; }
.site-footer a:hover { color: #fff; }
.site-footer__legal {
  max-width: var(--maxw);
  margin: 18px auto 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 12px;
  font-size: 0.8rem;
  color: #9fb7c3;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .site-header__top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .brand__logo { height: auto; width: 100%; max-width: 320px; }
  .nav__toggle { display: block; }
  .nav__list { display: none; flex-direction: column; }
  .nav__list.is-open { display: flex; }
  .nav__item a { padding: 11px 14px; }
  h1 { font-size: 1.55rem; }
  .page { padding: 22px 16px 40px; }
  .radio-row { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Accessibility: focus */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }
