/* IBRA Cloud : site vitrine. Charte : brand/BRAND.md (Orange #FE9F43, Nuit, Graphite ; Unbounded + Sora). */
:root {
  --orange: #FE9F43; --orange-hover: #F08A26; --orange-soft: #FFF1E3; --ambre: #FE9F43; --ambre-logo: #C26A14;
  --nuit: #1F2329; --graphite: #2B2F36; --ardoise: #5B616B; --argent: #A3A9B3; --ligne: #E3E5E9; --brume: #F6F7F9; --blanc: #FFFFFF;
  --text: var(--graphite); --muted: var(--ardoise); --bg: var(--blanc); --alt: var(--brume);
  --font-display: "Unbounded", system-ui, sans-serif; --font-body: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-xl: 24px;
  --shadow: 0 1px 2px rgba(31,35,41,.06), 0 8px 24px rgba(31,35,41,.07);
  --shadow-lg: 0 2px 6px rgba(31,35,41,.08), 0 30px 60px -12px rgba(31,35,41,.28);
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ambre); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.18; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--nuit); }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
.ic { flex: none; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--nuit); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 62ch; }
.center .lead, .sec-head.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ambre); }
.eyebrow::before { content: ""; width: 18px; height: 6px; background: var(--orange); border-radius: 2px; transform: skewX(-16deg); }
.eyebrow-dark { color: var(--orange); }
.accent { color: var(--orange); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--r-sm); border: 1.5px solid transparent;
  font: 600 .95rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--nuit); box-shadow: 0 6px 18px -6px rgba(254,159,67,.7); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-outline { background: var(--blanc); color: var(--nuit); border-color: var(--ligne); }
.btn-outline:hover { border-color: var(--nuit); }
.btn-ghost-dark { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-row.center { justify-content: center; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-more:hover { text-decoration: underline; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--ligne); }
.top-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { flex: 0 0 auto; display: inline-flex; align-items: center; }
.logo img { height: 34px; width: auto; max-width: none; object-fit: contain; }
.nav { display: flex; gap: 6px; margin-left: 12px; }
.nav a { color: var(--graphite); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: var(--r-sm); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--brume); color: var(--nuit); }
.top-cta { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.link-login { color: var(--graphite); font-weight: 600; font-size: .95rem; text-decoration: none; }
.link-login:hover { color: var(--ambre); }
.burger { display: none; margin-left: auto; background: none; border: 0; color: var(--nuit); padding: 8px; cursor: pointer; }
.mnav { border-top: 1px solid var(--ligne); background: #fff; padding: 12px 24px 20px; display: grid; gap: 4px; }
.mnav[hidden] { display: none; }
.mnav a { padding: 12px 4px; color: var(--nuit); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--ligne); }
.mnav .btn { margin-top: 12px; border: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted); padding-top: 18px; padding-bottom: 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ambre); }

/* Motif « Flux » : trois barres inclinées */
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-bg i { position: absolute; right: -6%; height: 13%; border-radius: 14px; transform: skewX(-16deg); }
.hero-bg i:nth-child(1) { top: 14%; width: 48%; background: linear-gradient(90deg, rgba(254,159,67,.0), rgba(254,159,67,.22)); }
.hero-bg i:nth-child(2) { top: 31%; width: 36%; background: linear-gradient(90deg, rgba(163,169,179,0), rgba(163,169,179,.14)); }
.hero-bg i:nth-child(3) { top: 48%; width: 24%; background: linear-gradient(90deg, rgba(91,97,107,0), rgba(91,97,107,.22)); }

/* Accueil : héros */
.hero { position: relative; background: radial-gradient(1200px 600px at 85% 10%, rgba(254,159,67,.14), transparent 60%), var(--nuit); color: #E9EBEF; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%); pointer-events: none; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero h1 { color: #fff; }
.hero .lead { color: #C3C8D0; }
.hero-checks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: .9rem; color: #C3C8D0; }
.hero-checks li { display: inline-flex; align-items: center; gap: 7px; }
.hero-checks .ic { color: var(--orange); }
.hero-visual { position: relative; }
.hero-visual .browser { box-shadow: 0 40px 80px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); }
.phone { position: absolute; right: -18px; bottom: -48px; width: 27%; margin: 0; border-radius: 26px; overflow: hidden; border: 6px solid #0E1013; box-shadow: 0 30px 60px -10px rgba(0,0,0,.65); background: #0E1013; }
.phone img { aspect-ratio: 600 / 1100; object-fit: cover; object-position: top; }

/* Capture dans un cadre de navigateur */
.browser { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid rgba(31,35,41,.08); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #F1F2F5; border-bottom: 1px solid var(--ligne); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D5D8DE; }
.browser-bar i:first-child { background: #FF6159; } .browser-bar i:nth-child(2) { background: #FFBD2E; } .browser-bar i:nth-child(3) { background: #28C941; }
.browser-bar span { margin-left: 14px; flex: 1; max-width: 260px; height: 22px; line-height: 22px; border-radius: 6px; background: #fff; color: var(--ardoise); font-size: .72rem; text-align: center; }
.browser img { width: 100%; height: auto; display: block; }
/* Captures nettes : cadre plus fin, ombre en couches, halo coloré derrière les captures latérales. */
.browser { border-radius: 14px; box-shadow: 0 1px 2px rgba(31,35,41,.06), 0 12px 24px -8px rgba(31,35,41,.14), 0 40px 80px -24px rgba(31,35,41,.22); }
.browser-bar { height: 30px; background: linear-gradient(#F6F7F9, #EEF0F3); }
.split-visual { position: relative; isolation: isolate; }
.split-visual::before { content: ""; position: absolute; inset: -40px -40px -40px -40px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(254,159,67,.20), rgba(254,159,67,.08) 55%, transparent 100%); filter: blur(8px); }
.browser-focus img { aspect-ratio: 1000 / 625; object-fit: cover; object-position: top left; }
.caption { margin: 14px 0 0; font-size: .9rem; color: var(--muted); text-align: center; }

/* Bandeau fiscalité */
.band { background: var(--graphite); color: #E9EBEF; }
.band-in { display: flex; align-items: center; gap: 22px; padding-top: 22px; padding-bottom: 22px; }
.band-in p { margin: 0; font-weight: 600; white-space: nowrap; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 999px; font-size: .84rem; font-weight: 500; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.chips a { color: inherit; text-decoration: none; }

/* Sections */
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--alt); }
.sec-head { margin-bottom: 48px; }
.sec-head.center { text-align: center; }

/* Modules */
.modules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.module { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 24px; border: 1px solid var(--ligne); border-radius: var(--r-lg); background: #fff; color: var(--text); text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s; }
.module:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #F7C99A; }
.module h3 { margin: 12px 0 4px; }
.module p { color: var(--muted); font-size: .93rem; margin: 0 0 14px; }
.module .more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ambre); }
.module-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--orange-soft); color: var(--ambre); }
.modules-sm { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 28px; }
.modules-sm .module { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; }
.modules-sm .module h3 { margin: 0; font-size: .95rem; }

/* Texte + capture */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.split-rev .split-text { order: 2; }
.checks { list-style: none; display: grid; gap: 10px; margin: 20px 0 24px; align-content: start; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 6px; background: var(--orange-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23FE9F43' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checks-lg li { padding-top: 2px; padding-bottom: 2px; }

/* Étapes */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps li { padding: 30px; border-radius: var(--r-lg); border: 1px solid var(--ligne); background: #fff; }
.step-n { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 12px; background: var(--nuit); color: var(--orange); font: 700 1.2rem var(--font-display); transform: skewX(-8deg); }
.steps p { color: var(--muted); margin: 0; }

/* Offres */
.billing { display: flex; width: max-content; margin: 0 auto 36px; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid var(--ligne); }
.billing button { border: 0; background: none; padding: 9px 22px; border-radius: 999px; font: 600 .92rem var(--font-body); color: var(--muted); cursor: pointer; }
.billing button[aria-pressed="true"] { background: var(--nuit); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; align-items: stretch; }
.plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plans-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px; border-radius: var(--r-xl); border: 1px solid var(--ligne); background: #fff; }
.plan h3 { font-size: 1.25rem; margin-bottom: 6px; }
.plan-desc { color: var(--muted); font-size: .93rem; min-height: 3em; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 2px; }
.plan-price .amount { font: 700 2.6rem/1 var(--font-display); color: var(--nuit); letter-spacing: -.02em; }
.plan-price .amount-text { font-size: 1.8rem; }
.plan-price .per { color: var(--muted); font-size: .9rem; }
.plan-alt { font-size: .85rem; color: var(--muted); min-height: 1.4em; }
.plan .checks { flex: 1; font-size: .94rem; margin-top: 12px; }
.plan .btn { width: 100%; }
.plan-best { background: var(--nuit); border-color: var(--nuit); color: #E9EBEF; box-shadow: 0 30px 60px -20px rgba(31,35,41,.55); }
.plan-best h3, .plan-best .plan-price .amount { color: #fff; }
.plan-best .plan-desc, .plan-best .per, .plan-best .plan-alt { color: #AEB4BD; }
.plan-best .checks li::before { background-color: rgba(254,159,67,.18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23FE9F43' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan-badge { position: absolute; top: -13px; left: 26px; padding: 5px 12px; border-radius: 999px; background: var(--orange); color: var(--nuit); font-size: .78rem; font-weight: 700; }
.plan-custom { background: var(--alt); }
.note { margin-top: 22px; text-align: center; font-size: .9rem; color: var(--muted); }

/* Tableau comparatif */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--ligne); background: #fff; margin-top: 32px; }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--ligne); text-align: center; }
.compare th[scope="row"] { text-align: left; font-weight: 500; }
.compare thead th { font-family: var(--font-display); font-size: .95rem; background: var(--brume); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .ic { color: #1A9E5C; }
.compare .dash { color: var(--argent); }

/* FAQ */
.faq { display: grid; gap: 12px; margin-top: 28px; }
.faq details { border: 1px solid var(--ligne); border-radius: var(--r); background: #fff; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; position: relative; font-weight: 600; color: var(--nuit); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 500 1.4rem var(--font-display); color: var(--ambre); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* Appel final */
.final { position: relative; overflow: hidden; background: var(--nuit); color: #C3C8D0; padding: 96px 0; text-align: center; }
.final-in { position: relative; z-index: 1; max-width: 760px; }
.final h2 { color: #fff; }

/* Pages intérieures */
.page-head { padding: 64px 0 40px; background: linear-gradient(180deg, var(--brume), #fff); }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 22ch; }
.page-head.center h1 { margin-left: auto; margin-right: auto; }
.highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 48px; }
.highlights div { padding: 22px 24px; border-radius: var(--r-lg); background: var(--brume); border-left: 4px solid var(--orange); }
.highlights h2 { font-size: 1.05rem; margin-bottom: 6px; }
.highlights p { margin: 0; color: var(--muted); font-size: .95rem; }
.shot-main { max-width: 1040px; margin: 0 auto; }
.included { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; justify-content: center; padding: 24px; border-radius: var(--r-lg); border: 1px dashed #F2BE8A; background: var(--orange-soft); }
.included p { margin: 0; }
.included .chips li { background: #fff; border-color: #F2BE8A; color: var(--nuit); }
.feature-list { display: grid; gap: 28px; }
.feature-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; padding: 36px; border-radius: var(--r-xl); border: 1px solid var(--ligne); background: #fff; }
.feature-card:nth-child(even) .feature-card-text { order: 2; }
.feature-card h2 { font-size: 1.5rem; margin-top: 14px; }
.feature-card h2 a { color: inherit; text-decoration: none; }
.feature-card p { color: var(--muted); }
.feature-card-shot { display: block; }
.legal h2 { font-size: 1.15rem; margin-top: 32px; }
.legal mark { background: var(--orange-soft); color: var(--ambre); padding: 0 4px; border-radius: 4px; }

/* Pied de page */
.foot { background: var(--nuit); color: #AEB4BD; padding: 72px 0 0; font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1.3fr 1fr 1fr; gap: 40px; }
.foot-brand img { height: 34px; width: auto; margin-bottom: 18px; }
.foot h2 { font: 600 .82rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.foot ul { list-style: none; display: grid; gap: 10px; }
.foot a { color: #D4D8DE; text-decoration: none; }
.foot a:hover { color: var(--orange); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 56px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }

/* Responsive */
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 64px; padding-top: 64px; }
  .hero-text { max-width: 720px; }
  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .feature-card { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .split-rev .split-text, .feature-card:nth-child(even) .feature-card-text { order: 0; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Menu replié (burger) dès que la barre du haut n'a plus la place : le logo n'est jamais écrasé */
@media (max-width: 1200px) {
  .nav, .top-cta { display: none; }
  .burger { display: inline-flex; }
}
@media (min-width: 1201px) { .mnav { display: none !important; } }
@media (max-width: 860px) {
  .band-in { flex-direction: column; align-items: flex-start; }
  .hero .hero-bg { display: none; }
  .steps, .highlights, .plans-3 { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 72px 0; }
  .feature-card { padding: 24px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .modules, .plans-4 { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .phone { width: 34%; right: -6px; bottom: -36px; border-width: 4px; border-radius: 18px; }
  .browser-bar span { display: none; }
  .btn-lg { width: 100%; }
  .hero-in { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

/* Choix de la langue : en-tête (FR · EN · ع), menu mobile et pied de page */
.lang-nav { display: flex; align-items: center; gap: 6px; color: var(--ardoise); }
.lang-switch { list-style: none; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--brume); border: 1px solid var(--ligne); }
.lang-switch a { display: block; min-width: 30px; padding: 3px 8px; border-radius: 999px; text-align: center; font-size: .8rem; font-weight: 600; color: var(--ardoise); text-decoration: none; line-height: 1.5; }
.lang-switch a:hover { color: var(--nuit); background: #fff; }
.lang-switch a[aria-current="true"] { background: var(--nuit); color: #fff; }
.lang-switch .lang-name { display: none; }
.lang-switch a[lang="ar"] .lang-short { font-family: "Noto Kufi Arabic", "IBM Plex Sans Arabic", var(--font-body); }
.mnav-lang { display: flex; align-items: center; gap: 10px; padding: 14px 4px 4px; color: var(--ardoise); }
.mnav-lang .lang-switch a { border-bottom: 0; padding: 6px 12px; font-size: .9rem; }
.foot-lang-title { margin-top: 26px; }
.foot-lang { list-style: none; display: grid; gap: 10px; }
.foot-lang .lang-short { display: none; }
.foot-lang a[aria-current="true"] { color: var(--orange); }
.foot-lang a[aria-current="true"]::before { content: "• "; }
.foot-lang a[lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--font-body); }

/* Arabe : lecture de droite à gauche, polices arabes. Les captures restent en LTR. */
[dir="rtl"] { --font-display: "Noto Kufi Arabic", "Unbounded", system-ui, sans-serif; --font-body: "IBM Plex Sans Arabic", "Sora", system-ui, sans-serif; }
[dir="rtl"] body { line-height: 1.8; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.4; }
[dir="rtl"] .eyebrow, [dir="rtl"] .foot h2 { letter-spacing: 0; }
[dir="rtl"] .skip { left: auto; right: 12px; }
[dir="rtl"] .nav { margin-left: 0; margin-right: 12px; }
[dir="rtl"] .top-cta, [dir="rtl"] .burger { margin-left: 0; margin-right: auto; }
[dir="rtl"] .ic-arrow { transform: scaleX(-1); }
[dir="rtl"] .hero { background: radial-gradient(1200px 600px at 15% 10%, rgba(254,159,67,.14), transparent 60%), var(--nuit); }
[dir="rtl"] .hero-bg i { right: auto; left: -6%; transform: skewX(16deg); }
[dir="rtl"] .hero-bg i:nth-child(1) { background: linear-gradient(270deg, rgba(254,159,67,.0), rgba(254,159,67,.22)); }
[dir="rtl"] .hero-bg i:nth-child(2) { background: linear-gradient(270deg, rgba(163,169,179,0), rgba(163,169,179,.14)); }
[dir="rtl"] .hero-bg i:nth-child(3) { background: linear-gradient(270deg, rgba(91,97,107,0), rgba(91,97,107,.22)); }
[dir="rtl"] .phone { right: auto; left: -18px; }
[dir="rtl"] .browser { direction: ltr; }
[dir="rtl"] .checks li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .checks li::before { left: auto; right: 0; }
[dir="rtl"] .compare th[scope="row"] { text-align: right; }
[dir="rtl"] .faq summary { padding: 18px 0 18px 30px; }
[dir="rtl"] .faq summary::after { right: auto; left: 0; }
[dir="rtl"] .highlights div { border-left: 0; border-right: 4px solid var(--orange); }
[dir="rtl"] .plan-badge { left: auto; right: 26px; }
[dir="rtl"] .step-n { transform: skewX(8deg); }
[dir="rtl"] .eyebrow::before { transform: skewX(16deg); }
@media (max-width: 600px) { [dir="rtl"] .phone { right: auto; left: -6px; } }
@media (max-width: 1180px) { .lang-nav > .ic { display: none; } }

/* Support mis en avant (accueil) */
.section-support { background: linear-gradient(180deg, var(--orange-soft) 0%, var(--blanc) 100%); }
.support-steps { list-style: none; display: grid; gap: 14px; margin: 24px 0; padding: 0; }
.support-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--blanc); border: 1px solid var(--ligne); }
.support-steps .step-n { flex: 0 0 40px; width: 40px; height: 40px; margin: 0; font-size: 1rem; }
.support-steps strong { display: block; color: var(--nuit); }
.support-steps p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }

/* Actualités (lot V) : rubriques, cartes, article. */
.news-cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.news-cats a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--ligne); color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 500; }
.news-cats a:hover { border-color: var(--orange); }
.news-cats a[aria-current="page"] { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.news-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--ligne); border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--shadow); }
.news-card h2 { font-size: 1.15rem; line-height: 1.35; margin: 0; }
.news-card h2 a { color: inherit; text-decoration: none; }
.news-card h2 a:hover { color: var(--ambre-logo); }
.news-card p { margin: 0; color: var(--muted); }
.news-meta { font-size: .82rem; color: var(--muted); margin: 0 0 6px; }
.news-cat { color: var(--ambre-logo); font-weight: 600; text-decoration: none; }
.news-more { margin-top: auto; font-weight: 600; color: var(--ambre-logo); text-decoration: none; }
.article h1 { margin: 6px 0 14px; }
.article-body { margin: 26px 0; line-height: 1.75; }
.article-body h2 { font-size: 1.3rem; margin: 30px 0 10px; }
.article-body p, .article-body ul { margin: 0 0 16px; }
.article-body ul { padding-inline-start: 22px; }

/* Cartes d'offre alignées : titre, description, prix, ligne annuelle, liste et bouton au même niveau d'une carte à l'autre. */
@supports (grid-template-rows: subgrid) {
  .plans > .plan { display: grid; grid-template-rows: subgrid; grid-row: span 6; row-gap: 0; align-content: start; }
  .plans > .plan .plan-desc { min-height: 0; }
  .plans > .plan .btn { align-self: end; margin-top: 18px; }
}
.plan .checks .plan-limit + .plan-limit { margin-top: -2px; }
.plan .checks .plan-limit:nth-child(2) { padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--ligne); }
.plan-best .checks .plan-limit:nth-child(2) { border-bottom-color: rgba(255,255,255,.14); }
/* « Sur mesure » : bandeau sous les offres. */
.plan-custom-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; padding: 22px 26px; border-radius: var(--r-xl); border: 1px dashed #C9CED6; background: var(--alt); }
.plan-custom-band h3 { font-size: 1.2rem; margin-bottom: 4px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan-custom-band .amount-text { font: 700 1rem var(--font-display); color: var(--ambre-logo); }
.plan-custom-band .plan-desc { min-height: 0; margin-bottom: 0; }
.plan-custom-band .btn { flex: none; }
.checks-inline { display: flex; flex-wrap: wrap; gap: 2px 22px; margin-top: 8px; font-size: .94rem; }
@media (max-width: 700px) { .plan-custom-band { flex-direction: column; align-items: stretch; } }

/* Documentation (lot AD) */
.doc-search { max-width: 520px; margin: 22px auto 0; }
.doc-search input { width: 100%; padding: 14px 18px; border: 1px solid var(--ligne); border-radius: 999px; font: inherit; background: #fff; }
.doc-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.doc-group { padding: 24px 26px; border: 1px solid var(--ligne); border-radius: var(--r-xl); background: #fff; }
.doc-group h2 { font-size: 1.2rem; margin-bottom: 10px; }
.doc-group ul { list-style: none; margin: 0; padding: 0; }
.doc-group li { padding: 10px 0; border-top: 1px solid var(--ligne); }
.doc-group li:first-child { border-top: 0; }
.doc-group li a { font-weight: 600; color: var(--nuit); }
.doc-group li a:hover { color: var(--ambre-logo); }
.doc-group li p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.doc-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #FDECEC; color: #C0262D; font-size: .72rem; font-weight: 700; vertical-align: middle; }
.doc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.doc-side { position: sticky; top: 90px; font-size: .92rem; }
.doc-side-title { font-weight: 700; margin-bottom: 8px; }
.doc-side ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ligne); }
.doc-side li a { display: block; padding: 6px 12px; color: var(--muted); }
.doc-side li a[aria-current="page"] { color: var(--nuit); font-weight: 700; border-left: 2px solid var(--orange); margin-left: -2px; }
.doc-side-back { margin-top: 14px; }
.doc-video { position: relative; aspect-ratio: 16 / 9; margin: 8px 0 26px; border-radius: var(--r-lg); overflow: hidden; background: #000; }
.doc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.doc-body h3 { font-size: 1.2rem; margin: 26px 0 10px; }
.doc-body ol.help-steps { counter-reset: step; list-style: none; padding: 0; }
.doc-body ol.help-steps > li { counter-increment: step; position: relative; padding: 10px 0 10px 50px; border-bottom: 1px dashed var(--ligne); }
.doc-body ol.help-steps > li::before { content: counter(step); position: absolute; left: 0; top: 8px; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: var(--nuit); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.doc-body .help-tip { margin: 16px 0; padding: 12px 16px; border-left: 4px solid var(--orange); background: var(--orange-soft); border-radius: 8px; }
.doc-pager { display: flex; justify-content: space-between; gap: 16px; margin: 30px 0; padding-top: 16px; border-top: 1px solid var(--ligne); font-weight: 600; }
.doc-cta { padding: 22px 24px; border-radius: var(--r-xl); background: var(--alt); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.doc-cta p { margin: 0; }
[dir="rtl"] .doc-side ul { border-left: 0; border-right: 2px solid var(--ligne); }
[dir="rtl"] .doc-side li a[aria-current="page"] { border-left: 0; border-right: 2px solid var(--orange); margin-left: 0; margin-right: -2px; }
[dir="rtl"] .doc-body ol.help-steps > li { padding: 10px 50px 10px 0; }
[dir="rtl"] .doc-body ol.help-steps > li::before { left: auto; right: 0; }
@media (max-width: 860px) { .doc-groups, .doc-layout { grid-template-columns: minmax(0, 1fr); } .doc-side { position: static; } }
/* En-tête : 5 liens + langues + connexion sur une ligne. */
.link-login, .nav a { white-space: nowrap; }
/* Barre du haut compacte : tient sans écraser le logo jusqu'au passage au menu replié (1200 px) */
.top-in { gap: 24px; } .nav { gap: 2px; margin-left: 6px; } .nav a { padding: 8px 9px; font-size: .92rem; } .top-cta { gap: 14px; }

/* Maquettes de téléphone (page « Travail hors ligne ») */
.phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; max-width: 1100px; margin: 32px auto 0; }
.phones figure { margin: 0; text-align: center; }
.mock-phone { position: relative; margin: 0 auto; max-width: 240px; padding: 10px; border-radius: 34px; background: #1F2329;
  box-shadow: 0 1px 2px rgba(31,35,41,.08), 0 18px 36px -12px rgba(31,35,41,.35), inset 0 0 0 2px #3a3f47; }
.mock-phone::before { content: ""; position: absolute; top: 16px; left: 50%; width: 56px; height: 6px; margin-left: -28px; border-radius: 6px; background: #3a3f47; z-index: 1; }
.mock-phone img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; border-radius: 26px; background: #f3f4f6; }
.phones figcaption { margin-top: 14px; font-size: .92rem; color: var(--muted); line-height: 1.45; }
.phones figcaption strong { display: block; color: var(--text); font-size: 1rem; margin-bottom: 2px; }
[dir="rtl"] .mock-phone { direction: ltr; }
