/* ==========================================================================
   Africa Supply — couche de design v2 (chargée après pro.css)
   Pages publiques : navigation, accueil, À propos, actualités, carrières,
   partage social, application installable (PWA), accessibilité.
   ========================================================================== */
:root {
  --ink: #0f1d2e;
  --muted: #5c6b7a;
  --line: #e4e9f0;
  --surface: #f5f7fa;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 14px rgba(7, 30, 54, .06);
  --shadow: 0 18px 50px rgba(7, 30, 54, .10);
  --shadow-lg: 0 30px 70px rgba(7, 30, 54, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
body.as-body { font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }
[lang=ar] body.as-body { font-family: "Noto Sans Arabic", "Outfit", system-ui, sans-serif; }
[lang=zh] body.as-body { font-family: "Noto Sans SC", "Outfit", system-ui, sans-serif; }
img { max-width: 100%; }
h1, h2, h3, h4 { letter-spacing: -.01em; }
.text-navy { color: var(--navy) !important; }

/* ---------- Accessibilité ---------- */
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 3000; background: var(--gold); color: #071E36 !important; font-weight: 700; padding: 10px 18px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

/* ---------- Barre supérieure ---------- */
.topbar { background: #04121f; color: rgba(255,255,255,.72); font-size: 13.5px; padding-block: 7px; }
.topbar a, .topbar span { color: rgba(255,255,255,.72); text-decoration: none; }
.topbar a:hover { color: #fff; }
.tb-left, .tb-right { display: flex; align-items: center; gap: 18px; min-width: 0; }
.tb-left > a, .tb-left > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tb-left .ic, .tb-s .ic { color: var(--gold); }
.tb-soc { gap: 6px; align-items: center; }
.tb-s { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; transition: background .2s; }
.tb-s:hover { background: rgba(255,255,255,.1); }
.langs { display: inline-flex; gap: 2px; background: rgba(255,255,255,.06); border-radius: 999px; padding: 3px; }
.langs a { padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: 12.5px; }
.langs a.on { background: var(--gold); color: #071E36 !important; }

/* ---------- Navigation ---------- */
#mainNav { background: rgba(255,255,255,.96) !important; backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.brand-x { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-x img { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.brand-x span { display: flex; flex-direction: column; line-height: 1.15; }
.brand-x b { color: var(--navy); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 17px; }
.brand-x small { color: var(--muted); font-size: 11.5px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 230px; }
.navbar-toggler { border: 0; color: var(--navy); padding: 6px; }
.navbar-toggler:focus { box-shadow: none; }
.nav-cta { margin-inline-start: .6rem; }
.nav-cta .btn { border-radius: 999px; padding: .5rem 1.1rem; }
.nav-account { display: inline-flex; align-items: center; gap: 6px; color: var(--navy) !important; text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 8px 10px; margin-inline-start: .3rem; border-radius: 999px; }
.nav-account:hover { background: var(--surface); }
@media (max-width: 991.98px) {
  #nav { padding-block: 10px 16px; }
  #nav .nav-link { padding-block: .7rem !important; border-bottom: 1px solid var(--line); }
  #nav .nav-link::after { display: none; }
  .nav-cta { margin: 14px 0 6px; }
  .nav-cta .btn { width: 100%; padding: .75rem; }
  .brand-x small { display: none; }
}

/* ---------- Bandeau de page ---------- */
.ph { min-height: 420px; }
.ph-shade { background: linear-gradient(100deg, rgba(4,18,31,.92) 0%, rgba(7,30,54,.72) 45%, rgba(7,30,54,.35) 100%) !important; }
.ph h1 { font-weight: 700; text-wrap: balance; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Héros d'accueil ---------- */
.hx { position: relative; background: #04121f; overflow: hidden; }
.hx .carousel-item { height: min(88vh, 820px); min-height: 560px; }
.hx-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); transition: transform 7s linear; }
.hx .carousel-item.active .hx-bg { transform: scale(1); }
.hx-shade { position: absolute; inset: 0; background: linear-gradient(95deg, rgba(4,18,31,.94) 0%, rgba(7,30,54,.78) 42%, rgba(7,30,54,.25) 100%); }
[dir=rtl] .hx-shade { background: linear-gradient(-95deg, rgba(4,18,31,.94) 0%, rgba(7,30,54,.78) 42%, rgba(7,30,54,.25) 100%); }
.hx-in { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; color: #fff; padding-block: 90px 140px; }
.hx-kick { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); padding: 6px 14px; border-radius: 999px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 22px; }
.hx-kick i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.2); }
.hx h1, .hx .hx-t { font-size: clamp(2.2rem, 5vw, 4.1rem); font-weight: 700; line-height: 1.06; max-width: 15ch; text-wrap: balance; margin-bottom: 18px; color: #fff; }
.hx-sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255,255,255,.86); max-width: 52ch; margin-bottom: 8px; }
.hx-desc { color: rgba(255,255,255,.66); max-width: 56ch; }
.hx-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hx-btns .btn { border-radius: 999px; padding: .85rem 1.6rem; font-weight: 650; }
.hx .carousel-item .hx-in > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.hx .carousel-item.active .hx-in > * { opacity: 1; transform: none; }
.hx .carousel-item.active .hx-in > *:nth-child(2) { transition-delay: .1s; }
.hx .carousel-item.active .hx-in > *:nth-child(3) { transition-delay: .2s; }
.hx .carousel-item.active .hx-in > *:nth-child(4) { transition-delay: .3s; }
.hx .carousel-item.active .hx-in > *:nth-child(5) { transition-delay: .4s; }
.hx-ctrl { position: absolute; z-index: 5; bottom: 118px; inset-inline-end: max(16px, calc((100vw - 1320px) / 2 + 12px)); display: flex; gap: 8px; }
.hx-ctrl button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; transition: background .2s; }
.hx-ctrl button:hover { background: var(--gold); color: #071E36; border-color: var(--gold); }
.hx-ctrl .prev .ic { transform: rotate(180deg); }
[dir=rtl] .hx-ctrl .prev .ic { transform: none; }
[dir=rtl] .hx-ctrl .next .ic { transform: rotate(180deg); }
.hx .carousel-indicators { bottom: 120px; justify-content: flex-start; margin-inline: max(16px, calc((100vw - 1320px) / 2 + 12px)); }
.hx .carousel-indicators [data-bs-target] { width: 34px; height: 4px; border-radius: 4px; border: 0; opacity: .4; }
.hx .carousel-indicators .active { opacity: 1; background: var(--gold); }

/* Bande de confiance sous le héros */
.trust { position: relative; z-index: 6; margin-top: -84px; }
.trust-in { background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.trust-in > div { padding: 26px 24px; display: flex; gap: 14px; align-items: flex-start; border-inline-end: 1px solid var(--line); }
.trust-in > div:last-child { border: 0; }
.trust-in .ic { color: var(--gold); margin-top: 2px; }
.trust-in b { display: block; color: var(--navy); font-size: 15.5px; }
.trust-in small { color: var(--muted); font-size: 13.5px; line-height: 1.45; display: block; }
@media (max-width: 991px) { .trust-in { grid-template-columns: 1fr 1fr; } .trust-in > div:nth-child(2) { border-inline-end: 0; } .trust-in > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 575px) { .trust { margin-top: -60px; } .trust-in { grid-template-columns: 1fr; } .trust-in > div { border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 18px 20px; } .hx .carousel-item { min-height: 600px; } .hx-ctrl { display: none; } .hx .carousel-indicators { bottom: 90px; } .hx-in { padding-bottom: 120px; } }

/* ---------- Chiffres clés ---------- */
.kf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.kf { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.kf:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.kf::after { content: ""; position: absolute; inset-inline-end: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(196,163,90,.16), transparent 70%); }
.kf-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(196,163,90,.14); color: #a07f37; margin-bottom: 16px; }
.kf b { display: block; font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 700; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.kf-l { display: block; color: var(--muted); margin-top: 8px; font-weight: 500; }
.sec-dark .kf, .kf-grid.dark .kf { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.sec-dark .kf b, .kf-grid.dark .kf b { color: #fff; }
.sec-dark .kf-l, .kf-grid.dark .kf-l { color: rgba(255,255,255,.7); }
.sec-dark .kf-ic, .kf-grid.dark .kf-ic { background: rgba(196,163,90,.18); color: var(--gold); }

/* ---------- Cartes de services (accueil) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 991px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- Bloc "Pourquoi nous choisir" ---------- */
.why-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.why-img { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.why-img img { width: 100%; height: 100%; object-fit: cover; }
.why-img .badge-x { position: absolute; inset-inline-start: 22px; bottom: 22px; background: rgba(255,255,255,.95); border-radius: 16px; padding: 16px 20px; display: flex; gap: 12px; align-items: center; color: var(--navy); box-shadow: var(--shadow); }
.why-img .badge-x b { font-size: 1.6rem; line-height: 1; display: block; }
.why-list { display: grid; gap: 14px; margin-top: 26px; }
.why-item { display: flex; gap: 16px; padding: 18px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); transition: background .25s; }
.why-item:hover { background: rgba(255,255,255,.08); }
.why-item .fx-ic { flex: none; margin: 0; }
.why-item h3 { font-size: 1.08rem; margin: 0 0 4px; color: #fff; }
.why-item p { margin: 0; color: rgba(255,255,255,.68); font-size: .97rem; }
@media (max-width: 991px) { .why-wrap { grid-template-columns: 1fr; gap: 32px; } .why-img { aspect-ratio: 16/10; } }

/* ---------- Témoignages ---------- */
.t-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 24px; }
.t-track::-webkit-scrollbar { display: none; }
.t-track > * { scroll-snap-align: start; }
@media (max-width: 991px) { .t-track { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 575px) { .t-track { grid-auto-columns: 88%; } }
.t-nav { display: flex; gap: 8px; }
.t-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); display: grid; place-items: center; transition: all .2s; }
.t-nav button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.t-nav .prev .ic { transform: rotate(180deg); }
.tcard { margin: 0; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; transition: box-shadow .3s, transform .3s; }
.tcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.tcard-top { display: flex; justify-content: space-between; align-items: center; }
.tcard-top > .ic { color: rgba(196,163,90,.45); }
.tcard blockquote { margin: 0; font-size: 1.06rem; color: #2a3a4c; flex: 1; line-height: 1.6; }
.tcard figcaption { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; }
.tav { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; flex: none; background: linear-gradient(135deg, var(--navy), var(--ocean)); color: #fff; display: grid; place-items: center; font-weight: 700; }
.tav img { width: 100%; height: 100%; object-fit: cover; }
.tcard figcaption b { display: block; color: var(--navy); }
.tcard figcaption small { color: var(--muted); }
.stars { display: inline-flex; gap: 2px; }
.stars .on { color: #f2b01e; }
.stars .on .ic { fill: currentColor; }
.stars .off { color: #d5dbe3; }

/* ---------- Cartes actualités ---------- */
.ncard { height: 100%; }
.ncard-a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.ncard-a:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: inherit; }
.ncard-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface); }
.ncard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ncard-a:hover .ncard-img img { transform: scale(1.06); }
.ncard-date { position: absolute; inset-inline-start: 14px; bottom: 14px; background: rgba(255,255,255,.95); color: var(--navy); font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; }
.ncard-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.ncard-body h3 { font-size: 1.2rem; font-weight: 650; color: var(--navy); margin-bottom: 10px; line-height: 1.3; }
.ncard-body p { color: var(--muted); flex: 1; }

/* ---------- Article ---------- */
.art-hero { position: relative; background: #04121f; color: #fff; padding: 64px 0 0; overflow: hidden; }
.art-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(1200px 400px at 80% -10%, rgba(12,110,158,.45), transparent 60%), radial-gradient(800px 300px at 0% 0%, rgba(196,163,90,.18), transparent 60%); }
.art-hero .container { position: relative; }
.art-hero h1 { font-size: clamp(1.9rem, 4vw, 3.1rem); font-weight: 700; max-width: 22ch; line-height: 1.12; text-wrap: balance; margin: 14px 0 18px; }
.art-lead { font-size: 1.15rem; color: rgba(255,255,255,.78); max-width: 62ch; }
.art-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; color: rgba(255,255,255,.75); font-size: 14.5px; margin: 22px 0 34px; }
.art-meta span { display: inline-flex; align-items: center; gap: 7px; }
.art-meta .ic { color: var(--gold); }
.art-cover { border-radius: 24px 24px 0 0; overflow: hidden; aspect-ratio: 21/9; box-shadow: var(--shadow-lg); margin-bottom: -1px; }
.art-cover img { width: 100%; height: 100%; object-fit: cover; }
.art-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
@media (max-width: 991px) { .art-grid { grid-template-columns: 1fr; gap: 36px; } .art-cover { aspect-ratio: 16/9; border-radius: 18px 18px 0 0; } }
.art-body { font-size: 1.12rem; line-height: 1.8; color: #263646; max-width: none; }
.art-body h2 { font-size: 1.55rem; color: var(--navy); margin: 1.8em 0 .6em; font-weight: 700; }
.art-body h3 { font-size: 1.25rem; color: var(--navy); margin: 1.5em 0 .5em; }
.art-body p { margin-bottom: 1.15em; }
.art-body ul, .art-body ol { padding-inline-start: 1.3em; margin-bottom: 1.2em; }
.art-body li { margin-bottom: .4em; }
.art-body li::marker { color: var(--gold); }
.art-body blockquote { border-inline-start: 4px solid var(--gold); background: var(--surface); padding: 18px 24px; border-radius: 0 14px 14px 0; font-size: 1.2rem; font-style: italic; color: var(--navy); margin: 1.6em 0; }
.art-body img { border-radius: 14px; margin: 1em 0; height: auto; }
.art-body a { text-decoration: underline; text-underline-offset: 3px; }
.art-side { display: flex; flex-direction: column; gap: 22px; }
.art-side .side-box { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.art-side h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.author-box { display: flex; gap: 14px; align-items: center; }
.author-box .tav { width: 52px; height: 52px; }
.author-box b { color: var(--navy); display: block; }
.author-box small { color: var(--muted); }
.mini-news { display: flex; gap: 12px; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); color: inherit; }
.mini-news:last-child { border: 0; padding-bottom: 0; }
.mini-news img { width: 76px; height: 60px; object-fit: cover; border-radius: 10px; flex: none; }
.mini-news b { color: var(--navy); font-size: .95rem; line-height: 1.3; display: block; }
.mini-news small { color: var(--muted); }
.mini-news:hover b { color: var(--ocean); }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gal-grid a { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; background: var(--surface); }
.gal-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gal-grid a:hover img { transform: scale(1.06); }
.art-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.art-nav a { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.art-nav a:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.art-nav small { color: var(--muted); display: block; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.art-nav b { color: var(--navy); }
.art-nav .nx { text-align: end; }
@media (max-width: 575px) { .art-nav { grid-template-columns: 1fr; } }

/* ---------- Partage social ---------- */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px 0; border-block: 1px solid var(--line); margin: 34px 0; }
.share-lbl { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--navy); }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sh { width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff !important; border: 0; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.sh:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.sh-whatsapp { background: #25d366; } .sh-facebook { background: #1877f2; } .sh-linkedin { background: #0a66c2; } .sh-x { background: #111; } .sh-telegram { background: #229ed9; } .sh-email { background: #6b7a8c; } .sh-copy { background: var(--navy); } .sh-native { background: var(--gold); color: #071E36 !important; }
.share-bar.compact { border: 0; padding: 0; margin: 0; }
.share-bar.compact .sh { width: 36px; height: 36px; }
.sec-dark .share-lbl, .side-card .share-lbl { color: #fff; }
.as-toast { position: fixed; inset-inline-start: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow); z-index: 3000; opacity: 0; transition: all .3s var(--ease); pointer-events: none; font-weight: 600; }
[dir=rtl] .as-toast { transform: translate(50%, 20px); }
.as-toast.show { opacity: 1; transform: translate(-50%, 0); }
[dir=rtl] .as-toast.show { transform: translate(50%, 0); }

/* ---------- À propos : histoire ---------- */
.hist-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.hist-points div { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border-radius: 14px; padding: 14px 16px; }
.hist-points .fx-ic { width: 42px; height: 42px; margin: 0; flex: none; border-radius: 12px; }
.hist-points b { color: var(--navy); display: block; line-height: 1.25; }
.hist-points small { color: var(--muted); }
@media (max-width: 575px) { .hist-points { grid-template-columns: 1fr; } }
.hl-real { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 991px) { .hl-real { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .hl-real { grid-template-columns: 1fr; } }

/* ---------- Responsables & contacts ---------- */
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.tm { background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tm:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tm-ph { position: relative; aspect-ratio: 4/4.4; overflow: hidden; background: linear-gradient(145deg, var(--navy), var(--ocean)); }
.tm-ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .6s var(--ease); filter: saturate(.95); }
.tm:hover .tm-ph img { transform: scale(1.05); }
.tm-ini { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3.4rem; font-weight: 700; color: rgba(255,255,255,.92); letter-spacing: .04em; }
.tm-soc { position: absolute; inset-inline: 0; bottom: 0; display: flex; justify-content: center; gap: 8px; padding: 30px 12px 14px; background: linear-gradient(transparent, rgba(4,18,31,.75)); transform: translateY(100%); transition: transform .35s var(--ease); }
.tm:hover .tm-soc, .tm:focus-within .tm-soc { transform: none; }
.tm-s { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--navy) !important; display: grid; place-items: center; }
.tm-s:hover { background: var(--gold); }
.tm-b { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.tm-b h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin: 0 0 4px; }
.tm-role { color: #a07f37; font-weight: 600; font-size: .95rem; margin-bottom: 10px; }
.tm-bio { color: var(--muted); font-size: .94rem; margin-bottom: 14px; flex: 1; }
.tm-ct { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.tm-ct a { flex: 1; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--navy); transition: all .2s; }
.tm-ct a:hover { background: var(--navy); color: #fff; }
.tm-ct a.tm-wa:hover { background: #25d366; }
@media (hover: none) { .tm-soc { transform: none; } }

/* ---------- Mot de la direction ---------- */
.dg { position: relative; display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 0; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); }
.dg-ph { position: relative; min-height: 440px; background: linear-gradient(160deg, var(--navy), #04121f); }
.dg-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.dg-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(4,18,31,.7)); }
.dg-id { position: absolute; z-index: 2; inset-inline: 24px; bottom: 22px; color: #fff; }
.dg-id b { display: block; font-size: 1.2rem; }
.dg-id span { color: var(--gold); font-weight: 600; font-size: .95rem; }
.dg-txt { padding: 52px 56px; position: relative; }
.dg-txt::before { content: "“"; position: absolute; inset-inline-end: 40px; top: -10px; font-size: 180px; line-height: 1; font-family: Georgia, serif; color: rgba(196,163,90,.16); }
.dg-txt h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--navy); font-weight: 700; margin-bottom: 18px; text-wrap: balance; }
.dg-body { font-size: 1.1rem; line-height: 1.8; color: #34495e; }
.dg-sign { margin-top: 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dg-sign img { max-height: 70px; max-width: 220px; }
.dg-sign .sig-txt { font-family: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive; font-size: 2rem; color: var(--navy); line-height: 1; }
.dg-sign small { display: block; color: var(--muted); }
@media (max-width: 991px) { .dg { grid-template-columns: 1fr; } .dg-ph { min-height: 380px; } .dg-txt { padding: 34px 26px; } }

/* ---------- Carrières ---------- */
.hr-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hr-intro .img-frame img.main { aspect-ratio: 4/3.2; }
@media (max-width: 991px) { .hr-intro { grid-template-columns: 1fr; gap: 30px; } }
.job-filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; background: #fff; padding: 14px; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); margin-bottom: 26px; }
.job-filters .fsearch { position: relative; }
.job-filters .fsearch .ic { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.job-filters .fsearch input { padding-inline-start: 42px; }
.job-filters .form-control, .job-filters .form-select { height: 50px; border-radius: 12px; }
@media (max-width: 767px) { .job-filters { grid-template-columns: 1fr 1fr; } .job-filters .fsearch { grid-column: 1 / -1; } }
.jcount { color: var(--muted); margin-bottom: 14px; font-weight: 500; }
.jcard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; margin-bottom: 14px; transition: border-color .25s, box-shadow .25s, transform .25s; }
.jcard:hover { border-color: rgba(196,163,90,.6); box-shadow: var(--shadow); transform: translateY(-2px); }
.jcard.hide { display: none; }
.jcard-ic { width: 56px; height: 56px; border-radius: 16px; background: rgba(12,110,158,.1); color: var(--ocean); display: grid; place-items: center; }
.jcard h3 { font-size: 1.18rem; margin: 0 0 8px; }
.jcard h3 a { color: var(--navy); text-decoration: none; }
.jcard h3 a::after { content: ""; position: absolute; inset: 0; }
.jcard { position: relative; }
.jcard .job-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.jcard .job-tags span { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; background: var(--surface); padding: 4px 10px; border-radius: 999px; color: #44546a; }
.jcard .jgo { position: relative; z-index: 1; }
@media (max-width: 575px) { .jcard { grid-template-columns: 1fr; } .jcard-ic { display: none; } }
.apply-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); padding: 34px; border: 1px solid var(--line); }
.apply-card h2 { color: var(--navy); font-weight: 700; }
.drop-x { position: relative; border: 2px dashed #cfd8e3; border-radius: 14px; padding: 16px; text-align: center; transition: border-color .2s, background .2s; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 74px; }
.drop-x:hover, .drop-x.over { border-color: var(--gold); background: rgba(196,163,90,.06); }
.drop-x input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-x .ic { color: var(--ocean); flex: none; }
.drop-x .dx-t { text-align: start; line-height: 1.3; }
.drop-x .dx-t b { display: block; color: var(--navy); font-size: .95rem; }
.drop-x .dx-t small { color: var(--muted); font-size: 12.5px; }
.drop-x.has-file { border-style: solid; border-color: #15935c; background: rgba(21,147,92,.05); }
.drop-x .dx-prev { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.req { color: #d23b3b; }
.job-detail-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 26px 0; }
.job-detail-meta div { background: var(--surface); border-radius: 14px; padding: 14px 16px; }
.job-detail-meta small { display: block; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.job-detail-meta b { color: var(--navy); }

/* ---------- Réalisations ---------- */
.rc-link { position: absolute; inset: 0; z-index: 3; }
.rc .rc-in { z-index: 2; }

/* ---------- Bandeau d'installation (PWA) ---------- */
.pwa-banner { position: fixed; z-index: 2500; inset-inline: 16px; bottom: 16px; margin-inline: auto; max-width: 560px; background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(4,18,31,.28); border: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; transform: translateY(140%); transition: transform .45s var(--ease); }
.pwa-banner.show { transform: none; }
.pwa-banner > img { border-radius: 12px; flex: none; box-shadow: 0 0 0 1px var(--line); }
.pwa-txt { flex: 1; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.pwa-ios { color: var(--muted); font-size: 13px; margin-top: 4px !important; }
.ios-share { display: inline-block; font-weight: 700; color: #0a84ff; }
.pwa-act { display: flex; align-items: center; gap: 6px; flex: none; }
.pwa-act .btn { border-radius: 999px; }
.pwa-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface); color: var(--muted); display: grid; place-items: center; }
.pwa-banner.ios [data-pwa-install] { display: none; }
@media (max-width: 575px) { .pwa-banner { inset-inline: 10px; bottom: 10px; } body.has-pwa .wa-fab { bottom: 175px; } body.has-pwa .to-top { bottom: 175px; } }
@media (display-mode: standalone) { .pwa-banner, [data-install-app] { display: none !important; } }

/* ---------- WhatsApp ---------- */
.wa-fab { position: fixed; z-index: 1040; inset-inline-end: 20px; bottom: 20px; width: 60px; height: 60px; border-radius: 50%; border: 0; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37,211,102,.45); transition: transform .2s var(--ease), bottom .3s; }
.wa-fab:hover { transform: scale(1.07); }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: waPulse 2.4s infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
.to-top { inset-inline-end: 92px !important; }
.wa-box .offcanvas-header { background: #075e54; color: #fff; }
.wa-box .offcanvas-header small { opacity: .8; }
.wa-box .offcanvas-body { background: #ece5dd; }
.wa-av { width: 40px; height: 40px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; flex: none; }
.wa-av.sm { width: 36px; height: 36px; }
.wa-bubble { background: #fff; border-radius: 0 14px 14px 14px; padding: 12px 14px; box-shadow: 0 1px 1px rgba(0,0,0,.08); max-width: 90%; }
.wa-line { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; text-decoration: none; color: var(--ink); transition: transform .2s; }
.wa-line:hover { transform: translateX(4px); color: var(--ink); }
.wa-line span:nth-child(2) { flex: 1; }
.wa-line b { display: block; }
.wa-line small { color: #128c7e; }
@media (prefers-reduced-motion: reduce) { .wa-fab::before { animation: none; } }

/* ---------- Pied de page ---------- */
.footer { color: rgba(255,255,255,.7); padding: 72px 0 0; }
.footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer a:hover { color: #fff; }
.f-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.f-brand img { border-radius: 50%; background: #fff; object-fit: contain; }
.f-brand b { color: #fff; font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase; }
.f-pitch { max-width: 36ch; }
.f-h { color: #fff; font-size: 1rem; font-weight: 650; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.f-h::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 28px; height: 2px; background: var(--gold); }
.f-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.f-links a { transition: padding .2s; }
.f-links a:hover { padding-inline-start: 4px; }
.f-contact { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.f-contact li { display: flex; gap: 10px; align-items: flex-start; }
.f-contact .ic { color: var(--gold); margin-top: 3px; }
.f-soc { display: flex; gap: 8px; flex-wrap: wrap; }
.fs { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .2s, transform .2s; }
.fs:hover { background: var(--gold); color: #071E36 !important; transform: translateY(-2px); }
.f-news { display: flex; gap: 6px; background: rgba(255,255,255,.06); border-radius: 999px; padding: 5px; }
.f-news .form-control { background: transparent; border: 0; color: #fff; box-shadow: none; padding-inline: 14px; }
.f-news .form-control::placeholder { color: rgba(255,255,255,.5); }
.f-news .btn { border-radius: 50%; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; flex: none; }
.f-app { margin-top: 16px; display: flex; align-items: center; gap: 12px; width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #fff; border-radius: 14px; padding: 10px 14px; text-align: start; transition: background .2s; }
.f-app:hover { background: rgba(255,255,255,.12); }
.f-app .ic { color: var(--gold); }
.f-app small { display: block; color: rgba(255,255,255,.6); font-size: 12px; }
.f-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--gold) !important; font-weight: 650; }
.f-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 52px; padding: 22px 0; font-size: 14px; }
.f-legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Formulaires d'authentification ---------- */
.auth-x { min-height: 70vh; display: grid; place-items: center; padding: 60px 0; background: radial-gradient(900px 400px at 100% 0%, rgba(12,110,158,.08), transparent 60%), var(--surface); }
.auth-card { width: min(520px, 100%); background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); padding: 38px; border: 1px solid var(--line); }
.auth-card.wide { width: min(760px, 100%); }
.auth-card h1 { font-size: 1.7rem; font-weight: 700; color: var(--navy); }
.auth-card .form-control { height: 50px; border-radius: 12px; }
.auth-card .btn-navy { height: 50px; border-radius: 12px; }

/* ---------- Divers ---------- */
.btn { --bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(196,163,90,.35); }
.pill-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--navy); text-decoration: none; }
.pill-link:hover { color: var(--ocean); gap: 12px; }
.sec-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; text-align: start; }
.sec-head.split > div { max-width: 640px; }
.empty-x { text-align: center; padding: 50px 20px; color: var(--muted); background: var(--surface); border-radius: var(--radius); }
.empty-x .ic { color: #b8c3d1; margin-bottom: 10px; }
@media (max-width: 575px) { .sec { padding-block: 64px; } .apply-card, .auth-card { padding: 24px; } }
@media print { .topbar, #mainNav, .footer, .wa-fab, .pwa-banner, .to-top, .share-bar, .cta-band { display: none !important; } }

/* ---------- Corrections de compatibilité (anciens styles app.css) ---------- */
.btn-outline-light { background: transparent !important; color: #fff !important; border: 1.5px solid rgba(255,255,255,.55) !important; }
.btn-outline-light:hover { background: #fff !important; color: var(--navy) !important; }
.btn-outline-dark { background: transparent !important; color: var(--navy) !important; border: 1.5px solid var(--navy) !important; }
.btn-outline-dark:hover { background: var(--navy) !important; color: #fff !important; }
.btn-light { background: #fff !important; color: var(--navy) !important; }
.btn-success { background: #25d366 !important; color: #fff !important; }
.f-news .btn .ic { color: #071E36; }
.sec-head.split { max-width: none; }
.kf::after { display: none; }
.nav-cta .btn { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1399.98px) {
  .navbar .nav-link { padding-inline: .55rem !important; font-size: 14.5px; }
  .navbar .nav-link::after { inset-inline: .55rem; }
  .brand-x small { display: none; }
  .brand-x b { font-size: 15px; }
}
/* Barre des indicateurs du diaporama, alignée sur le contenu */
.hx-bar { position: absolute; z-index: 5; inset-inline: 0; bottom: 116px; }
.hx-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hx-bar .carousel-indicators { position: static; margin: 0; padding: 0; justify-content: flex-start; }
.hx-bar .hx-ctrl { position: static; }
@media (max-width: 575px) { .hx-bar { bottom: 84px; } }

/* ---------- Base (remplace l'ancien app.css sur les pages publiques) ---------- */
.as-body a { text-decoration: none; }
.as-body .prose a, .as-body .art-body a { text-decoration: underline; text-underline-offset: 3px; }
.as-body h2 { color: var(--navy); }
.as-body .sec-dark h2, .as-body .ph h2, .as-body .cta-in h2, .as-body .side-card h3, .as-body .hx h2, .as-body .vm.v1 h3, .as-body .footer h2 { color: #fff; }
.as-body .footer .f-h { color: #fff; }
.bg-navy { background: var(--navy) !important; }
.muted { color: var(--muted); line-height: 1.6; }
.prose { line-height: 1.75; }
.prose p { margin: 0 0 12px; }
.prose > :last-child { margin-bottom: 0; }
.kicker { color: var(--gold); letter-spacing: .16em; text-transform: uppercase; font-size: 12px; font-weight: 700; }
.form-label { font-weight: 600; font-size: 14px; color: var(--navy); }
.page-contact .ph-in { padding-bottom: 96px; }
.job-detail-meta + .art-body { margin-top: 8px; }
/* Ancres sous la barre de navigation fixe */
#postuler, #offres, #direction, #responsables { scroll-margin-top: 110px; }
.jcard .jgo { white-space: nowrap; }

/* ---------- Assistant IA (bouton flottant + discussion) ---------- */
.ai-fab { position: fixed; z-index: 1045; inset-inline-start: 20px; bottom: 20px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 8px 18px 8px 8px; background: linear-gradient(135deg, var(--navy), #0c4a7a); color: #fff; box-shadow: 0 14px 34px rgba(7,30,54,.35); transition: transform .2s var(--ease), bottom .3s; }
.ai-fab:hover { transform: translateY(-2px); }
.ai-fab-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: #071E36; display: grid; place-items: center; animation: aiGlow 2.6s infinite; }
.ai-fab-t { display: flex; flex-direction: column; line-height: 1.1; font-weight: 700; font-size: 15px; text-align: start; }
.ai-fab-t small { font-weight: 500; font-size: 11.5px; opacity: .8; }
@keyframes aiGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(196,163,90,.55); } 50% { box-shadow: 0 0 0 8px rgba(196,163,90,0); } }
body.ai-open .ai-fab { opacity: 0; pointer-events: none; }
.ai-box { position: fixed; z-index: 2600; inset-inline-start: 20px; bottom: 20px; width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100vh - 40px)); background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(4,18,31,.35); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); animation: aiIn .28s var(--ease); }
.ai-box[hidden] { display: none; }
@keyframes aiIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.ai-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: linear-gradient(135deg, var(--navy), #0c4a7a); color: #fff; }
.ai-head > div { flex: 1; min-width: 0; }
.ai-head h2 { font-size: 1rem; margin: 0; color: #fff !important; }
.ai-head small { display: flex; align-items: center; gap: 6px; opacity: .85; font-size: 12px; }
.ai-head small i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; }
.ai-av { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #071E36; display: grid; place-items: center; flex: none; }
.ai-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; flex: none; }
.ai-x:hover { background: rgba(255,255,255,.22); }
.ai-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.ai-m { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; word-wrap: break-word; }
.ai-m.bot { background: #fff; border: 1px solid var(--line); border-start-start-radius: 4px; align-self: flex-start; color: var(--ink); }
.ai-m.me { background: var(--navy); color: #fff; border-start-end-radius: 4px; align-self: flex-end; }
.ai-m a { color: var(--ocean); text-decoration: underline; overflow-wrap: anywhere; font-weight: 600; }
.ai-m ul { margin: 6px 0; padding-inline-start: 18px; }
.ai-m.typing { display: flex; gap: 4px; padding: 14px; }
.ai-m.typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa9bb; animation: aiDot 1s infinite; }
.ai-m.typing span:nth-child(2) { animation-delay: .15s; } .ai-m.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes aiDot { 0%,80%,100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ai-sugg { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 14px 0; background: var(--surface); }
.ai-sugg button { border: 1px solid #cfd8e3; background: #fff; color: var(--navy); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500; }
.ai-sugg button:hover { border-color: var(--gold); background: #fffaf0; }
.ai-form { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.ai-form textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: 14.5px; max-height: 120px; outline: none; }
.ai-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196,163,90,.18); }
.ai-form button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--gold); color: #071E36; display: grid; place-items: center; flex: none; }
.ai-note { margin: 0; padding: 0 14px 10px; font-size: 11px; color: var(--muted); background: #fff; text-align: center; }
@media (max-width: 575px) {
  .ai-fab { padding: 6px; } .ai-fab-t { display: none; }
  .ai-box { inset: 0; width: 100%; height: 100%; border-radius: 0; }
  body.has-pwa .ai-fab { bottom: 175px; }
}
@media (prefers-reduced-motion: reduce) { .ai-fab-ic { animation: none; } }
@media print { .ai-fab, .ai-box { display: none !important; } }
