/* =====================================================================
   Tech Center Academy — Site vitrine public
   Fichier autonome (aucune librairie externe). Cache-busté via ?v=mtime.
   Palette : navy industriel / bleu électrique / rouge signal.
   ===================================================================== */

:root {
    --navy: #071b33;
    --navy-2: #061a30;
    --navy-3: #04121f;
    --ink: #0e1b2c;
    --muted: #5b6c82;
    --blue: #0b63ce;
    --blue-2: #2e8bff;
    --blue-soft: #eaf3ff;
    --red: #e11d2e;
    --green: #25d366;
    --gold: #f5a623;
    --bg: #f6f9fd;
    --card: #ffffff;
    --line: rgba(9, 30, 60, 0.1);
    --line-strong: rgba(9, 30, 60, 0.16);
    --radius: 16px;
    --container: 1240px;
    --header-h: 78px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --shadow-sm: 0 1px 2px rgba(9, 30, 60, 0.05), 0 14px 34px -20px rgba(9, 30, 60, 0.28);
    --shadow-md: 0 2px 4px rgba(9, 30, 60, 0.05), 0 24px 50px -24px rgba(9, 30, 60, 0.34);
    --shadow-lg: 0 40px 90px -40px rgba(9, 30, 60, 0.5);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
    margin: 0;
    background: var(--card);
    color: var(--ink);
    font-family: "Segoe UI", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

html[lang="ar"] body {
    font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", "Dubai", "Geeza Pro", Arial, sans-serif;
    line-height: 1.8;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
summary { cursor: pointer; }
[hidden] { display: none !important; }

::selection { background: rgba(11, 99, 206, 0.9); color: #fff; }

:where(a, button, summary, [tabindex]):focus-visible {
    outline: 3px solid #7db8ff;
    outline-offset: 3px;
    border-radius: 6px;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wrap {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(18px, 4vw, 34px);
}

.icon { width: 24px; height: 24px; }

/* ------------------------------------------------------------------ */
/* Boutons                                                            */
/* ------------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    padding: 0.88em 1.4em;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.005em;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
        background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: linear-gradient(135deg, #0b63ce 0%, #2385f5 100%);
    color: #fff;
    box-shadow: 0 18px 34px -18px rgba(11, 99, 206, 0.95);
}
.btn--primary:hover { box-shadow: 0 24px 44px -18px rgba(11, 99, 206, 0.95); }

.btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.5); }

.btn--light { background: #fff; color: var(--navy); box-shadow: 0 18px 34px -20px rgba(0, 0, 0, 0.55); }
.btn--light:hover { background: #eef6ff; }

.btn--lg { padding: 1.05em 1.65em; font-size: 0.95rem; border-radius: 16px; }
.btn--sm { padding: 0.68em 1.05em; font-size: 0.76rem; border-radius: 11px; }

[dir="rtl"] .btn svg.icon-arrow { transform: scaleX(-1); }

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.site-header {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 80;
    color: #fff;
    background: linear-gradient(180deg, rgba(3, 12, 25, 0.58) 0%, rgba(3, 12, 25, 0.18) 62%, rgba(3, 12, 25, 0) 100%);
    transition: background-color 0.4s var(--ease), color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
    color: var(--ink);
    box-shadow: 0 1px 0 var(--line), 0 18px 40px -32px rgba(9, 30, 60, 0.5);
}

.header-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.4vw, 34px);
    height: var(--header-h);
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(18px, 4vw, 34px);
    transition: height 0.35s var(--ease);
}

.site-header.is-scrolled .header-inner { height: 68px; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: inherit;
    flex: 0 0 auto;
    min-width: 0;
}

.brand__mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 13px;
    background: linear-gradient(150deg, #ffffff 0%, #d9e9ff 100%);
    color: var(--navy);
    font-size: 1.15rem;
    font-weight: 800;
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    transition: width 0.35s var(--ease), height 0.35s var(--ease), flex-basis 0.35s var(--ease);
}

.brand__mark img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.site-header.is-scrolled .brand__mark { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; }

.brand__text { display: grid; line-height: 1.15; min-width: 0; }
.brand__name { font-size: 0.98rem; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.brand__tag {
    margin-top: 3px;
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.19em;
    text-transform: uppercase;
    opacity: 0.62;
    white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(16px, 1.6vw, 26px); margin-inline: auto; }

.nav__link {
    position: relative;
    font-size: 0.79rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0.82;
    padding-block: 6px;
    transition: opacity 0.2s var(--ease);
}
.nav__link::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s var(--ease);
}
[dir="rtl"] .nav__link::after { transform-origin: right center; }
.nav__link:hover { opacity: 1; }
.nav__link:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.lang {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled .lang { border-color: var(--line-strong); }
.lang__link {
    display: grid;
    place-items: center;
    min-width: 29px;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    opacity: 0.66;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.lang__link:hover { opacity: 1; }
.lang__link.is-active { background: #fff; color: var(--navy); opacity: 1; }
.site-header.is-scrolled .lang__link.is-active { background: var(--navy); color: #fff; }

.header-portal {
    padding: 0.62em 0.95em;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 11px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.header-portal:hover { background: rgba(255, 255, 255, 0.12); }
.site-header.is-scrolled .header-portal { border-color: var(--line-strong); }
.site-header.is-scrolled .header-portal:hover { background: var(--blue-soft); }

.burger {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    place-items: center;
    transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.site-header.is-scrolled .burger { border-color: var(--line-strong); background: transparent; }
.burger__lines { display: grid; gap: 4px; width: 18px; }
.burger__lines span {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.burger[aria-expanded="true"] .burger__lines span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__lines span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Menu mobile */
.menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 78;
    background: rgba(3, 12, 25, 0.5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.menu-backdrop.is-visible { opacity: 1; visibility: visible; }

.mobile-menu {
    position: fixed;
    inset-block-start: calc(var(--header-h) + 8px);
    inset-inline: 12px;
    z-index: 79;
    max-height: calc(100vh - var(--header-h) - 24px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px;
    border-radius: 20px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 40px 80px -30px rgba(3, 12, 25, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }

.mobile-menu__nav { display: grid; gap: 2px; }
.mobile-menu__nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink);
    transition: background-color 0.2s var(--ease);
}
.mobile-menu__nav a:hover { background: var(--blue-soft); }
.mobile-menu__nav a svg { width: 16px; height: 16px; opacity: 0.4; }
[dir="rtl"] .mobile-menu__nav a svg { transform: scaleX(-1); }

.mobile-menu__divider { height: 1px; margin: 12px 4px; background: var(--line); }

.mobile-menu__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

.menu-lang {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
}
.menu-lang a {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--muted);
}
.menu-lang a.is-active { background: var(--navy); color: #fff; }

.mobile-menu__cta { display: grid; gap: 8px; margin-top: 14px; }
.mobile-menu__cta .btn { width: 100%; white-space: normal; text-align: center; }
.mobile-menu__cta .btn--outline { overflow-wrap: anywhere; }

body.menu-open, body.lb-open { overflow: hidden; }
body.menu-open, body.lb-open { padding-inline-end: var(--sbw, 0px); }

/* ------------------------------------------------------------------ */
/* Hero carousel                                                       */
/* ------------------------------------------------------------------ */

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100svh;
    background: var(--navy-2);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

.hero__slides { position: absolute; inset: 0; z-index: 0; }

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.hero-slide__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    filter: saturate(0.92) contrast(1.02);
}
.hero-slide.is-active .hero-slide__img { animation: heroZoom 14s ease-out forwards; }

.hero-slide__scrim {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(70% 60% at 18% 42%, rgba(11, 99, 206, 0.26), transparent 70%),
        linear-gradient(90deg, rgba(3, 12, 25, 0.95) 0%, rgba(3, 12, 25, 0.83) 34%, rgba(3, 12, 25, 0.46) 68%, rgba(3, 12, 25, 0.2) 100%),
        linear-gradient(0deg, rgba(3, 12, 25, 0.88) 0%, rgba(3, 12, 25, 0) 58%);
}
[dir="rtl"] .hero-slide__scrim {
    background:
        radial-gradient(70% 60% at 82% 42%, rgba(11, 99, 206, 0.26), transparent 70%),
        linear-gradient(270deg, rgba(3, 12, 25, 0.95) 0%, rgba(3, 12, 25, 0.83) 34%, rgba(3, 12, 25, 0.46) 68%, rgba(3, 12, 25, 0.2) 100%),
        linear-gradient(0deg, rgba(3, 12, 25, 0.88) 0%, rgba(3, 12, 25, 0) 58%);
}

.hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-block: calc(var(--header-h) + 72px) clamp(150px, 16vh, 190px);
}

.hero-slide__content { max-width: 820px; }
.hero-slide__content > * {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.hero-slide.is-active .hero-slide__content > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-slide__content > *:nth-child(1) { transition-delay: 0.08s; }
.hero-slide.is-active .hero-slide__content > *:nth-child(2) { transition-delay: 0.18s; }
.hero-slide.is-active .hero-slide__content > *:nth-child(3) { transition-delay: 0.28s; }
.hero-slide.is-active .hero-slide__content > *:nth-child(4) { transition-delay: 0.38s; }
.hero-slide.is-active .hero-slide__content > *:nth-child(5) { transition-delay: 0.46s; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}
.hero-badge__dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.16);
    animation: pulseDot 2.4s ease-in-out infinite;
}

.hero-slide__title {
    margin-top: 22px;
    max-width: 17ch;
    font-size: clamp(2.35rem, 5.2vw, 4.6rem);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -0.035em;
    text-wrap: balance;
    color: #fff;
}
html[lang="ar"] .hero-slide__title { line-height: 1.22; letter-spacing: 0; max-width: 20ch; }

.hero-slide__sub {
    margin-top: 20px;
    max-width: 58ch;
    font-size: clamp(0.98rem, 1.35vw, 1.16rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
}

.hero-slide__actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 32px; }

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 34px;
    font-size: 0.76rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.64);
}
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg {
    width: 18px;
    height: 18px;
    padding: 3px;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.14);
    color: #4ade80;
}

.hero__controls {
    position: absolute;
    inset-inline: 0;
    inset-block-end: 26px;
    z-index: 4;
}
.hero__controls-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.hero__dots { display: flex; align-items: center; gap: 8px; }
.hero__dot {
    width: 26px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.3s var(--ease), background-color 0.3s var(--ease);
}
.hero__dot:hover { background: rgba(255, 255, 255, 0.6); }
.hero__dot.is-active { width: 44px; background: #fff; }

.hero__nav-group { display: flex; align-items: center; gap: 16px; }
.hero__count {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.62);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.hero__arrows { display: flex; gap: 8px; }
.hero__arrow {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hero__arrow:hover { background: #fff; color: var(--navy); border-color: #fff; }
.hero__arrow svg { width: 20px; height: 20px; }
[dir="rtl"] .hero__arrow svg { transform: scaleX(-1); }

.hero__progress {
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 5;
    height: 3px;
    background: rgba(255, 255, 255, 0.13);
}
.hero__progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #2e8bff, #8ec5ff);
    transform: scaleX(0);
    transform-origin: left center;
}
[dir="rtl"] .hero__progress span { transform-origin: right center; }

/* ------------------------------------------------------------------ */
/* Bande stats                                                         */
/* ------------------------------------------------------------------ */

.stats {
    position: relative;
    overflow: hidden;
    background: var(--navy-2);
    color: #fff;
    padding-block: clamp(46px, 6.5vw, 82px);
    border-block: 1px solid rgba(255, 255, 255, 0.06);
}
.stats::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(50% 90% at 85% 0%, rgba(11, 99, 206, 0.24), transparent 70%),
        radial-gradient(40% 80% at 5% 100%, rgba(225, 29, 46, 0.12), transparent 72%);
    pointer-events: none;
}
.stats .wrap { position: relative; z-index: 1; }

.stats__kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}
.stats__kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--blue-2); }

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 24px;
    border-block-start: 1px solid rgba(255, 255, 255, 0.09);
}
.stat { position: relative; padding: 26px 26px 4px; border-inline-start: 1px solid rgba(255, 255, 255, 0.09); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat__icon { color: #7db8ff; margin-bottom: 13px; opacity: 0.9; }
.stat__icon svg { width: 22px; height: 22px; }
.stat__value {
    display: block;
    font-size: clamp(1.9rem, 3.4vw, 3rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.045em;
    color: #fff;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .stat__value {
        background: linear-gradient(180deg, #ffffff 22%, #9cc9ff 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}
.stat__label { display: block; margin-top: 9px; font-size: 0.76rem; font-weight: 600; color: rgba(255, 255, 255, 0.55); }

.stats__live {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin-top: 26px;
    padding-top: 16px;
    border-block-start: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.48);
}
.stats__live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12);
    animation: pulseDot 2.4s ease-in-out infinite;
}
.stats__live strong { color: rgba(255, 255, 255, 0.82); font-weight: 700; }
.stats__live-sep { opacity: 0.3; }

/* ------------------------------------------------------------------ */
/* Sections & en-têtes                                                 */
/* ------------------------------------------------------------------ */

.section { position: relative; padding-block: clamp(62px, 8.5vw, 112px); }
.section--tint { background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%); }
.section--dark {
    background:
        radial-gradient(55% 70% at 90% 10%, rgba(11, 99, 206, 0.22), transparent 68%),
        radial-gradient(45% 70% at 0% 100%, rgba(225, 29, 46, 0.1), transparent 70%),
        var(--navy-2);
    color: #fff;
    overflow: hidden;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: clamp(30px, 4.5vw, 54px);
}
.section-head__text { max-width: 680px; }
.section-head__aside { flex: 0 0 auto; padding-bottom: 4px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blue);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.8; }
.eyebrow--light { color: #7db8ff; }

.section-title {
    margin-top: 14px;
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.028em;
    color: var(--ink);
    text-wrap: balance;
}
.section-title--light { color: #fff; }
html[lang="ar"] .section-title { line-height: 1.35; letter-spacing: 0; }

.section-sub { margin-top: 16px; max-width: 64ch; font-size: clamp(0.94rem, 1.05vw, 1.03rem); line-height: 1.75; color: var(--muted); }
.section--dark .section-sub { color: rgba(255, 255, 255, 0.62); }

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--blue);
    transition: gap 0.25s var(--ease), color 0.2s var(--ease);
}
.section-link:hover { gap: 12px; color: #084a9e; }
.section-link svg { width: 16px; height: 16px; }
[dir="rtl"] .section-link svg { transform: scaleX(-1); }

/* ------------------------------------------------------------------ */
/* Services                                                            */
/* ------------------------------------------------------------------ */

.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 26px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service-card::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--blue-2));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s var(--ease);
}
[dir="rtl"] .service-card::before { transform-origin: right center; }
.service-card::after {
    content: attr(data-index);
    position: absolute;
    inset-block-start: 18px;
    inset-inline-end: 24px;
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.06em;
    color: rgba(11, 99, 206, 0.07);
    pointer-events: none;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(11, 99, 206, 0.3); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    border-radius: 15px;
    background: linear-gradient(145deg, #eef6ff, #d8eaff);
    color: var(--blue);
    box-shadow: inset 0 0 0 1px rgba(11, 99, 206, 0.08);
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card:hover .service-card__icon { transform: translateY(-2px) rotate(-2deg); background: linear-gradient(145deg, #0b63ce, #2e8bff); color: #fff; }

.service-card__title { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.service-card__desc { margin-top: 8px; font-size: 0.84rem; line-height: 1.7; color: var(--muted); }

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--blue);
    opacity: 0.9;
    transition: gap 0.25s var(--ease), opacity 0.2s var(--ease);
}
.service-card__link:hover { gap: 11px; opacity: 1; }
.service-card__link svg { width: 15px; height: 15px; }
[dir="rtl"] .service-card__link svg { transform: scaleX(-1); }

/* ------------------------------------------------------------------ */
/* Pourquoi nous                                                       */
/* ------------------------------------------------------------------ */

.about-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: clamp(30px, 5vw, 66px);
    align-items: center;
}
.about-grid--solo { grid-template-columns: 1fr; }
.about-grid--solo .about-copy { max-width: 780px; }

.about-copy .section-title { margin-top: 14px; }
.about-copy p { margin-top: 16px; font-size: 0.98rem; line-height: 1.8; color: var(--muted); }

.feature-list { display: grid; margin-top: 26px; }
.feature { display: flex; gap: 14px; padding-block: 15px; border-block-start: 1px dashed var(--line-strong); }
.feature:first-child { border-block-start: 0; padding-block-start: 0; }
.feature__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
}
.feature__icon svg { width: 19px; height: 19px; }
.feature__title { font-size: 0.9rem; font-weight: 800; color: var(--ink); }
.feature__desc { margin-top: 3px; font-size: 0.8rem; line-height: 1.65; color: var(--muted); }

.about-media { position: relative; }
.about-media__frame {
    position: relative;
    aspect-ratio: 4 / 4.25;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(150deg, #0b2a4d, #0b63ce);
    box-shadow: var(--shadow-lg);
}
.about-media__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-media__frame::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    border-radius: inherit;
    pointer-events: none;
}
.about-media::before {
    content: "";
    position: absolute;
    inset-block-start: -16px;
    inset-inline-end: -16px;
    width: 118px;
    height: 118px;
    border-radius: 30px;
    background-image: radial-gradient(rgba(11, 99, 206, 0.35) 1.6px, transparent 1.6px);
    background-size: 11px 11px;
    z-index: -1;
}
.about-media__card {
    position: absolute;
    inset-block-end: 22px;
    inset-inline-start: 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 19px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(5, 21, 40, 0.82);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: #fff;
    box-shadow: 0 24px 44px -22px rgba(0, 0, 0, 0.6);
}
.about-media__value { font-size: 1.7rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: #fff; }
.about-media__label { font-size: 0.68rem; font-weight: 600; line-height: 1.35; color: rgba(255, 255, 255, 0.64); max-width: 14ch; }

/* ------------------------------------------------------------------ */
/* Annonces / machines                                                 */
/* ------------------------------------------------------------------ */

.ads-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.ad-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.ad-card:hover { transform: translateY(-6px); border-color: rgba(11, 99, 206, 0.28); box-shadow: var(--shadow-md); }

.ad-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(145deg, #dcecff, #f1f7ff);
}
.ad-card__media img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.ad-card:hover .ad-card__media img { transform: scale(1.05); }
.ad-card__fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 2.4rem;
    font-weight: 800;
    color: rgba(11, 99, 206, 0.32);
}
.ad-card__price {
    position: absolute;
    inset-block-start: 14px;
    inset-inline-start: 14px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--navy);
    font-size: 0.68rem;
    font-weight: 800;
    box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.35);
}
.ad-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 24px; }
.ad-card__tag { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.ad-card__title { margin-top: 6px; font-size: 1rem; font-weight: 800; line-height: 1.35; color: var(--ink); }
.ad-card__desc { margin-top: 6px; font-size: 0.82rem; line-height: 1.65; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 18px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--blue);
    transition: gap 0.25s var(--ease);
}
.ad-card:hover .ad-card__cta { gap: 11px; }
.ad-card__cta svg { width: 15px; height: 15px; }
[dir="rtl"] .ad-card__cta svg { transform: scaleX(-1); }

/* ------------------------------------------------------------------ */
/* Galerie                                                             */
/* ------------------------------------------------------------------ */

.gallery { columns: 3; column-gap: 16px; }

.gallery-item {
    position: relative;
    display: block;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 18px;
    background: #102a4a;
    color: #fff;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: 0 26px 50px -34px rgba(0, 0, 0, 0.8);
}
.gallery-item img { width: 100%; height: auto; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.4s var(--ease); filter: saturate(0.94); }
.gallery-item:nth-child(3n + 1) img { aspect-ratio: 4 / 5; }
.gallery-item:nth-child(3n + 2) img { aspect-ratio: 1 / 1; }
.gallery-item:nth-child(3n + 3) img { aspect-ratio: 4 / 3; }
.gallery-item:hover img { transform: scale(1.045); filter: saturate(1.05); }
.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(3, 10, 20, 0.86) 0%, rgba(3, 10, 20, 0.12) 46%, rgba(3, 10, 20, 0) 70%);
    pointer-events: none;
}
.gallery-item__caption {
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 2;
    padding: 34px 18px 16px;
    pointer-events: none;
}
.gallery-item__title { font-size: 0.92rem; font-weight: 800; line-height: 1.35; color: #fff; }
.gallery-item__sub { margin-top: 3px; font-size: 0.73rem; line-height: 1.55; color: rgba(255, 255, 255, 0.66); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gallery-item__zoom {
    position: absolute;
    inset-block-start: 12px;
    inset-inline-end: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(3, 10, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.gallery-item__zoom svg { width: 17px; height: 17px; }
.gallery-item:hover .gallery-item__zoom,
.gallery-item:focus-visible .gallery-item__zoom { opacity: 1; transform: none; }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    background: #030912;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s var(--ease), visibility 0.32s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 70% at 50% 45%, rgba(11, 99, 206, 0.14), transparent 70%);
    cursor: zoom-out;
}
.lightbox__dialog { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; width: 100%; }

.lightbox__top { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px clamp(16px, 4vw, 32px); }
.lightbox__heading { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.lightbox__title { font-size: 0.86rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lightbox__count { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.46); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lightbox__close,
.lightbox__nav {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: #fff; color: var(--navy); border-color: #fff; }
.lightbox__close svg { width: 19px; height: 19px; }

.lightbox__stage {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: clamp(54px, 7vw, 96px);
}
.lightbox__img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.25s var(--ease);
}
.lightbox__img.is-loaded { opacity: 1; }
.lightbox__nav { position: absolute; inset-block-start: 50%; transform: translateY(-50%); z-index: 2; }
.lightbox__nav--prev { inset-inline-start: clamp(8px, 2vw, 26px); }
.lightbox__nav--next { inset-inline-end: clamp(8px, 2vw, 26px); }
[dir="rtl"] .lightbox__nav svg { transform: scaleX(-1); }

.lightbox__bottom { padding: 12px clamp(16px, 4vw, 32px) 24px; text-align: center; }
.lightbox__caption { max-width: 70ch; margin-inline: auto; font-size: 0.82rem; line-height: 1.6; color: rgba(255, 255, 255, 0.62); }

/* ------------------------------------------------------------------ */
/* Process / timeline                                                  */
/* ------------------------------------------------------------------ */

.timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.timeline::before {
    content: "";
    position: absolute;
    inset-block-start: 29px;
    inset-inline: 7%;
    height: 2px;
    background: linear-gradient(90deg, rgba(11, 99, 206, 0.65), rgba(11, 99, 206, 0.08));
    z-index: 0;
}
[dir="rtl"] .timeline::before { background: linear-gradient(270deg, rgba(11, 99, 206, 0.65), rgba(11, 99, 206, 0.08)); }

.timeline__item { position: relative; z-index: 1; }
.timeline__node {
    position: relative;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--blue);
    box-shadow: 0 14px 26px -14px rgba(9, 30, 60, 0.4);
}
.timeline__node svg { width: 24px; height: 24px; }
.timeline__num {
    position: absolute;
    inset-block-start: -7px;
    inset-inline-end: -7px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.timeline__card {
    height: 100%;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.timeline__item:hover .timeline__card { transform: translateY(-4px); border-color: rgba(11, 99, 206, 0.24); box-shadow: var(--shadow-md); }
.timeline__title { font-size: 0.92rem; font-weight: 800; color: var(--ink); }
.timeline__desc { margin-top: 6px; font-size: 0.8rem; line-height: 1.7; color: var(--muted); }

/* ------------------------------------------------------------------ */
/* Témoignages                                                         */
/* ------------------------------------------------------------------ */

.slider { position: relative; }
.slider__viewport { overflow: hidden; }
.slider__track { display: flex; transition: transform 0.6s var(--ease); will-change: transform; }

.testimonial { flex: 0 0 100%; min-width: 0; padding-inline: clamp(0px, 2vw, 22px); }
.testimonial__card {
    position: relative;
    max-width: 900px;
    margin-inline: auto;
    padding: clamp(26px, 4.5vw, 46px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.055);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.9);
}
.testimonial__mark {
    position: absolute;
    inset-block-start: 18px;
    inset-inline-end: 30px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 6rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}

.stars { display: flex; gap: 4px; color: var(--gold); }
.stars svg { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.stars svg.is-off { color: rgba(255, 255, 255, 0.18); }

.testimonial__text {
    margin-top: 18px;
    font-size: clamp(1.05rem, 2vw, 1.32rem);
    font-weight: 500;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    text-wrap: pretty;
}
html[lang="ar"] .testimonial__text { line-height: 1.95; }

.testimonial__author { display: flex; align-items: center; gap: 13px; margin-top: 26px; }
.avatar {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(145deg, #2e8bff, #0b63ce);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial__name { font-size: 0.88rem; font-weight: 800; color: #fff; }
.testimonial__role { margin-top: 2px; font-size: 0.74rem; color: rgba(255, 255, 255, 0.5); }

.slider__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }
.slider__arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.slider__arrow:hover { background: #fff; color: var(--navy); border-color: #fff; }
.slider__arrow svg { width: 18px; height: 18px; }
[dir="rtl"] .slider__arrow svg { transform: scaleX(-1); }

.slider__dots { display: flex; align-items: center; gap: 7px; }
.slider__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.26);
    transition: width 0.3s var(--ease), background-color 0.3s var(--ease);
}
.slider__dot:hover { background: rgba(255, 255, 255, 0.55); }
.slider__dot.is-active { width: 26px; background: #fff; }

/* ------------------------------------------------------------------ */
/* FAQ                                                                 */
/* ------------------------------------------------------------------ */

.faq-layout { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: clamp(30px, 5vw, 66px); align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-aside .section-title { font-size: clamp(1.75rem, 3vw, 2.4rem); }

.faq-contact {
    margin-top: 28px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.faq-contact__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--blue);
}
.faq-contact__icon svg { width: 21px; height: 21px; }
.faq-contact__title { font-size: 0.88rem; font-weight: 800; color: var(--ink); }
.faq-contact__text { margin-top: 5px; font-size: 0.78rem; line-height: 1.65; color: var(--muted); }
.faq-contact__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.faq-contact__links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 9px;
    background: #f1f7ff;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--blue);
    transition: background-color 0.2s var(--ease);
}
.faq-contact__links a:hover { background: #e0efff; }
.faq-contact__links svg { width: 14px; height: 14px; }

.faq-list { border-block-start: 1px solid var(--line); }
.faq-item { border-block-end: 1px solid var(--line); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 2px;
    list-style: none;
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--ink);
    transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue); }
.faq-item__icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--muted);
    transition: transform 0.3s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.faq-item__icon svg { width: 15px; height: 15px; }
.faq-item[open] .faq-item__icon { transform: rotate(45deg); background: var(--blue); border-color: var(--blue); color: #fff; }

.faq-item__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.faq-item[open] .faq-item__panel { grid-template-rows: 1fr; }
.faq-item__panel > div { overflow: hidden; }
.faq-item__answer { max-width: 66ch; padding-block: 0 22px; font-size: 0.88rem; line-height: 1.8; color: var(--muted); }

/* ------------------------------------------------------------------ */
/* CTA final                                                           */
/* ------------------------------------------------------------------ */

.cta-band {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(26px, 4vw, 54px);
    overflow: hidden;
    padding: clamp(30px, 4.8vw, 60px);
    border-radius: 32px;
    background: linear-gradient(118deg, #071b33 0%, #0a3a6d 55%, #0b63ce 100%);
    color: #fff;
    box-shadow: 0 44px 90px -50px rgba(7, 27, 51, 0.85);
}
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(70% 100% at 100% 0%, #000, transparent 75%);
    mask-image: radial-gradient(70% 100% at 100% 0%, #000, transparent 75%);
    pointer-events: none;
}
.cta-band::after {
    content: "";
    position: absolute;
    inset-block-start: -30%;
    inset-inline-end: -8%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 139, 255, 0.32), transparent 68%);
    pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band__title { max-width: 18ch; font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
html[lang="ar"] .cta-band__title { line-height: 1.4; letter-spacing: 0; }
.cta-band__sub { margin-top: 14px; max-width: 52ch; font-size: 0.95rem; line-height: 1.7; color: rgba(255, 255, 255, 0.68); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.cta-contact { display: grid; gap: 15px; align-content: center; padding-inline-start: clamp(0px, 3vw, 36px); border-inline-start: 1px solid rgba(255, 255, 255, 0.16); }
.cta-contact__item { display: flex; align-items: flex-start; gap: 11px; font-size: 0.84rem; line-height: 1.55; color: rgba(255, 255, 255, 0.78); }
.cta-contact__item svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; color: #8ec5ff; }
.cta-contact__label { display: block; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); margin-bottom: 2px; }
.cta-contact a:hover { color: #fff; text-decoration: underline; }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.footer {
    position: relative;
    overflow: hidden;
    background: var(--navy-3);
    color: rgba(255, 255, 255, 0.6);
    padding-block-start: clamp(50px, 7vw, 80px);
}
.footer::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(46, 139, 255, 0.4), transparent);
}
.footer__grid { display: grid; grid-template-columns: 1.55fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 48px); }
.footer .brand { color: #fff; }
.footer .brand__mark { width: 40px; height: 40px; flex-basis: 40px; }
.footer__tagline { margin-top: 16px; max-width: 36ch; font-size: 0.82rem; line-height: 1.7; color: rgba(255, 255, 255, 0.5); }
.footer__legal { margin-top: 20px; font-size: 0.68rem; line-height: 1.9; color: rgba(255, 255, 255, 0.34); }
.footer__legal span { unicode-bidi: isolate; }
.footer__legal strong { color: rgba(255, 255, 255, 0.5); font-weight: 600; }

.footer__title { margin-bottom: 15px; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); }
.footer__links { display: grid; gap: 9px; font-size: 0.8rem; }
.footer__links a { display: inline-flex; align-items: center; gap: 7px; transition: color 0.2s var(--ease); }
.footer__links a:hover { color: #fff; }
.footer__links svg { width: 13px; height: 13px; opacity: 0.36; }
[dir="rtl"] .footer__links svg { transform: scaleX(-1); }
.footer__contact { display: grid; gap: 12px; font-size: 0.8rem; }
.footer__contact-item { display: flex; align-items: flex-start; gap: 9px; line-height: 1.55; }
.footer__contact-item svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 3px; color: #7db8ff; opacity: 0.8; }
.footer__contact-item a:hover { color: #fff; }

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: clamp(36px, 5vw, 56px);
    padding-block: 20px;
    border-block-start: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.62);
}
.footer__bottom a:hover { color: rgba(255, 255, 255, 0.7); }
.footer__dot { opacity: 0.35; margin-inline: 6px; }

/* ------------------------------------------------------------------ */
/* WhatsApp flottant                                                   */
/* ------------------------------------------------------------------ */

.whatsapp-fab {
    position: fixed;
    inset-inline-end: 18px;
    inset-block-end: 18px;
    z-index: 70;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2fe375, #1fbe5a);
    color: #04240f;
    box-shadow: 0 18px 34px -12px rgba(37, 211, 102, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.whatsapp-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 24px 44px -14px rgba(37, 211, 102, 0.75); }
.whatsapp-fab svg { width: 27px; height: 27px; }

/* ------------------------------------------------------------------ */
/* Reveal on scroll                                                    */
/* ------------------------------------------------------------------ */

[data-reveal] {
    opacity: 0;
    translate: 0 30px;
    transition: opacity 0.75s var(--ease), translate 0.75s var(--ease);
    transition-delay: var(--d, 0ms);
}
[data-reveal].is-visible { opacity: 1; translate: 0 0; }

/* ------------------------------------------------------------------ */
/* Keyframes                                                           */
/* ------------------------------------------------------------------ */

@keyframes heroZoom {
    from { transform: scale(1.09); }
    to { transform: scale(1); }
}
@keyframes heroBar {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

/* ------------------------------------------------------------------ */
/* Animations désactivées (admin ou prefers-reduced-motion)            */
/* ------------------------------------------------------------------ */

html.no-anim { scroll-behavior: auto; }
html.no-anim *,
html.no-anim *::before,
html.no-anim *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
}
html.no-anim [data-reveal] { opacity: 1 !important; translate: none !important; }
html.no-anim .hero-slide__content > * { opacity: 1 !important; transform: none !important; }
html.no-anim .hero-slide__img { animation: none !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0ms !important;
    }
    [data-reveal] { opacity: 1 !important; translate: none !important; }
    .hero-slide__content > * { opacity: 1 !important; transform: none !important; }
    .hero-slide__img { animation: none !important; transform: none !important; }
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1180px) {
    .nav, .header-portal { display: none; }
    .burger { display: grid; }
    .header-actions { margin-inline-start: auto; }
}

@media (max-width: 1060px) {
    .services-grid, .ads-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-grid { grid-template-columns: 1fr; gap: 36px; }
    .about-media { max-width: 620px; }
    .about-media__frame { aspect-ratio: 16 / 11; }
    .faq-layout { grid-template-columns: 1fr; gap: 32px; }
    .faq-aside { position: static; }
    .cta-band { grid-template-columns: 1fr; }
    .cta-contact { border-inline-start: 0; padding-inline-start: 0; border-block-start: 1px solid rgba(255, 255, 255, 0.16); padding-block-start: 22px; }
}

@media (max-width: 980px) {
    .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); border-block-start: 0; gap: 0 24px; }
    .stat { padding: 20px 0; border-block-start: 1px solid rgba(255, 255, 255, 0.09); border-inline-start: 0; }
    .stat:nth-child(-n + 2) { border-block-start: 0; padding-block-start: 4px; }
    .gallery { columns: 2; }
    .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer__grid > :last-child { grid-column: 1 / -1; }
    .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
    .timeline::before { display: none; }
}

@media (max-width: 860px) {
    :root { --header-h: 70px; }
    .hero__inner { padding-block: calc(var(--header-h) + 54px) 148px; }
    .hero-slide__title { max-width: 19ch; }
    .hero__controls { inset-block-end: 20px; }
    .hero__count { display: none; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
    .section-head__aside { padding-bottom: 0; }
    .brand__tag { display: none; }
    .timeline { grid-template-columns: 1fr; gap: 18px; }
    .timeline::before {
        display: block;
        inset-block: 6px 0;
        inset-inline-start: 29px;
        width: 2px;
        height: auto;
        background: linear-gradient(180deg, rgba(11, 99, 206, 0.65), rgba(11, 99, 206, 0.08));
    }
    [dir="rtl"] .timeline::before { background: linear-gradient(180deg, rgba(11, 99, 206, 0.65), rgba(11, 99, 206, 0.08)); }
    .timeline__item { padding-inline-start: 82px; min-height: 58px; }
    .timeline__node { position: absolute; inset-block-start: 0; inset-inline-start: 0; margin: 0; }
    .timeline__card { height: auto; }
}

@media (max-width: 720px) {
    .header-inner { gap: 12px; }
    .brand__mark { width: 38px; height: 38px; flex-basis: 38px; }
    .brand__name { font-size: 0.9rem; }
    .header-actions .lang { display: none; }
    .header-cta-desktop { display: none; }
    .hero { min-height: 760px; }
    .hero__inner { padding-block: calc(var(--header-h) + 42px) 138px; }
    .hero-slide__sub { color: rgba(255, 255, 255, 0.78); }
    .hero-slide__actions .btn { flex: 1 1 auto; }
    .hero-trust { gap: 9px 16px; font-size: 0.7rem; }
    .hero__arrow { width: 42px; height: 42px; }
    .hero__dots { gap: 6px; }
    .hero__dot { width: 20px; }
    .hero__dot.is-active { width: 34px; }
    .stats__grid { grid-template-columns: 1fr; }
    .stat { border-block-start: 1px solid rgba(255, 255, 255, 0.09) !important; padding-block: 18px !important; }
    .stat:first-child { border-block-start: 0 !important; }
    .services-grid, .ads-grid { grid-template-columns: 1fr; }
    .gallery { columns: 1; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__grid > :first-child { grid-column: 1 / -1; }
    .footer__grid > :last-child { grid-column: 1 / -1; }
    .cta-band { border-radius: 24px; }
    .whatsapp-fab { inset-inline-end: 14px; inset-block-end: 14px; width: 50px; height: 50px; }
    .lightbox__stage { padding-inline: 48px; }
    .lightbox__nav { width: 38px; height: 38px; flex-basis: 38px; }
    .lightbox__nav--prev { inset-inline-start: 4px; }
    .lightbox__nav--next { inset-inline-end: 4px; }
}

@media (max-width: 540px) {
    .brand__text { max-width: 42vw; }
    .brand__name { overflow: hidden; text-overflow: ellipsis; }
    .hero-slide__title { font-size: clamp(2.05rem, 10.4vw, 2.9rem); }
    .hero-badge { font-size: 0.58rem; letter-spacing: 0.12em; }
    .hero-slide__actions { gap: 9px; }
    .hero-slide__actions .btn { width: 100%; }
    .hero-trust li { flex: 1 1 100%; }
    .hero__controls-inner { gap: 12px; }
    .hero__dots { flex: 1; }
    .hero__dot { width: 16px; }
    .hero__dot.is-active { width: 26px; }
    .footer__grid { grid-template-columns: 1fr; }
    .footer__grid > * { grid-column: auto !important; }
    .footer__bottom { flex-direction: column; align-items: flex-start; }
    .testimonial { padding-inline: 0; }
    .testimonial__mark { font-size: 4.4rem; inset-inline-end: 18px; }
    .slider__controls { gap: 12px; }
    .cta-band__actions .btn { width: 100%; }
    .about-media__card { inset-block-end: 14px; inset-inline-start: 14px; padding: 12px 15px; }
}

/* Impression */
@media print {
    .site-header, .menu-backdrop, .mobile-menu, .hero__controls, .hero__progress,
    .whatsapp-fab, .lightbox, .slider__controls { display: none !important; }
    .hero { min-height: auto; color: #000; }
    .hero-slide { position: static; opacity: 1; visibility: visible; }
    [data-reveal] { opacity: 1 !important; translate: none !important; }
    body { overflow: visible; }
}

/* ------------------------------------------------------------------ */
/* Compléments (focus, menu, footer)                                   */
/* ------------------------------------------------------------------ */

.skip-link:focus {
    position: fixed !important;
    inset-block-start: 12px;
    inset-inline-start: 12px;
    z-index: 200;
    width: auto;
    height: auto;
    padding: 11px 18px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    border-radius: 11px;
    background: #fff;
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
}

.btn--outline {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--ink);
}
.btn--outline:hover { background: var(--blue-soft); border-color: rgba(11, 99, 206, 0.35); }

.footer__langs { margin-top: 20px; border-color: rgba(255, 255, 255, 0.16); }
.footer__langs a { color: rgba(255, 255, 255, 0.55); }
.footer__langs a.is-active { background: #fff; color: var(--navy); }

/* ------------------------------------------------------------------ */
/* Images indisponibles : repli visuel (galerie, annonces, à propos)    */
/* ------------------------------------------------------------------ */

.about-media__frame img.is-broken,
.ad-card__media img.is-broken,
.lightbox__img.is-broken { visibility: hidden; }

.gallery-item.is-broken { display: none; }

.about-media__fallback {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
    background:
        radial-gradient(55% 60% at 50% 35%, rgba(46, 139, 255, 0.2), transparent 70%),
        linear-gradient(150deg, #0b2a4d 0%, #071b33 100%);
    color: rgba(255, 255, 255, 0.35);
}
.about-media__fallback svg { width: 64px; height: 64px; }
.about-media__frame.is-broken .about-media__fallback { display: grid; }

.ad-card__fallback { z-index: 0; }
.ad-card__fallback svg { width: 54px; height: 54px; opacity: 0.55; }
.ad-card__media.is-broken .ad-card__fallback { display: grid; }

.lightbox__img.is-broken { opacity: 0; }

