:root {
  --bg0: #ffffff;
  --bg1: #fbf7f1;
  --bg2: #f3eadf;
  --text: rgba(24, 20, 16, 0.92);
  --muted: rgba(24, 20, 16, 0.68);
  --muted2: rgba(24, 20, 16, 0.56);
  --surface: rgba(255, 255, 255, 0.72);
  --surface2: rgba(255, 255, 255, 0.88);
  --border: rgba(24, 20, 16, 0.12);
  --shadow: 0 22px 70px rgba(24, 20, 16, 0.12);
  --radius: 18px;
  --radius-sm: 14px;
  --max: 1120px;
  --accent: #e67e6b;
  --accent2: #f09384;
  --ring: 0 0 0 4px rgba(230, 126, 107, 0.28);
  --sage: #bcc6af;
  --sage-gradient: linear-gradient(
    195deg,
    #bcc6af 0%,
    #bcc6af 35%,
    rgba(188, 198, 175, 0.82) 72%,
    rgba(188, 198, 175, 0.76) 100%
  );
  /* Wix-style page base (adjust --wst-base-1-color to match your design system) */
  --wst-base-1-color: var(--bg0);

  /* Typography */
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-0: 0.95rem;
  --fs-1: 1.15rem;
  --fs-2: 1.25rem;
  --fs-3: 1.55rem;
  /* Display h1: ~30px (1.875rem) phone → ~80px (5rem) large screens */
  --fs-h1: clamp(1.7rem, 0.26rem + 5.4vw, 4.25rem);
  /* Section h2: clear step under h1, fluid between phone and desktop */
  --fs-h2: clamp(1.75rem, 1.08rem + 2.6vw, 3.05rem);
  --lh-body: 1.52;
  --lh-head: 1.15;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: clamp(84px, 11vw, 104px);
  font-family: var(--font-sans);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

body {
  min-height: 100%;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: var(--lh-body);
  font-size: 16px;
  background: radial-gradient(1200px 700px at 12% -10%, rgba(230, 126, 107, 0.22), transparent 60%),
    radial-gradient(1100px 700px at 92% 10%, rgba(240, 160, 144, 0.16), transparent 62%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 28%, var(--bg2));
}

main {
  display: block;
  width: 100%;
  max-width: 100%;
}

/* Global type rhythm */
h1,
h2,
h3 {
  font-family: var(--font-sans);
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.022em;
}

h3 {
  font-size: var(--fs-2);
  font-weight: 650;
  line-height: var(--lh-head);
}

p {
  margin: 0 0 14px;
  font-size: var(--fs-1);
  line-height: 1.48;
}

.fine {
  font-size: var(--fs-0);
  color: var(--muted2);
}

img {
  max-width: 100%;
  height: auto;
}

/* Keeps layout identical when <img> is wrapped in <picture> (format fallbacks). */
picture.site-img {
  display: contents;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

/* Hero: un peu plus de largeur utile (moins de marge latérale), intro + carte alignées */
.hero .container {
  width: min(calc(100% - 24px), var(--max));
}

/* Header: pleine largeur écran, gouttières latérales + encoches (safe-area) */
.site-header .container {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-left: max(env(safe-area-inset-left, 0px), clamp(14px, 4vw, 40px));
  padding-right: max(env(safe-area-inset-right, 0px), clamp(14px, 4vw, 40px));
  box-sizing: border-box;
}

.skip {
  position: absolute;
  left: -999px;
  top: 10px;
  padding: 10px 12px;
  background: #fff;
  color: #000;
  border-radius: 10px;
  z-index: 9999;
}

.skip:focus {
  left: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(24, 20, 16, 0.08);
  transition: box-shadow 150ms ease;
  padding-inline: 0;
}

.site-header.is-elevated {
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  row-gap: 10px;
  padding: 10px 0;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.logo {
  height: 32px;
  width: auto;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

.burger {
  display: none;
  border: 1px solid rgba(24, 20, 16, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
}

.burger:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.menu {
  display: flex;
  align-items: center;
  /* Grows to the right edge; .menu-links shares width between nav items (not empty margin) */
  flex: 1 1 auto;
  justify-content: flex-start;
  gap: clamp(12px, 1.8vw, 24px);
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 0;
  overflow: visible;
  margin-left: clamp(8px, 1.5vw, 18px);
  /* Horizontal breathing room for the nav row only (not the whole header strip) */
  padding-inline: clamp(12px, 2vw, 28px);
}

.menu::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.menu-links {
  display: flex;
  align-items: center;
  /* Grow + distribute: extra width becomes even spacing between items (fluid header) */
  flex: 1 1 auto;
  justify-content: space-between;
  gap: clamp(4px, 0.7vw, 16px);
  flex-wrap: nowrap;
  min-width: 0;
  /* visible: required so .menu-dropdown panel (position:absolute) is not clipped */
  overflow: visible;
}

.menu-aside {
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.9vw, 10px);
  flex-shrink: 0;
}

.menu-links > a,
.menu-dropdown__trigger {
  box-sizing: border-box;
  height: 40px;
  padding: 0 6px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: var(--fs-0);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: normal;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  transition: background 120ms ease, color 120ms ease;
}

.menu-links > a:hover,
.menu-dropdown:hover > .menu-dropdown__trigger,
.menu-dropdown__trigger:hover {
  background: rgba(24, 20, 16, 0.04);
  color: var(--text);
}

.menu-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
}

/* Invisible hover bridge: keeps dropdown open when moving cursor toward the panel */
@media (min-width: 1101px) {
  .menu-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    top: 100%;
    height: 14px;
    z-index: 119;
  }
}

.menu-dropdown__trigger {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.menu-dropdown__trigger:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.menu-dropdown__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: min(300px, calc(100vw - 40px));
  max-width: min(360px, calc(100vw - 32px));
  padding: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(24, 20, 16, 0.1);
  box-shadow: 0 16px 44px rgba(24, 20, 16, 0.14);
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 120ms ease, visibility 120ms ease;
}

.menu-dropdown:hover .menu-dropdown__panel,
.menu-dropdown:focus-within .menu-dropdown__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-dropdown__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-height: auto;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: var(--fs-0);
  font-weight: inherit;
  white-space: normal;
  line-height: 1.35;
}

.menu-dropdown__item:hover {
  background: rgba(24, 20, 16, 0.06);
  color: var(--text);
}

.menu-dropdown__item-title {
  font-weight: 500;
  color: var(--text);
}

.menu-dropdown__item-desc {
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--muted);
}

.menu-dropdown__item:hover .menu-dropdown__item-desc {
  color: var(--muted);
}

.site-header .menu-aside a.button--primary,
.site-header .menu-aside .button.button--primary {
  background: #e67e6b;
  border-color: rgba(200, 95, 78, 0.55);
  color: #fff;
}

.site-header .menu-aside a.button--primary:hover,
.site-header .menu-aside .button.button--primary:hover {
  background: #d96a56;
  border-color: rgba(180, 80, 65, 0.6);
  color: #fff;
}

.header-contact-icons {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.header-contact-trigger {
  position: relative;
}

.header-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
  text-decoration: none;
}

.header-contact-btn:hover,
.header-contact-trigger:hover .header-contact-btn,
.header-contact-trigger:focus-within .header-contact-btn {
  background: rgba(24, 20, 16, 0.06);
  color: var(--text);
}

.header-contact-btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.header-contact-btn svg {
  flex-shrink: 0;
}

.header-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(280px, calc(100vw - 40px));
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(24, 20, 16, 0.12);
  box-shadow: 0 18px 48px rgba(24, 20, 16, 0.16);
  font-size: var(--fs-0);
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms ease, visibility 140ms ease;
  z-index: 100;
}

.header-contact-trigger:hover .header-popover,
.header-contact-trigger:focus-within .header-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header-contact-trigger:first-child .header-popover {
  left: 0;
  transform: none;
}

.header-contact-trigger:last-child .header-popover {
  left: auto;
  right: 0;
  transform: none;
}

.header-popover p {
  margin: 0 0 8px;
  font-size: var(--fs-0);
  line-height: 1.45;
  color: var(--text);
  user-select: text;
}

.header-popover p:last-child {
  margin-bottom: 0;
}

.header-popover a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(24, 20, 16, 0.35);
  text-underline-offset: 3px;
}

.header-popover a:hover {
  color: var(--text);
  text-decoration-color: rgba(24, 20, 16, 0.55);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(24, 20, 16, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-weight: 600;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

button.button {
  appearance: none;
  -webkit-appearance: none;
}

.menu-aside .button {
  height: 40px;
  padding: 0 6px;
  font-size: var(--fs-0);
  display: inline-flex;
  align-items: center;
}

/* Header: tighten spacing before burger breakpoint */
@media (max-width: 1280px) {
  .menu-links > a,
  .menu-dropdown__trigger,
  .menu-aside .button {
    height: 38px;
    padding: 0 6px;
    font-size: 0.9rem;
  }

  .header-contact-btn {
    width: 38px;
    height: 38px;
  }

  .logo {
    height: 30px;
  }
}

@media (max-width: 1100px) {
  .logo {
    height: 28px;
  }
}

.button:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.button--primary {
  border-color: rgba(200, 95, 78, 0.55);
  background: #e67e6b;
  color: #fff;
}

.button.button--primary:hover {
  background: #d96a56;
  border-color: rgba(180, 80, 65, 0.6);
  transform: translateY(-1px);
}

.button--ghost {
  background: transparent;
}

.hero {
  width: 100%;
  max-width: 100%;
  padding: 70px 0 clamp(56px, 9vw, 96px);
}

.hero-intro {
  padding-bottom: clamp(18px, 2.8vw, 28px);
}

.hero-intro__title {
  margin: 0;
  font-weight: 500;
}

.hero-intro__subtitle {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: #5c6a72;
}

.hero-banner-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  overflow: visible;
}

.hero-banner--full {
  border-radius: 0;
}

.hero-banner__img {
  width: 100%;
  max-width: 100%;
  height: clamp(320px, 42vw, 520px);
  object-fit: cover;
  display: block;
}

.hero-banner__card-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  pointer-events: none;
}

.hero-banner__card-inner {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  pointer-events: none;
}

/* Largeur / marge basées sur le bandeau (100%), pas 100vw — évite le débordement avec barre de défilement */
.hero-banner__card-inner.container {
  width: min(calc(100% - 16px), var(--max));
  margin-left: max(0px, calc((100% - min(calc(100% - 16px), var(--max))) / 4 - 30px));
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.hero-floating-card {
  pointer-events: auto;
  max-width: min(484px, calc(96% * 1.1));
  min-height: clamp(148px, 20.95vw, 210px);
  margin: 0;
  transform: translateY(8%);
  box-shadow: var(--shadow);
  background: #fbf5eb;
  border: 1px solid rgba(24, 20, 16, 0.08);
  border-radius: var(--radius);
  padding: clamp(32px, 5.2vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.hero-floating-card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-1);
  line-height: 1.48;
}

.hero-floating-card p + p {
  margin-top: 12px;
}

.hero-floating-card__cta {
  margin-top: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.kpi {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(24, 20, 16, 0.1);
  background: rgba(255, 255, 255, 0.7);
  padding: 12px 12px;
}

.kpi strong {
  display: block;
  font-size: 1.1rem;
}

.kpi span {
  display: block;
  color: var(--muted2);
  font-size: 0.95rem;
  margin-top: 2px;
}

.section {
  padding: 62px 0;
}

.hero + .section {
  padding-top: clamp(88px, 12vw, 140px);
}

/* « Qui suis je ? » — fond 6.avif sur #qui, assourdi / éclairci par filtres */
.section--qui {
  position: relative;
  overflow: visible;
}

#main > section.section.section--qui {
  padding-top: 0;
  padding-bottom: 0;
}

.qui-card__text .qui-title {
  margin: 0 0 clamp(14px, 2vw, 20px);
  color: #000;
}

#qui.qui-card.card.container {
  position: relative;
  z-index: 1;
  max-width: 100%;
  width: 100%;
  margin-inline: 0;
  overflow: hidden;
  scroll-margin-top: clamp(72px, 12vh, 100px);
  isolation: isolate;
  background: transparent;
  border-color: rgba(24, 20, 16, 0.1);
  border-radius: 0;
  padding: clamp(18px, 3.2vw, 32px);
  padding-right: clamp(18px, 3.2vw, 32px);
  padding-top: calc(clamp(32px, 4.5vw, 56px) + 24px);
  padding-bottom: calc(clamp(24px, 4vw, 48px) + 24px);
}

/* Couvre toute la largeur du bloc (couche plus large + centrée) pour éviter les bandes sur les côtés */
#qui.qui-card.card.container::before {
  content: "";
  position: absolute;
  top: -14%;
  bottom: -14%;
  left: 50%;
  width: 142%;
  min-width: 100%;
  transform: translateX(-50%);
  z-index: 0;
  border-radius: 0;
  background-image: url("./assets/6.avif");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: blur(11px) brightness(1.2) saturate(0.7) contrast(0.92);
  pointer-events: none;
}

/* Desktop portrait: ~70 % du portrait dans le bloc #dfdace, ~30 % qui dépasse */
#qui .qui-card__text .qui-card__portrait--desktop {
  position: absolute;
  top: -30px;
  right: -22px;
  width: clamp(390px, 53vw, 560px);
  max-width: min(560px, calc(100% - 12px));
  aspect-ratio: 1;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  border: none;
  background: transparent;
  box-shadow: none;
  z-index: 2;
  transform: translateX(42%);
  transform-origin: center center;
}

/* Mobile portrait is hidden by default (desktop/tablet keep the floating one) */
#qui .qui-card__text .qui-card__portrait--mobile {
  display: none;
}

#qui .qui-card__portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

#qui > div.qui-card__text {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  margin-left: 30px;
  margin-right: 0;
  width: 74%;
  max-width: 74%;
  overflow: visible;
  padding: clamp(22px, 4vw, 42px) clamp(248px, 29vw, 340px) clamp(22px, 4vw, 42px)
    clamp(32px, 5.5vw, 56px);
  background: #dfdace;
  border-radius: var(--radius-sm);
  color: #000;
}

#qui .qui-card__text p {
  color: #000;
}

#qui .qui-card__text h3 {
  margin: 18px 0;
}

.qui-card__text > p:last-of-type {
  margin-bottom: 0;
}

.qui-card__cta {
  margin-top: 20px;
}

@media (max-width: 900px) {
  /* Swap portraits (phone-ish widths, including landscape) */
  #qui .qui-card__text .qui-card__portrait--desktop {
    display: none;
  }

  #qui .qui-card__text .qui-card__portrait--mobile {
    display: block;
    position: static;
    inset: auto;
    transform: none;
  }
}

@media (max-width: 720px) {
  #qui.qui-card.card.container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
    margin-inline: 0;
    border-radius: 0;
    padding: clamp(16px, 4vw, 28px) clamp(12px, 3vw, 18px);
    padding-top: calc(clamp(28px, 6vw, 44px) + 24px);
    padding-bottom: calc(clamp(22px, 5vw, 36px) + 24px);
    overflow: hidden;
  }

  #qui > div.qui-card__text {
    margin-left: 30px;
    margin-right: 0;
    width: calc(100% - 30px);
    max-width: calc(100% - 30px);
    padding: clamp(14px, 4vw, 26px);
    padding-left: clamp(18px, 5vw, 32px);
    padding-right: clamp(96px, 38vw, 160px);
  }

  /* Ensure NO absolute positioning on the phone portrait */
  #qui .qui-card__text .qui-card__portrait--mobile {
    position: static;
    inset: auto;
    transform: none;
  }
}

.section--alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  border-top: 1px solid rgba(24, 20, 16, 0.06);
  border-bottom: 1px solid rgba(24, 20, 16, 0.06);
}

.section--sage {
  background: var(--sage-gradient);
  border-top: 1px solid rgba(24, 20, 16, 0.07);
  border-bottom: 1px solid rgba(24, 20, 16, 0.07);
}

#modalites.section--sage {
  overflow-x: clip;
  padding-top: 0;
  padding-bottom: 0;
}

#modalites .modalites-shell {
  display: grid;
  grid-template-columns: minmax(300px, min(48vw, 560px)) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 52px);
  align-items: stretch;
  box-sizing: border-box;
  width: 100%;
  padding-left: 0;
  /* Petite gouttière seulement : la carte peut s’approcher du bord écran (pas l’inset “max-width” du site) */
  padding-right: max(env(safe-area-inset-right, 0px), clamp(10px, 2vw, 22px));
}

#modalites .modalites-media {
  padding: 0;
  overflow: hidden;
  border-radius: 0 var(--radius) var(--radius) 0;
  border: 1px solid rgba(24, 20, 16, 0.1);
  border-left: none;
  align-self: stretch;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#modalites .modalites-media .media__img {
  display: block;
  width: 100%;
  flex: 1;
  min-height: clamp(300px, 36vw, 460px);
  max-height: none;
  height: 100%;
  object-fit: cover;
}

#modalites .modalites-body {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, min(44%, 420px));
  gap: clamp(22px, 3.5vw, 32px);
  align-items: stretch;
  align-content: start;
  padding-top: clamp(36px, 5vw, 62px);
  padding-bottom: clamp(28px, 4vw, 48px);
}

#modalites .modalites-main {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 20px);
  min-width: 0;
  justify-content: flex-start;
}

#modalites .modalites-map {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(24, 20, 16, 0.1);
  background: rgba(255, 255, 255, 0.35);
  min-height: clamp(260px, 30vw, 360px);
  max-height: min(560px, 78vh);
  height: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  position: relative;
}

#modalites .modalites-map__frame {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 260px;
  height: 100%;
  border: 0;
}

#modalites .modalites-map__cta {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(24, 20, 16, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(24, 20, 16, 0.12);
  backdrop-filter: blur(6px);
}

#modalites .modalites-map__cta:hover {
  transform: translateY(-1px);
}

#modalites .modalites-map__cta:focus-visible {
  outline: 3px solid rgba(99, 131, 120, 0.55);
  outline-offset: 3px;
}

#modalites .modalites-head.section-head {
  margin-bottom: 0;
}

#modalites .modalites-head h2 {
  text-align: left;
}

.modalites-copy {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  max-width: 62ch;
  margin: 0;
}

.modalites-copy p {
  margin: 0;
  line-height: 1.6;
}

.modalites-copy strong {
  font-weight: 600;
}

#modalites .modalites-cta {
  margin-top: clamp(6px, 1.2vw, 14px);
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 80ch;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  border-radius: var(--radius);
  border: 1px solid rgba(24, 20, 16, 0.1);
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
}

.card h3 {
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card p + p {
  margin-top: 14px;
}

/* Psychologue.net widget: keep it inside our layout */
.ie-common-widget {
  max-width: 100%;
}

.widget-wrapper {
  max-width: 100%;
}

/* Psychologue.net widget overrides
   The widget injects its own CSS AFTER ours via doc.write(link),
   so we use higher specificity + !important for visible effect. */
body .widget-wrapper .rev-explain {
  display: block !important;
}

body .widget-wrapper .rev-explain > a {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  column-gap: 12px !important;
  align-items: start !important;
  color: inherit !important;
}

body .widget-wrapper .rev-explain > a > img {
  width: 42px !important;
  height: 42px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(24, 20, 16, 0.14) !important;
  background: linear-gradient(180deg, rgba(214, 239, 222, 0.7), rgba(255, 255, 255, 0.9)) !important;
  padding: 8px !important;
  box-shadow: 0 10px 24px rgba(24, 20, 16, 0.08) !important;
}

body .widget-wrapper .rev-explain > a > p {
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

body .widget-wrapper .review-text {
  margin-top: 8px !important;
  color: var(--muted) !important;
  font-size: var(--fs-1) !important;
}

/* Full widget "skin" to match our design */
body .widget-wrapper {
  font-family: var(--font-sans) !important;
  color: var(--text) !important;
  width: 100% !important;
  max-width: 100% !important;
}

body .widget-wrapper a {
  color: inherit !important;
}

body .widget-wrapper > a {
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 14px !important;
  border-radius: calc(var(--radius) - 4px) !important;
  border: 1px solid rgba(24, 20, 16, 0.12) !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

body .widget-wrapper > a strong {
  font-size: 32px !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
  color: var(--text) !important;
}

body .widget-wrapper > a .of {
  font-size: 14px !important;
  color: var(--muted2) !important;
  font-weight: 600 !important;
}

body .widget-wrapper > a .widget-recommend-text {
  margin-top: 6px !important;
  color: var(--muted) !important;
  font-size: 14px !important;
}

body .widget-wrapper .stars img {
  height: 16px !important;
  width: auto !important;
  vertical-align: middle !important;
}

body .widget-wrapper hr {
  border: 0 !important;
  height: 1px !important;
  background: rgba(24, 20, 16, 0.08) !important;
  margin: 14px 0 !important;
}

body .widget-wrapper .rev-explain {
  padding: 10px 0 !important;
}

body .widget-wrapper .rev-explain > a {
  padding: 14px 14px !important;
  border-radius: calc(var(--radius) - 4px) !important;
  border: 1px solid rgba(24, 20, 16, 0.12) !important;
  background: linear-gradient(180deg, rgba(214, 239, 222, 0.55), rgba(255, 255, 255, 0.78)) !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* The widget has TWO <p> siblings inside <a>.
   Force both into the text column so they don't collapse into a narrow column. */
body .widget-wrapper .rev-explain > a > img {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
}

body .widget-wrapper .rev-explain > a > p {
  grid-column: 2 !important;
}

body .widget-wrapper .rev-explain > a > p:nth-of-type(1) {
  grid-row: 1 !important;
}

body .widget-wrapper .rev-explain > a > p:nth-of-type(2) {
  grid-row: 2 !important;
}

body .widget-wrapper .rev-explain > a:hover {
  text-decoration: none !important;
  box-shadow: 0 18px 44px rgba(24, 20, 16, 0.1) !important;
}

body .widget-wrapper .rev-explain .name {
  font-weight: 700 !important;
  color: var(--text) !important;
}

body .widget-wrapper .rev-explain .date {
  margin-left: 8px !important;
  color: var(--muted2) !important;
  font-size: 13px !important;
}

body .widget-wrapper .rev-explain .review-text {
  margin-top: 10px !important;
  color: var(--muted) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  max-width: none !important;
  width: 100% !important;
  display: block !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

body .widget-wrapper .rev-explain > a > p {
  max-width: none !important;
  width: 100% !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

/* Hide the "Par Psychologue.net" footer inside the widget (you already credit elsewhere if needed) */
body .widget-wrapper + .portal-by {
  display: none !important;
}

/* (Removed iframe embed styling; using official Psychologue.net widget script instead.) */

.field {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

label {
  font-weight: 600;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(24, 20, 16, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  outline: none;
}

input:focus,
textarea:focus {
  box-shadow: var(--ring);
  border-color: rgba(230, 126, 107, 0.55);
}

.two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: start;
}

.two-col.approche-split {
  gap: clamp(18px, 3vw, 28px);
}

.two-col.approche-split .media {
  border-radius: var(--radius);
  border: 1px solid rgba(24, 20, 16, 0.1);
}

.approche-copy h2 {
  margin-bottom: 12px;
  padding-bottom: clamp(16px, 2.4vw, 26px);
}

.approche-copy > p {
  color: var(--muted);
}

.approche-copy strong {
  color: var(--text);
  font-weight: 700;
}

.list.list--approche {
  margin-top: 10px;
}

.list--approche li + li {
  margin-top: 14px;
}

.approche-cta {
  margin-top: 24px;
}

#approche.section {
  padding-top: clamp(72px, 9vw, 104px);
  padding-bottom: clamp(72px, 9vw, 104px);
}

.media {
  padding: 0;
  overflow: hidden;
}

.media__img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.media--sm .media__img {
  min-height: 0;
  height: 320px;
}

#temoignages .temoignages-aside {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 20px);
  align-items: flex-start;
  min-width: 0;
}

#temoignages .temoignages-head.section-head {
  margin-bottom: clamp(22px, 3vw, 36px);
  width: 100%;
  max-width: none;
  text-align: center;
}

#temoignages .temoignages-head h2 {
  text-align: center;
}

#temoignages .temoignages-head p {
  max-width: 62ch;
  margin-inline: auto;
  text-align: center;
}

#temoignages .temoignages-photo {
  width: min(100%, 500px);
  max-width: 500px;
}

#temoignages .temoignages-photo .media__img {
  width: 100%;
  height: 624px;
  min-height: 0;
  object-fit: cover;
}

#temoignages .temoignages-stamp {
  margin-top: clamp(18px, 2.5vw, 26px);
  display: flex;
  justify-content: center;
}

.temoignages-stamp img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

#temoignages .temoignages-cta {
  margin-top: clamp(20px, 3vw, 28px);
  display: flex;
  justify-content: center;
}

#temoignages .two-col--narrow-left {
  grid-template-columns: minmax(260px, 1fr) minmax(0, min(100%, 460px));
  gap: clamp(20px, 3vw, 32px);
  align-items: center;
}

.two-col--narrow-left {
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
}

/* « Un accompagnement pour chaque parcours » : deux cartes même hauteur, plus d’espace entre elles */
.two-col--pour-qui {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: clamp(26px, 4vw, 42px);
}

.section--pour-qui .two-col--pour-qui .card.card--sage {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.section--pour-qui .two-col--pour-qui .card.card--sage .list {
  flex: 1 1 auto;
  margin-bottom: 0;
}

.card__media {
  width: 100%;
  height: auto;
  aspect-ratio: 434 / 327;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
  display: block;
  margin-bottom: 14px;
}

/* « Un accompagnement pour chaque parcours » — même dégradé que .section--sage */
.card.card--sage {
  background: var(--sage-gradient);
  border-color: rgba(24, 20, 16, 0.12);
}

/* Sage frame around media (e.g. illustration) */
.media.media--sage {
  background: var(--sage);
  border: 1px solid rgba(24, 20, 16, 0.12);
  border-radius: var(--radius);
  padding: clamp(12px, 2.2vw, 22px);
}

.section--espace {
  background-color: var(--wst-base-1-color);
  padding-right: 0;
  overflow-x: clip;
}

/* Pas de marge verticale sur la section : l’espace vient du bloc titre */
#espace.section {
  padding-top: 0;
  padding-bottom: 0;
}

.section--espace .section-head {
  margin-bottom: 0;
  padding-top: clamp(88px, 12vw, 140px);
  padding-bottom: clamp(18px, 3vw, 32px);
}

#espace .section-head h2 {
  line-height: 1.02;
}

.section--pour-qui {
  background-color: #efebe1;
  padding: clamp(70px, 8vw, 92px) clamp(20px, 5vw, 44px);
}

.section--pour-qui .card.card--sage {
  padding: clamp(20px, 3vw, 26px);
}

.section--domaines {
  background-color: #efebe1;
  border-top: 1px solid rgba(24, 20, 16, 0.06);
  border-bottom: 1px solid rgba(24, 20, 16, 0.06);
  padding: clamp(64px, 8vw, 96px) clamp(20px, 4.5vw, 40px);
}

.section--domaines .section-head {
  margin-bottom: clamp(26px, 3.2vw, 36px);
}

.section--domaines .section-head h2 {
  padding-bottom: clamp(14px, 2.2vw, 26px);
}

.section--domaines .card-grid .card {
  background: rgba(245, 240, 232, 0.78);
  border-color: rgba(24, 20, 16, 0.11);
}

.domaines-hero-media {
  margin: clamp(8px, 1.5vw, 16px) 0 clamp(22px, 3vw, 32px);
}

.section--domaines .domaines-hero-media .media__img {
  min-height: clamp(360px, 52vw, 560px);
  height: clamp(360px, 52vw, 560px);
  max-height: none;
  object-fit: cover;
}

.domaines-intro {
  margin: clamp(32px, 4.2vw, 48px) auto clamp(28px, 3.5vw, 40px);
  max-width: 80ch;
  color: var(--muted);
  text-align: center;
}

.domaines-cta {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.pour-qui-cta {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.section-head--center {
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
}

.section-head--center h2 {
  margin-inline: auto;
}

.section--pour-qui .section-head {
  margin-bottom: 22px;
}

.section--pour-qui .section-head h2 {
  padding-bottom: clamp(20px, 3vw, 36px);
}

/* « Un espace de parole… » : grille pleine largeur, image collée au bord droit du viewport */
.container.espace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: stretch;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-left: max(20px, calc((100vw - min(calc(100vw - 40px), var(--max))) / 2));
  padding-right: 0;
  box-sizing: border-box;
}

.espace__text {
  min-width: 0;
  padding-right: clamp(10px, 1.8vw, 24px);
}

.section--espace .espace__text > p {
  margin-top: 14px;
  color: var(--muted);
}

.espace__cta {
  margin-top: 22px;
}

.espace__media.media--sage {
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  padding: clamp(19px, 3.5vw, 35px);
  min-height: min(360px, 54vh);
  margin-top: 0;
  margin-bottom: 0;
  overflow: hidden;
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.espace__media .media__img {
  width: 100%;
  flex: 1;
  min-height: 300px;
  object-fit: cover;
  display: block;
  border-top-left-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
}

@media (max-width: 900px) {
  .section--espace {
    padding-right: 0;
  }

  .container.espace {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-right: max(20px, calc((100vw - min(calc(100vw - 40px), var(--max))) / 2));
  }

  .espace__media.media--sage {
    min-height: 260px;
    max-width: min(100%, 560px);
    margin-inline: auto;
    border-radius: var(--radius);
  }

  .espace__media .media__img {
    border-radius: var(--radius-sm);
  }
}

.list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.85;
}

.callout {
  border-radius: var(--radius);
  border: 1px solid rgba(24, 20, 16, 0.1);
  background: rgba(255, 255, 255, 0.78);
  padding: 18px;
}

.callout p {
  color: var(--muted);
  margin: 10px 0 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-item {
  border-radius: var(--radius);
  border: 1px solid rgba(24, 20, 16, 0.1);
  background: rgba(255, 255, 255, 0.78);
  padding: 18px;
}

#contact .section-head {
  text-align: center;
}

#contact .section-head h2 {
  text-align: center;
}

#contact .section-head p {
  max-width: 62ch;
  margin-inline: auto;
  text-align: center;
}

.contact-form {
  max-width: 720px;
  margin-inline: auto;
}

.contact-form__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.contact-form__actions .fine {
  flex: 1 1 100%;
  margin: 0;
  text-align: center;
}

.contact-item h3 {
  margin: 0 0 8px;
}

.site-footer {
  padding: clamp(34px, 4vw, 52px) 0 calc(clamp(44px, 5vw, 62px) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(24, 20, 16, 0.08);
  background: rgba(255, 255, 255, 0.45);
}

.footer-row {
  display: grid;
  grid-template-columns: auto minmax(220px, 1.4fr) auto auto;
  gap: clamp(12px, 2.2vw, 22px);
  align-items: center;
  color: var(--muted);
}

.footer-col {
  min-width: 0;
  line-height: 1.45;
}

.footer-col--brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  height: 34px;
  width: auto;
  display: block;
}

.footer-year {
  white-space: nowrap;
  opacity: 0.9;
}

.footer-col:nth-child(1) {
  text-align: left;
}

.footer-col:nth-child(2) {
  text-align: center;
}

.footer-col:nth-child(3) {
  text-align: center;
}

.footer-col:nth-child(4) {
  text-align: right;
}

/* Desktop footer: align columns cleanly & avoid awkward wraps */
@media (min-width: 821px) {
  .footer-row {
    grid-template-columns:
      minmax(180px, 1fr)
      minmax(300px, 1.7fr)
      minmax(150px, 0.9fr)
      minmax(220px, 1.1fr);
    align-items: start;
    justify-items: center;
    gap: clamp(14px, 2.6vw, 26px);
  }

  .footer-col {
    text-align: center;
  }

  .footer-col:nth-child(3),
  .footer-col:nth-child(4) {
    white-space: nowrap;
  }

  .footer-col--brand {
    justify-content: center;
  }
}

@media (max-width: 820px) {
  .footer-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .footer-col:nth-child(1),
  .footer-col:nth-child(2),
  .footer-col:nth-child(3),
  .footer-col:nth-child(4) {
    text-align: left;
  }
}

@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }

  #modalites .modalites-shell {
    grid-template-columns: 1fr;
    gap: clamp(22px, 4vw, 32px);
    padding-left: clamp(16px, 4vw, 24px);
    padding-right: clamp(16px, 4vw, 24px);
  }

  #modalites .modalites-body {
    grid-template-columns: 1fr;
    padding-top: clamp(28px, 5vw, 48px);
    padding-bottom: 0;
  }

  #modalites .modalites-map {
    aspect-ratio: 16 / 11;
    max-height: 360px;
    min-height: 220px;
    height: auto;
    display: block;
  }

  #modalites .modalites-map__frame {
    flex: none;
    min-height: 200px;
  }

  #modalites .modalites-media {
    border-radius: var(--radius);
    border-left: 1px solid rgba(24, 20, 16, 0.1);
    display: block;
  }

  #modalites .modalites-media .media__img {
    min-height: clamp(240px, 52vw, 340px);
    max-height: none;
    height: auto;
    flex: none;
  }

  #temoignages .two-col--narrow-left {
    grid-template-columns: 1fr;
  }
}

/* Domaines & cards: une colonne sur téléphone étroit (plus lisible que 2×2 serré) */
@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Tablet: switch to burger earlier so everything is visible */
@media (max-width: 1100px) {
  .burger {
    display: inline-flex;
  }

  .menu {
    display: none;
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    order: 3;
    margin-left: 0;
    padding-block: 10px;
    padding-inline: clamp(12px, 3vw, 22px);
    border: 1px solid rgba(24, 20, 16, 0.12);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    box-shadow: var(--shadow);
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }

  .menu.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
  }

  .menu.is-open .menu-links {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: visible;
    width: 100%;
    gap: 2px;
  }

  .menu.is-open .menu-links > a {
    white-space: normal;
    padding: 10px 12px;
    height: auto;
    min-height: 40px;
  }

  .menu.is-open .menu-dropdown {
    width: 100%;
  }

  .menu.is-open .menu-dropdown__trigger {
    width: 100%;
    justify-content: flex-start;
    height: auto;
    min-height: 40px;
    padding: 10px 12px;
  }

  .menu.is-open .menu-dropdown__panel {
    left: 12px;
    right: auto;
  }

  .menu.is-open .menu-dropdown__item {
    white-space: normal;
    padding: 10px 12px;
    height: auto;
    min-height: 0;
  }

  .menu.is-open .menu-aside {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
    padding-top: 6px;
  }

  .menu.is-open .header-contact-icons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 0;
  }

  .menu.is-open .header-contact-trigger {
    z-index: 1;
  }

  .menu.is-open .header-popover {
    left: 50%;
    transform: translateX(-50%);
  }

  .menu.is-open .menu-aside .button {
    width: 100%;
    justify-content: center;
  }

  .menu.is-open .header-contact-btn {
    width: 44px;
    height: 44px;
  }
}

/* Phone — rythme vertical, cibles tactiles, images, pas de débordement horizontal */
@media (max-width: 720px) {
  html {
    scroll-padding-top: clamp(68px, 16vw, 88px);
  }

  .nav {
    padding-block: 8px;
    row-gap: 8px;
  }

  .burger {
    display: inline-flex;
  }

  .logo {
    height: 28px;
  }

  /* Phone menu: no dropdown interaction, show items directly, no contact icons */
  .menu.is-open .menu-aside .header-contact-icons {
    display: none;
  }

  .menu.is-open .menu-aside {
    gap: 10px;
    padding-top: 2px;
  }

  /* Phone: make the CTA look like the other nav items */
  .menu.is-open .menu-aside .button,
  .menu.is-open .menu-aside a.button--primary,
  .menu.is-open .menu-aside .button.button--primary {
    width: 100%;
    justify-content: flex-start;
    min-height: 44px;
    height: auto;
    padding: 12px 12px;
    border-radius: 12px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    transform: none;
    box-shadow: none;
  }

  .menu.is-open .menu-aside .button:hover,
  .menu.is-open .menu-aside a.button--primary:hover,
  .menu.is-open .menu-aside .button.button--primary:hover {
    background: rgba(24, 20, 16, 0.06);
    border-color: transparent;
  }

  .menu.is-open .menu-dropdown__trigger {
    display: none;
  }

  .menu.is-open .menu-dropdown__panel {
    position: static;
    inset: auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 2px;
  }

  /* Make all mobile nav items look identical (including dropdown items) */
  .menu.is-open .menu-links > a,
  .menu.is-open .menu-dropdown__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    min-height: 44px;
    height: auto;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
  }

  .menu.is-open .menu-links > a:hover,
  .menu.is-open .menu-dropdown__item:hover {
    background: rgba(24, 20, 16, 0.06);
  }

  .menu.is-open .menu-dropdown__item-title {
    display: inline;
    font-weight: inherit;
    color: inherit;
  }

  .menu.is-open .menu-dropdown__item-desc {
    display: none;
  }

  .hero {
    padding: clamp(40px, 12vw, 54px) 0 clamp(24px, 8vw, 36px);
  }

  .hero-intro {
    padding-bottom: clamp(14px, 4vw, 22px);
  }

  /* Phone typography rhythm + centered hero */
  .hero-intro .container {
    text-align: center;
  }

  .hero-intro__title {
    margin: 0 0 8px;
  }

  .hero-intro__subtitle {
    margin: 0;
    text-align: center;
  }

  h2 {
    margin: 0 0 10px;
    text-align: center;
  }

  h3 {
    margin: 0 0 8px;
    text-align: center;
  }

  p {
    margin: 0 0 14px;
  }

  .section-head {
    gap: 10px;
    margin-bottom: 18px;
    text-align: center;
  }

  .section-head h2 {
    margin: 0;
    padding-bottom: 0;
  }

  .section-head p {
    margin: 0;
  }

  .section {
    padding: 76px 0;
  }

  .hero + .section {
    padding-top: clamp(76px, 16vw, 104px);
  }

  .section--domaines {
    padding: clamp(40px, 8vw, 64px) clamp(12px, 4vw, 20px);
  }

  .section--pour-qui {
    padding: clamp(44px, 8vw, 72px) clamp(14px, 4vw, 22px);
  }

  #approche.section {
    padding-top: clamp(48px, 10vw, 72px);
    padding-bottom: clamp(48px, 10vw, 72px);
  }

  #espace.section {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  #main > section.section.section--qui {
    padding-top: 0;
    padding-bottom: 0;
  }

  .section--espace .section-head {
    /* No top padding for this title on phone */
    padding-top: 0;
    padding-bottom: clamp(18px, 4vw, 32px);
  }

  /* Per-section title spacing tweaks (phone only) */
  #pour-qui .section-head,
  #domaines .section-head,
  #temoignages .section-head,
  #contact .section-head,
  #approche .section-head {
    padding-top: 14px;
  }

  #pour-qui .section-head {
    padding-top: 18px;
  }

  #domaines .section-head {
    padding-top: 16px;
  }

  #temoignages .section-head {
    padding-top: 16px;
  }

  #contact .section-head {
    padding-top: 16px;
  }

  /* Approche: sentence case on phone + a bit of top padding */
  #approche h2 {
    padding-top: 6px;
    text-transform: lowercase;
  }

  #approche h2::first-letter {
    text-transform: uppercase;
  }

  /* Qui suis-je: put spacing on the title instead of section wrapper */
  #qui .qui-title {
    padding-top: 14px;
    margin-bottom: 8px;
  }

  .hero-banner__img {
    height: clamp(260px, 62vw, 400px);
  }

  /* Hero card under the banner, full width (phone only) */
  .hero-banner__card-wrap {
    position: static;
    inset: auto;
    display: block;
    pointer-events: auto;
    padding: 0;
  }

  .hero-banner__card-inner,
  .hero-banner__card-inner.container {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    pointer-events: auto;
    box-sizing: border-box;
  }

  .hero-floating-card {
    max-width: none;
    width: 100%;
    transform: none;
    margin: 0;
    border-radius: 0;
    padding: clamp(22px, 5vw, 34px);
    text-align: center;
  }

  /* Keep card aligned with page gutters on phone */
  .hero-banner__card-inner.container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: max(env(safe-area-inset-left, 0px), clamp(12px, 4vw, 20px));
    padding-right: max(env(safe-area-inset-right, 0px), clamp(12px, 4vw, 20px));
  }

  .hero-floating-card p {
    font-size: clamp(1rem, 3.8vw, 1.12rem);
  }

  .hero-floating-card__cta {
    margin-top: 16px;
  }

  .hero-floating-card__cta .button {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }

  .button {
    min-height: 44px;
    padding: 12px 16px;
  }

  .menu-aside .button {
    min-height: 46px;
  }

  .media__img {
    min-height: 220px;
  }

  .media--sm .media__img {
    min-height: 0;
  }

  #temoignages .temoignages-photo .media__img {
    height: clamp(200px, 58vw, 360px);
    min-height: 0;
  }

  .section--domaines .domaines-hero-media .media__img {
    min-height: clamp(220px, 48vw, 360px);
    height: clamp(220px, 48vw, 360px);
  }

  .container.espace {
    padding-left: max(env(safe-area-inset-left, 0px), clamp(16px, 4vw, 24px));
    padding-right: max(env(safe-area-inset-right, 0px), clamp(16px, 4vw, 24px));
  }

  /* Remove 2.avif section image on phone */
  .section--espace .espace__media {
    display: none;
  }

  .container.espace {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-item.contact-form {
    padding: clamp(16px, 4vw, 20px);
  }

  .contact-form__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form__actions .button {
    width: 100%;
  }

  .pour-qui-cta .button,
  .domaines-cta .button,
  .approche-cta .button,
  #modalites .modalites-cta .button,
  .temoignages-cta .button,
  .qui-card__cta .button,
  .espace__cta .button {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  body .widget-wrapper > a strong {
    font-size: clamp(1.35rem, 7vw, 1.75rem) !important;
  }

  /* "Qui suis je ?" phone: no background image; portrait under the text, 80% width */
  #qui.qui-card.card.container::before {
    display: none;
  }

  #qui.qui-card.card.container {
    background: transparent;
    padding-top: clamp(12px, 4vw, 24px);
    padding-bottom: clamp(12px, 4vw, 24px);
  }

  #qui > div.qui-card__text {
    margin: 0;
    width: 100%;
    max-width: 100%;
    padding: clamp(10px, 3.5vw, 18px);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
  }

  /* Qui suis-je: title -> portrait -> text (phone only) */
  #qui .qui-card__text .qui-card__portrait--mobile {
    width: 92%;
    max-width: 92%;
    margin: 0 0 12px auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius-sm);
  }

  #qui .qui-card__portrait-img {
    border-radius: var(--radius-sm);
  }

  /* Remove 9.avif on phone */
  #temoignages .temoignages-photo {
    display: none;
  }

  /* Footer centered on phone */
  .footer-row {
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: center;
    text-align: center;
  }

  .footer-col:nth-child(1),
  .footer-col:nth-child(2),
  .footer-col:nth-child(3),
  .footer-col:nth-child(4) {
    text-align: center;
  }

  .footer-col--brand {
    justify-content: center;
  }

  .card {
    padding: 15px;
  }

  body {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(calc(100% - 24px), var(--max));
  }

  .hero .container {
    width: min(calc(100% - 20px), var(--max));
  }

  .site-header .container {
    padding-left: max(env(safe-area-inset-left, 0px), clamp(12px, 4vw, 20px));
    padding-right: max(env(safe-area-inset-right, 0px), clamp(12px, 4vw, 20px));
  }

  h2 {
    font-size: clamp(1.42rem, 1.02rem + 3.4vw, 1.72rem);
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  h3 {
    font-size: clamp(1.08rem, 1rem + 0.9vw, 1.2rem);
  }

  p {
    font-size: clamp(1.02rem, 2.9vw, 1.1rem);
  }

  .hero-intro__subtitle {
    font-size: clamp(1.28rem, 0.92rem + 3vw, 1.5rem);
  }

  .section {
    padding: 36px 0;
  }

  .hero-floating-card {
    padding: 20px 16px;
    border-radius: var(--radius-sm);
  }

  /* "Qui suis je ?" is already reworked in the 720px block (no background, portrait below text) */
}
