/* Institut BriMali — feuille de style unique.
   Univers repris des affiches : parchemin sable, vert olive profond, terracotta, or,
   arches marocaines, touches calligraphiées. Propriétés logiques partout (arabe en RTL). */

:root {
  --sable: #F8ECD9;
  --sable-2: #F2DFC2;
  --creme: #FFF9F0;
  --brun: #3E2214;
  --brun-2: #6B4430;
  --terra: #B4612A;
  --terra-d: #964A1A;
  --terra-l: #E9B98C;
  --vert: #2F4A2A;
  --vert-d: #22371F;
  --vert-2: #5E7D48;
  --or: #C9A15B;
  --line: rgba(62, 34, 20, .16);
  --r: 22px;
  --wrap: 1180px;
  --pad: clamp(16px, 4vw, 32px);
  --sec: clamp(64px, 9vw, 120px);
  --hdr: 72px;
  --shadow: 0 18px 40px -22px rgba(62, 34, 20, .45);
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80' preserveAspectRatio='none'%3E%3Cpath d='M6 22c40-9 92-14 150-13 64 1 132-6 188-2 22 2 40 6 50 12 4 9 1 20-3 30 3 9 1 16-7 19-46 6-102 4-160 6-62 2-122 6-176 1-20-2-36-5-44-11-3-9 0-18 3-26-3-7-4-12-1-16z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: clamp(16.5px, 1.05vw + 12px, 18px);
  line-height: 1.7;
  color: var(--brun);
  background-color: var(--sable);
  background-image:
    radial-gradient(1200px 700px at 110% -10%, rgba(233, 185, 140, .38), transparent 60%),
    radial-gradient(900px 600px at -20% 30%, rgba(201, 161, 91, .14), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px;
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--terra-d); text-underline-offset: .2em; }
a:hover { color: var(--vert); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.08; margin: 0; color: var(--brun); text-wrap: balance; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--vert); color: #fff; }
.skip:focus { top: 12px; color: #fff; }
.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--pad), 820px); }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.ph { display: block; background: linear-gradient(135deg, var(--sable-2), var(--terra-l)); }
.script { font-family: var(--f-script); font-weight: 400; line-height: 1.1; }

/* ---------- boutons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--f-body); font-weight: 700; font-size: .95em; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1em; }
.btn--terra { background: var(--terra); color: #fff; box-shadow: 0 10px 24px -12px rgba(180, 97, 42, .9); }
.btn--terra:hover { background: var(--terra-d); color: #fff; }
.btn--vert { background: var(--vert); color: #fff; }
.btn--vert:hover { background: var(--vert-d); color: #fff; }
.btn--line { border-color: var(--brun); color: var(--brun); background: rgba(255, 249, 240, .5); }
.btn--line:hover { background: var(--brun); color: var(--creme); }
.btn--glass { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(255, 255, 255, .08); backdrop-filter: blur(6px); }
.btn--glass:hover { background: #fff; color: var(--vert); }

/* ---------- touches graphiques ---------- */
.brush {
  position: relative; isolation: isolate; display: inline-block; margin: 0 0 14px;
  padding: .28em 1.1em .38em; color: #fff; font-size: clamp(24px, 2.6vw, 32px);
}
.brush::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--vert);
  -webkit-mask: var(--brush) center / 100% 100% no-repeat; mask: var(--brush) center / 100% 100% no-repeat;
}
.brush--terra::before { background: var(--terra); }
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--or); margin: 16px auto 18px; }
.divider span { width: 64px; height: 1.5px; background: currentColor; opacity: .8; }
.divider .divider__mark { width: auto; height: 34px; }
.badge {
  position: relative; isolation: isolate; display: inline-grid; place-items: center; width: 72px; height: 72px; color: #fff;
}
.badge::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 47% 53% 50% 50% / 52% 46% 54% 48%;
  background: var(--vert-2); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .18);
}
.badge--terra::before { background: var(--terra); border-radius: 52% 48% 46% 54% / 48% 54% 46% 52%; }
.badge--vert::before { background: var(--vert-2); }
.badge .ic { width: 32px; height: 32px; }
.branch { pointer-events: none; }

.sec { padding-block: var(--sec); }
.sec--tight { padding-block: clamp(48px, 6vw, 80px); }
.sec--sable { background: rgba(242, 223, 194, .55); }
.sec__head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); }
.sec__head h2 { font-size: clamp(34px, 4.6vw, 58px); }
.sec__head p { color: var(--brun-2); font-size: 1.08em; margin: 0; }
.sec__head .brush + h2 { margin-top: 4px; }
.sec__head .brush { margin: 0 0 14px; color: #fff; font-size: clamp(24px, 2.6vw, 32px); }
.sec__head h2 + p { margin-top: 16px; }
.sec__head--light h2 { color: var(--creme); }
.sec__head--light p { color: rgba(255, 249, 240, .82); }

/* ---------- bandeau atelier ---------- */
.bar {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 9px var(--pad); background: var(--vert); color: var(--creme); text-decoration: none; font-size: 14px; line-height: 1.4; text-align: center;
}
.bar:hover { color: #fff; background: var(--vert-d); }
.bar__tag { font-weight: 800; color: var(--terra-l); }
.bar__txt--short { display: none; }
@media (max-width: 640px) {
  .bar { flex-wrap: nowrap; gap: 8px; padding-block: 8px; font-size: 13.5px; }
  .bar__txt--long { display: none; }
  .bar__txt--short { display: inline; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.bar .ic { width: 16px; height: 16px; }
[dir="rtl"] .bar .ic, [dir="rtl"] .more .ic, [dir="rtl"] .word__l .ic { transform: scaleX(-1); }

/* ---------- en-tête ---------- */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248, 236, 217, .86); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.hdr.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(62, 34, 20, .7); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--hdr); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--vert); text-decoration: none; }
.logo:hover { color: var(--vert); }
/* Logo d'origine (scripts/brand-assets.mjs) : emblème + texte « INSTITUT BRIMALI ». */
.logo__emblem { width: auto; height: 52px; }
.logo__word { width: auto; height: 34px; }
.logo--light .logo__emblem { height: 64px; }
.logo--light .logo__word { height: 40px; }
.nav { display: none; align-items: center; gap: 2px; }
.nav a { padding: 10px 8px; border-radius: 999px; color: var(--brun); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(47, 74, 42, .09); color: var(--vert); }
.hdr__tools { display: flex; align-items: center; gap: 10px; }
.langs { display: flex; align-items: center; padding: 3px; border-radius: 999px; background: rgba(255, 249, 240, .7); border: 1px solid var(--line); }
.langs a { display: grid; place-items: center; min-width: 40px; min-height: 36px; padding: 0 8px; border-radius: 999px; color: var(--brun-2); text-decoration: none; font-size: 13px; font-weight: 700; }
.langs a[aria-current] { background: var(--vert); color: #fff; }
.hdr__cta { display: none; }
.burger { display: grid; place-content: center; gap: 5px; width: 48px; height: 48px; border-radius: 999px; border: 0; background: var(--vert); cursor: pointer; }
.burger i { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-of-type(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 420px) { .hdr .langs { display: none; } .logo__emblem { height: 46px; } .logo__word { height: 30px; } }
/* Bouton de rendez-vous dès que la barre mobile disparaît ; menu complet à partir de 1200 px
   (seuils repris dans cypress/support/viewports.js). */
@media (min-width: 900px) { .hdr__cta { display: inline-flex; padding-inline: 18px; } }
@media (min-width: 1200px) {
  .nav { display: flex; }
  .burger { display: none; }
}

.menu {
  position: fixed; inset: var(--hdr) 0 0; z-index: 39; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 24px var(--pad) calc(96px + env(safe-area-inset-bottom));
  background: var(--sable); opacity: 0; transform: translateY(-8px); transition: opacity .22s, transform .22s;
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; transform: none; }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a { padding: 10px 0; color: var(--brun); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.menu__nav .menu__big { font-family: var(--f-display); font-size: 28px; font-weight: 700; color: var(--vert); padding: 12px 0; }
.menu__h { margin: 18px 0 2px; font-size: 13px; font-weight: 800; color: var(--terra-d); }
.menu__h:first-child { margin-top: 0; }
.menu__foot { display: grid; gap: 10px; }
.menu__foot .langs { justify-self: start; }
@media (min-width: 1200px) { .menu { display: none !important; } }

/* ---------- accueil : hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(28px, 5vw, 72px); }
/* Bande panoramique sous le titre : famille vers la Koutoubia, fondue dans le fond crème en haut. */
.hero__scene { margin: clamp(28px, 4vw, 56px) 0 0; }
.hero__scene-img {
  display: block; width: 100%; aspect-ratio: 16 / 7.8; object-fit: cover; object-position: 50% 100%; background: var(--sable-2);
  -webkit-mask: linear-gradient(to bottom, transparent 0, #000 14%); mask: linear-gradient(to bottom, transparent 0, #000 14%);
}
@media (max-width: 899px) { .hero__scene-img { aspect-ratio: 16 / 10; } }
@media (max-width: 599px) { .hero__scene-img { aspect-ratio: 4 / 3.3; object-position: 50% 70%; } .benefits { margin-top: -8px; } }
.hero__in { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero__txt { order: 2; text-align: center; }
.tagline { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--brun-2); }
.hero h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: 1; color: var(--terra-d); }
.hero h1 span { display: block; color: var(--brun); font-size: .56em; line-height: 1.15; margin-bottom: .12em; }
.hero h1 em { font-style: normal; }
.hero__script { margin: 8px 0 18px; font-size: clamp(30px, 3.6vw, 46px); color: var(--vert); }
.hero__lead { max-width: 36em; margin: 0 auto 26px; font-size: 1.08em; color: var(--brun-2); }
.hero__txt .btns { justify-content: center; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 14.5px; font-weight: 700; color: var(--vert); }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255, 249, 240, .92); box-shadow: 0 6px 18px -12px rgba(62, 34, 20, .6); }
.chips .ic { width: 18px; height: 18px; color: var(--terra); }

.portrait { order: 1; position: relative; margin: 0 auto; width: min(68vw, 400px); }
.portrait__ring {
  position: relative; aspect-ratio: 4 / 5; border-radius: 50%; padding: 7px;
  background: linear-gradient(160deg, #E8CF95, var(--or) 45%, #A57B37);
  box-shadow: var(--shadow);
}
.portrait__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; border-radius: 50%; background: var(--sable-2); }
.portrait__branch { position: absolute; width: 46%; inset-inline-start: -16%; bottom: 8%; transform: rotate(-8deg); }
[dir="rtl"] .portrait__branch { transform: scaleX(-1) rotate(-8deg); }
.portrait__cap {
  position: relative; isolation: isolate; display: grid; justify-items: center; width: max-content; max-width: 110%;
  margin: -34px auto 0; padding: 10px 30px 14px; color: #fff; text-align: center;
}
.portrait__cap::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--terra);
  -webkit-mask: var(--brush) center / 100% 100% no-repeat; mask: var(--brush) center / 100% 100% no-repeat;
}
.portrait__cap .script { font-size: 22px; color: #FBE3CB; }
.portrait__cap strong { font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; }

@media (min-width: 900px) {
  .hero__in { grid-template-columns: 1.15fr .85fr; }
  .hero__txt { order: 0; text-align: start; }
  .hero__lead { margin-inline: 0; }
  .hero__txt .btns, .chips { justify-content: flex-start; }
  .portrait { order: 0; width: min(100%, 410px); }
}

/* ---------- bénéfices ---------- */
.benefits { position: relative; z-index: 1; margin-top: clamp(-56px, -4vw, -28px); }
.benefits__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0;
  padding: 10px; border-radius: var(--r); background: var(--creme); box-shadow: var(--shadow);
}
.benefit { display: grid; justify-items: center; align-content: start; gap: 12px; padding: 22px 14px; text-align: center; }
.benefit p { margin: 0; font-size: 15px; line-height: 1.45; font-weight: 600; color: var(--brun-2); }
.benefit + .benefit { border-inline-start: 1px solid var(--line); }
.benefit:nth-child(3) { border-inline-start: 0; }
.benefit:nth-child(n+3) { border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .benefits__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 14px; }
  .benefit:nth-child(3) { border-inline-start: 1px solid var(--line); }
  .benefit:nth-child(n+3) { border-top: 0; }
}

/* ---------- domaines (arches) ---------- */
.domains__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(20px, 3vw, 36px); }
.domain { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.domain__frame {
  display: block; aspect-ratio: 4 / 4.6; overflow: hidden; border-radius: 999px 999px 18px 18px / 46% 46% 18px 18px;
  border: 6px solid var(--creme); box-shadow: var(--shadow); background: var(--sable-2);
}
.domain__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.domain:hover .domain__img { transform: scale(1.04); }
.domain__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 6px 0; text-align: center; align-items: center; }
.domain h3 { font-size: clamp(26px, 2.4vw, 32px); color: var(--vert); }
.domain__txt { color: var(--brun-2); }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-weight: 800; color: var(--terra-d); }
.more .ic { width: 18px; height: 18px; transition: transform .2s; }
.domain:hover .more .ic { transform: translateX(4px); }

/* ---------- « ces mots parlent-ils de vous ? » ---------- */
.words { position: relative; overflow: hidden; padding-block: var(--sec); background: var(--vert); color: var(--creme); }
.words::after { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 85% 0%, rgba(201, 161, 91, .22), transparent 70%); pointer-events: none; }
.words__branch { position: absolute; width: 300px; inset-inline-end: -60px; top: -30px; opacity: .35; transform: rotate(160deg); }
.words .wrap { position: relative; z-index: 1; }
.words__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.word {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 150px; padding: 22px 22px 18px;
  border-radius: 18px; background: rgba(255, 249, 240, .07); border: 1px solid rgba(255, 249, 240, .16);
  color: var(--creme); text-decoration: none; transition: background-color .2s, border-color .2s;
}
.word:hover { background: rgba(255, 249, 240, .14); border-color: rgba(233, 185, 140, .6); color: #fff; }
.word__q { font-family: var(--f-display); font-size: clamp(21px, 1.9vw, 24px); line-height: 1.25; font-weight: 600; }
.word__l { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--terra-l); }
.word__l .ic { width: 16px; height: 16px; }
.words__close { margin: 40px 0 0; text-align: center; font-size: clamp(28px, 3vw, 38px); color: var(--terra-l); }

/* ---------- à propos ---------- */
.about__in { display: grid; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about__media { position: relative; max-width: 480px; margin-inline: auto; width: 100%; }
.about__arch {
  display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 24px 24px / 42% 42% 24px 24px;
  border: 8px solid var(--creme); box-shadow: var(--shadow); background: var(--sable-2);
}
.about__img { width: 100%; height: 100%; object-fit: cover; }
.about__mini {
  position: absolute; inset-inline-end: -8px; bottom: 28px; display: block; width: clamp(110px, 26vw, 150px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 5px solid var(--creme); outline: 2px solid var(--or); box-shadow: var(--shadow); background: var(--sable-2);
}
.about__face { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.about__script { margin: 0 0 6px; font-size: clamp(28px, 3vw, 38px); color: var(--terra); }
.about__txt h2 { font-size: clamp(34px, 4.4vw, 54px); margin-bottom: 20px; color: var(--vert); }
.about__txt > p { color: var(--brun-2); }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px 24px; margin: 26px 0 30px; padding: 0; list-style: none; }
.values li { display: grid; gap: 2px; padding-inline-start: 16px; border-inline-start: 3px solid var(--terra); }
.values strong { font-family: var(--f-display); font-size: 21px; color: var(--brun); }
.values span { font-size: 15px; line-height: 1.5; color: var(--brun-2); }
@media (min-width: 900px) { .about__in { grid-template-columns: .9fr 1.1fr; } }

/* ---------- ateliers ---------- */
.events__list { display: grid; gap: 20px; }
.events__list--in { margin: 8px 0 40px; }
.event {
  display: grid; overflow: hidden; border-radius: var(--r); background: var(--creme); box-shadow: var(--shadow); border: 1px solid rgba(201, 161, 91, .5);
}
.event__date {
  display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 18px 24px;
  background: var(--terra); color: #fff; text-align: center;
}
.event__day { font-family: var(--f-display); font-size: 54px; font-weight: 700; line-height: 1; }
.event__month { font-family: var(--f-display); font-size: 24px; font-weight: 600; }
.event__year { font-size: 15px; font-weight: 700; opacity: .85; }
.event__body { padding: clamp(22px, 3vw, 34px); }
.event h3 { font-size: clamp(26px, 2.8vw, 34px); color: var(--vert); margin-bottom: 10px; }
.event__text { color: var(--brun-2); }
.event__facts { display: grid; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; font-weight: 600; }
.event__facts li { display: flex; align-items: center; gap: 10px; }
.event__facts .ic { color: var(--terra); }
.event__prices { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.price { position: relative; isolation: isolate; display: grid; padding: 10px 30px 12px; color: #fff; line-height: 1.15; text-align: center; }
.price::before { content: ""; position: absolute; inset: 0; z-index: -1; -webkit-mask: var(--brush) center / 100% 100% no-repeat; mask: var(--brush) center / 100% 100% no-repeat; }
.price--terra::before { background: var(--terra); }
.price--vert::before { background: var(--vert); }
.price small { font-size: 13px; font-weight: 700; opacity: .9; }
.price strong { font-family: var(--f-display); font-size: 28px; }
.events__none { text-align: center; color: var(--brun-2); }
@media (min-width: 760px) {
  .event { grid-template-columns: 190px 1fr; }
  .event__date { flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
  .event__day { font-size: 76px; }
}

/* ---------- déroulé ---------- */
.steps { padding-block: var(--sec); background: linear-gradient(180deg, transparent, rgba(242, 223, 194, .7) 18%, rgba(242, 223, 194, .7) 82%, transparent); }
.steps__in { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
.steps h2 { font-size: clamp(34px, 4.4vw, 54px); margin-bottom: 28px; color: var(--vert); }
.steps ol { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.steps__n {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--terra); color: var(--terra-d); font-family: var(--f-display); font-size: 26px; font-weight: 700; background: var(--creme);
}
.steps h3 { font-size: 23px; margin: 6px 0 6px; }
.steps li p { margin: 0; color: var(--brun-2); }
.steps__media { max-width: 460px; width: 100%; margin-inline: auto; }
.steps__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 24px 24px / 40% 40% 24px 24px; border: 8px solid var(--creme); box-shadow: var(--shadow); }
@media (min-width: 900px) { .steps__in { grid-template-columns: 1.1fr .9fr; } }

/* ---------- formules ---------- */
.offers__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 22px; }
.offer {
  display: flex; flex-direction: column; gap: 12px; padding: clamp(26px, 3vw, 36px); border-radius: var(--r);
  background: var(--creme); border: 1px solid rgba(201, 161, 91, .45); box-shadow: 0 14px 34px -26px rgba(62, 34, 20, .6);
}
.offer h3 { font-size: 27px; color: var(--vert); margin-top: 6px; }
.offer > p { margin: 0; color: var(--brun-2); }
.offer ul { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 15.5px; }
.offer li { display: flex; gap: 8px; align-items: flex-start; }
.offer li .ic { width: 18px; height: 18px; margin-top: 4px; color: var(--terra); }
.offer__price { margin: auto 0 0; padding-top: 16px; border-top: 1px dashed var(--line); font-family: var(--f-display); font-size: 22px; font-weight: 700; color: var(--terra-d); }

/* ---------- villes ---------- */
.cities { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--sec); color: #fff; }
.cities__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cities::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(34, 55, 31, .82), rgba(62, 34, 20, .78)); }
.cities__in { text-align: center; }
.cities h2 { color: #fff; font-size: clamp(34px, 4.6vw, 58px); }
.cities__in > p { max-width: 640px; margin: 16px auto 34px; color: rgba(255, 249, 240, .88); }
.cities__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cities__list a, .cities__visio {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1.5px solid rgba(255, 249, 240, .5); color: #fff; text-decoration: none; font-family: var(--f-display); font-size: 20px; font-weight: 600;
}
.cities__list a:hover { background: #fff; color: var(--vert); }
.cities__list a.is-here { background: var(--terra); border-color: var(--terra); }
.cities__list a.is-here:hover { background: #fff; color: var(--terra-d); }
.cities__visio { border-style: dashed; }
.cities .ic { width: 18px; height: 18px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { border-radius: 18px; background: var(--creme); border: 1px solid rgba(201, 161, 91, .4); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none;
  font-family: var(--f-display); font-size: clamp(19px, 1.7vw, 22px); font-weight: 600; line-height: 1.3; color: var(--brun);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sable-2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%23964A1A' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0; padding: 0 22px 20px; color: var(--brun-2); }

/* ---------- appel final ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(80px, 11vw, 150px); color: #fff; text-align: center; }
.cta__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(62, 34, 20, .55), rgba(34, 55, 31, .88)); }
.cta__script { margin: 0 0 6px; font-size: clamp(30px, 3.4vw, 44px); color: var(--terra-l); }
.cta h2 { color: #fff; font-size: clamp(36px, 5.2vw, 66px); max-width: 15em; margin-inline: auto; }
.cta__lead { max-width: 560px; margin: 18px auto 30px; color: rgba(255, 249, 240, .9); font-size: 1.08em; }
.cta .btns { justify-content: center; }

/* ---------- pied de page ---------- */
.ftr { background: var(--vert-d); color: rgba(255, 249, 240, .82); font-size: 15px; }
.ftr__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 34px 40px; padding-block: 64px 40px; }
.ftr__brand p { margin: 14px 0 0; line-height: 1.55; }
.ftr__tag { font-size: 13px; letter-spacing: .1em; color: var(--terra-l); }
.ftr h2 { margin: 0 0 10px; font-family: var(--f-body); font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--terra-l); }
.ftr nav a { display: block; padding: 6px 0; color: var(--creme); text-decoration: none; }
.ftr nav a:hover { color: #fff; text-decoration: underline; }
.ftr__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px 28px; border-top: 1px solid rgba(255, 249, 240, .14); font-size: 13.5px; }
.ftr__base p { margin: 0; }
.ftr__base a { color: var(--creme); }
@media (min-width: 900px) { .ftr__grid { grid-template-columns: 290px repeat(auto-fit, minmax(150px, 1fr)); } }

/* ---------- barre d'action mobile ---------- */
.dock {
  position: fixed; inset: auto 10px calc(10px + env(safe-area-inset-bottom)); z-index: 45;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 6px; padding: 6px; border-radius: 22px;
  background: rgba(255, 249, 240, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px -14px rgba(62, 34, 20, .55); border: 1px solid var(--line);
}
.dock a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 50px; border-radius: 16px; color: var(--vert); text-decoration: none; font-weight: 800; font-size: 14px; }
.dock .dock__wa { background: var(--vert); color: #fff; }
@media (min-width: 900px) { .dock { display: none; } }

/* ---------- pages domaine / situation ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 18px; font-size: 14px; color: var(--brun-2); }
.crumbs a { color: var(--brun-2); padding-block: 8px; }
.crumbs span { padding-block: 8px; }
.crumbs--light, .crumbs--light a { color: rgba(255, 249, 240, .85); }
.phero { overflow: hidden; padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 72px); }
.phero__in { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.phero h1 { font-size: clamp(38px, 5.4vw, 70px); color: var(--vert); }
.phero__lead { margin: 18px 0 26px; max-width: 34em; font-size: 1.1em; color: var(--brun-2); }
.phero__media { position: relative; width: min(100%, 420px); margin-inline: auto; }
.phero__arch { display: block; aspect-ratio: 4 / 4.8; overflow: hidden; border-radius: 999px 999px 24px 24px / 44% 44% 24px 24px; border: 8px solid var(--creme); box-shadow: var(--shadow); background: var(--sable-2); }
.phero__img { width: 100%; height: 100%; object-fit: cover; }
.phero__branch { position: absolute; width: 44%; inset-inline-end: -14%; top: 6%; transform: rotate(150deg); }
@media (min-width: 900px) { .phero__in { grid-template-columns: 1.15fr .85fr; } }

.article { display: grid; gap: clamp(36px, 5vw, 64px); align-items: start; }
@media (min-width: 1000px) { .article { grid-template-columns: minmax(0, 1fr) 320px; } }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(28px, 3vw, 38px); color: var(--vert); margin: 44px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--brun); }
.h1--page { font-size: clamp(36px, 5vw, 58px); color: var(--vert); margin-bottom: 24px; }
.points { margin: 28px 0 8px; padding: 26px 28px; border-radius: var(--r); background: var(--vert); color: var(--creme); }
.points h3 { color: #fff; font-size: 24px; margin-bottom: 14px; }
.points ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.points li { display: flex; gap: 10px; align-items: flex-start; }
.points .ic { margin-top: 4px; color: var(--terra-l); }
.side { display: grid; gap: 22px; }
@media (min-width: 1000px) { .side { position: sticky; top: calc(var(--hdr) + 20px); } }
.side__card { display: grid; justify-items: center; gap: 10px; padding: 28px 24px; border-radius: var(--r); background: var(--creme); border: 1px solid rgba(201, 161, 91, .5); box-shadow: var(--shadow); text-align: center; }
.side__card .btn { width: 100%; }
.side__face { display: block; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; outline: 2px solid var(--or); outline-offset: 3px; }
.side__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.side__name { margin: 6px 0 0; font-family: var(--f-display); font-size: 24px; font-weight: 700; color: var(--vert); }
.side__role { margin: 0 0 8px; font-size: 14.5px; line-height: 1.45; color: var(--brun-2); }
.side__note { margin: 4px 0 0; font-size: 13.5px; color: var(--brun-2); }
.side__links { padding: 22px 24px; border-radius: var(--r); background: rgba(242, 223, 194, .6); }
.side__links h2 { margin: 0 0 6px; font-family: var(--f-body); font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--terra-d); }
.side__links a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--brun); text-decoration: none; font-weight: 600; }
.side__links a:last-child { border-bottom: 0; }
.side__links a:hover { color: var(--terra-d); }

/* ---------- pages ville ---------- */
.chero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(56px, 9vw, 120px); color: #fff; }
.chero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.chero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(34, 55, 31, .9), rgba(34, 55, 31, .55) 70%, rgba(62, 34, 20, .35)); }
[dir="rtl"] .chero::before { background: linear-gradient(-90deg, rgba(34, 55, 31, .9), rgba(34, 55, 31, .55) 70%, rgba(62, 34, 20, .35)); }
.chero h1 { color: #fff; font-size: clamp(38px, 5.6vw, 72px); max-width: 13em; }
.chero__lead { max-width: 36em; margin: 18px 0 28px; font-size: 1.1em; color: rgba(255, 249, 240, .92); }
.local { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
.local__txt h2 { font-size: clamp(30px, 3.6vw, 46px); color: var(--vert); margin-bottom: 16px; }
.local__intro { color: var(--brun-2); font-size: 1.05em; }
.local__cards { display: grid; gap: 18px; }
.mode { display: grid; grid-template-columns: 72px 1fr; gap: 6px 18px; align-items: start; padding: 24px; border-radius: var(--r); background: var(--creme); border: 1px solid rgba(201, 161, 91, .45); }
.mode .badge { grid-row: span 2; }
.mode h3 { font-size: 24px; color: var(--vert); margin-top: 4px; }
.mode p { margin: 0; color: var(--brun-2); }
@media (min-width: 900px) { .local { grid-template-columns: 1fr 1fr; } }
.others { margin-top: 48px; text-align: center; }
.others h2 { font-size: 26px; color: var(--vert); margin-bottom: 14px; }
.others a { display: inline-flex; align-items: center; min-height: 44px; margin: 4px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--creme); color: var(--brun); text-decoration: none; font-weight: 600; }
.others a:hover { border-color: var(--terra); color: var(--terra-d); }

/* ---------- ajustements téléphone (vérifiés par cypress/e2e/visuel.cy.js) ---------- */
html.menu-open .dock { display: none; }
@media (max-width: 599px) {
  .hero { padding-top: 18px; }
  .portrait { width: min(58vw, 250px); }
  .portrait__cap { margin-top: -26px; padding: 8px 24px 12px; }
  .portrait__cap .script { font-size: 19px; }
  .portrait__cap strong { font-size: 23px; }
  .hero__in { gap: 22px; }
  .domain__frame { aspect-ratio: 4 / 3; border-radius: 999px 999px 16px 16px / 52% 52% 16px 16px; }
  .domain__body { padding-top: 16px; }
  .about__arch { aspect-ratio: 1 / 1; border-radius: 999px 999px 22px 22px / 48% 48% 22px 22px; }
  .about__mini { width: 104px; bottom: 16px; }
  .steps__img { aspect-ratio: 4 / 3; border-radius: 22px; }
  .phero__arch { aspect-ratio: 4 / 3.2; border-radius: 999px 999px 22px 22px / 52% 52% 22px 22px; }
  .word { min-height: 0; }
}

/* ---------- Instagram ---------- */
.ig {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding-block: 6px; padding-inline: 6px 20px;
  border-radius: 999px; background: var(--creme); border: 1px solid rgba(201, 161, 91, .55); color: var(--brun); text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.ig:hover { border-color: var(--terra); color: var(--brun); transform: translateY(-1px); }
.ig__logo {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; color: #fff;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.ig__logo .ic { width: 24px; height: 24px; }
.ig__txt { display: grid; line-height: 1.25; text-align: start; }
.ig__txt strong { font-size: 15.5px; font-weight: 800; }
.ig__txt small { font-size: 12.5px; color: var(--brun-2); }
.ig--dark { background: rgba(255, 249, 240, .08); border-color: rgba(255, 249, 240, .28); color: #fff; }
.ig--dark:hover { color: #fff; border-color: var(--terra-l); }
.ig--dark .ig__txt small { color: rgba(255, 249, 240, .78); }
.ftr__brand .ig { margin-top: 18px; }
.cta__ig { display: flex; justify-content: center; margin-top: 18px; }
.about__btns { align-items: center; }
.side__card .ig { margin-top: 6px; }
.menu__foot .ig { justify-self: start; }

/* ---------- pied de page compact sur mobile : liens à la suite, pas un par ligne ---------- */
@media (max-width: 899px) {
  .ftr__grid { gap: 26px; padding-block: 48px 28px; }
  .ftr nav { display: flex; flex-wrap: wrap; align-items: center; column-gap: 18px; }
  .ftr nav h2 { flex-basis: 100%; margin-bottom: 2px; }
  .ftr nav a { display: inline-flex; align-items: center; min-height: 34px; padding: 0; }
  .ftr__brand p { margin-top: 10px; }
  .ftr__brand { grid-column: 1 / -1; }
}
