/* ALIMA — feuille de style */
@font-face {
  font-family: 'Michroma';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/michroma-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/manrope-latin-wght-normal.woff2') format('woff2');
}

:root {
  --display: 'Michroma', 'Segoe UI', sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Arabic', sans-serif;
}

html[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0f0b14;
  --alt: rgba(21, 15, 28, 0.85);
  --text: #efe9f5;
  --muted: #bbaecb;
  --nav-link: #c9bcd6;
  --border: #2b2036;
  --card: #1b1424;
  --card-border: #2f2340;
  --dash: #4a3a5c;
  --chip: #4a3a5c;
  --chip-bg: transparent;
  --accent: #d46ef7;
  --on-accent: #1a0a24;
  --ghost: #4a3a5c;
  --footer: #a294b3;
  --wm: 0.2;
}
html[data-theme='light'] {
  color-scheme: light;
  --bg: #ffffff;
  --alt: rgba(248, 244, 251, 0.85);
  --text: #1e1228;
  --muted: #5a4a68;
  --nav-link: #4a3a58;
  --border: #e5d8ee;
  --card: #ffffff;
  --card-border: #e0d0eb;
  --dash: #b79dcb;
  --chip: #c9b5d8;
  --chip-bg: #ffffff;
  --accent: #640a83;
  --on-accent: #ffffff;
  --ghost: #c9b5d8;
  --footer: #6b5a7a;
  --wm: 0.13;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
}

a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }

.page { position: relative; }
.watermark { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.watermark g { stroke: var(--accent); opacity: var(--wm); }
.content { position: relative; }

.pad-x { padding-left: clamp(20px, 5vw, 72px); padding-right: clamp(20px, 5vw, 72px); }
.wrap { max-width: 1200px; margin: 0 auto; }

/* Barre langue + thème */
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 16px; padding-top: 8px; padding-bottom: 8px; background: var(--alt); border-bottom: 1px solid var(--border); }
.langs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.langs svg.globe { stroke: var(--muted); }
.lang-btn { display: flex; align-items: center; justify-content: center; min-width: 48px; min-height: 44px; padding: 0 8px; border-radius: 6px; background: transparent; border: 2px solid var(--ghost); }
.lang-btn[aria-pressed='true'] { background: var(--card); border-color: var(--accent); }
.flag { display: block; border-radius: 3px; outline: 1px solid rgba(128, 128, 128, 0.45); outline-offset: -1px; }
.theme-btn { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 6px; font-size: 14px; font-weight: 700; background: transparent; color: var(--text); border: 1px solid var(--ghost); }
.theme-btn svg { stroke: var(--accent); }
html[data-theme='dark'] .icon-moon, html[data-theme='light'] .icon-sun { display: none; }

/* En-tête */
header.site { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 80px; width: auto; display: block; }
nav.main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 600; }
nav.main a { color: var(--nav-link); text-decoration: none; padding: 10px 0; }
nav.main a.cta { color: var(--on-accent); background: var(--accent); padding: 10px 20px; border-radius: 4px; }

/* Logos selon le thème */
html[data-theme='dark'] .for-light, html[data-theme='light'] .for-dark { display: none; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(40px, 7vw, 96px); }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-logo { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.hero-logo img { width: 100%; max-width: 620px; height: auto; display: block; }
.eyebrow { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4.8vw, 58px); line-height: 1.15; }
.lead { margin: 0; font-size: 19px; color: var(--muted); max-width: 600px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 14px 28px; border-radius: 4px; }
.btn-primary { color: var(--on-accent); background: var(--accent); }
.btn-ghost { color: var(--text); border: 1px solid var(--ghost); font-weight: 600; }

/* Sections */
h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.25; }
.section { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.section.alt { background: var(--alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.col { display: flex; flex-direction: column; }
.head { gap: 12px; max-width: 760px; }
.head p { margin: 0; color: var(--muted); font-size: 18px; }
.stack-48 { gap: 48px; }

.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 260px; min-width: 0; background: var(--card); border: 1px solid var(--card-border); border-radius: 8px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.card.dashed { border-style: dashed; border-color: var(--dash); }
.card svg.ico { stroke: var(--accent); }
.card h3 { margin: 0; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 2px 10px; margin-inline-start: 6px; white-space: nowrap; vertical-align: middle; }
.more { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 6px; background: transparent; color: var(--accent); border: 1px solid var(--accent); font-size: 14px; font-weight: 700; }
.card p.detail { padding-inline-start: 16px; border-inline-start: 3px solid var(--accent); color: var(--text); }
.card p.detail[hidden] { display: none; }

.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; background: var(--card); border: 1px solid var(--accent); border-radius: 8px; padding: 32px clamp(20px, 4vw, 48px); }
.band .txt { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.band h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.3; }
.band p { margin: 0; color: var(--muted); font-size: 17px; }

/* Méthode */
ol.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 32px; }
ol.steps li { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--accent); padding-top: 20px; }
ol.steps .n { font-family: var(--display); font-size: 14px; color: var(--accent); }
ol.steps h3 { margin: 0; font-size: 19px; }
ol.steps p { margin: 0; color: var(--muted); }

/* À propos */
.about { display: flex; flex-wrap: wrap; gap: 48px; }
.about > div { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; }
.about p { margin: 0; color: var(--muted); font-size: 18px; }
.about p.story { color: var(--text); font-weight: 600; border-inline-start: 3px solid var(--accent); padding-inline-start: 16px; }
.skills-title { margin: 0; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
ul.chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
ul.chips li { padding: 10px 16px; border: 1px solid var(--chip); background: var(--chip-bg); border-radius: 999px; font-weight: 600; font-size: 15px; }

/* Contact */
.contact { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.contact p.intro { margin: 0; color: var(--muted); font-size: 18px; }
dl.coords { margin: 0; display: flex; flex-wrap: wrap; gap: 24px 56px; }
dl.coords > div { display: flex; flex-direction: column; gap: 4px; }
dl.coords dt { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
dl.coords dd { margin: 0; font-size: 18px; }
dl.coords a { color: var(--text); }
.hidden { display: none !important; }

/* Pied de page */
footer.site { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 28px; padding-bottom: 28px; border-top: 1px solid var(--border); font-size: 14px; color: var(--footer); }
footer.site a { color: var(--footer); }

/* Nom de produit + type */
.card p.kind { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-top: -8px; }
#secteurs p.story { max-width: 70ch; color: var(--text); font-weight: 600; border-inline-start: 3px solid var(--accent); padding-inline-start: 16px; margin: 0; }
