/* Pages services : même palette, mêmes polices et même rythme (3,2 s) que l'accueil.
   Mise en page inspirée des grandes pages de service : titre centré sur un halo, offres en grille, méthode en ligne, appel final centré. */
:root {
  --bg: #FBFBF9;
  --surface: #FFFFFF;
  --line: #E3E6E2;
  --fg: #1C2B2E;
  --muted: #5B6B6E;
  --signal: #0E6E63;
  --on-signal: #FBFBF9;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
  --clay: #C9754F;
  --clay-text: #9A4F2E;
}
/* Le mode sombre suit le réglage de l'appareil, téléphone compris. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1114;
    --surface: #111A1E;
    --line: #22302F;
    --fg: #F2F7F7;
    --muted: #9DB0B2;
    --signal: #2FD4C5;
    --on-signal: #0A1114;
    color-scheme: dark;
  --clay: #E09270;
  --clay-text: #E09270;
}
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; font-size: 17px; line-height: 1.6; overflow-x: hidden; }
a { color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.mono { font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--muted); margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); position: relative; z-index: 1; }

/* Fond de toute la page : halo et points, comme sur l'accueil */
.site-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--signal) 14%, var(--bg)) 0%, var(--bg) 60%); }
.site-bg .dots { position: absolute; inset: 0; background-image: radial-gradient(circle, color-mix(in srgb, var(--signal) 40%, transparent) 1.2px, transparent 1.6px); background-size: 56px 56px; opacity: .35; animation: drift 38.4s linear infinite; }
@keyframes drift { to { background-position: 56px 56px; } }

.top { display: flex; justify-content: space-between; align-items: center; padding-block: 24px; }
.back { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; color: var(--fg); text-decoration: none; font-size: 14px; transition: border-color .3s, color .3s; }
.back:hover { border-color: var(--signal); color: var(--signal); }

/* En-tête centré : image en fond, halo, titre très grand */
.hero { position: relative; overflow: hidden; margin: 0 calc(-1 * clamp(20px, 4vw, 48px)); min-height: min(88vh, 760px); display: flex; align-items: center; justify-content: center; text-align: center; }
.hero > .svc-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; aspect-ratio: auto; opacity: .3; z-index: 0; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at 28% 22%, color-mix(in srgb, var(--signal) 26%, transparent) 0%, transparent 55%), radial-gradient(ellipse at 76% 82%, rgba(60, 110, 255, .16) 0%, transparent 50%), linear-gradient(to bottom, rgba(10, 17, 20, .35) 0%, rgba(10, 17, 20, .92) 100%); }
.hero > div { position: relative; z-index: 2; padding: 40px clamp(20px, 4vw, 48px); max-width: 960px; }
.hero .eyebrow { color: var(--signal); }
h1 { margin: 18px 0 0; font-size: clamp(56px, 9vw, 124px); font-weight: 800; letter-spacing: -.05em; line-height: .95; color: #F2F7F7; }
h1 .w { display: inline-block; }
.lede { margin: 26px auto 0; color: #C9D6D8; font-size: clamp(18px, 2vw, 26px); line-height: 1.45; max-width: 720px; }

.block p { margin: 0; }
.todo { color: var(--muted); border: 1px dashed var(--line); padding: 2px 8px; display: inline-block; }
footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: 14px; }

/* Offre : titre et introduction centrés, puis grille de tuiles */
.offer, .process { padding-block: clamp(56px, 8vw, 96px); text-align: center; }
.offer > .mono, .process > .mono { color: var(--signal); }
.offer > div { max-width: 820px; margin: 0 auto; }
.lead2 { margin: 18px auto 0; font-size: clamp(24px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; max-width: 760px; }
.offers { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; text-align: left; }
.offers li { position: relative; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 85%, transparent); padding: 26px 24px 28px; font-size: 17px; min-height: 96px; display: flex; align-items: center; overflow: hidden; transition: transform .35s var(--ease), border-color .3s, box-shadow .4s var(--ease); }
.offers li::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.offers li:hover { transform: translateY(-4px); border-color: var(--signal); box-shadow: 0 0 32px -10px color-mix(in srgb, var(--signal) 60%, transparent); }
.offers li:hover::before { transform: scaleX(1); }

/* Méthode : quatre étapes sur une ligne, avec des repères qui s'allument à tour de rôle (3,2 s) */
.steps { position: relative; list-style: none; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center; }
.steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 19px; height: 1px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 12%; top: 18px; width: 22%; height: 3px; background: linear-gradient(90deg, transparent, var(--signal), transparent); }
.steps li { position: relative; padding-top: 72px; }
.steps li::before { content: ""; position: absolute; left: calc(50% - 20px); top: 0; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--signal); background: var(--bg); box-shadow: 0 0 0 0 rgba(14, 110, 99, 0); }
.steps h3 { margin: 0 0 10px; font-size: clamp(20px, 2vw, 26px); font-weight: 800; letter-spacing: -.02em; }
.steps p { margin: 0 auto; max-width: 240px; color: var(--muted); font-size: 16px; line-height: 1.5; }

/* Appel final centré, avec deux boutons en pilule */
.cta-band { position: relative; text-align: center; padding: clamp(64px, 9vw, 120px) clamp(20px, 4vw, 48px); border-top: 1px solid var(--line); overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--signal) 18%, transparent) 0%, transparent 60%); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin: 0; font-size: clamp(40px, 6vw, 80px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.cta-band p { margin: 22px auto 0; max-width: 620px; font-size: 19px; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.cta-band .btn { position: relative; display: inline-flex; align-items: center; padding: 15px 26px; border-radius: 999px; background: var(--fg); color: var(--bg); text-decoration: none; font-weight: 700; font-size: 17px; }
.cta-band .btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.cta-band .btn.ghost:hover { border-color: var(--signal); color: var(--signal); }
.cta-band .btn.primary::after { content: ""; position: absolute; inset: -7px; border-radius: 999px; border: 1.5px solid var(--fg); opacity: 0; pointer-events: none; }
.more { padding-block: 40px; text-align: center; }
.more a { color: var(--fg); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; transition: border-color .3s, color .3s; }
.more a:hover { border-color: var(--signal); color: var(--signal); }

/* Apparition au défilement (activée par service.js) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .site-bg .dots { animation: drift 38.4s linear infinite; }
  .steps li::before { animation: nodeGlow 3.2s ease-in-out infinite; }
  .steps li:nth-child(2)::before { animation-delay: .8s; }
  .steps li:nth-child(3)::before { animation-delay: 1.6s; }
  .steps li:nth-child(4)::before { animation-delay: 2.4s; }
  .steps::after { animation: lineTravel 3.2s linear infinite; }
  .cta-band .btn.primary::after { animation: svcRing 3.2s cubic-bezier(.2, .6, .3, 1) infinite; }
  .js h1 .w { opacity: 0; transform: translateY(40px); animation: wordIn .9s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + 150ms); }
}
@keyframes nodeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(14, 110, 99, 0); }
  12% { box-shadow: 0 0 0 0 rgba(14, 110, 99, 0), 0 0 22px 6px rgba(14, 110, 99, .45); }
  24% { box-shadow: 0 0 0 0 rgba(14, 110, 99, 0); }
}
@keyframes lineTravel {
  from { transform: translateX(-100%); }
  to { transform: translateX(450%); }
}
@keyframes svcRing {
  0% { transform: scale(.9); opacity: .7; }
  60%, 100% { transform: scale(1.4); opacity: 0; }
}
@keyframes wordIn {
  to { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .steps::before, .steps::after { display: none; }
}
@media (max-width: 620px) {
  .offers, .steps { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
}

/* Sélecteur de langue dans la barre du haut, et sens de lecture arabe */
.top > .mono { margin-inline-start: auto; margin-inline-end: 12px; }
.top .lang { background: transparent; color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font: 500 14px 'IBM Plex Sans', system-ui, sans-serif; cursor: pointer; }
.top .lang:hover { border-color: var(--signal); }
html[dir="rtl"] body { font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif; }
html[dir="rtl"] .mono { letter-spacing: 0; }
html[dir="rtl"] .offers { text-align: right; }
html[dir="rtl"] .offers li::before { transform-origin: right; }
html[dir="rtl"] h1, html[dir="rtl"] .cat-head h2, html[dir="rtl"] .lead2, html[dir="rtl"] .cta-band h2 { letter-spacing: 0; }

/* Slogan sous le titre de chaque service (le haut de page reste sombre : couleur fixe) */
.slogan { margin: 22px auto 0; display: inline-flex; align-items: center; justify-content: center; gap: 14px; color: #A8D5CE; font-size: clamp(17px, 1.9vw, 23px); font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.slogan::before, .slogan::after { content: ""; flex: none; width: 28px; height: 2px; background: currentColor; opacity: .7; }
@media (max-width: 620px) { .slogan::before, .slogan::after { width: 16px; } }

/* Prestations illustrées (Publicité encadrée) : une image au-dessus de chaque prestation */
.offers.offers-art li { flex-direction: column; align-items: stretch; padding: 0; min-height: 0; }
.offers.offers-art li img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--line); transition: transform .6s var(--ease); }
.offers.offers-art li span { display: block; padding: 18px 22px 22px; }
.offers.offers-art li:hover img { transform: scale(1.04); }
.offers.offers-art li::before { z-index: 1; }

/* Note sous le bouton WhatsApp */
.cta-band .cta-note { margin-top: 18px; font-size: 13px; }
/* Titres en serif : le registre d'une revue medicale, pas d'un tableau de bord. */
:root { --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif; }
h1, h2, h3, h4, .svc-title, .about-lead, .foot-name, .brand-name, .exp-card h3, .pf-info h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.012em;
}
/* Le bandeau de tete garde une photo assombrie : le texte y reste clair dans les deux themes. */
.hero > div, .hero h1, .hero .svc-title, .hero p { color: #F7FAF9; }
.hero .eyebrow { color: #A8D5CE; }
/* Reseaux sociaux dans le pied de page */
.socials { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.social { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); transition: border-color .3s, color .3s, transform .3s; }
.social svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.social:hover { border-color: var(--signal); color: var(--signal); transform: translateY(-2px); }