/* ==========================================================================
   CGE PRESTATIONS — Feuille de style
   Style « Proximité » bleu nuit : en-tête en capsule arrondie, titres Fraunces,
   texte Manrope, cartes arrondies. Mobile d'abord, sans framework.
   Polices hébergées sur le site (licence SIL OFL, voir fonts/OFL-*.txt).
   ========================================================================== */

/* ---------- 0. Polices ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

/* ---------- 1. Variables ---------- */
:root {
  --bg: #f6f8fb;
  --soft: #e9eef5;
  --sky: #e3ecf8;
  --white: #ffffff;
  --navy: #102a4c;
  --navy-2: #163a66;
  --blue: #2b74d1;
  --blue-2: #1f5fae;
  --blue-light: #8db8ee;
  --text: #1d2430;
  --muted: #4a5568;
  --line: #d5dbe4;
  --on-navy: #dce6f3;
  --on-navy-muted: #b4c3d8;
  --success: #1e7a4d;
  --danger: #b3261e;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --g: clamp(16px, 4vw, 52px);
  --container: 1200px;
  --radius: 26px;
  --radius-sm: 16px;
  --shadow: 0 22px 40px -26px rgba(16, 42, 76, 0.4);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 120px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

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

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--g);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 16px;
}

/* Repère jaune : information à compléter dans Studio → Réglages → Entreprise */
.placeholder {
  padding: 0 0.3em;
  background: #fff4cc;
  color: #5c4400;
  border-radius: 4px;
  font-size: 0.88em;
}

/* ---------- 3. Boutons « pilules » ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  font: 700 15px/1.2 var(--sans);
  white-space: nowrap;
  color: var(--white);
  background: var(--navy);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.pill:hover {
  background: var(--navy-2);
}

.pill--blue {
  background: var(--blue);
}

.pill--blue:hover {
  background: var(--blue-2);
}

.pill--line {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--navy);
}

.pill--line:hover {
  background: var(--navy);
  color: var(--white);
}

.pill--white {
  background: var(--white);
  color: var(--blue-2);
}

.pill--white:hover {
  background: var(--sky);
}

.pill--block {
  width: 100%;
}

.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.more {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  color: var(--blue);
}

.more::after {
  content: " →";
}

/* Pastille d'introduction (« Une équipe locale à… ») */
.hello {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: var(--sky);
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
}

.hello--dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3aa76d;
  box-shadow: 0 0 0 4px rgba(58, 167, 109, 0.2);
}

/* ---------- 4. En-tête : capsule bleu nuit arrondie ---------- */
.top {
  position: sticky;
  top: 8px;
  z-index: 50;
  padding: 8px var(--g) 0;
}

.top__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 10px 10px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: 28px;
  box-shadow: 0 18px 40px -22px rgba(16, 42, 76, 0.7);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font: 600 20px/1.15 var(--serif);
  color: var(--white);
}

.brand__mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.brand small {
  display: block;
  font: 500 12px var(--sans);
  color: var(--on-navy-muted);
  letter-spacing: 0.02em;
}

/* Actions mobiles : appeler + burger */
.top__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.icon-btn svg {
  width: 21px;
  height: 21px;
}

.icon-btn--call {
  background: var(--blue);
}

.icon-btn--call:hover {
  background: var(--blue-2);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 13px;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu : replié sur mobile, ouvert par le burger dans la capsule */
.main-nav {
  display: none;
  width: 100%;
}

.main-nav.is-open,
.no-js .main-nav {
  display: block;
}

.main-nav ul {
  list-style: none;
  padding: 8px 6px 6px;
}

.main-nav li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.main-nav a {
  display: block;
  padding: 13px 4px;
  font-weight: 600;
  font-size: 16px;
  color: var(--on-navy);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--white);
}

.main-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--blue-light);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.main-nav .main-nav__cta {
  border-top: 0;
  padding-top: 10px;
}

.main-nav .main-nav__cta .pill {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 14px 22px;
  color: var(--white);
  text-decoration: none;
}

.top__cta,
.no-js .nav-toggle {
  display: none;
}

/* ---------- 5. Sections & en-têtes de page ---------- */
section {
  padding: 72px 0;
}

.section--soft {
  background: var(--soft);
}

.section--flush {
  padding-top: 0;
}

.intro {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.intro h2 {
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 14px;
}

.intro p {
  margin: 0;
  color: var(--muted);
}

.lead {
  font-size: 19px;
  color: var(--muted);
}

/* En-tête des pages intérieures */
.page-hero {
  padding: 48px 0 56px;
}

.page-hero h1 {
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.05;
  margin: 18px 0 18px;
  max-width: 18ch;
}

.page-hero .lead {
  max-width: 56ch;
  margin: 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.6;
}

.breadcrumb a:hover {
  color: var(--blue);
}

/* ---------- 6. Photos ---------- */
.ph {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sky), var(--soft));
}

.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 7. Accueil ---------- */
.hero {
  padding: 40px 0 64px;
}

.hero__grid {
  display: grid;
  gap: 44px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 1.04;
  margin: 22px 0;
}

.hero .lead {
  max-width: 38ch;
  margin: 0 0 30px;
}

.collage {
  position: relative;
  height: 340px;
}

.collage .ph--a {
  position: absolute;
  right: 0;
  top: 0;
  width: 78%;
  height: 76%;
  border-radius: 200px 200px 24px 24px;
}

.collage .ph--b {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46%;
  height: 46%;
  border: 8px solid var(--bg);
  border-radius: 24px;
}

.note {
  position: absolute;
  right: 4%;
  bottom: 4%;
  max-width: 230px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 18px 40px -18px rgba(16, 42, 76, 0.35);
}

.note b {
  display: block;
  color: var(--navy);
  font-size: 15px;
}

/* Bande bleu nuit des villes desservies */
.band {
  background: var(--navy);
  color: var(--white);
}

.band__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
  font-weight: 600;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.tags li {
  padding: 6px 14px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.tags--light li {
  background: var(--white);
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* Cartes de services */
.cards {
  display: grid;
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card .ph {
  aspect-ratio: 16 / 11;
}

.card__body {
  padding: 22px 24px 26px;
}

.card h3 {
  font-size: 25px;
  margin-bottom: 8px;
}

.card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
}

.card--wide {
  background: var(--sky);
}

/* Engagements numérotés */
.vals {
  display: grid;
  gap: 14px;
}

.val {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 22px;
  background: var(--bg);
  border-radius: 20px;
}

.val__num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--navy);
  color: var(--white);
  border-radius: 14px;
  font-weight: 800;
}

.val__num svg {
  width: 22px;
  height: 22px;
}

.val b {
  display: block;
  color: var(--navy);
  font-size: 17px;
}

.val div > span,
.val div > a {
  color: var(--muted);
  font-size: 15px;
}

.val div > a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}

.split h2 {
  font-size: clamp(32px, 3.6vw, 46px);
  margin-bottom: 24px;
}

/* Carte bleu nuit (avis client, engagements) */
.quote {
  margin: 0;
  padding: 36px;
  background: var(--navy);
  color: var(--white);
  border-radius: 32px;
}

.quote p {
  margin: 0 0 22px;
  font: italic 400 26px/1.35 var(--serif);
}

.quote small {
  color: var(--on-navy-muted);
}

.quote h2 {
  margin-bottom: 22px;
  font-size: clamp(28px, 3vw, 38px);
  color: var(--white);
}

.quote p em {
  color: var(--blue-light);
}

.quote__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
  padding: 24px 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.quote__facts b {
  display: block;
  font: 500 34px/1.1 var(--serif);
  color: var(--white);
}

.quote__facts span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--on-navy-muted);
}

.pill--ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.pill--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 2px var(--white);
}

.quote__who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.quote__avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: #2b4f7c;
  border-radius: 50%;
}

/* Étapes « Comment ça marche » */
.steps {
  display: grid;
  gap: 26px;
  list-style: none;
  counter-reset: etape;
}

.steps li {
  position: relative;
  padding-top: 58px;
  counter-increment: etape;
}

.steps li::before {
  content: counter(etape);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  font-weight: 800;
}

.steps b {
  display: block;
  margin-bottom: 6px;
  font: 600 21px var(--serif);
  color: var(--navy);
}

.steps span {
  color: var(--muted);
  font-size: 15px;
}

/* Appel final bleu */
.end {
  padding-top: 0;
}

.end__box {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 34px;
  background: var(--blue);
  color: var(--white);
  border-radius: 36px;
}

.end h2 {
  color: var(--white);
  font-size: clamp(30px, 3.8vw, 50px);
}

.end p {
  margin: 12px 0 0;
  color: #dce9fa;
}

.end p a {
  text-decoration: underline;
}

/* ---------- 8. Page Services ---------- */
.svc-list {
  display: grid;
  gap: 26px;
}

.svc {
  display: grid;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
}

.svc .ph {
  aspect-ratio: 16 / 10;
}

.svc__body {
  padding: 28px 26px 32px;
}

.svc__num {
  display: inline-block;
  margin-bottom: 10px;
  font: italic 400 22px var(--serif);
  color: var(--blue);
}

.svc h2 {
  font-size: clamp(28px, 3vw, 36px);
  margin-bottom: 12px;
}

.svc p {
  color: var(--muted);
}

.checklist {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  font-size: 16px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sky)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%231f5fae' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

.quote .checklist li {
  color: var(--on-navy);
}

.quote .checklist li::before {
  background-color: rgba(255, 255, 255, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%238db8ee' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E");
}

/* ---------- 9. Page À propos ---------- */
.about-photo {
  aspect-ratio: 4 / 3;
  border-radius: 200px 200px 26px 26px;
}

.grid-2 {
  display: grid;
  gap: 18px;
}

.value {
  padding: 26px;
  background: var(--white);
  border-radius: 22px;
}

.value .val__num {
  margin-bottom: 18px;
}

.value h3 {
  font-size: 23px;
  margin-bottom: 8px;
}

.value p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.zone {
  padding: 34px;
  background: var(--navy);
  color: var(--on-navy);
  border-radius: 32px;
}

.zone h2 {
  color: var(--white);
  font-size: clamp(30px, 3.4vw, 44px);
  margin-bottom: 16px;
}

.zone h2 em {
  color: var(--blue-light);
}

.zone p {
  color: var(--on-navy);
}

.zone p:last-child {
  margin: 0;
}

.zone .tags {
  margin-top: 24px;
}

.zone a {
  text-decoration: underline;
  color: var(--white);
}

/* ---------- 10. Page Contact & formulaire ---------- */
.contact-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

.contact-grid h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 18px;
}

.panel {
  margin-top: 18px;
  padding: 22px 24px;
  background: var(--sky);
  border-radius: 20px;
}

.panel b {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
}

.panel p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.form {
  padding: 28px 24px;
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.form h2 {
  margin-bottom: 8px;
}

.form__grid {
  display: grid;
  gap: 18px;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form__field label {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}

.required {
  color: var(--danger);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.form textarea {
  min-height: 160px;
  resize: vertical;
}

.form select {
  appearance: none;
  padding-right: 44px;
  background: var(--bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23102a4c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E")
    right 16px center / 16px no-repeat;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  background-color: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(43, 116, 209, 0.15);
}

.form [aria-invalid="true"] {
  border-color: var(--danger);
}

.form__hint {
  font-size: 14px;
  color: var(--muted);
}

.form__error {
  font-size: 14px;
  font-weight: 600;
  color: var(--danger);
}

.form__field .form__checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
}

.form__checkbox input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  min-height: 0;
  margin-top: 2px;
  accent-color: var(--blue);
}

.form__checkbox a {
  color: var(--blue);
  text-decoration: underline;
}

.form__hp {
  position: absolute;
  left: -9999px;
}

.form__alert {
  margin: 14px 0 18px;
  padding: 14px 18px;
  font-size: 15px;
  border-radius: 16px;
}

.form__alert strong {
  display: block;
}

.form__alert--ok {
  background: #e7f5ee;
  color: var(--success);
}

.form__alert--error {
  background: #fdecea;
  color: var(--danger);
}

/* ---------- 11. Mentions légales ---------- */
.prose {
  max-width: 860px;
  margin: 0 auto;
  padding: 34px 26px;
  background: var(--white);
  border-radius: 28px;
}

.prose h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  margin: 40px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  font-size: 20px;
  margin: 24px 0 8px;
}

.prose p,
.prose li,
.prose dd {
  color: var(--muted);
}

.prose ul {
  padding-left: 20px;
  margin-bottom: 1em;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--blue);
  text-decoration: underline;
}

.prose dl {
  display: grid;
  gap: 4px 24px;
  margin: 0 0 1em;
}

.prose dt {
  font-weight: 700;
  color: var(--navy);
}

.prose dd {
  margin: 0 0 10px;
}

/* ---------- 12. Pied de page ---------- */
.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

.site-footer__grid {
  display: grid;
  gap: 32px;
  padding-bottom: 32px;
}

.site-footer .brand {
  color: var(--navy);
  margin-bottom: 14px;
}

.site-footer .brand small {
  color: var(--muted);
}

.site-footer h2 {
  margin-bottom: 12px;
  font: 700 15px var(--sans);
  color: var(--navy);
  letter-spacing: 0;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  list-style: none;
}

.site-footer a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.site-footer address {
  font-style: normal;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

/* ---------- 13. Page 404 ---------- */
.notfound {
  padding: 90px 0 110px;
  text-align: center;
}

.notfound h1 {
  font-size: clamp(40px, 5vw, 64px);
  margin: 18px 0 14px;
}

.notfound .acts {
  justify-content: center;
  margin-top: 28px;
}

/* ==========================================================================
   Tablette (≥ 640 px)
   ========================================================================== */
@media (min-width: 640px) {
  .cards,
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .form {
    padding: 36px;
  }

  .form__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form__field--full {
    grid-column: 1 / -1;
  }

  .prose {
    padding: 48px;
  }

  .prose dl {
    grid-template-columns: max-content 1fr;
  }

  .prose dd {
    margin-bottom: 0;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .collage {
    height: 440px;
  }
}

/* ==========================================================================
   Ordinateur (≥ 900 px) : menu complet dans la capsule, sans burger
   ========================================================================== */
@media (min-width: 900px) {
  section {
    padding: 100px 0;
  }

  .top {
    top: 12px;
    padding-top: 12px;
  }

  .top__bar {
    flex-wrap: nowrap;
    min-height: 72px;
    padding: 0 12px 0 16px;
    border-radius: 999px;
  }

  .top__actions {
    display: none;
  }

  .main-nav,
  .no-js .main-nav {
    display: block;
    width: auto;
  }

  .main-nav ul {
    display: flex;
    gap: 30px;
    padding: 0;
  }

  .main-nav li + li {
    border-top: 0;
  }

  .main-nav a {
    padding: 6px 0;
    font-size: 15px;
  }

  .main-nav .main-nav__cta {
    display: none;
  }

  .top__cta {
    display: inline-flex;
  }

  .page-hero {
    padding: 64px 0 72px;
  }

  .hero {
    padding: 56px 0 90px;
  }

  .hero__grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--g);
  }

  .contact-grid {
    grid-template-columns: 1fr 1.5fr;
  }

  .collage {
    height: 520px;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .card--wide {
    grid-column: span 2;
    flex-direction: row;
  }

  .card--wide .ph {
    flex: 1;
    aspect-ratio: auto;
    min-height: 240px;
  }

  .card--wide .card__body {
    flex: 1;
    align-self: center;
    padding: 32px;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 21px;
    left: 54px;
    right: -14px;
    border-top: 2px dashed #c9d0da;
  }

  .quote {
    padding: 42px;
  }

  .quote p {
    font-size: 30px;
  }

  .end__box {
    grid-template-columns: 1.3fr 0.7fr;
    padding: 56px;
  }

  .end .acts {
    justify-content: flex-end;
  }

  /* Services : photo et texte côte à côte, en alternance */
  .svc {
    grid-template-columns: 1fr 1fr;
  }

  .svc .ph {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .svc__body {
    align-self: center;
    padding: 44px;
  }

  .svc:nth-child(even) .ph {
    order: 2;
  }

  /* Prestation sans photo déposée : le texte occupe toute la largeur */
  .svc--sans-photo {
    grid-template-columns: 1fr;
  }

  .svc--sans-photo .svc__body {
    max-width: 760px;
  }

  .zone .tags {
    margin-top: 0;
  }

  .zone {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 56px;
  }

  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  }
}

/* ---------- Sections de la bibliothèque (éditeur visuel → « Ajouter ») ---------- */
.bloc__grille {
  display: grid;
  gap: 18px;
}

@media (min-width: 700px) {
  .bloc__grille--2 { grid-template-columns: repeat(2, 1fr); }
  .bloc__grille--3 { grid-template-columns: repeat(3, 1fr); }
  .bloc__grille--4 { grid-template-columns: repeat(4, 1fr); }
}

.bloc__image {
  min-height: 280px;
  border-radius: var(--radius);
}

.bloc__titre-centre {
  margin-bottom: 32px;
  font-size: clamp(30px, 3.4vw, 44px);
  text-align: center;
}

.bloc__surtitre {
  margin: 0 0 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}

.avis,
.tarif,
.membre {
  padding: 26px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.avis__etoiles {
  color: #e8a33a;
  letter-spacing: 0.15em;
}

.avis__texte {
  margin: 12px 0 18px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--navy);
}

.avis__auteur {
  display: grid;
  font-size: 15px;
}

.avis__auteur span {
  color: var(--muted);
}

.faq__liste {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.faq {
  padding: 18px 22px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.faq summary {
  font-weight: 800;
  color: var(--navy);
  cursor: pointer;
}

.faq p {
  margin: 10px 0 0;
  color: var(--muted);
}

.aa__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.aa figure {
  margin: 0;
}

.aa .ph {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
}

.aa figcaption {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
}

.aa__legende {
  margin: 10px 0 0;
  font-weight: 700;
  color: var(--navy);
}

.chiffre {
  display: grid;
  gap: 4px;
  padding: 22px;
  text-align: center;
  background: var(--sky);
  border-radius: var(--radius-sm);
}

.chiffre b {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.1;
  color: var(--navy);
}

.chiffre span {
  color: var(--muted);
}

.tarif {
  display: grid;
  align-content: start;
  gap: 14px;
}

.tarif h3 {
  margin: 0;
}

.tarif__prix {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.tarif__prix b {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--blue);
}

.tarif__prix span {
  color: var(--muted);
}

.tarif .checklist {
  margin: 0;
}

.tarif .pill {
  justify-self: start;
}

.membre {
  text-align: center;
}

.membre__photo {
  width: 140px;
  height: 140px;
  margin: 0 auto 14px;
  border-radius: 50%;
}

.membre h3 {
  margin: 0 0 4px;
}

.membre__role {
  color: var(--muted);
}

.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 34px;
}

.logo .ph {
  width: 140px;
  height: 70px;
  background: transparent;
}

.logo img {
  object-fit: contain !important;
  filter: grayscale(1);
  opacity: 0.75;
}

/* ---------- Réglages de l'éditeur visuel (gestion) ----------
   Ajoutés aux éléments modifiés : taille, alignement, style de texte,
   forme et arrondi des images, éléments masqués sur téléphone. */
.ed-taille-s {
  font-size: 0.85em;
}

.ed-taille-l {
  font-size: 1.2em;
}

.ed-taille-xl {
  font-size: 1.45em;
}

.ed-align-gauche {
  text-align: left;
}

.ed-align-centre {
  text-align: center;
}

.ed-align-droite {
  text-align: right;
}

.ed-style-titre {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
}

.ed-style-sous-titre {
  font-family: var(--sans);
  font-weight: 800;
  line-height: 1.3;
  color: var(--navy);
}

.ed-style-paragraphe {
  font-family: var(--sans);
  font-weight: 400;
}

.ph.ed-arrondi-aucun {
  border-radius: 0 !important;
}

.ph.ed-arrondi-doux {
  border-radius: 16px !important;
}

.ph.ed-arrondi-fort {
  border-radius: 36px !important;
}

.ph.ed-forme-carre {
  border-radius: 0 !important;
}

.ph.ed-forme-arche {
  border-radius: 999px 999px 24px 24px !important;
}

.ph.ed-forme-rond {
  border-radius: 50% !important;
  aspect-ratio: 1;
}

/* Sections : texte clair ou foncé sur un fond choisi */
.ed-texte-clair,
.ed-texte-clair h1,
.ed-texte-clair h2,
.ed-texte-clair h3,
.ed-texte-clair p,
.ed-texte-clair li,
.ed-texte-clair b,
.ed-texte-clair small,
.ed-texte-clair .lead,
.ed-texte-clair .intro p {
  color: #ffffff;
}

.ed-texte-fonce,
.ed-texte-fonce h1,
.ed-texte-fonce h2,
.ed-texte-fonce h3,
.ed-texte-fonce p,
.ed-texte-fonce li,
.ed-texte-fonce b,
.ed-texte-fonce .lead {
  color: var(--navy);
}

/* Sections : espacement en haut et en bas */
.ed-marge-haut-0 { padding-top: 0 !important; }
.ed-marge-haut-s { padding-top: 24px !important; }
.ed-marge-haut-m { padding-top: 56px !important; }
.ed-marge-haut-l { padding-top: 96px !important; }
.ed-marge-haut-xl { padding-top: 140px !important; }
.ed-marge-bas-0 { padding-bottom: 0 !important; }
.ed-marge-bas-s { padding-bottom: 24px !important; }
.ed-marge-bas-m { padding-bottom: 56px !important; }
.ed-marge-bas-l { padding-bottom: 96px !important; }
.ed-marge-bas-xl { padding-bottom: 140px !important; }

/* Sections : largeur du contenu */
.ed-largeur-etroite .wrap { max-width: 860px; }
.ed-largeur-large .wrap { max-width: 1440px; }
.ed-largeur-plein .wrap { max-width: none; }

@media (max-width: 699px) {
  .ed-cache-mobile {
    display: none !important;
  }
}

/* ---------- Impression ---------- */
@media print {
  .top,
  .end,
  .band {
    display: none;
  }

  body {
    background: #fff;
  }
}

/* Logo choisi dans l'éditeur visuel (image à la place du logo d'origine) */
.brand__mark--image {
  width: auto;
  max-width: 180px;
  height: 40px;
  object-fit: contain;
}

.brand__logo {
  display: inline-flex;
}

/* Sitemap : colonnes */
.sitemap-colonnes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.sitemap-col {
  padding: 24px;
  background: var(--sky);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.sitemap-col h2 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 16px;
  line-height: 1.2;
}

.sitemap-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sitemap-col li {
  margin: 0;
}

.sitemap-col a {
  color: var(--blue);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.sitemap-col a:hover {
  color: var(--blue-2);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .sitemap-colonnes {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
