/* =========================================================
   Tadla Affaires — Cabinet de comptabilité et gestion (Kasba Tadla)
   Palette « Registre » : bleu nuit / bleu OPCA / rouge carte de visite / papier
   ========================================================= */
:root {
  --ink: #0e1f3d;         /* bleu nuit — fonds sombres, titres */
  --ink-2: #16294d;
  --ink-3: #213a69;
  --blue: #2a5bc0;        /* bleu de la carte de visite / OPCA */
  --blue-2: #6b95ea;      /* bleu lisible sur fond sombre */
  --sky: #e9effb;
  --red: #d2383e;         /* rouge « Comptable Agréé » — accent ponctuel */
  --bg: #fbfcfe;
  --paper: #f1f4f9;
  --paper-2: #e3e9f3;
  --text: #121a2b;
  --muted: #59647a;
  --line: rgba(14, 31, 61, .12);
  --line-2: rgba(14, 31, 61, .07);
  --line-dark: rgba(170, 195, 245, .16);
  --white: #ffffff;
  --wa: #1fa855;

  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}
html[dir="rtl"] {
  --f-display: "Noto Kufi Arabic", "Fraunces", serif;
  --f-body: "Tajawal", "Plus Jakarta Sans", 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(--bg);
  font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
html[dir="rtl"] body { font-size: 17px; line-height: 1.9; }
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.1; letter-spacing: -.015em; color: inherit; }
html[dir="rtl"] :is(h1, h2, h3, h4) { font-weight: 700; letter-spacing: 0; line-height: 1.5; }
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(--blue); color: var(--white); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
html[dir="rtl"] .arrow { transform: scaleX(-1); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; }
.skip:focus { top: 12px; }
em { font-style: italic; color: var(--blue); }
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: 12px; 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;
}
html[dir="rtl"] .btn { font-size: 16px; font-weight: 700; }
.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; border-radius: 10px; }
.btn--blue { background: var(--blue); color: var(--white); box-shadow: 0 12px 28px -12px rgba(42, 91, 192, .75); }
.btn--blue:hover { background: #224ea8; transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-3); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--sky); }
.btn--line { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn--line:hover { border-color: var(--ink); }
.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(--blue); }
.link svg { width: 16px; height: 16px; }

.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); padding: 4px 10px; background: var(--sky); border-radius: 6px; }
html[dir="rtl"] .tag { letter-spacing: 0; font-size: 13px; }
.tag--light { color: var(--white); background: rgba(255, 255, 255, .14); }

/* ---------- Libellés de section ---------- */
.sec { position: relative; padding: clamp(80px, 11vw, 136px) 0; }
.sec--paper { background: var(--paper); }
.sec--night { background: var(--ink); color: var(--white); }
.sec--night em { color: var(--blue-2); }
.label { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 20px; }
html[dir="rtl"] .label { letter-spacing: 0; font-size: 15px; }
.label__n { display: grid; place-items: center; min-width: 34px; height: 26px; padding: 0 6px; border-radius: 6px; background: var(--ink); color: var(--white); font-size: 12px; letter-spacing: 0; font-family: var(--f-body); }
.label--light { color: var(--blue-2); }
.label--light .label__n { background: var(--blue); }
.h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: 22px; }
html[dir="rtl"] .h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.sec--night .lead { color: rgba(255, 255, 255, .68); }
.sec__head { margin-bottom: clamp(44px, 6vw, 64px); 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(--ink); transition: height .3s; }
.header::before { content: ""; position: absolute; inset: 0; background: rgba(251, 252, 254, 0); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; z-index: -1; }
.header.scrolled::before { background: rgba(251, 252, 254, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--line); }
.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: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--white); background: var(--ink); }
.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.25rem; font-weight: 700; }
.brand__txt small { font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 26px; font-size: 14.5px; font-weight: 500; }
html[dir="rtl"] .nav { font-size: 16px; }
.nav > a { position: relative; opacity: .78; transition: opacity .2s; padding: 6px 0; }
.nav > a::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; border-radius: 2px; background: var(--blue); 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); border-radius: 10px; padding: 3px; background: var(--white); }
.lang button { min-width: 36px; height: 30px; border-radius: 7px; font-size: 12.5px; font-weight: 700; opacity: .65; transition: all .2s; }
.lang button.on { background: var(--ink); color: var(--white); opacity: 1; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; position: relative; background: var(--white); }
.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;
  padding: calc(var(--header-h) + clamp(36px, 6vw, 80px)) 0 clamp(40px, 5vw, 64px);
  background:
    radial-gradient(50% 60% at 80% 20%, rgba(42, 91, 192, .10), transparent 70%),
    linear-gradient(var(--line-2) 1px, transparent 1px) 0 0 / 100% 36px,
    var(--bg);
}
html[dir="rtl"] .hero { background:
    radial-gradient(50% 60% at 20% 20%, rgba(42, 91, 192, .10), transparent 70%),
    linear-gradient(var(--line-2) 1px, transparent 1px) 0 0 / 100% 36px,
    var(--bg); }
.hero::before { content: ""; position: absolute; top: var(--header-h); bottom: 0; inset-inline-start: calc(50% - 600px - 24px); width: 1px; background: rgba(210, 56, 62, .28); pointer-events: none; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 26px; padding: 7px 14px; border-radius: 100px; background: var(--white); border: 1px solid var(--line); }
html[dir="rtl"] .kicker { letter-spacing: 0; font-size: 15px; }
.kicker__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(210, 56, 62, .15); }
.hero__title { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.04; letter-spacing: -.025em; color: var(--ink); margin-bottom: 24px; }
html[dir="rtl"] .hero__title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.45; letter-spacing: 0; }
.hero__title em { position: relative; white-space: nowrap; }
.hero__title em::after { content: ""; position: absolute; inset-inline: 0; bottom: .02em; height: .14em; background: rgba(42, 91, 192, .18); border-radius: 4px; z-index: -1; }
.hero__text { font-size: 1.1rem; color: var(--muted); max-width: 56ch; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__badge { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 14px; font-weight: 500; color: var(--muted); }
.hero__badge svg { width: 22px; height: 22px; color: var(--blue); }

.hero__media { position: relative; justify-self: center; width: min(100%, 470px); padding-bottom: 40px; }
.hero__photo { position: relative; aspect-ratio: 4 / 4.7; border-radius: 28px; overflow: hidden; background: var(--paper-2); box-shadow: 0 50px 90px -50px rgba(14, 31, 61, .6); }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14, 31, 61, .45)); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; animation: settle 1.6s var(--ease) both; }
@keyframes settle { from { transform: scale(1.08); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Carte de visite flottante (reprend celle du cabinet) */
.vcard {
  position: absolute; inset-inline-start: -56px; bottom: 0; width: 290px; direction: ltr; text-align: left;
  display: grid; gap: 1px; padding: 18px 20px 16px; border-radius: 12px; overflow: hidden;
  background: var(--white); color: var(--ink); font-family: "Plus Jakarta Sans", sans-serif;
  box-shadow: 0 30px 60px -24px rgba(14, 31, 61, .55), 0 0 0 1px var(--line-2);
  transform: rotate(-3deg); animation: floaty 7s ease-in-out infinite;
}
.vcard::before { content: ""; position: absolute; width: 120px; height: 120px; top: -88px; right: -66px; border-radius: 50%; border: 14px solid var(--blue); opacity: .9; }
.vcard::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--blue) 70%, var(--red) 70%); }
html[dir="rtl"] .vcard { transform: rotate(3deg); animation-name: floaty-r; }
.vcard__co { white-space: nowrap; font-family: "Fraunces", serif; font-size: 15px; font-weight: 700; color: var(--blue); }
.vcard__co small { font-size: 10px; }
.vcard__sub { font-family: "Fraunces", serif; font-size: 10.5px; color: var(--red); font-weight: 600; }
.vcard__rule { height: 1px; background: var(--line); margin: 8px 0; }
.vcard__name { font-family: "Fraunces", serif; font-size: 17px; color: var(--blue); }
.vcard__ar { font-family: "Noto Kufi Arabic", sans-serif; font-size: 12.5px; color: var(--ink); font-weight: 600; line-height: 1.6; text-align: left; }
.vcard__role { font-family: "Fraunces", serif; font-size: 12px; color: var(--red); font-weight: 600; }
.vcard__tel { margin-top: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
@keyframes floaty { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-8px); } }
@keyframes floaty-r { 0%, 100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-8px); } }

/* Mini graphique flottant */
.chart { position: absolute; top: 28px; inset-inline-end: -26px; width: 120px; height: 92px; display: flex; align-items: flex-end; gap: 7px; padding: 16px 16px 14px;
  border-radius: 14px; background: var(--ink); box-shadow: 0 24px 40px -20px rgba(14, 31, 61, .7); direction: ltr; }
.chart span { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: var(--blue-2); transform-origin: bottom; animation: grow 1.2s var(--ease) both; }
.chart span:last-child { background: var(--red); }
.chart span:nth-child(2) { animation-delay: .1s; } .chart span:nth-child(3) { animation-delay: .2s; } .chart span:nth-child(4) { animation-delay: .3s; } .chart span:nth-child(5) { animation-delay: .4s; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(50px, 7vw, 84px); }
.facts li { display: grid; gap: 2px; align-content: start; padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; border-top: 3px solid var(--blue); }
.facts li:nth-child(1) { border-top-color: var(--red); }
.facts b { font-family: var(--f-display); font-size: clamp(1.35rem, 2.3vw, 1.75rem); font-weight: 700; color: var(--ink); line-height: 1.25; }
.facts span { font-size: 14px; color: var(--muted); }

/* ---------- Bandeau défilant ---------- */
.ticker { overflow: hidden; background: var(--ink); color: var(--white); padding: 17px 0; direction: ltr; }
.ticker__track { display: flex; width: max-content; animation: marquee 44s linear infinite; }
.ticker__track > div { display: flex; align-items: center; }
.ticker span { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; padding: 0 26px; white-space: nowrap; }
html[dir="rtl"] .ticker span { font-size: 1.05rem; }
.ticker i { width: 8px; height: 8px; border-radius: 2px; background: var(--blue-2); flex: none; }
.ticker i:nth-of-type(4n) { background: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cabinet ---------- */
.profile { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.profile__media { position: relative; padding-bottom: 70px; }
.profile__img { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--paper-2); }
.profile__img img { width: 100%; height: 100%; object-fit: cover; }
.profile__img--sm { position: absolute; width: 52%; aspect-ratio: 4 / 3; inset-inline-end: -22px; bottom: 30px; border: 6px solid var(--bg); box-shadow: 0 30px 50px -30px rgba(14, 31, 61, .6); }
.profile__cap { position: absolute; bottom: 0; inset-inline-start: 0; max-width: 44%; display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.profile__cap svg { width: 16px; height: 16px; color: var(--red); margin-top: 2px; }
.profile__main > p:not(.label) { margin-bottom: 18px; }
.profile__main > p.lead { color: var(--text); }
.ledger { margin: 28px 0 34px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background: var(--white); }
.ledger div { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 13px 18px; }
.ledger div + div { border-top: 1px solid var(--line-2); }
.ledger div:nth-child(odd) { background: #f8fafd; }
.ledger dt { font-size: 13.5px; font-weight: 700; color: var(--blue); }
.ledger dd { font-size: 15px; }

/* ---------- Services (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: var(--r); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.tile--wide { grid-column: span 2; grid-row: span 2; color: var(--white); background: var(--ink); justify-content: flex-end; min-height: 460px; isolation: isolate; }
.tile__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.tile--wide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 31, 61, .35) 0%, rgba(14, 31, 61, .82) 45%, var(--ink) 85%); }
.tile--wide:hover .tile__bg { transform: scale(1.04); }
.tile:nth-child(n+6) { grid-column: span 2; }
.tile:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(14, 31, 61, .45); }
.tile__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.tile--wide .tile__top { margin-bottom: auto; }
.tile__ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--sky); color: var(--blue); }
.tile__ic svg { width: 26px; height: 26px; }
.tile__n { font-family: var(--f-body); font-weight: 700; font-size: .95rem; color: var(--paper-2); -webkit-text-stroke: 1px var(--blue); color: transparent; font-size: 2rem; line-height: 1; }
.tile h3 { font-size: 1.45rem; }
html[dir="rtl"] .tile h3 { font-size: 1.25rem; }
.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: 12px; height: 7px; flex: none; transform: translateY(-3px) rotate(-45deg); border-inline-start: 2px solid var(--blue-2); border-bottom: 2px solid var(--blue-2); }
html[dir="rtl"] .tile li::before { border-inline-start: 0; border-inline-end: 2px solid var(--blue-2); transform: translateY(-3px) rotate(45deg); }
.tile .link { margin-top: auto; padding-top: 10px; align-self: flex-start; }
.tile:not(.tile--wide) ul { display: none; }
.tile--wide h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-top: 120px; }
html[dir="rtl"] .tile--wide h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.tile--wide p { color: rgba(255, 255, 255, .78); font-size: 1.04rem; max-width: 48ch; }
.tile--wide ul { font-size: 15px; gap: 9px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line-dark); }
.tile--wide .tile__ic { background: rgba(255, 255, 255, .14); color: var(--white); width: 60px; height: 60px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tile--wide .tile__n { -webkit-text-stroke-color: rgba(255, 255, 255, .7); }
.tile--wide .link { color: var(--blue-2); margin-top: 10px; }

/* ---------- Comptable agréé ---------- */
.path { display: grid; grid-template-columns: .9fr 1.1fr; 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: 12px; margin-top: 30px; padding: 10px 20px 10px 10px; border: 1px solid var(--line-dark); border-radius: 100px; color: var(--white); font-weight: 600; }
html[dir="rtl"] .path__seal { padding: 10px 10px 10px 20px; }
.path__seal svg { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--blue); }
.degrees { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.degrees li { position: relative; display: grid; gap: 14px; align-content: start; padding: 28px 26px; border-radius: var(--r); background: var(--ink-2); border: 1px solid var(--line-dark); transition: background .3s, transform .4s var(--ease); }
.degrees li:hover { background: var(--ink-3); transform: translateY(-4px); }
.degrees__n { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: rgba(107, 149, 234, .14); font-weight: 700; color: var(--blue-2); }
.degrees li:first-child .degrees__n { background: var(--red); color: var(--white); }
.degrees h3 { font-size: 1.35rem; }
html[dir="rtl"] .degrees h3 { font-size: 1.2rem; }
.degrees p { color: rgba(255, 255, 255, .62); font-size: 15px; }

/* ---------- Création de société ---------- */
.voice { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; }
.assoc { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; align-items: flex-start; min-height: 480px; padding: clamp(28px, 4vw, 44px); border-radius: var(--r); background: var(--ink); color: var(--white); }
.assoc__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.assoc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 31, 61, .2), rgba(14, 31, 61, .92) 60%); }
.assoc h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.assoc__org { font-weight: 600; color: var(--blue-2); }
.assoc p:not(.assoc__org) { color: rgba(255, 255, 255, .75); }
.assoc .btn { margin-top: 6px; }
.talks { padding: clamp(28px, 4vw, 44px); border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.talks__h { display: flex; align-items: center; gap: 12px; font-size: 1.6rem; margin-bottom: 10px; }
html[dir="rtl"] .talks__h { font-size: 1.35rem; }
.talks__h svg { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--sky); color: var(--blue); }
.talks__lead { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.talks__list { position: relative; }
.talks__list li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: center; padding: 18px 0; }
.talks__list li + li { border-top: 1px dashed var(--line); }
.talks__n { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink); font-weight: 700; font-size: 15px; border: 1px solid var(--line); }
.talks__list li:last-child .talks__n { background: var(--blue); color: var(--white); border-color: var(--blue); }
.talks__list p { font-weight: 600; font-size: 16px; }

/* ---------- Méthode ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { position: relative; padding: 28px 24px; background: var(--white); border-radius: var(--r); border: 1px solid var(--line-2); }
.steps__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--white); font-weight: 700; margin-bottom: 18px; }
.steps li:last-child .steps__n { background: var(--blue); }
.steps h3 { font-size: 1.3rem; margin-bottom: 6px; }
html[dir="rtl"] .steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); font-size: 15px; }

/* ---------- Rendez-vous ---------- */
.bk { position: relative; background: var(--bg); color: var(--text); border-radius: 20px; 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(--blue); 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: 8px; font-weight: 700; font-size: 14px; transition: all .3s; }
.bk__steps li.active { color: var(--ink); }
.bk__steps li.active span { background: var(--blue); border-color: var(--blue); color: var(--white); }
.bk__steps li.active::after, .bk__steps li.done::after { transform: scaleX(1); }
.bk__steps li.done span { background: var(--ink); border-color: var(--ink); 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: 700; color: var(--ink); margin-bottom: 16px; letter-spacing: 0; line-height: 1.5; }
html[dir="rtl"] .bk__q { font-family: var(--f-body); font-size: 16.5px; }
.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: 10px; font-size: 14.5px; background: var(--white); transition: all .2s; }
.chip svg { width: 18px; height: 18px; color: var(--blue); }
.chip:hover { border-color: var(--ink); }
.chip.sel { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip.sel svg { color: var(--blue-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: 12px; background: var(--white); text-align: start; transition: all .2s; }
.mode svg { width: 26px; height: 26px; color: var(--blue); }
.mode b { display: block; font-size: 15.5px; color: var(--ink); }
.mode small { color: var(--muted); font-size: 13px; }
.mode:hover { border-color: var(--ink); }
.mode.sel { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; background: var(--sky); }

.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.3rem; font-weight: 600; color: var(--ink); text-transform: capitalize; }
.cal__nav { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; }
.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: 700; }
.day { aspect-ratio: 1; border-radius: 10px; font-size: 14.5px; font-weight: 500; transition: all .2s; }
.day:hover:not(.off) { background: var(--sky); }
.day.off { opacity: .28; cursor: default; }
.day.sel { background: var(--blue); color: var(--white); }
.slots__date { font-family: var(--f-display); font-size: 1.2rem; color: var(--ink); margin-bottom: 14px; text-transform: capitalize; }
.slots__empty { padding: 30px; border: 1px dashed var(--line); border-radius: 12px; 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: 700; 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: 600; background: var(--white); direction: ltr; transition: all .2s; }
.slot:hover:not(.taken) { border-color: var(--ink); }
.slot.sel { background: var(--blue); border-color: var(--blue); 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: 700; color: var(--ink); }
.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(--blue); box-shadow: 0 0 0 3px rgba(42, 91, 192, .18); }
.field input.invalid { border-color: var(--red); }
.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: 600; transition: all .2s; }
.seg input:checked + span { background: var(--ink); color: var(--white); }
.seg input:focus-visible + span { outline: 2px solid var(--blue); 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(--blue); 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(--ink); }
.bk__err { grid-column: 1 / -1; grid-row: 2; color: var(--red); font-size: 14px; font-weight: 600; 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; color: var(--ink); }
.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: 8px; background: var(--sky); font-size: 14px; font-weight: 600; }
.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 { position: relative; overflow: hidden; margin-top: 30px; padding: 28px; border-radius: var(--r); background: var(--ink); color: var(--white); }
.urgent::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--blue) 70%, var(--red) 70%); }
.urgent strong { display: block; font-family: var(--f-display); font-size: 1.5rem; margin-bottom: 6px; }
.urgent p { color: rgba(255, 255, 255, .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(--blue-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: 22px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { font-size: 1.25rem; color: var(--ink); }
html[dir="rtl"] .qa h3 { font-size: 1.1rem; }
.qa__x { position: relative; width: 36px; height: 36px; flex: none; border: 1px solid var(--line); border-radius: 10px; 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(--blue); color: var(--white); border-color: var(--blue); }
.qa[open] .qa__x::after { transform: translate(-50%, -50%); }
.qa p { padding: 0 0 24px; color: var(--muted); max-width: 64ch; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 72px); align-items: stretch; }
.cards { display: grid; gap: 10px; }
.cards li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 20px; background: var(--white); border-radius: 14px; border: 1px solid var(--line-2); }
.cards svg { width: 22px; height: 22px; color: var(--blue); margin-top: 3px; }
.cards small { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.cards a, .cards span { font-weight: 600; }
.cards a:hover { color: var(--blue); }
.contact__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.contact__map { position: relative; min-height: 480px; border-radius: var(--r); overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); }
.contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contact__dir { position: absolute; bottom: 16px; inset-inline-start: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 10px; background: var(--ink); color: var(--white); font-size: 14px; font-weight: 600; box-shadow: 0 14px 30px -12px rgba(14, 31, 61, .6); }
.contact__dir svg { width: 16px; height: 16px; color: var(--blue-2); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: clamp(60px, 8vw, 96px) 0 110px; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 46px; margin-bottom: 46px; border-bottom: 1px solid var(--line-dark); }
.footer__word { font-family: var(--f-display); font-size: clamp(1.7rem, 3.6vw, 2.8rem); color: var(--white); line-height: 1.25; }
.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(--blue-2); margin-bottom: 16px; font-weight: 700; }
html[dir="rtl"] .footer h3 { letter-spacing: 0; font-size: 15px; }
.footer ul { display: grid; gap: 9px; font-size: 14.5px; }
.footer a:hover { color: var(--white); }
.brand--light { color: var(--white); margin-bottom: 18px; }
.brand--light .brand__logo { background: var(--blue); }
.brand--light small { color: rgba(255, 255, 255, .6); }
.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(255, 255, 255, .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(255, 255, 255, .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: 18px; 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; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero::before { display: none; }
}
@media (max-width: 1320px) { .hero::before { display: none; } }
@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(--bg); font-size: 1.35rem; 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); opacity: 1; }
  .nav > a::after { display: none; }
  .nav__foot { display: grid; gap: 8px; margin-top: auto; font-family: var(--f-body); font-size: 16px; font-weight: 700; color: var(--blue); }
  .menu-open .header::before { background: var(--bg); }
  .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 { width: min(86%, 420px); }
  .vcard { inset-inline-start: -28px; width: 260px; }
  .chart { inset-inline-end: -14px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .path__head, .faq__side { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
  .bk__date { grid-template-columns: 1fr; }
  .contact__map { min-height: 380px; }
  .profile__img--sm { inset-inline-end: 0; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .brand__txt small { display: none; }
  .brand__logo { width: 40px; height: 40px; }
  .lang button { min-width: 32px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__media { width: 100%; padding-bottom: 60px; }
  .hero__photo { aspect-ratio: 4 / 3.8; }
  .vcard { inset-inline-start: 6px; width: 240px; padding: 14px 16px 12px; }
  .vcard__name { font-size: 15px; }
  .chart { width: 96px; height: 76px; top: 14px; inset-inline-end: 10px; padding: 12px; }
  .facts { gap: 10px; }
  .facts li { padding: 16px; }
  .facts span { font-size: 13px; }
  .bento { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; min-height: 0; }
  .tile--wide h3 { margin-top: 90px; }
  .ledger div { grid-template-columns: 1fr; gap: 2px; }
  .profile__cap { position: static; max-width: none; margin-top: 16px; }
  .profile__media { padding-bottom: 0; }
  .profile__img--sm { display: none; }
  .degrees, .steps { grid-template-columns: 1fr; }
  .assoc { min-height: 420px; }
  .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; }
  .contact__btns .btn { flex: 1 1 100%; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; }
  .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(14, 31, 61, .97); -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(--white); font-size: 14px; font-weight: 600; }
  .mbar__main { background: var(--blue); }
  .footer { padding-bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
