/* =========================================================
   Maître Hamza Elayoubi — Casablanca
   Palette « Carte de visite » : ardoise nuit / cuivre rosé / ivoire
   ========================================================= */
:root {
  --night: #15181c;       /* fond sombre principal */
  --night-2: #1d2126;
  --slate: #2a3037;       /* ardoise de la carte de visite */
  --copper: #c4906a;      /* cuivre rosé du logo */
  --copper-2: #e2bc98;
  --copper-ink: #94603d;  /* cuivre lisible sur fond clair */
  --ivory: #f7f3ee;
  --paper: #eee7de;
  --paper-2: #e3d9cc;
  --text: #1b1f23;
  --muted: #5f6468;
  --line: rgba(21, 24, 28, .13);
  --line-2: rgba(21, 24, 28, .07);
  --line-dark: rgba(226, 188, 152, .18);
  --white: #fffdfa;
  --wa: #1fa855;

  --f-display: "Cormorant Garamond", Georgia, serif;
  --f-body: "Manrope", system-ui, -apple-system, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}
html[dir="rtl"] {
  --f-display: "Amiri", "Cormorant Garamond", serif;
  --f-body: "IBM Plex Sans Arabic", "Manrope", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; font-family: var(--f-body); color: var(--text); background: var(--ivory);
  font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
html[dir="rtl"] body { font-size: 16.5px; line-height: 1.95; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; margin: 0; line-height: 1.08; letter-spacing: -.01em; }
html[dir="rtl"] :is(h1, h2, h3, h4) { font-weight: 700; letter-spacing: 0; line-height: 1.45; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
svg { width: 20px; height: 20px; flex: none; }
svg[width="0"] { width: 0; height: 0; }
::selection { background: var(--copper); color: var(--night); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.mail { word-break: break-all; }
html[dir="rtl"] .arrow { transform: scaleX(-1); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--night); color: var(--white); padding: 10px 16px; }
.skip:focus { top: 12px; }
em { font-style: italic; color: var(--copper-ink); }
html[dir="rtl"] em { font-style: normal; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 100px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn--copper { background: linear-gradient(135deg, var(--copper-2), var(--copper)); color: var(--night); box-shadow: 0 10px 30px -12px rgba(196, 144, 106, .7); }
.btn--copper:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(196, 144, 106, .85); }
.btn--dark { background: var(--night); color: var(--ivory); }
.btn--dark:hover { background: var(--slate); }
.btn--ghost { border-color: var(--line-dark); color: var(--ivory); }
.btn--ghost:hover { border-color: var(--copper); color: var(--copper-2); }
.btn--line { border-color: var(--line); color: var(--text); }
.btn--line:hover { border-color: var(--night); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #178f47; }
.btn[hidden] { display: none; }

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--copper-ink); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link svg { width: 16px; height: 16px; }

.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--copper-ink); padding: 4px 10px; border: 1px solid rgba(148, 96, 61, .3); border-radius: 100px; }
html[dir="rtl"] .tag { letter-spacing: 0; font-size: 13px; }
.tag--light { color: var(--copper-2); border-color: var(--line-dark); }

/* ---------- Libellés de section ---------- */
.sec { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.sec--paper { background: var(--paper); }
.sec--night { background: var(--night); color: var(--ivory); }
.sec--night em { color: var(--copper-2); }
.label { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-ink); margin-bottom: 22px; }
html[dir="rtl"] .label { letter-spacing: 0; font-size: 14.5px; }
.label__n { font-family: var(--f-display); font-size: 15px; font-style: italic; letter-spacing: 0; padding-inline-end: 14px; border-inline-end: 1px solid currentColor; }
.label--light { color: var(--copper); }
.h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 22px; }
html[dir="rtl"] .h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.sec--night .lead { color: rgba(247, 243, 238, .68); }
.sec__head { margin-bottom: clamp(44px, 6vw, 70px); max-width: 760px; }
.sec__head--split { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; }
.sec__head--split .h2 { margin-bottom: 0; }
.sec__head--center { text-align: center; margin-inline: auto; }
.sec__head--center .lead { margin-inline: auto; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); color: var(--ivory); transition: color .3s, height .3s; }
.header::before { content: ""; position: absolute; inset: 0; background: rgba(21, 24, 28, 0); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; z-index: -1; }
.header.scrolled::before { background: rgba(21, 24, 28, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--line-dark); }
.header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--copper-2); background: rgba(42, 48, 55, .6); }
.brand__logo svg { width: 30px; height: 30px; }
.brand__txt { display: grid; line-height: 1.2; }
.brand__txt strong { font-family: var(--f-display); font-size: 1.3rem; font-weight: 700; }
.brand__txt small { font-size: 12px; color: var(--copper-2); opacity: .9; }
.nav { display: flex; gap: 28px; font-size: 14.5px; }
.nav > a { position: relative; opacity: .82; transition: opacity .2s; padding: 6px 0; }
.nav > a::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--copper); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav > a:hover, .nav > a.active { opacity: 1; }
.nav > a.active::after, .nav > a:hover::after { transform: scaleX(1); }
.nav__foot { display: none; }
.header__end { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--line-dark); border-radius: 100px; padding: 3px; }
.lang button { min-width: 36px; height: 30px; border-radius: 100px; font-size: 12.5px; font-weight: 600; opacity: .7; transition: all .2s; }
.lang button.on { background: var(--copper); color: var(--night); opacity: 1; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 50%; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger.open span:first-child { top: 21px; transform: rotate(45deg); }
.burger.open span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--ivory);
  padding: calc(var(--header-h) + clamp(40px, 7vw, 90px)) 0 clamp(40px, 5vw, 60px);
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(196, 144, 106, .2), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(42, 48, 55, .9), transparent 70%),
    var(--night);
}
html[dir="rtl"] .hero { background:
    radial-gradient(60% 70% at 15% 30%, rgba(196, 144, 106, .2), transparent 70%),
    radial-gradient(50% 60% at 100% 100%, rgba(42, 48, 55, .9), transparent 70%),
    var(--night); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E"); }
.hero__mark { position: absolute; width: min(70vw, 760px); height: auto; aspect-ratio: 1; color: var(--copper); opacity: .045; top: 50%; inset-inline-start: -12%; transform: translateY(-50%); pointer-events: none; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.kicker { display: flex; align-items: center; gap: 14px; font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-2); margin-bottom: 28px; }
html[dir="rtl"] .kicker { letter-spacing: 0; font-size: 15px; }
.kicker__line { width: 44px; height: 1px; background: var(--copper); }
.hero__title { display: grid; margin-bottom: 22px; }
.hero__pre { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--copper); }
html[dir="rtl"] .hero__pre { font-style: normal; font-weight: 400; }
.hero__name { font-size: clamp(3.2rem, 8vw, 6.4rem); line-height: .95; letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff 30%, var(--copper-2) 130%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
html[dir="rtl"] .hero__name { font-size: clamp(3rem, 7.4vw, 6rem); line-height: 1.25; letter-spacing: 0; }
.hero__role { font-size: 1.05rem; font-weight: 500; color: var(--copper-2); padding-block: 14px; border-block: 1px solid var(--line-dark); margin-bottom: 22px; }
.hero__text { font-size: 1.08rem; color: rgba(247, 243, 238, .72); max-width: 56ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__media { position: relative; justify-self: center; width: min(100%, 440px); }
.arch { position: relative; padding: 14px; border: 1px solid rgba(196, 144, 106, .45); border-radius: 240px 240px var(--r) var(--r); }
.arch::before { content: ""; position: absolute; inset: -14px 28px auto; height: 60%; border: 1px solid rgba(196, 144, 106, .2); border-bottom: 0; border-radius: 260px 260px 0 0; pointer-events: none; }
.arch__photo { border-radius: 226px 226px 2px 2px; overflow: hidden; aspect-ratio: 4 / 5.2; background: var(--slate); }
.arch__photo img { width: 100%; height: 100%; object-fit: cover; transform-origin: 57% 30%; object-position: 57% 30%; animation: settle 1.6s var(--ease) both; }
@keyframes settle { from { transform: scale(1.75); opacity: 0; } to { transform: scale(1.6); opacity: 1; } }

/* Carte de visite flottante */
.bcard {
  position: absolute; inset-inline-start: -64px; bottom: 38px; width: 250px;
  display: grid; justify-items: center; text-align: center; gap: 2px;
  padding: 18px 16px 16px; border-radius: 8px;
  background: linear-gradient(160deg, #343b43, #22272d); color: var(--copper-2);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
  transform: rotate(-4deg); animation: floaty 7s ease-in-out infinite;
}
html[dir="rtl"] .bcard { transform: rotate(4deg); animation-name: floaty-r; }
.bcard__logo { width: 54px; height: 54px; color: #eee3d6; }
.bcard__avocat { font-size: 8.5px; letter-spacing: .3em; color: #cfc3b5; margin-bottom: 6px; font-family: var(--f-body); }
.bcard__ar { font-family: "Amiri", serif; font-size: 16px; font-weight: 700; line-height: 1.4; }
.bcard__fr { font-family: "Manrope", sans-serif; font-size: 12px; color: #eee3d6; }
.bcard__bar { font-size: 10.5px; opacity: .75; margin-top: 4px; }
@keyframes floaty { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-10px); } }
@keyframes floaty-r { 0%, 100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-10px); } }

.facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(50px, 7vw, 90px); border-top: 1px solid var(--line-dark); }
.facts li { display: grid; gap: 4px; padding: 26px 24px 0 0; }
html[dir="rtl"] .facts li { padding: 26px 0 0 24px; }
.facts li + li { border-inline-start: 1px solid var(--line-dark); padding-inline-start: 24px; }
.facts b { font-family: var(--f-display); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; color: var(--copper-2); line-height: 1.1; }
.facts span { font-size: 14px; color: rgba(247, 243, 238, .6); }

/* ---------- Bandeau défilant ---------- */
.ticker { overflow: hidden; background: linear-gradient(90deg, var(--copper), var(--copper-2), var(--copper)); color: var(--night); padding: 16px 0; direction: ltr; }
.ticker__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker__track > div { display: flex; align-items: center; }
.ticker span { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; padding: 0 26px; white-space: nowrap; }
html[dir="rtl"] .ticker span { font-size: 1.25rem; }
.ticker i { width: 7px; height: 7px; background: var(--night); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Profil ---------- */
.profile { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.profile__media { position: relative; display: grid; padding: 10px 0 30px; }
.card3d {
  position: relative; z-index: 1; display: grid; justify-items: center; align-content: center; text-align: center; gap: 4px;
  aspect-ratio: 1.75; padding: 8% 10%; border-radius: 10px; color: #eee3d6;
  background: linear-gradient(155deg, #3a424b, #232a31 70%);
  box-shadow: 0 50px 80px -40px rgba(21, 24, 28, .7), inset 0 1px 0 rgba(255, 255, 255, .07);
  transform: rotate(-3deg); transition: transform .6s var(--ease);
}
.card3d::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .07) 50%, transparent 65%); }
.card3d__logo { width: clamp(64px, 9vw, 96px); height: auto; aspect-ratio: 1; }
.card3d__avocat { font-family: "Manrope", sans-serif; font-size: 10px; letter-spacing: .35em; color: #cfc3b5; margin-bottom: 8px; }
.card3d__ar { font-family: "Amiri", serif; font-size: clamp(15px, 1.7vw, 20px); font-weight: 700; color: var(--copper-2); line-height: 1.5; }
.card3d__fr { font-family: "Manrope", sans-serif; font-size: clamp(11.5px, 1.25vw, 14.5px); }
.card3d--back { z-index: 0; margin: -9% 10% 0 -4%; transform: rotate(3deg); aspect-ratio: auto; padding: calc(9% + 22px) 26px 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; direction: ltr;
  background: linear-gradient(155deg, #2e353d, #1c2126); color: var(--copper-2); font-size: 14px; }
html[dir="rtl"] .card3d--back { margin: -9% -4% 0 10%; transform: rotate(-3deg); }
.card3d__row { font-weight: 600; }
.profile__media:hover .card3d:not(.card3d--back) { transform: rotate(0deg) translateY(-6px); }
.profile__cap { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.profile__cap svg { width: 16px; height: 16px; color: var(--copper-ink); }
.profile__main > p:not(.label) { margin-bottom: 18px; }
.profile__main > p.lead { color: var(--text); }
.ledger { margin: 30px 0 34px; border-top: 1px solid var(--line); }
.ledger div { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.ledger dt { font-size: 13.5px; font-weight: 600; color: var(--copper-ink); }
.ledger dd { font-size: 15px; }

/* ---------- Équipe ---------- */
.sec--tight { padding-top: 0; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1200px; margin: 0 auto; }
.member { display: grid; grid-template-rows: auto 1fr; background: var(--white); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.member:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(21, 24, 28, .45); }
.member__img { aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--slate); }
.member__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.member:hover .member__img img { transform: scale(1.04); }
.member__txt { display: grid; gap: 10px; justify-items: start; padding: 26px 28px 30px; border-top: 3px solid var(--copper); }
.member h3 { font-size: 1.8rem; }
html[dir="rtl"] .member h3 { font-size: 1.5rem; }
.member p { color: var(--muted); font-size: 15px; }

/* ---------- Domaines (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 26px 26px;
  background: var(--white); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s, background .4s, color .4s;
}
.tile--wide { grid-column: span 2; grid-row: span 2; background: var(--night); color: var(--ivory); }
.tile:nth-child(n+6) { grid-column: span 2; }
.tile:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(21, 24, 28, .45); }
.tile__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.tile__ic { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--copper-ink); }
.tile__ic svg { width: 24px; height: 24px; }
.tile__n { font-family: var(--f-display); font-style: italic; font-size: 1.1rem; color: var(--copper-ink); }
.tile h3 { font-size: 1.55rem; }
html[dir="rtl"] .tile h3 { font-size: 1.4rem; }
.tile p { font-size: 14.5px; color: var(--muted); }
.tile ul { display: grid; gap: 6px; margin-top: 4px; font-size: 14px; }
.tile li { display: flex; gap: 10px; align-items: baseline; }
.tile li::before { content: ""; width: 5px; height: 5px; flex: none; transform: translateY(-3px) rotate(45deg); background: var(--copper); }
.tile .link { margin-top: auto; padding-top: 10px; align-self: flex-start; border: 0; }
.tile:not(.tile--wide) ul { display: none; }
.tile--wide h3 { font-size: clamp(2rem, 3.2vw, 2.7rem); }
.tile--wide p { color: rgba(247, 243, 238, .7); font-size: 1.05rem; max-width: 44ch; }
.tile--wide ul { font-size: 15px; gap: 10px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.tile--wide .tile__ic { background: rgba(196, 144, 106, .14); color: var(--copper-2); width: 60px; height: 60px; }
.tile--wide .tile__n, .tile--wide .link { color: var(--copper-2); }
.tile--wide::after { content: ""; position: absolute; width: 320px; height: 320px; inset-inline-end: -110px; bottom: -130px; border-radius: 50%; background: radial-gradient(circle, rgba(196, 144, 106, .25), transparent 65%); pointer-events: none; }

/* ---------- Formation ---------- */
.path { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.path__head { position: sticky; top: calc(var(--header-h) + 30px); }
.path__seal { display: inline-flex; align-items: center; gap: 14px; margin-top: 34px; padding: 12px 22px 12px 12px; border: 1px solid var(--line-dark); border-radius: 100px; color: var(--copper-2); font-weight: 600; }
html[dir="rtl"] .path__seal { padding: 12px 12px 12px 22px; }
.path__seal svg { width: 44px; height: 44px; padding: 6px; border-radius: 50%; background: rgba(196, 144, 106, .12); }
.degrees { position: relative; display: grid; gap: 16px; }
.degrees::before { content: ""; position: absolute; top: 30px; bottom: 30px; inset-inline-start: 31px; width: 1px; background: linear-gradient(var(--copper), rgba(196, 144, 106, .1)); }
.degrees li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: center; padding: 26px 28px 26px 0; border-radius: 14px; transition: background .3s; }
html[dir="rtl"] .degrees li { padding: 26px 0 26px 28px; }
.degrees li:hover { background: var(--night-2); }
.degrees__n { position: relative; z-index: 1; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--night); border: 1px solid var(--copper); font-family: var(--f-display); font-size: 1.35rem; font-style: italic; color: var(--copper-2); }
.degrees li:last-child .degrees__n { background: linear-gradient(135deg, var(--copper-2), var(--copper)); color: var(--night); border-color: transparent; }
.degrees h3 { font-size: 1.6rem; margin-bottom: 4px; }
html[dir="rtl"] .degrees h3 { font-size: 1.45rem; }
.degrees p { color: rgba(247, 243, 238, .6); font-size: 15px; }

/* ---------- Rayonnement ---------- */
.voice { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; margin-bottom: 20px; }
.assoc { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: clamp(28px, 4vw, 44px); border-radius: 14px; background: var(--slate); color: var(--ivory); }
.assoc::after { content: ""; position: absolute; inset: auto -80px -120px auto; width: 300px; height: 300px; border-radius: 50%; border: 1px solid var(--line-dark); box-shadow: 0 0 0 40px rgba(196, 144, 106, .04), 0 0 0 80px rgba(196, 144, 106, .03); }
.assoc__ic { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: rgba(196, 144, 106, .15); color: var(--copper-2); }
.assoc__ic svg { width: 28px; height: 28px; }
.assoc h3 { font-size: clamp(1.8rem, 2.8vw, 2.3rem); }
.assoc__org { font-weight: 600; color: var(--copper-2); }
.assoc p:last-child { color: rgba(247, 243, 238, .66); }
.talks { padding: clamp(28px, 4vw, 44px); border-radius: 14px; background: var(--white); border: 1px solid var(--line-2); }
.talks__h, .pubs__h { display: flex; align-items: center; gap: 12px; font-size: 1.7rem; margin-bottom: 10px; }
.talks__h svg, .pubs__h svg { width: 26px; height: 26px; color: var(--copper-ink); }
.talks__lead { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.talks__list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.talks__n { font-family: var(--f-display); font-style: italic; font-size: 1.4rem; color: var(--copper-ink); line-height: 1.3; }
.talks__list .tag { margin-bottom: 6px; font-size: 11px; padding: 2px 9px; }
.talks__list p { font-weight: 500; font-size: 15.5px; }
.pubs { margin-top: 50px; }
.pubs__h { margin-bottom: 20px; }
.pubs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.doc {
  position: relative; display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  padding: 34px 34px 28px; background: var(--white); border: 1px solid var(--line-2); border-radius: 4px;
  box-shadow: 8px 8px 0 -1px var(--paper), 8px 8px 0 0 var(--line-2), 16px 16px 0 -1px var(--paper-2);
  transition: transform .4s var(--ease);
}
html[dir="rtl"] .doc { box-shadow: -8px 8px 0 -1px var(--paper), -8px 8px 0 0 var(--line-2), -16px 16px 0 -1px var(--paper-2); }
.doc:hover { transform: translateY(-4px); }
.doc::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-end: 0; width: 44px; height: 44px; background: linear-gradient(225deg, var(--paper) 50%, var(--copper-2) 50%); }
html[dir="rtl"] .doc::before { background: linear-gradient(135deg, var(--paper) 50%, var(--copper-2) 50%); }
.doc h4 { font-size: 1.65rem; }
html[dir="rtl"] .doc h4 { font-size: 1.45rem; }
.doc p { color: var(--muted); font-size: 15px; }
.doc__sig { margin-top: auto; padding-top: 12px; font-family: var(--f-display); font-style: italic; color: var(--copper-ink); font-size: 1.05rem; }

/* ---------- Méthode ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding-top: 30px; border-top: 1px solid var(--line); }
.steps li::before { content: ""; position: absolute; top: -1px; inset-inline-start: 0; width: 40px; height: 2px; background: var(--copper); }
.steps__n { display: block; font-family: var(--f-display); font-size: 3.4rem; line-height: 1; color: var(--copper-ink); margin-bottom: 14px; }
.steps h3 { font-size: 1.45rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ---------- Rendez-vous ---------- */
.bk { position: relative; background: var(--ivory); color: var(--text); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.bk__steps { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); background: var(--white); }
.bk__steps li { display: flex; align-items: center; gap: 12px; padding: 18px 24px; color: var(--muted); font-size: 15px; position: relative; }
.bk__steps li::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 2px; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
html[dir="rtl"] .bk__steps li::after { transform-origin: right; }
.bk__steps span { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-weight: 600; font-size: 14px; transition: all .3s; }
.bk__steps li.active { color: var(--night); }
.bk__steps li.active span { background: var(--copper); border-color: var(--copper); color: var(--night); }
.bk__steps li.active::after, .bk__steps li.done::after { transform: scaleX(1); }
.bk__steps li.done span { background: var(--night); border-color: var(--night); color: var(--white); }
.bk__body { padding: clamp(24px, 4vw, 44px); min-height: 380px; }
.bk__step { display: none; }
.bk__step.active { display: block; animation: fade .45s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bk__q { font-family: var(--f-body); font-size: 15px; font-weight: 600; color: var(--night); margin-bottom: 16px; letter-spacing: 0; line-height: 1.5; }
html[dir="rtl"] .bk__q { font-family: var(--f-body); font-weight: 600; }
.bk__areas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 100px; font-size: 14.5px; background: var(--white); transition: all .2s; }
.chip svg { width: 18px; height: 18px; color: var(--copper-ink); }
.chip:hover { border-color: var(--night); }
.chip.sel { background: var(--night); border-color: var(--night); color: var(--white); }
.chip.sel svg { color: var(--copper-2); }
.bk__modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mode { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); text-align: start; transition: all .2s; }
.mode svg { width: 26px; height: 26px; color: var(--copper-ink); }
.mode b { display: block; font-size: 15.5px; color: var(--night); }
.mode small { color: var(--muted); font-size: 13px; }
.mode:hover { border-color: var(--night); }
.mode.sel { border-color: var(--copper); box-shadow: 0 0 0 1px var(--copper) inset; background: #fbf4ee; }

.bk__date { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal__head strong { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; color: var(--night); text-transform: capitalize; }
.cal__nav { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.cal__nav:disabled { opacity: .3; cursor: default; }
html[dir="rtl"] .cal__nav svg { transform: scaleX(-1); }
.cal__wd, .cal__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal__wd span { font-size: 12px; color: var(--muted); padding: 6px 0; font-weight: 600; }
.day { aspect-ratio: 1; border-radius: 50%; font-size: 14.5px; font-weight: 500; transition: all .2s; }
.day:hover:not(.off) { background: var(--paper); }
.day.off { opacity: .28; cursor: default; }
.day.sel { background: var(--night); color: var(--white); }
.slots__date { font-family: var(--f-display); font-size: 1.25rem; color: var(--night); margin-bottom: 14px; text-transform: capitalize; }
.slots__empty { padding: 30px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; }
.slots__g { margin-bottom: 18px; }
.slots__g small { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.slot { padding: 10px 0; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 500; background: var(--white); direction: ltr; transition: all .2s; }
.slot:hover:not(.taken) { border-color: var(--night); }
.slot.sel { background: var(--night); border-color: var(--night); color: var(--white); }
.slot.taken { opacity: .35; text-decoration: line-through; cursor: not-allowed; background: transparent; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field__l { font-size: 14px; font-weight: 600; color: var(--night); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); font: inherit; font-size: 15.5px; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(196, 144, 106, .2); }
.field input.invalid { border-color: #b0412e; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--white); height: 50px; }
.seg label { flex: 1; position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: grid; place-items: center; height: 100%; font-weight: 500; transition: all .2s; }
.seg input:checked + span { background: var(--night); color: var(--white); }
.seg input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: -2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--copper-ink); flex: none; }

.bk__bar { display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: center; padding: 18px clamp(24px, 4vw, 44px); border-top: 1px solid var(--line); background: var(--white); }
.bk__bar[hidden] { display: none; }
.bk__sum { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.bk__sum span { display: grid; line-height: 1.3; }
.bk__sum small { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.bk__sum b { font-size: 14px; font-weight: 600; color: var(--muted); }
.bk__sum span.on b { color: var(--night); }
.bk__err { grid-column: 1 / -1; grid-row: 2; color: #b0412e; font-size: 14px; font-weight: 500; min-height: 0; }
.bk__err:empty { display: none; }
.bk__err.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.bk__nav { display: flex; gap: 10px; }
.bk__done { text-align: center; padding: 30px 0; }
.bk__doneIc { width: 76px; height: 76px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(31, 168, 85, .12); color: var(--wa); }
.bk__doneIc svg { width: 36px; height: 36px; }
.bk__done h3 { font-size: 2rem; margin-bottom: 10px; }
.bk__done p { color: var(--muted); max-width: 52ch; margin: 0 auto 22px; }
.bk__recap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.bk__recap span { padding: 6px 14px; border-radius: 100px; background: var(--paper); font-size: 14px; font-weight: 500; }
.bk__doneBtns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.faq__side { position: sticky; top: calc(var(--header-h) + 30px); }
.urgent { margin-top: 30px; padding: 28px; border-radius: 14px; background: var(--night); color: var(--ivory); }
.urgent strong { display: block; font-family: var(--f-display); font-size: 1.6rem; margin-bottom: 6px; }
.urgent p { color: rgba(247, 243, 238, .66); font-size: 15px; margin-bottom: 18px; }
.urgent__tel { display: inline-flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 700; color: var(--copper-2); }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { font-size: 1.4rem; }
html[dir="rtl"] .qa h3 { font-size: 1.25rem; }
.qa__x { position: relative; width: 36px; height: 36px; flex: none; border: 1px solid var(--line); border-radius: 50%; transition: all .3s; }
.qa__x::before, .qa__x::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .3s; }
.qa__x::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa__x { background: var(--night); color: var(--copper-2); border-color: var(--night); }
.qa[open] .qa__x::after { transform: translate(-50%, -50%); }
.qa p { padding: 0 0 26px; color: var(--muted); max-width: 64ch; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: stretch; }
.cards { display: grid; gap: 12px; }
.cards li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: var(--white); border-radius: 12px; border: 1px solid var(--line-2); }
.cards svg { width: 22px; height: 22px; color: var(--copper-ink); margin-top: 3px; }
.cards small { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.cards a, .cards span { font-weight: 500; }
.cards a:hover { color: var(--copper-ink); }
.contact__map { position: relative; min-height: 440px; border-radius: 14px; overflow: hidden; background: var(--paper-2); }
.contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
.contact__dir { position: absolute; bottom: 16px; inset-inline-start: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 100px; background: var(--night); color: var(--ivory); font-size: 14px; font-weight: 600; }
.contact__dir svg { width: 16px; height: 16px; color: var(--copper-2); }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: rgba(247, 243, 238, .7); padding: clamp(60px, 8vw, 100px) 0 110px; }
.footer__top { display: flex; align-items: center; gap: 24px; padding-bottom: 50px; margin-bottom: 50px; border-bottom: 1px solid var(--line-dark); }
.footer__logo { width: 70px; height: 70px; color: var(--copper); }
.footer__word { flex: 1; font-family: var(--f-display); font-size: clamp(1.8rem, 4vw, 3rem); color: var(--ivory); line-height: 1.2; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer h3 { font-family: var(--f-body); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); margin-bottom: 16px; font-weight: 600; }
html[dir="rtl"] .footer h3 { letter-spacing: 0; font-size: 14.5px; }
.footer ul { display: grid; gap: 9px; font-size: 14.5px; }
.footer a:hover { color: var(--copper-2); }
.brand--light { color: var(--ivory); margin-bottom: 18px; }
.footer__about { font-size: 14.5px; max-width: 36ch; }
.hours li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.footer__disc { font-size: 13px; color: rgba(247, 243, 238, .45); max-width: 90ch; padding-top: 24px; border-top: 1px solid var(--line-dark); margin-bottom: 18px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: rgba(247, 243, 238, .5); }

/* ---------- Mobile bar & WhatsApp ---------- */
.mbar { display: none; }
.wa-float { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 40; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 14px 30px -10px rgba(31, 168, 85, .7); transform: scale(0); transition: transform .4s var(--ease); }
.wa-float svg { width: 28px; height: 28px; }
.past-hero .wa-float { transform: scale(1); }

/* ---------- Apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; } .reveal[data-d="2"] { transition-delay: .16s; } .reveal[data-d="3"] { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 20px; font-size: 14px; }
  .header__cta { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--wide { grid-row: auto; }
  .tile:nth-child(n+6) { grid-column: auto; }
  .team { grid-template-columns: 1fr 1fr; }
  .member:last-child { grid-column: 1 / -1; max-width: 50%; justify-self: center; width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; flex-direction: column; gap: 0; padding: 20px var(--gutter) 40px;
    background: var(--night); font-size: 1.4rem; font-family: var(--f-display);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all .35s var(--ease);
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav > a { padding: 16px 0; border-bottom: 1px solid var(--line-dark); opacity: 1; }
  .nav > a::after { display: none; }
  .nav__foot { display: grid; gap: 8px; margin-top: auto; font-family: var(--f-body); font-size: 15px; color: var(--copper-2); }
  .menu-open .header::before { background: var(--night); }
  .team { grid-template-columns: 1fr; max-width: 520px; }
  .member:last-child { grid-column: auto; max-width: none; }
  .hero__grid, .profile, .path, .faq, .contact, .voice { grid-template-columns: 1fr; }
  .sec__head--split { grid-template-columns: 1fr; gap: 0; }
  .sec__head--split .h2 { margin-bottom: 22px; }
  .hero__media { order: -1; width: min(82%, 380px); }
  .bcard { inset-inline-start: -30px; bottom: 20px; width: 210px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .path__head, .faq__side { position: static; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .bk__date { grid-template-columns: 1fr; }
  .contact__map { min-height: 360px; }
  .pubs__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .brand__txt small { display: none; }
  .brand__logo { width: 42px; height: 42px; }
  .lang button { min-width: 32px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .bcard { width: 180px; padding: 12px; inset-inline-start: -14px; }
  .bcard__logo { width: 40px; height: 40px; }
  .bcard__ar { font-size: 14px; }
  .facts li { padding-inline-end: 12px; }
  .facts span { font-size: 13px; }
  .bento { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .ledger div { grid-template-columns: 1fr; gap: 2px; }
  .steps { grid-template-columns: 1fr; }
  .bk__steps li { padding: 14px 12px; font-size: 13px; gap: 8px; justify-content: center; }
  .bk__steps b { display: none; }
  .bk__steps li.active b { display: inline; }
  .bk__modes, .form { grid-template-columns: 1fr; }
  .bk__bar { grid-template-columns: 1fr; }
  .bk__nav { justify-content: space-between; }
  .bk__nav .btn { flex: 1; padding: 0 16px; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; }
  .doc { box-shadow: none; }
  .wa-float { display: none; }
  .mbar {
    position: fixed; inset: auto 0 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr 1.3fr;
    background: rgba(21, 24, 28, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line-dark); padding-bottom: env(safe-area-inset-bottom);
  }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 60px; color: var(--ivory); font-size: 14px; font-weight: 600; }
  .mbar__main { background: linear-gradient(135deg, var(--copper-2), var(--copper)); color: var(--night) !important; }
  .footer { padding-bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
