/* arkandj.com — feuille de style unique */
:root {
  --navy: #0d1b2a;
  --navy-2: #16283b;
  --gold: #c9993a;
  --gold-dark: #a87c25;
  --cream: #f5f1e8;
  --ink: #1b2430;
  --muted: #5b6b7c;
  --line: #e3ddd0;
  --bg: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(13, 27, 42, 0.08);
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; font: 400 17px/1.65 var(--sans); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--gold-dark); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--navy); margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.skip, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; inset-inline-start: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font: 600 0.95rem var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform 0.15s, background 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #d8aa4c; color: var(--navy); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost-light { border-color: rgba(245, 241, 232, 0.5); color: var(--cream); }
.btn-ghost-light:hover { color: #fff; border-color: var(--cream); }
.btn-brand { background: var(--c); color: #fff; }
.btn-brand:hover { color: #fff; filter: brightness(1.08); }
.btn-outline { border-color: var(--c); color: var(--c); background: #fff; }
.btn-outline:hover { color: var(--c); }
button.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.header-tools { display: flex; align-items: center; gap: 8px; order: 3; }
.brand img { height: 44px; width: auto; }
#nav { display: flex; align-items: center; gap: 28px; }
#nav > ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
#nav > ul > li > a { text-decoration: none; font-weight: 500; color: var(--ink); padding: 8px 0; }
#nav > ul > li > a[aria-current] { color: var(--gold-dark); }
.has-menu { position: relative; }
.menu { position: absolute; top: 100%; inset-inline-start: -16px; min-width: 300px; list-style: none; margin: 8px 0 0; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: 0.15s; }
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: none; }
.menu a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.menu a:hover { background: var(--cream); }
.menu img { width: 28px; height: 28px; }
.menu small { display: block; color: var(--muted); font-size: 0.82rem; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; transition: 0.2s; }

/* Hero */
.hero { background: radial-gradient(1000px 500px at 85% 20%, #1d3550 0, transparent 60%), var(--navy); color: var(--cream); padding: clamp(56px, 9vw, 110px) 0; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(245, 241, 232, 0.86); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.hero-art { display: grid; grid-template-columns: repeat(2, 120px); gap: 22px; justify-content: center; }
.hero-art picture:nth-child(even) { transform: translateY(28px); }
.hero-art img { width: 120px; height: 120px; border-radius: 26px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 600; color: var(--gold); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; font-size: 0.92rem; color: rgba(245, 241, 232, 0.8); }
.trust li::before { content: '✓'; color: var(--gold); margin-right: 6px; }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section.alt { background: var(--cream); }
.section-title { text-align: center; }
.section-lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 40px; }
.page-head { background: var(--cream); padding: 40px 0 48px; }
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; padding: 14px 0; margin: 0; font-size: 0.88rem; color: var(--muted); }
.crumbs li + li::before { content: '›'; margin: 0 8px; }
[dir='rtl'] .crumbs li + li::before { content: '‹'; }
.crumbs a { color: var(--muted); }

/* Cartes produits */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.product-card, .article-card { position: relative; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--c); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.product-card img { width: 64px; height: 64px; border-radius: 14px; margin-bottom: 16px; }
.product-card h3 a, .product-card h2 a, .article-card h2 a { text-decoration: none; color: var(--navy); }
.product-card h2 { font-size: 1.3rem; }
.article-card h2 { font-size: 1.35rem; }
.kicker { color: var(--c); font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.product-card p:not(.kicker) { color: var(--muted); font-size: 0.97rem; }
.more { margin-top: auto; font-weight: 600; color: var(--c); text-decoration: none; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }
.features > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; border-inline-start: 4px solid var(--c, var(--gold)); }
.features-4 { grid-template-columns: repeat(4, 1fr); }
.features p { color: var(--muted); margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 32px 0 0; justify-content: center; }
.checks li { background: var(--cream); border-radius: 999px; padding: 8px 16px; font-size: 0.93rem; }
.checks li::before { content: '✓ '; color: var(--gold-dark); font-weight: 700; }
.sectors { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 32px 0 0; }
.sectors li { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; font-weight: 500; }

/* Page produit */
.product-hero { background: linear-gradient(180deg, var(--soft), #fff); padding: 48px 0 64px; }
.product-hero .eyebrow { color: var(--c); }
.product-logo { background: #fff; border-radius: 24px; padding: 32px; box-shadow: var(--shadow); display: flex; justify-content: center; }
.product-logo img { height: auto; max-height: 96px; width: auto; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }
.plan { background: #fff; border-radius: var(--radius); padding: 28px; border-top: 5px solid var(--c); box-shadow: var(--shadow); }
.plan a { color: var(--c); font-weight: 600; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold-dark); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Bandeau d'appel à l'action */
.cta-band { background: var(--navy); color: var(--cream); padding: 56px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; color: rgba(245, 241, 232, 0.8); }

/* Articles */
.article { padding: 32px 0 72px; }
.article h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose ul, .article ul, .article ol { padding-inline-start: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.note { background: var(--cream); border-inline-start: 4px solid var(--gold); padding: 14px 18px; border-radius: 8px; font-size: 0.95rem; }
.inline-cta { display: flex; gap: 18px; align-items: center; background: var(--soft); border-radius: var(--radius); padding: 22px; margin-top: 40px; }
.inline-cta img { width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0; }
.inline-cta p { margin: 0 0 6px; }
.inline-cta a { color: var(--c); font-weight: 600; }
.links li { margin-bottom: 8px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 0.95rem; }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border: 1px solid #cfc7b6; border-radius: 10px; background: #fff; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form .consent-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.form .consent-check input { width: auto; margin-top: 4px; }
.form .btn { justify-self: start; }
.form-error { background: #fdecea; color: #8a1f11; padding: 12px 16px; border-radius: 10px; margin: 0; }
.contact-card { background: var(--cream); border-radius: var(--radius); padding: 28px; }
.contact-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }

/* Pied de page */
.site-footer { background: #0a1520; color: rgba(245, 241, 232, 0.78); padding: 56px 0 0; font-size: 0.94rem; }
.site-footer h2 { color: #fff; font-family: var(--sans); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
.site-footer a { color: rgba(245, 241, 232, 0.88); }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer img { height: 44px; width: auto; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 40px; padding: 20px 0; font-size: 0.85rem; }
.footer-legal p { margin: 0; }

/* Bandeau cookies */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 720px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(13, 27, 42, 0.25); padding: 18px 20px; display: flex; gap: 16px; align-items: center; }
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: 0.92rem; }
.consent div { display: flex; gap: 8px; flex-shrink: 0; }

/* Sélecteur de langue */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 0.85rem; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ' ▾'; font-size: 0.7rem; }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 160px; z-index: 60; }
.lang a { display: block; padding: 7px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.lang a:hover { background: var(--cream); }
.lang a[aria-current] { font-weight: 700; color: var(--gold-dark); }

/* WhatsApp */
.btn-wa { background: #25d366; color: #073b1c; }
.btn-wa:hover { background: #1fbb59; color: #073b1c; }
.btn-wa svg, .wa-start svg { width: 20px; height: 20px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.wa { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 80; }
.wa-btn { width: 60px; height: 60px; border-radius: 50%; border: 0; background: #25d366; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25); transition: transform 0.15s; }
.wa-btn:hover { transform: scale(1.06); }
.wa-btn::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); animation: wa-pulse 2.4s infinite; }
@keyframes wa-pulse { 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.wa-panel { position: absolute; inset-inline-end: 0; bottom: 76px; width: min(340px, calc(100vw - 40px)); background: #efeae2; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(13, 27, 42, 0.3); }
.wa-panel[hidden] { display: none; }
.wa-head { display: flex; align-items: center; gap: 12px; background: #075e54; color: #fff; padding: 14px 16px; }
.wa-head img { width: 40px; height: 40px; border-radius: 50%; }
.wa-head div { flex: 1; line-height: 1.3; }
.wa-head small { display: block; opacity: 0.8; font-size: 0.78rem; }
.wa-close { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.wa-body { padding: 18px 16px; }
.wa-bubble { background: #fff; border-radius: 0 12px 12px 12px; padding: 10px 14px; margin: 0; font-size: 0.95rem; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); }
[dir='rtl'] .wa-bubble { border-radius: 12px 0 12px 12px; }
.wa-start { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 16px 16px; padding: 12px; border-radius: 999px; background: #25d366; color: #073b1c; font-weight: 700; text-decoration: none; }
.wa-start:hover { background: #1fbb59; color: #073b1c; }
.consent { z-index: 90; }
body:has(.consent:not([hidden])) .wa { bottom: 150px; }

/* Articles dynamiques */
.article-cover { width: calc(100% + 52px); max-width: none; margin: -26px -26px 16px; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.article-card { overflow: hidden; }
.article-hero { width: 100%; border-radius: var(--radius); margin: 8px 0 24px; }
.article-body h2 { margin-top: 1.6em; font-size: 1.5rem; }
.other-lang { margin-top: 48px; }

/* Arabe (droite à gauche) */
[dir='rtl'] body, [dir='rtl'] .btn, [dir='rtl'] .site-footer h2 { font-family: 'IBM Plex Sans Arabic', var(--sans); }
[dir='rtl'] h1, [dir='rtl'] h2, [dir='rtl'] h3 { font-family: 'IBM Plex Sans Arabic', var(--serif); font-weight: 700; line-height: 1.35; }
[dir='rtl'] .eyebrow { letter-spacing: 0; }
[dir='rtl'] .trust li::before { margin: 0 0 0 6px; }
[dir='rtl'] .hero { background: radial-gradient(1000px 500px at 15% 20%, #1d3550 0, transparent 60%), var(--navy); }

/* Responsive */
@media (max-width: 1024px) {
  .cards, .features, .features-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-header .wrap { gap: 12px; }
  #nav { position: fixed; inset: 72px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav-open #nav { display: flex; }
  #nav > ul { flex-direction: column; gap: 0; }
  #nav > ul > li > a { display: block; padding: 12px 4px; }
  .menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px; min-width: 0; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .product-logo { order: -1; padding: 20px; }
  .cards-3, .plans { grid-template-columns: 1fr; }
  .consent { flex-direction: column; align-items: stretch; }
}
@media (max-width: 600px) {
  .cards, .cards-2, .features, .features-4, .footer-grid, .form .row { grid-template-columns: 1fr; }
  .brand img { height: 36px; }
  .wa { inset-inline-end: 14px; bottom: 14px; }
  .wa-btn { width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
