/* MOUBA SOUFYANE — noir profond & or mat */

/* ---------- Polices (hébergées localement, licence SIL OFL) ---------- */
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "Noto Sans Tifinagh"; src: url("fonts/noto-sans-tifinagh-tifinagh-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #0B0B0D;
  --surface: #17171B;
  --surface-2: #1F1F24;
  /* Bleu MOUBA (#0098F8, pris sur le logo) — thème par défaut */
  --accent: #0098F8;        /* texte et détails sur fond noir (≈ 6,4:1) */
  --accent-light: #5CBFFF;  /* survol */
  --accent-rgb: 0, 152, 248;
  --btn: #0098F8;           /* fond des boutons */
  --btn-hover: #38AFFF;
  --on-btn: #0B0B0D;        /* texte noir sur bouton bleu (≈ 6,4:1) */
  --text: #F5F2EB;
  --text-2: #B8B8BE;
  --line: rgba(245, 242, 235, 0.12);
  --line-gold: rgba(var(--accent-rgb), 0.4);
  --error: #E5484D;
  --font: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, "Geeza Pro", Arial, sans-serif;
  --font-tif: "Noto Sans Tifinagh", "Ebrima", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Noir & rouge — contrastes AA : texte #FF5A64 sur noir ≈ 6:1, blanc sur #C8102E ≈ 5,8:1 */
[data-theme="rouge"] {
  --accent: #FF5A64; --accent-light: #FF8A91; --accent-rgb: 230, 40, 60;
  --btn: #C8102E; --btn-hover: #E01E3C; --on-btn: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
:lang(ar) { font-family: var(--font-ar); }
[lang="zgh"], .tifinagh { font-family: var(--font-tif); letter-spacing: .04em; }
img, video, iframe { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--line-gold); text-underline-offset: .2em; }
a:hover { color: var(--accent-light); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .6em; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
.muted { color: var(--text-2); }
.small { font-size: .875rem; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--text-2); max-width: 40em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[dir="ltr"] { unicode-bidi: isolate; }

/* Focus visible */
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }

.skip {
  position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 100;
  background: var(--btn); color: var(--on-btn); padding: .6rem 1rem; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 1rem; color: var(--on-btn); }

.preview-banner {
  background: repeating-linear-gradient(-45deg, #0c1a2a 0 12px, #0a1522 12px 24px);
  color: var(--accent-light); font-size: .8125rem; text-align: center; padding: .55rem var(--gutter);
  border-bottom: 1px solid var(--line-gold);
}

/* ---------- Boutons & liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .9375rem; }
.btn-gold { background: var(--btn); color: var(--on-btn); }
.btn-gold:hover { background: var(--btn-hover); color: var(--on-btn); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-light); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.link { color: var(--accent); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: .4em; }
.link:hover { color: var(--accent-light); }
.arrow { display: inline-block; transition: transform .25s var(--ease); }
a:hover > .arrow { transform: translateX(4px); }
[dir="rtl"] .arrow { transform: scaleX(-1); }
[dir="rtl"] a:hover > .arrow { transform: scaleX(-1) translateX(4px); }
a:hover > .back-arrow { transform: translateX(-4px); }
[dir="rtl"] a:hover > .back-arrow { transform: scaleX(-1) translateX(-4px); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 13, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.brand { text-decoration: none; display: inline-flex; align-items: center; }
.brand-text { font-family: var(--font); font-weight: 800; letter-spacing: .14em; font-size: 1rem; color: var(--text); white-space: nowrap; }
.brand:hover .brand-text { color: var(--accent-light); }
.brand-logo { height: 40px; width: auto; }
.nav-panel { display: flex; align-items: center; gap: 2rem; }
.nav { display: flex; gap: 1.75rem; }
.nav a, .langs a, .langs span { text-decoration: none; font-size: .9375rem; color: var(--text-2); padding-block: .5rem; display: inline-block; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.langs { display: flex; gap: .25rem; align-items: center; border-inline-start: 1px solid var(--line); padding-inline-start: 1.5rem; }
.langs a, .langs span { padding: .4rem .5rem; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; }
.langs span[aria-current] { color: var(--accent); }
.langs a:hover { color: var(--text); }
.langs :lang(ar) { font-family: var(--font-ar); letter-spacing: 0; font-size: .9rem; }
.menu-toggle { display: none; }

@media (max-width: 1080px) {
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: .6rem; background: none; border: 1px solid var(--line);
    color: var(--text); font: inherit; font-size: .875rem; font-weight: 600; padding: .5rem .9rem; border-radius: var(--radius);
    min-height: 44px; cursor: pointer; white-space: nowrap;
  }
  .menu-icon, .menu-icon::before { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .25s; }
  .menu-icon::before { content: ""; position: absolute; top: 6px; }
  .menu-icon { transform: translateY(-3px); }
  .menu-toggle[aria-expanded="true"] .menu-icon { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(-6px) rotate(-90deg); }

  .js .nav-panel {
    position: absolute; top: 100%; inset-inline: 0; height: calc(100dvh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 1.5rem;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 1.5rem var(--gutter) 2rem;
    display: none;
  }
  .js .nav-panel.open { display: flex; }
  .js .nav { flex-direction: column; gap: 0; }
  .js .nav a { font-size: 1.375rem; color: var(--text); padding-block: .7rem; display: block; border-bottom: 1px solid var(--line); }
  .js .nav a[aria-current="page"] { box-shadow: none; color: var(--accent); }
  .js .langs { border: 0; padding: 0; }
  .js .header-cta { align-self: flex-start; }
  /* Sans JavaScript : navigation visible en ligne */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: .75rem; }
  html:not(.js) .nav-panel { flex-wrap: wrap; gap: 1rem; }
  html:not(.js) .nav { flex-wrap: wrap; gap: .25rem 1rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section.pt-0 { padding-top: 0; }
.surface { background: var(--surface); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.section-head h2 { margin: 0; }
.section-intro { margin-top: -1rem; margin-bottom: 2.5rem; }
.eyebrow, .label {
  font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--accent); margin: 0 0 1.25rem;
}
:lang(ar) .eyebrow, :lang(ar) .label { letter-spacing: 0; font-size: .95rem; text-transform: none; }
.split { display: grid; gap: 2rem 4rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; } }

.page-head { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2rem, 4vw, 3.5rem); }
.page-head h1 { margin-bottom: .4em; }

/* ---------- Accueil : premier écran ---------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 7fr 5fr; gap: 4rem; } }
.hero-title {
  font-family: var(--font); font-size: clamp(2.6rem, 7.6vw, 6.25rem); font-weight: 800;
  letter-spacing: -0.035em; line-height: .95; margin: 0 0 1.25rem;
}
:lang(ar) .hero-title { letter-spacing: -0.035em; line-height: .95; }
.hero-names { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; color: var(--accent); font-size: 1.125rem; margin-bottom: 2rem; }
.hero-names :lang(ar) { font-family: var(--font-ar); }
.domains { font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-top: 1.5rem; }
:lang(ar) .domains { letter-spacing: 0; font-size: 1rem; }
.hero-loc { display: flex; align-items: center; gap: .6rem; margin-top: 2.5rem; color: var(--text-2); font-size: .9375rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.18); }

.hero-portrait, .about-portrait { margin: 0; position: relative; }
.hero-portrait img, .about-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.hero-sign {
  position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 480px; justify-self: center;
  background:
    radial-gradient(120% 80% at 70% 20%, rgba(var(--accent-rgb),.16), transparent 60%),
    linear-gradient(160deg, #19181c, #0e0e11);
  border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; place-items: center; overflow: hidden;
}
/* Repères de cadrage façon viseur */
.hero-sign::before, .hero-sign::after {
  content: ""; position: absolute; width: 36px; height: 36px; border: 1.5px solid var(--accent);
}
.hero-sign::before { top: 18px; inset-inline-start: 18px; border-inline-end: 0; border-bottom: 0; }
.hero-sign::after { bottom: 18px; inset-inline-end: 18px; border-inline-start: 0; border-top: 0; }
.hero-tif {
  font-family: var(--font-tif); font-size: clamp(3rem, 7vw, 5.5rem); color: transparent; direction: ltr;
  -webkit-text-stroke: 1px var(--accent); letter-spacing: .12em; line-height: 1.25; text-align: center; display: flex; flex-direction: column; align-items: center;
  opacity: .9;
}
@supports not (-webkit-text-stroke: 1px black) { .hero-tif { color: var(--accent); } }
.ph-center { position: absolute; inset-inline: 0; bottom: 18%; text-align: center; }

/* ---------- Emplacements provisoires (prévisualisation uniquement) ---------- */
.ph {
  background: repeating-linear-gradient(-45deg, #19181c 0 14px, #141417 14px 28px);
  border: 1px dashed var(--line-gold); border-radius: var(--radius);
  display: grid; place-items: center; color: var(--text-2);
}
.ph-card { aspect-ratio: 4 / 3; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .875rem; }
:lang(ar) .ph-card { letter-spacing: 0; }
.ph-cover { aspect-ratio: 16 / 9; margin-bottom: 3rem; }
.ph-gallery { aspect-ratio: 3 / 2; }
.ph-portrait { aspect-ratio: 4 / 5; margin-bottom: 2rem; }
.ph-tag {
  display: inline-block; vertical-align: middle; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-btn); background: var(--btn); padding: .2rem .5rem; border-radius: 2px; line-height: 1.4;
}
:lang(ar) .ph-tag { letter-spacing: 0; font-size: .8rem; }
h1 .ph-tag { font-size: .875rem; vertical-align: .6em; }

/* ---------- Projets ---------- */
.grid-projects { display: grid; gap: 2.5rem 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid-projects { grid-template-columns: repeat(3, 1fr); } }
.card-project a { display: block; text-decoration: none; color: inherit; }
.card-media { overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.card-project a:hover .card-media img { transform: scale(1.035); }
.card-body { padding-top: 1rem; }
.card-cat { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 .35rem; font-weight: 600; }
:lang(ar) .card-cat { letter-spacing: 0; font-size: .875rem; }
.card-title { font-size: 1.1875rem; margin: 0; transition: color .2s; }
.card-project a:hover .card-title { color: var(--accent-light); }
.card-project[hidden] { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.filters button {
  font: inherit; font-size: .9375rem; font-weight: 600; color: var(--text-2); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1.1rem; min-height: 44px; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.filters button:hover { color: var(--text); border-color: var(--accent); }
.filters button[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: var(--on-btn); }

.empty-state { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem); background: var(--surface); }
.empty-state .actions { margin-top: 1.5rem; }

/* Fiche projet */
.back { margin-bottom: 2rem; }
.project-meta { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 1.5rem 0 0; }
.project-meta dt { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
:lang(ar) .project-meta dt { letter-spacing: 0; font-size: .875rem; }
.project-meta dd { margin: .2rem 0 0; font-weight: 600; }
.project-cover { margin: 0 0 3rem; }
.project-cover img { width: 100%; border-radius: var(--radius); }
.project-body { display: grid; gap: 2rem 4rem; grid-template-columns: 1fr; max-width: 980px; margin-bottom: 3rem; }
@media (min-width: 800px) { .project-body { grid-template-columns: repeat(2, 1fr); } }
.project-body h2 { font-size: .8125rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: .8rem; }
:lang(ar) .project-body h2 { letter-spacing: 0; font-size: 1rem; }
.gallery { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery img { width: 100%; border-radius: var(--radius); }

.video { position: relative; aspect-ratio: 16 / 9; background: var(--surface); border-radius: var(--radius); overflow: hidden; margin-bottom: .75rem; }
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { text-decoration: none;
  position: absolute; inset: 0; margin: auto; width: max-content; height: max-content;
  display: inline-flex; align-items: center; gap: .75rem; padding: .9rem 1.4rem; min-height: 48px;
  background: var(--btn); color: var(--on-btn); border: 0; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer;
}
.video-play:hover { background: var(--btn-hover); }
.play-icon { width: 0; height: 0; border-block: 7px solid transparent; border-inline-start: 11px solid currentColor; }

/* ---------- Expertises ---------- */
.expertise-list { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.expertise-list.compact { grid-template-columns: 1fr; }
@media (min-width: 760px) { .expertise-list.compact { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; } }
@media (min-width: 1100px) { .expertise-list.compact { grid-template-columns: repeat(3, 1fr); } }
.expertise-item { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; padding-block: 2rem; border-bottom: 1px solid var(--line); }
.expertise-list:not(.compact) .expertise-item { padding-block: 2.5rem; }
@media (min-width: 900px) {
  .expertise-list:not(.compact) .expertise-item { grid-template-columns: 6rem 1fr; }
  .expertise-list:not(.compact) .expertise-item > div { display: grid; grid-template-columns: 5fr 6fr auto; gap: 1rem 3rem; align-items: baseline; }
  .expertise-list:not(.compact) h3 { font-size: 1.5rem; }
}
.ex-num { font-weight: 700; font-size: .875rem; color: var(--accent); letter-spacing: .08em; padding-top: .2rem; font-variant-numeric: tabular-nums; }
.expertise-item h3 { margin-bottom: .5rem; }
.expertise-item p { margin: 0 0 .75rem; }
.expertise-item .link { white-space: nowrap; }
[id] { scroll-margin-top: 96px; }

/* ---------- Entreprises ---------- */
.companies { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .companies { grid-template-columns: repeat(3, 1fr); } }
.company { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; gap: .35rem; }
.surface .company { background: var(--bg); }
.company-name { font-size: 1.3rem; margin-bottom: .25rem; }
.company-role { color: var(--accent); font-weight: 600; margin: 0; font-size: .9375rem; }
.company p { margin: 0; }
.company-link { margin-top: auto !important; padding-top: 1rem; }

/* ---------- À propos ---------- */
.about-grid { display: grid; gap: 3rem 5rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 7fr 5fr; } }
.prose p { font-size: 1.125rem; color: var(--text); max-width: 38em; }
.prose p:first-child { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.5; }
.facts dl { margin: 0; border-top: 1px solid var(--line); }
.facts dt { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 600; padding-top: 1.5rem; }
:lang(ar) .facts dt { letter-spacing: 0; font-size: .9rem; }
.facts dd { margin: .5rem 0 0; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); color: var(--text-2); }
.facts .vision { color: var(--text); font-size: 1.125rem; }
.about-portrait { margin-bottom: 2rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: .3rem .85rem; font-size: .875rem; color: var(--text); }

/* ---------- Contact ---------- */
.contact-band { border-top: 1px solid var(--line); }
.band-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.band-inner .lead { margin-inline: auto; }
.band-inner .actions { justify-content: center; }
.contact-grid { display: grid; gap: 3rem 5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 7fr 5fr; } }
.contact-main { background: var(--surface); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem); border: 1px solid var(--line); }
.contact-email { margin-bottom: 2rem; }
.big-link { font-size: clamp(1.25rem, 4.2vw, 2.25rem); font-weight: 700; text-decoration: none; letter-spacing: -0.01em; overflow-wrap: anywhere; color: var(--text); font-family: var(--font); }
.big-link:hover { color: var(--accent-light); }
.contact-side { display: grid; gap: 2.5rem; align-content: start; }
.contact-side .label { margin-bottom: .75rem; }
.social-list li { border-bottom: 1px solid var(--line); }
.social-list a { display: flex; justify-content: space-between; align-items: center; padding-block: .8rem; text-decoration: none; min-height: 44px; }

/* ---------- Informations ---------- */
.info h2 { font-size: 1.25rem; margin-top: 2.5rem; color: var(--accent); }
.info p { color: var(--text-2); font-size: 1.0625rem; }
.info p:first-child { font-size: inherit; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 4rem; background: var(--bg); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding-bottom: 3rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand .tifinagh { color: var(--accent); margin: -.5rem 0 1rem; }
.footer-title { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-2); font-weight: 600; }
:lang(ar) .footer-title { letter-spacing: 0; font-size: .875rem; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { text-decoration: none; color: var(--text-2); font-size: .9375rem; display: inline-block; padding-block: .15rem; }
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 1.5rem; font-size: .8125rem; }

/* ---------- Racine & 404 ---------- */
.root-langs, .notfound { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 2rem; }
.root-langs ul { display: flex; flex-wrap: wrap; gap: .75rem; }
.notfound section { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.nf-code { font-size: clamp(5rem, 18vw, 10rem); font-weight: 800; color: var(--accent); line-height: 1; margin: 0; letter-spacing: -0.04em; }
.notfound h1 { font-size: 1.75rem; }

/* ---------- Animations discrètes ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .card-project a:hover .card-media img { transform: none; }
}

@media print {
  .site-header, .preview-banner, .contact-band, .site-footer nav { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- Parcours (CV) ---------- */
.gold { color: var(--accent); font-weight: 600; }
.cv-grid { display: grid; gap: 3rem 5rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .cv-grid { grid-template-columns: 7fr 5fr; } }
.cv-sub { margin-top: 3rem; font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.timeline { border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 9.5rem 1fr; gap: .25rem 1.5rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; } }
.tl-when { color: var(--accent); font-weight: 600; font-size: .9375rem; font-variant-numeric: tabular-nums; padding-top: .1rem; text-align: start; }
.tl-org { margin: 0 0 .2rem; font-weight: 600; }
.timeline p.muted { margin: 0; font-size: .9375rem; }
.tools { margin: 0; display: grid; gap: 1rem; }
.tools dt { font-size: .8125rem; color: var(--text-2); margin-bottom: .4rem; }
.tools dd { margin: 0; }
.ex-tags { margin: .25rem 0 1rem; }
.ex-tags li { font-size: .8125rem; color: var(--text-2); }
@media (min-width: 900px) {
  .expertise-list:not(.compact) .expertise-item > div > h3 { grid-column: 1; grid-row: 1 / span 2; }
  .expertise-list:not(.compact) .expertise-item > div > p { grid-column: 2; grid-row: 1; }
  .expertise-list:not(.compact) .expertise-item > div > .ex-tags { grid-column: 2; grid-row: 2; margin: 0; }
  .expertise-list:not(.compact) .expertise-item > div > .link { grid-column: 3; grid-row: 1; }
}
.page-about .page-head .lead { color: var(--accent); }

/* ---------- WhatsApp flottant ---------- */
.wa-float {
  position: fixed; bottom: 1.25rem; inset-inline-end: 1.25rem; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #0B0B0D;
  display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.45); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); color: #0B0B0D; }
.wa-float svg { width: 30px; height: 30px; }
.btn-wa { background: #25D366; color: #0B0B0D; }
.btn-wa:hover { background: #4BE082; color: #0B0B0D; }
.contact-phones { display: grid; gap: .25rem; margin-bottom: 2rem; }
.contact-phones a { font-size: clamp(1.1rem, 2.6vw, 1.5rem); font-weight: 700; text-decoration: none; font-family: var(--font); }
.contact-main .actions { margin-top: 0; }

/* ---------- Crédit ---------- */
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.credit a { color: var(--accent); font-weight: 700; text-decoration: none; letter-spacing: .04em; }
.credit a:hover { color: var(--accent-light); }

/* ---------- Showreel ---------- */
.video-reel { background:
  radial-gradient(90% 120% at 80% 10%, rgba(var(--accent-rgb), .22), transparent 60%),
  linear-gradient(160deg, #18181c, #0d0d10); border: 1px solid var(--line); }
.reel-years { position: absolute; inset-inline-start: 1.5rem; bottom: 1.25rem; font-weight: 800; font-size: clamp(1.5rem, 5vw, 3.5rem); letter-spacing: -0.03em; color: rgba(245,242,235,.14); font-family: var(--font); }


/* ---------- Icônes réseaux ---------- */
.icon-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.icon-links a {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--text-2);
  display: grid; place-items: center; transition: color .2s, border-color .2s, background .2s;
}
.icon-links a:hover { color: var(--on-btn); background: var(--btn); border-color: var(--btn); }
.icon-links svg, .social-list svg { width: 20px; height: 20px; }
.social-list a > span:first-child { display: inline-flex; align-items: center; gap: .75rem; }
.social-list svg { color: var(--accent); }
.footer-contact { margin-top: 1.25rem; }
.footer-contact a { color: var(--text-2); text-decoration: none; font-size: .9375rem; display: inline-block; padding-block: .15rem; }
.footer-contact a:hover { color: var(--accent-light); }

/* ---------- Accroche du premier écran ---------- */
.hero-headline { font-size: clamp(1rem, 1.4vw, 1.125rem); color: var(--text); font-weight: 500; max-width: 36em; margin-bottom: .5rem; }
.hero-sub { color: var(--accent); font-weight: 600; margin-bottom: 1.25rem; }
.about-domains { margin-top: 2.5rem; }
.about-domains ul { border-top: 1px solid var(--line); margin-bottom: 1.25rem; }
.about-domains li { padding-block: .7rem; border-bottom: 1px solid var(--line); display: flex; gap: 1rem; }
.about-domains li span { color: var(--accent); font-weight: 700; font-size: .875rem; font-variant-numeric: tabular-nums; }

/* ---------- Références ---------- */
.references { border-top: 1px solid var(--line); }
.ref-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .ref-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .ref-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .ref-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.ref-grid li {
  background: #FFFFFF; border-radius: 10px; aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 1rem 1.1rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.ref-grid li:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(var(--accent-rgb), .25); }
.ref-grid li { min-width: 0; overflow: hidden; position: relative; }
.ref-grid img { position: absolute; inset: 14% 12%; width: 76%; height: 72%; object-fit: contain; }

/* ---------- Icônes d'expertise ---------- */
.ex-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0;
  color: var(--accent); background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .35);
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.ex-icon svg { width: 28px; height: 28px; }
.expertise-item:hover .ex-icon { background: var(--btn); color: var(--on-btn); transform: rotate(-4deg); }
.expertise-list:not(.compact) .ex-icon { width: 64px; height: 64px; }
.expertise-list:not(.compact) .ex-icon svg { width: 32px; height: 32px; }
.ex-icon-sm { width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; color: var(--accent); background: rgba(var(--accent-rgb), .1); flex-shrink: 0; }
.ex-icon-sm svg { width: 18px; height: 18px; }
.about-domains li { align-items: center; }
@media (prefers-reduced-motion: reduce) { .expertise-item:hover .ex-icon { transform: none; } }

/* ---------- Bouton CV & PORTFOLIO ---------- */
.btn-cv { gap: .6rem; letter-spacing: .04em; }
.btn-cv svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-note { font-size: .75rem; font-weight: 500; opacity: .75; letter-spacing: 0; }
.cv-bar { margin-bottom: 2rem; }
.head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

/* ---------- Behind the scenes ---------- */
.bts-grid figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.bts-grid a { display: block; cursor: zoom-in; }
.bts-grid img { width: 100%; transition: transform .6s var(--ease), filter .4s; }
.bts-grid a:hover img { transform: scale(1.04); }
.bts-grid figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem .9rem; font-size: .875rem; color: var(--text);
  background: linear-gradient(transparent, rgba(11,11,13,.88)); pointer-events: none;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.bts-grid figure:hover figcaption, .bts-grid a:focus-visible + figcaption { opacity: 1; transform: none; }
@media (hover: none) { .bts-grid figcaption { opacity: 1; transform: none; } }
.bts-home { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .bts-home { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bts-home img { aspect-ratio: 4 / 5; object-fit: cover; }
.bts-masonry { columns: 1; column-gap: .75rem; }
@media (min-width: 640px) { .bts-masonry { columns: 2; } }
@media (min-width: 1100px) { .bts-masonry { columns: 3; } }
.bts-masonry li { break-inside: avoid; margin-bottom: .75rem; }
.bts { border-top: 1px solid var(--line); }
#coulisses { border-top: 0; }

/* Visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,5,7,.94); display: grid; grid-template-rows: 1fr auto; padding: 3.5rem 4.5rem 1.5rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; margin: auto; object-fit: contain; border-radius: var(--radius); min-height: 0; }
.lightbox p { text-align: center; color: var(--text-2); margin: 1rem 0 0; }
.lightbox button {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(23,23,27,.9);
  color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.lightbox button:hover { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.lb-close { top: 1rem; inset-inline-end: 1rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { inset-inline-start: 1rem; }
.lb-next { inset-inline-end: 1rem; }
[dir="rtl"] .lb-prev span, [dir="rtl"] .lb-next span { display: inline-block; transform: scaleX(-1); }
@media (max-width: 640px) { .lightbox { padding: 4rem .75rem 1.25rem; } .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; } }

/* ---------- Chaînes YouTube ---------- */
.yt-channels { margin-top: 2rem; padding: 1.5rem 1.75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.yt-channels .actions { margin-top: 0; }
.yt-title { font-weight: 700; font-size: 1.125rem; margin: 0 0 .2rem; }
.yt-channels p.small { margin: 0; }
.btn-yt svg { width: 20px; height: 20px; color: #FF3B30; }
.company-link { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }

.site-footer .yt-channels { margin: 0 0 3.5rem; }
.bts-sub { margin: 3rem 0 1.25rem; font-size: 1.375rem; }
.bts-videos { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .bts-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bts-videos .video { margin-bottom: .5rem; }
.bts-vtitle { position: absolute; inset-inline: 1.25rem; top: 1.1rem; font-weight: 600; font-size: 1rem; color: var(--text); z-index: 1; }
