/* ==========================================================================
   BET 3D-Concept — charte issue du logo
   Brun terre #663300 · Brun tagline #7A4A1C · Noir #000 · Gris rails #666
   ========================================================================== */

:root {
    --ink: #14110e;
    --ink-2: #1e1a16;
    --ink-3: #2a2520;
    --earth: #663300;
    --earth-2: #7a4a1c;
    --copper: #a0622e;
    --copper-light: #c9a27a;
    --sand: #e8dccb;
    --sand-2: #d9c8b0;
    --chalk: #f6f1ea;
    --paper: #fbf8f4;
    --grey: #666666;
    --muted: #6f655b;
    --line: rgba(20, 17, 14, .12);
    --line-light: rgba(246, 241, 234, .12);

    --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
    --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --font-ar: 'Noto Kufi Arabic', sans-serif;

    --radius: 22px;
    --radius-sm: 12px;
    --container: 1280px;
    --gutter: clamp(16px, 4vw, 40px);
    --ease: cubic-bezier(.2, .7, .1, 1);
    --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
em { font-style: normal; color: var(--earth); }
::selection { background: var(--earth); color: var(--chalk); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--chalk); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Typo ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: .6em;
    font-family: var(--font-mono); font-size: .76rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: .14em; color: var(--earth-2);
    margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.eyebrow .dot { display: none; }
.eyebrow-light { color: var(--copper-light); }

.h2 {
    font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
    font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: .95; letter-spacing: -.005em;
}
.h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.05; text-transform: uppercase; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--muted); max-width: 60ch; }
.section-lead { color: var(--muted); max-width: 44ch; }
.dark em, .dark .h2 em { color: var(--copper-light); }

/* ---------- Boutons ---------- */
.btn {
    --bg: var(--ink); --fg: var(--chalk);
    display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    padding: 16px 26px; border-radius: 999px; border: 1px solid transparent;
    background: var(--bg); color: var(--fg);
    font: 600 .95rem/1 var(--font-body); cursor: pointer; white-space: nowrap;
    transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s;
    position: relative; overflow: hidden; isolation: isolate;
}
.btn::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: var(--earth); transform: translateY(101%); border-radius: inherit;
    transition: transform .45s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn:hover { transform: translateY(-2px); }
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn-dark { --bg: var(--ink); --fg: var(--chalk); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--chalk); border-color: var(--earth); }
.btn-light { --bg: var(--chalk); --fg: var(--ink); }
.btn-light::after { background: var(--ink); }
.btn-light:hover { color: var(--chalk); }
.btn-outline-light { --bg: transparent; --fg: var(--chalk); border-color: var(--line-light); }
.btn-sm { padding: 12px 20px; font-size: .88rem; }
.btn-block { width: 100%; }

.link-arrow {
    display: inline-flex; align-items: center; gap: .5em; margin-top: 28px;
    font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 4px; color: var(--earth);
}
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translate(3px, -3px); }

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
    transition: background .4s, box-shadow .4s, height .4s var(--ease);
}
/* Le fond flouté est porté par un pseudo-élément : un backdrop-filter sur l'en-tête lui-même
   ferait du header le bloc conteneur du menu mobile (position: fixed), qui ne couvrirait plus l'écran. */
.site-header::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: transparent; transition: background .4s, box-shadow .4s;
}
.site-header.is-scrolled { --header-h: 66px; }
.site-header.is-scrolled::before {
    background: rgba(251, 248, 244, .82);
    backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
    box-shadow: 0 1px 0 var(--line);
}
body.nav-open .site-header::before { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { flex: none; margin-right: auto; }
.brand img { height: 22px; width: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a {
    display: block; padding: 10px 14px; border-radius: 999px;
    font-weight: 600; font-size: .92rem; color: var(--ink-3); transition: background .25s, color .25s;
}
.nav a:hover { background: rgba(102, 51, 0, .07); color: var(--earth); }
.nav a[aria-current] { color: var(--earth); background: rgba(102, 51, 0, .09); }
.nav-mobile-extra { display: none; }
.burger { display: none; }

/* ---------- Blueprint grid ---------- */
.blueprint {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px),
        linear-gradient(rgba(20, 17, 14, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 17, 14, .045) 1px, transparent 1px);
    background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
    background-position: -1px -1px;
    mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 85%);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + clamp(40px, 7vw, 90px)) 0 0; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; width: 60vw; height: 60vw; right: -18vw; top: -18vw; border-radius: 50%;
    background: radial-gradient(circle, rgba(160, 98, 46, .18), transparent 65%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.hero-title {
    font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
    font-size: clamp(3rem, 6.6vw, 6.9rem); line-height: .88; letter-spacing: -.01em; margin-bottom: 30px;
}
.hero-title .line { display: block; }
@media (min-width: 601px) { .hero-title .line { white-space: nowrap; } }
.hero-title .accent {
    color: transparent; -webkit-text-stroke: 2px var(--earth);
    background: repeating-linear-gradient(-45deg, var(--earth) 0 2px, transparent 2px 7px);
    -webkit-background-clip: text; background-clip: text;
}
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.hero-facts li { padding: 18px 16px 0 0; }
.hero-facts li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.hero-facts strong { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1; font-weight: 800; color: var(--earth); }
.hero-facts span { font-size: .82rem; color: var(--muted); }

.hero-visual { position: relative; transform-style: preserve-3d; transition: transform .6s var(--ease); margin-right: calc(var(--gutter) * -1.5); }
.hero-arabic {
    position: absolute; left: 4%; top: 6%; font-family: var(--font-ar); font-weight: 700;
    font-size: clamp(1.2rem, 2vw, 1.7rem); color: var(--earth); line-height: 1.4;
    padding: 4px 16px; border-left: 2px solid var(--earth);
}

/* Isométrie */
.iso { width: 100%; height: auto; overflow: visible; }
.iso line, .iso polygon {
    stroke-dasharray: 1; stroke-dashoffset: 1; fill: none; vector-effect: non-scaling-stroke;
    animation: draw 1.1s var(--ease) forwards; animation-delay: calc(var(--i) * 18ms + .2s);
}
.iso-grid line { stroke: rgba(20, 17, 14, .13); stroke-width: 1; animation-duration: 1.4s; animation-delay: calc(var(--i) * 25ms); }
.iso-back line { stroke: rgba(20, 17, 14, .28); stroke-width: 1; stroke-dasharray: 1; }
.iso-front line { stroke: var(--ink); stroke-width: 1.6; }
.iso-roof polygon { stroke: var(--ink); stroke-width: 1.6; fill: rgba(232, 220, 203, 0); animation-name: draw, fillRoof; animation-duration: 1.1s, .8s; animation-delay: calc(var(--i) * 18ms + .2s), 2.4s; }
.iso-accent polygon { stroke: var(--earth); stroke-width: 2.2; fill: rgba(102, 51, 0, 0); animation-name: draw, fillAccent; animation-duration: 1.1s, .8s; animation-delay: 1.4s, 2.6s; }
.iso-dim line { stroke: var(--earth-2); stroke-width: 1.2; }
.iso-label, .iso-tag text { font: 500 12px var(--font-mono); fill: var(--earth-2); opacity: 0; animation: fadeIn .6s 2.8s forwards; }
.iso-tag circle { fill: var(--earth); opacity: 0; animation: fadeIn .6s 2.8s forwards; }
.iso-tag line { stroke: var(--earth); stroke-width: 1; opacity: 0; animation: fadeIn .6s 2.8s forwards; stroke-dasharray: none; stroke-dashoffset: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillRoof { to { fill: rgba(232, 220, 203, .55); } }
@keyframes fillAccent { to { fill: rgba(102, 51, 0, .16); } }
@keyframes fadeIn { to { opacity: 1; } }

/* Ticker */
.ticker { margin-top: clamp(50px, 7vw, 90px); background: var(--ink); color: var(--chalk); overflow: hidden; padding: 18px 0; }
.ticker-track { display: flex; width: max-content; gap: 28px; animation: scroll 40s linear infinite; }
.ticker span { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; letter-spacing: .02em; white-space: nowrap; }
.ticker .sep { color: var(--copper); font-size: .9rem; align-self: center; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section.dark { background: var(--ink); color: var(--chalk); }
.section.dark .lead, .section.dark p { color: rgba(246, 241, 234, .72); }
.section-head { margin-bottom: clamp(40px, 6vw, 70px); max-width: 900px; }
.section-head.split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 6vw, 90px); align-items: start; }

/* Intro */
.intro-grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.statement { font-size: clamp(1.5rem, 2.9vw, 2.55rem); line-height: 1.22; font-weight: 500; letter-spacing: -.015em; }

/* ---------- Bento services ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
    position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 290px;
    padding: 30px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-light);
    overflow: hidden; transition: transform .5s var(--ease), border-color .4s;
}
.card-wide { grid-column: span 2; background: linear-gradient(135deg, var(--earth), #3d1f05); }
.card-wide h3 { font-size: clamp(2rem, 3.6vw, 3rem); }
.card:hover { transform: translateY(-6px); border-color: rgba(201, 162, 122, .4); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; }
.card-icon {
    display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
    background: rgba(201, 162, 122, .12); color: var(--copper-light); flex: none;
}
.card-icon .icon { width: 26px; height: 26px; }
.card-icon.big { width: 64px; height: 64px; border-radius: 18px; }
.card-icon.big .icon { width: 32px; height: 32px; }
.card-num { color: rgba(246, 241, 234, .4); }
.card h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.9rem; line-height: 1; margin-top: 40px; }
.card p { font-size: .95rem; color: rgba(246, 241, 234, .66) !important; max-width: 46ch; }
.card-tag { color: var(--copper-light); opacity: .85; }
.card-wide .card-tag, .card-wide .card-icon { color: var(--sand); }
.card-go {
    position: absolute; right: 24px; bottom: 24px; width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center; background: var(--chalk); color: var(--ink);
    transform: scale(0) rotate(-45deg); transition: transform .45s var(--ease);
}
.card:hover .card-go { transform: scale(1) rotate(0); }

/* Halo qui suit la souris */
.spot { --mx: 50%; --my: 50%; }
.spot::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(201, 162, 122, .16), transparent 60%);
}
.spot:hover::before { opacity: 1; }

/* ---------- Expertises (home) ---------- */
.accordion-list { border-top: 1px solid var(--line); }
.exp-row {
    display: grid; grid-template-columns: 70px 1fr 1.3fr 56px; gap: 24px; align-items: center;
    padding: 30px 0; border-bottom: 1px solid var(--line); position: relative;
    transition: padding .45s var(--ease), color .3s;
}
.exp-row::before {
    content: ''; position: absolute; inset: 0; background: var(--sand); transform: scaleY(0); transform-origin: bottom;
    transition: transform .45s var(--ease); z-index: -1; border-radius: 6px;
}
.exp-row:hover { padding-left: 20px; padding-right: 20px; }
.exp-row:hover::before { transform: scaleY(1); }
.exp-num { color: var(--earth-2); }
.exp-title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1; }
.exp-text { color: var(--muted); font-size: .96rem; }
.exp-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); transition: background .3s, color .3s, transform .45s var(--ease); }
.exp-row:hover .exp-icon { background: var(--earth); color: var(--chalk); transform: rotate(45deg); border-color: var(--earth); }

/* ---------- Méthode ---------- */
.process { background: var(--chalk); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 32px 26px 34px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.step::after {
    content: ''; position: absolute; left: 26px; right: 26px; top: 0; height: 3px; border-radius: 0 0 3px 3px;
    background: var(--earth); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease);
    transition-delay: calc(var(--d, 0) * 150ms + .2s);
}
.step.is-in::after { transform: scaleX(1); }
.step-num { display: block; font-size: .9rem; color: var(--earth); margin-bottom: 60px; }
.step h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.7rem; line-height: 1; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Secteurs ---------- */
.sectors { padding-bottom: clamp(60px, 8vw, 110px); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 14px; animation: scroll 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
    white-space: nowrap; padding: 18px 30px; border-radius: 999px; border: 1px solid var(--line);
    font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; text-transform: uppercase;
    transition: background .3s, color .3s;
}
.marquee span:nth-child(3n+1) { background: var(--sand); border-color: transparent; }
.marquee span:hover { background: var(--earth); color: var(--chalk); }

/* ---------- CTA ---------- */
.cta { padding: 0 0 clamp(80px, 10vw, 130px); }
.section.dark + .cta, .process + .cta { padding-top: clamp(80px, 10vw, 130px); }
.cta-box {
    position: relative; overflow: hidden; border-radius: calc(var(--radius) + 8px);
    background: var(--earth); color: var(--chalk); padding: clamp(40px, 6vw, 80px);
    display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap;
}
.cta-box .h2 em { color: var(--sand); }
.mesh {
    /* rappel de la trame du ruban du logo */
    position: absolute; inset: 0; pointer-events: none; opacity: .22;
    background-image:
        repeating-linear-gradient(45deg, rgba(232, 220, 203, .6) 0 1px, transparent 1px 14px),
        repeating-linear-gradient(-45deg, rgba(232, 220, 203, .6) 0 1px, transparent 1px 14px);
    mask-image: linear-gradient(115deg, transparent 35%, #000 80%);
    -webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 80%);
}
.cta-text, .cta-actions { position: relative; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.cta-phone { display: inline-flex; gap: .6em; align-items: center; font-weight: 600; color: var(--sand); }

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(50px, 8vw, 110px)) 0 clamp(50px, 7vw, 90px); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-title {
    font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
    font-size: clamp(3rem, 7.6vw, 6.8rem); line-height: .9; max-width: 15ch; margin-bottom: 28px; position: relative;
}
.page-hero .container { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); margin-bottom: 36px; }
.crumbs a:hover { color: var(--earth); }

/* ---------- Agence ---------- */
.prose p + p { margin-top: 1.1em; }
.prose p { color: var(--muted); font-size: 1.08rem; }
.prose .h3 { margin: 2em 0 .6em; }
.prose .h3:first-child { margin-top: 0; }
.prose a { color: var(--earth); text-decoration: underline; }
.narrow { max-width: 780px; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value { position: relative; overflow: hidden; padding: 32px 26px; border-radius: var(--radius); border: 1px solid var(--line-light); background: var(--ink-2); }
.value-num { color: var(--copper-light); display: block; margin-bottom: 50px; }
.value h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 2rem; margin-bottom: 10px; }
.value p { font-size: .95rem; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.checklist li .icon { color: var(--chalk); background: var(--earth); border-radius: 50%; padding: 4px; width: 24px; height: 24px; margin-top: 1px; }
.checklist.big li { font-size: 1.1rem; padding: 20px 0; }

/* ---------- Services list ---------- */
.service-list { border-top: 1px solid var(--line); }
.service-row {
    display: grid; grid-template-columns: 220px 1.4fr 1fr 60px; gap: clamp(20px, 3vw, 44px);
    padding: 44px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.service-row-head { display: flex; flex-direction: column; gap: 16px; }
.service-row-num { color: var(--earth-2); }
.service-row .card-icon { background: var(--sand); color: var(--earth); }
.service-row-tag { color: var(--earth-2); margin-bottom: 10px; }
.service-row h2 a { transition: color .3s; }
.service-row h2 a:hover { color: var(--earth); }
.service-row-body p:last-child { color: var(--muted); margin-top: 14px; }
.service-row-items li { padding: 8px 0 8px 22px; position: relative; font-size: .94rem; border-bottom: 1px dashed var(--line); }
.service-row-items li::before { content: ''; position: absolute; left: 0; top: 17px; width: 8px; height: 8px; border: 1.5px solid var(--earth); transform: rotate(45deg); }
.round-link { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background .3s, color .3s, transform .45s var(--ease); }
.round-link:hover { background: var(--earth); color: var(--chalk); transform: rotate(45deg); }

/* Détail service */
.service-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.side-card { position: sticky; top: calc(var(--header-h) + 24px); padding: 34px; border-radius: var(--radius); background: var(--chalk); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.side-card .card-icon { background: var(--earth); color: var(--chalk); }
.side-card p { color: var(--muted); font-size: .95rem; }
.side-phone { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font-weight: 600; color: var(--earth); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--sand); font-size: .84rem; font-weight: 600; color: var(--earth); }
.next-service { padding: 0 0 clamp(60px, 8vw, 110px); }
.next-link { display: block; padding-top: 50px; border-top: 1px solid var(--line); }
.next-title { display: flex; align-items: center; gap: .3em; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.6rem, 7vw, 6rem); line-height: .95; transition: color .3s; }
.next-title .icon { width: .8em; height: .8em; transition: transform .45s var(--ease); }
.next-link:hover .next-title { color: var(--earth); }
.next-link:hover .next-title .icon { transform: translateX(14px); }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mini { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--radius-sm); background: var(--ink-2); border: 1px solid var(--line-light); font-weight: 600; transition: border-color .3s; }
.mini:hover { border-color: rgba(201, 162, 122, .4); }
.mini .card-icon { width: 44px; height: 44px; }
.mini-go { margin-left: auto; color: var(--copper-light); }

/* ---------- Expertises page ---------- */
.exp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.exp-card { display: flex; flex-direction: column; gap: 18px; padding: clamp(30px, 4vw, 48px); border-radius: var(--radius); background: var(--chalk); border: 1px solid var(--line); scroll-margin-top: 100px; transition: transform .5s var(--ease), box-shadow .5s; }
.exp-card:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -30px rgba(102, 51, 0, .35); }
.exp-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; color: var(--muted); }
.exp-card .card-icon { background: var(--earth); color: var(--chalk); }
.exp-card > p { color: var(--muted); }
.exp-card .link-arrow { margin-top: auto; align-self: flex-start; }
.timeline { counter-reset: t; }
.timeline li { counter-increment: t; display: grid; grid-template-columns: 60px 1fr; column-gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line-light); }
.timeline li::before { content: '0' counter(t); grid-row: span 2; font-family: var(--font-mono); color: var(--copper-light); font-size: .85rem; padding-top: 6px; }
.timeline strong { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; }
.timeline span { color: rgba(246, 241, 234, .7); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 4vw, 50px); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 10px; }
.contact-item { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--paper); transition: border-color .3s, background .3s; font-weight: 600; }
a.contact-item:hover { border-color: var(--earth); background: var(--chalk); }
.contact-item .card-icon { background: var(--sand); color: var(--earth); }
.contact-item small { display: block; font-weight: 400; color: var(--muted); margin-bottom: 2px; }
.map { margin-top: 6px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--chalk); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.6) sepia(.25); }
.form-card { padding: clamp(26px, 4vw, 48px); border-radius: var(--radius); background: var(--chalk); border: 1px solid var(--line); }
.form-card .h3 { margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; position: relative; }
.field-label { display: inline-block; font-weight: 600; font-size: .88rem; margin-bottom: 8px; }
.field-optional { font-size: .75rem; color: var(--muted); margin-left: 6px; }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
    padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--sand-2); background: var(--paper);
    transition: border-color .25s, box-shadow .25s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23663300' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--earth); box-shadow: 0 0 0 4px rgba(102, 51, 0, .12); }
.has-error input, .has-error select, .has-error textarea { border-color: #b3261e; }
.field-errors { color: #b3261e; font-size: .84rem; margin-top: 6px; }
.hp-row { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 14px; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 24px; font-weight: 500; }
.alert-success { background: #e7efe2; color: #2d5a1e; }
.alert-error { background: #f8e3e1; color: #8c1d18; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ink); color: rgba(246, 241, 234, .68); padding: clamp(70px, 9vw, 120px) 0 28px; overflow: hidden; isolation: isolate; }
.site-footer::before {
    content: ''; position: absolute; z-index: -1; width: 70vw; height: 70vw; left: -20vw; top: -40vw; border-radius: 50%;
    background: radial-gradient(circle, rgba(160, 98, 46, .22), transparent 62%); pointer-events: none;
}
.footer-grid-bg {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(var(--line-light) 1px, transparent 1px), linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
    background-size: 120px 120px; opacity: .5;
    mask-image: linear-gradient(180deg, #000, transparent 55%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 55%);
}

.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr .8fr; gap: 40px; padding-bottom: 56px; }
.footer-title { font-family: var(--font-mono); font-size: .74rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--copper-light); margin-bottom: 22px; }
.footer-links li + li { margin-top: 10px; }
.footer-links a, .footer-contact a { font-size: .94rem; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color .25s, background-size .35s var(--ease); }
.footer-links a:hover, .footer-contact a:hover { color: var(--chalk); background-size: 100% 1px; }
.footer-contact li { display: flex; gap: 12px; font-size: .94rem; }
.footer-contact li + li { margin-top: 14px; }
.footer-contact .icon { color: var(--copper-light); margin-top: 3px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 26px; border-top: 1px solid var(--line-light); font-size: .84rem; }
.footer-top-link { display: inline-flex; gap: 8px; align-items: center; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-light); transition: background .3s, color .3s; }
.footer-top-link:hover { background: var(--chalk); color: var(--ink); }

/* Haut du footer — accroche typographique */
.ft-head { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: end; padding-bottom: clamp(44px, 5vw, 64px); }
.ft-statement { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: .9; color: var(--chalk); }
.ft-statement em { color: var(--copper); }
.ft-head-side { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.ft-head-side p { font-size: .98rem; max-width: 40ch; }
.ft-head-side .ft-arabic { font-family: var(--font-ar); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.3; color: var(--copper-light); }
.ft-head-side .btn { margin-top: 6px; }

/* Bande contact : trois grandes entrées séparées par des filets */
.ft-contact { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); margin-bottom: clamp(50px, 6vw, 70px); }
.ft-contact li + li { border-left: 1px solid var(--line-light); }
.ft-contact a { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 30px 28px; transition: background .35s; }
.ft-contact li:first-child a { padding-left: 0; }
.ft-contact a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.ft-contact a:hover::after { transform: scaleX(1); }
.ft-contact small { display: flex; align-items: center; gap: 8px; color: var(--copper-light); text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; }
.ft-contact small .icon { width: 16px; height: 16px; }
.ft-contact span { font-size: clamp(1.1rem, 1.7vw, 1.45rem); font-weight: 600; color: var(--chalk); overflow-wrap: anywhere; transition: color .3s; }
.ft-contact a:hover span { color: var(--copper-light); }
.ft-contact em { color: rgba(246, 241, 234, .5); font-size: .74rem; }
.footer-links.two { columns: 2; column-gap: 28px; }
.footer-links.two li { break-inside: avoid; margin: 0 0 10px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Photos
   ========================================================================== */

/* Grande photo de l'accueil : se dévoile au scroll + parallaxe */
.showcase {
    position: relative; margin: clamp(60px, 8vw, 110px) 0 0; border-radius: calc(var(--radius) + 8px);
    overflow: hidden; aspect-ratio: 16 / 8; background: var(--sand);
    clip-path: inset(6% 4% round 30px); transition: clip-path 1.4s var(--ease);
}
.showcase.is-in { clip-path: inset(0 0 round 30px); }
.showcase img, .photo-band img { width: 100%; height: 118%; object-fit: cover; transform: translateY(var(--py, 0)); will-change: transform; }
.showcase::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(20, 17, 14, 0) 45%, rgba(20, 17, 14, .75));
}
.showcase-caption {
    position: absolute; left: clamp(20px, 4vw, 50px); bottom: clamp(20px, 4vw, 44px); z-index: 1;
    color: var(--chalk); display: flex; flex-direction: column; gap: 10px; max-width: 70%;
}
.showcase-caption .mono { color: var(--copper-light); text-transform: uppercase; letter-spacing: .14em; }
.showcase-title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.8rem, 4.4vw, 4rem); line-height: .95; }
.showcase-title em { color: var(--sand); }
.showcase-tags { position: absolute; top: clamp(16px, 3vw, 30px); right: clamp(16px, 3vw, 30px); z-index: 1; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.showcase-tags li { padding: 8px 14px; border-radius: 999px; background: rgba(20, 17, 14, .45); color: var(--chalk); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(246, 241, 234, .2); }

/* Bandeau photo des fiches services */
.photo-band {
    margin: clamp(30px, 5vw, 60px) 0 0; border-radius: calc(var(--radius) + 8px); overflow: hidden;
    aspect-ratio: 21 / 9;
}
.photo-band img { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease); }
.photo-band.is-in img { clip-path: inset(0); }

/* Photo en fond des cartes services */
.card > *:not(.card-bg) { position: relative; z-index: 1; }
.card-bg {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
    opacity: .28; filter: grayscale(.35) contrast(1.05); transform: scale(1.04);
    transition: opacity .6s var(--ease), transform 1.2s var(--ease), filter .6s;
}
.card::after {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(20, 17, 14, .15) 0%, rgba(20, 17, 14, .92) 78%);
}
.card-wide::after { background: linear-gradient(115deg, rgba(102, 51, 0, .92) 20%, rgba(61, 31, 5, .55) 100%); }
.card-wide .card-bg { opacity: .7; }
.card:hover .card-bg { opacity: .55; transform: scale(1.1); filter: grayscale(0); }
.card-wide:hover .card-bg { opacity: .9; }
.card .card-go { z-index: 2; position: absolute; }
.spot::before { z-index: 1; }

/* Vignette liste services */
.service-row-img { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); }
.service-row-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.service-row:hover .service-row-img img { transform: scale(1.08); }
.service-row-img span { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; background: var(--chalk); color: var(--earth); }

/* Grille photo + texte à hauteur égale (pas de vide sous la colonne la plus courte) */
.media-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.media-grid.reverse { grid-template-columns: 1.1fr 1fr; }
.photo-fill { position: relative; margin: 0; min-height: 380px; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.photo-fill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo-fill:hover img { transform: scale(1.04); }
.media-body { display: flex; flex-direction: column; justify-content: center; gap: 32px; }
.media-body .link-arrow, .media-body .btn { margin-top: 0; align-self: flex-start; }
.media-foot { padding-top: 28px; border-top: 1px solid var(--line); }
.media-foot .eyebrow { margin-bottom: 14px; }
.media-body .checklist li:first-child { padding-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .header-cta { display: none; }
    .steps, .values { grid-template-columns: repeat(2, 1fr); }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .footer-cols > :first-child { grid-column: 1 / -1; }
    .ft-head { grid-template-columns: 1fr; align-items: start; }
    .service-row { grid-template-columns: 180px 1fr 60px; }
    .service-row-items { grid-column: 2 / 3; }
    .round-link { grid-column: 3; grid-row: 1; }
}

@media (max-width: 900px) {
    :root { --header-h: 68px; }
    body { font-size: 16px; }
    .burger {
        display: grid; place-content: center; gap: 6px; width: 46px; height: 46px; border-radius: 50%;
        border: 1px solid var(--line); background: var(--paper); cursor: pointer; position: relative; z-index: 2;
    }
    .burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease); }
    .burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
    .burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
    .nav {
        position: fixed; inset: 0; background: var(--paper); padding: calc(var(--header-h) + 30px) var(--gutter) 40px;
        display: flex; flex-direction: column; justify-content: space-between;
        clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease); z-index: 1;
    }
    .nav.is-open { clip-path: inset(0 0 0 0); }
    .nav ul { flex-direction: column; gap: 0; }
    .nav a { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 2.6rem; line-height: 1.1; padding: 10px 0; border-radius: 0; background: none !important; border-bottom: 1px solid var(--line); }
    .nav-mobile-extra { display: flex; flex-direction: column; gap: 12px; }
    .nav-mobile-extra a { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 1rem; text-transform: none; font-weight: 600; border: 0; padding: 0; color: var(--earth); }
    .brand { position: relative; z-index: 2; }
    .brand img { height: 17px; }
    body.nav-open { overflow: hidden; }

    .hero-grid, .two-col, .service-detail, .contact-grid, .media-grid, .media-grid.reverse { grid-template-columns: 1fr; }
    .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
    .hero-arabic { top: 0; }
    .intro-grid { grid-template-columns: 1fr; gap: 0; }
    .bento { grid-template-columns: 1fr 1fr; }
    .exp-row { grid-template-columns: 50px 1fr 50px; }
    .exp-text { grid-column: 2 / 3; }
    .exp-icon { grid-column: 3; grid-row: 1; }
    .exp-grid { grid-template-columns: 1fr; }
    .side-card { position: static; }
    .showcase { aspect-ratio: 4 / 3; }
    .showcase-caption { max-width: 90%; }
    .photo-band { aspect-ratio: 16 / 10; }
    .media-grid.reverse .photo-fill { order: -1; }
    .photo-fill { min-height: 0; aspect-ratio: 4 / 3; }
}

@media (max-width: 600px) {
    .bento, .steps, .values { grid-template-columns: 1fr; }
    .card-wide { grid-column: auto; }
    .card { min-height: 0; }
    .hero-facts { grid-template-columns: 1fr; }
    .hero-facts li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-bottom: 14px; }
    .hero-facts li { padding: 14px 0; }
    .hero-actions .btn { flex: 1 1 100%; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .footer-cols { gap: 40px 24px; }
    .ft-contact { grid-template-columns: 1fr; }
    .ft-contact li + li { border-left: 0; border-top: 1px solid var(--line-light); }
    .ft-contact a { padding: 22px 0; }
    .footer-links.two { columns: 1; }
    .service-row { grid-template-columns: 1fr 56px; padding: 34px 0; }
    .service-row-img { grid-column: 1 / 2; aspect-ratio: 16 / 9; }
    .service-row-body, .service-row-items { grid-column: 1 / -1; }
    .round-link { grid-column: 2; grid-row: 1; justify-self: end; }
    .exp-row { grid-template-columns: 1fr 50px; gap: 12px; }
    .exp-num { grid-column: 1 / -1; }
    .exp-title { grid-column: 1; }
    .exp-text { grid-column: 1 / -1; }
    .exp-icon { grid-column: 2; grid-row: 2; }
    .cta-box { flex-direction: column; align-items: flex-start; }
    .showcase-tags { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .iso line, .iso polygon { stroke-dashoffset: 0; }
    .js .reveal { opacity: 1; transform: none; }
    .showcase, .photo-band img { clip-path: none; }
}
.ft-statement span, .ft-statement em { display: block; }
@media (min-width: 601px) { .ft-statement span, .ft-statement em { white-space: nowrap; } }

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-float {
    position: fixed; right: clamp(16px, 2.5vw, 28px); bottom: clamp(16px, 2.5vw, 28px); z-index: 60;
    display: inline-flex; align-items: center; gap: 10px; height: 60px; padding: 0 18px 0 16px; border-radius: 999px;
    background: #25d366; color: #fff; font-weight: 700; font-size: .92rem;
    box-shadow: 0 12px 30px -8px rgba(18, 140, 69, .55), 0 2px 6px rgba(0, 0, 0, .15);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.wa-float::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25d366;
    animation: wa-ping 2.6s var(--ease) infinite; pointer-events: none;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -8px rgba(18, 140, 69, .6), 0 2px 6px rgba(0, 0, 0, .15); }
.wa-icon { width: 28px; height: 28px; }
@keyframes wa-ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
.contact-wa .card-icon { background: #25d366; color: #fff; }
@media (max-width: 600px) {
    .wa-float { width: 58px; height: 58px; padding: 0; justify-content: center; }
    .wa-label { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }

/* ---------- Hero : photo + maquette 3D côte à côte ---------- */
.hero-media { position: relative; padding-bottom: 14%; }
.hero-photo {
    position: relative; margin: 0 0 0 20%; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--sand);
    box-shadow: 0 40px 80px -40px rgba(61, 31, 5, .55);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 42% center; transform: scale(1.12); animation: heroZoom 2.2s var(--ease) .1s forwards; }
.hero-photo::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(20, 17, 14, .45) 0%, rgba(20, 17, 14, 0) 35%); }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-photo .hero-arabic {
    left: 22px; top: 22px; right: auto; bottom: auto; z-index: 1; color: var(--chalk);
    border-left-color: var(--copper-light); text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
.hero-media .hero-visual {
    position: absolute; left: 0; bottom: 0; width: 64%; margin: 0; padding: 30px 8px 4px;
    background: rgba(251, 248, 244, .88); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 30px 60px -30px rgba(20, 17, 14, .45);
}
.hero-visual-tag { position: absolute; top: 12px; left: 18px; color: var(--earth-2); font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; }

@media (max-width: 900px) {
    .hero-media { max-width: 540px; width: 100%; margin: 10px auto 0; }
    .hero-media .hero-visual { width: 66%; margin: 0; max-width: none; }
    .hero-photo .hero-arabic { top: 18px; }
}
@media (max-width: 600px) {
    .hero-photo { margin-left: 12%; }
    .hero-media .hero-visual { width: 74%; }
}
@media (prefers-reduced-motion: reduce) { .hero-photo img { transform: none; animation: none; } }
