:root {
  --ink: #142033;
  --muted: #5b6574;
  --paper: #f6f4ef;
  --white: #ffffff;
  --line: #e4dfd6;
  --accent: #1f6f8b;
  --accent-dark: #16556b;
  --gold: #c4a35a;
  --shadow: 0 18px 40px rgba(20, 32, 51, 0.12);
  --radius: 18px;
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  position: relative;
}

.brand img { width: min(240px, 58vw); height: auto; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
  content: "";
}
.nav-toggle-bars::before { top: -6px; position: absolute; }
.nav-toggle-bars::after { top: 6px; position: absolute; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover { color: var(--accent); }

.hero {
  padding: 3.5rem 0 2.5rem;
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(31, 111, 139, 0.16), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--paper) 100%);
}

.hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero p.lede {
  margin: 0;
  max-width: 40rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.section { padding: 1.5rem 0 3.5rem; }

.section-title {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
}

.network-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.network-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  position: relative;
  background-size: cover;
  background-position: center;
}

.network-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 24, 38, 0.15) 20%, rgba(16, 24, 38, 0.82) 100%);
}

.network-card .card-body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 1.4rem;
}

.network-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.network-card p {
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: #fff;
}

.network-card:hover { transform: translateY(-3px); transition: transform 0.2s ease; }
.network-card:hover .card-cta { text-decoration: underline; }

.card-esthetique { background-image: url("../Images/accueil/Beaute_Sante.jpg"); }
.card-legal { background-image: url("../Images/accueil/Droits_Finances.jpg"); }
.card-immo { background-image: url("../Images/accueil/Residence.jpg"); }

.prose {
  max-width: 42rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.prose h1 { margin-top: 0; }

.page-intro {
  padding: 2.5rem 0 1rem;
}

.page-intro h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.page-intro p { margin: 0; color: var(--muted); max-width: 38rem; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  max-width: 40rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field-full { grid-column: 1 / -1; }

label { font-weight: 600; font-size: 0.92rem; }

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: #fff;
}

input.is-error,
textarea.is-error { border-color: #c0392b; color: #c0392b; }

.form-note { color: #c0392b; margin: 0 0 1rem; font-weight: 600; }
.form-ok {
  background: #eaf6ef;
  border: 1px solid #b7e0c4;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  max-width: 40rem;
}

.btn {
  appearance: none;
  border: 0;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
}

.btn:hover { background: var(--accent-dark); }

.contact-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 40rem;
  box-shadow: var(--shadow);
}

.contact-block a { font-weight: 700; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 1.5rem 0 2rem;
  margin-top: 1rem;
}

.footer-inner { text-align: center; color: var(--muted); font-size: 0.92rem; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.footer-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--accent); }

.phone-line {
  margin: 0.75rem 0 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 860px) {
  .network-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 4.5rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
    flex-direction: column;
  }
  .site-nav.is-open { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
  .header-inner { position: relative; }
  .site-header { position: sticky; }
}

@media (min-width: 861px) and (max-width: 1024px) {
  .network-grid { grid-template-columns: 1fr 1fr; }
}
