/* Guides Wassila (pages SEO/GEO servies en HTML complet) : mêmes couleurs que le site, clair et sombre. */
:root {
  --brand: #10B981; --brand-dark: #047857; --brand-deep: #0F3D2A; --brand-faint: #F0FDF4;
  --gold: #C49B2A; --gold-light: #E3C15A; --gold-faint: #FFFBEB;
  --surface: #FFFFFF; --surface-warm: #FAFAF7; --surface-cream: #F5F3EE;
  --text-primary: #111827; --text-secondary: #4B5563; --text-tertiary: #6B7280;
  --border: #E5E7EB; --shadow: 0 8px 30px rgba(0,0,0,0.06);
  --font-display: 'Poppins', sans-serif; --font-body: 'Inter', sans-serif; --font-arabic: 'Amiri', serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  /* Tons beige (plus de bleu nuit), comme le site */
  --brand: #1B7A4E; --brand-dark: #0F3D2A; --brand-deep: #0A2A1D; --brand-faint: rgba(27,122,78,0.10);
  --gold: #A67F16; --gold-light: #E3C15A; --gold-faint: rgba(196,155,42,0.12);
  --surface: #FBF6EC; --surface-warm: #F3EADB; --surface-cream: #ECE0CB;
  --text-primary: #2D2518; --text-secondary: #5C4E3C; --text-tertiary: #7E6E58;
  --border: #DFD0B6; --shadow: 0 8px 30px rgba(60,40,10,0.10);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface-warm); color: var(--text-primary); font-family: var(--font-body); font-size: 17px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-dark); }
:root[data-theme="dark"] a { color: var(--brand); }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 20px; }
.wide { max-width: 1160px; }

/* En-tête */
.g-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.g-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.g-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-primary); font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.g-logo img { width: 34px; height: 34px; }
.g-nav { display: flex; gap: 18px; margin-left: auto; }
.g-nav a { color: var(--text-secondary); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.g-nav a:hover { color: var(--brand-dark); }
.g-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-deep); color: #fff !important; text-decoration: none; padding: 10px 18px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: 15px; white-space: nowrap; }
:root[data-theme="dark"] .g-cta { background: var(--brand-deep); color: #fff !important; }
.g-theme { background: none; border: 1px solid var(--border); border-radius: 999px; width: 38px; height: 38px; cursor: pointer; font-size: 16px; color: var(--text-primary); }
@media (max-width: 1100px) { .g-nav { display: none; } .g-theme { margin-left: auto; } }
@media (max-width: 760px) { .g-header .g-cta { margin-left: auto; padding: 9px 14px; font-size: 14px; } }

/* Bandeau */
.g-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #0A2A1D, #0F3D2A 55%, #145C3A); color: #fff; }
.g-hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-img) center/cover; opacity: 0.22; }
.g-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 0%, rgba(227,193,90,0.25), transparent 60%); }
.g-hero .wrap { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 56px; }
.g-crumbs { font-size: 14px; opacity: 0.85; margin-bottom: 14px; }
.g-crumbs a { color: #fff; text-decoration: none; }
.g-kicker { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; color: var(--gold-light); }
.g-hero h1 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 48px); line-height: 1.15; margin: 8px 0 14px; }
.g-hero p.lead { font-size: 19px; opacity: 0.92; margin: 0; max-width: 680px; }
.g-meta { margin-top: 18px; font-size: 14px; opacity: 0.8; }

/* Contenu */
main { padding: 40px 0 20px; }
.g-answer { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--gold); border-radius: 18px; padding: 22px 26px; box-shadow: var(--shadow); margin-bottom: 32px; }
.g-answer strong.t { display: block; font-family: var(--font-display); font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.g-answer p { margin: 0; }
.g-toc { background: var(--surface-cream); border-radius: 18px; padding: 20px 26px; margin-bottom: 36px; }
.g-toc strong { font-family: var(--font-display); }
.g-toc ol { margin: 10px 0 0; padding-left: 22px; }
.g-toc li { margin: 4px 0; }
.g-toc a { text-decoration: none; }
article h2 { font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 30px); line-height: 1.25; margin: 48px 0 14px; scroll-margin-top: 80px; }
article h3 { font-family: var(--font-display); font-size: 20px; margin: 28px 0 8px; }
article p, article li { color: var(--text-secondary); }
article strong { color: var(--text-primary); }
article ul, article ol { padding-left: 24px; }
article li { margin: 6px 0; }
.ar { font-family: var(--font-arabic); font-size: 28px; line-height: 1.9; direction: rtl; text-align: right; color: var(--text-primary); margin: 0 0 4px; }
.box { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px 24px; margin: 18px 0; box-shadow: var(--shadow); }
.box.gold { background: var(--gold-faint); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.box.green { background: var(--brand-faint); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.box h3 { margin-top: 0; }
.dua .tr { font-style: italic; color: var(--brand-dark); margin: 2px 0; }
:root[data-theme="dark"] .dua .tr { color: var(--brand); }
.dua .src { font-size: 14px; color: var(--text-tertiary); margin: 6px 0 0; }
.steps { counter-reset: s; list-style: none; padding-left: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding-left: 56px; margin: 18px 0; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--brand-deep); color: var(--gold-light); font-family: var(--font-display); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 18px 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.card b { display: block; font-family: var(--font-display); color: var(--text-primary); margin-bottom: 4px; }
.card span { color: var(--text-secondary); font-size: 15px; line-height: 1.6; }
table { width: 100%; border-collapse: collapse; margin: 18px 0; background: var(--surface); border-radius: 14px; overflow: hidden; font-size: 15px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-cream); font-family: var(--font-display); font-weight: 600; color: var(--text-primary); }
td { color: var(--text-secondary); }
.tbl { overflow-x: auto; }
.note { font-size: 15px; color: var(--text-tertiary); }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 20px; margin: 10px 0; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; color: var(--text-primary); }
.faq details p { margin: 10px 0 0; }

/* Appel à l'appli */
.g-app { margin: 48px 0; border-radius: 24px; padding: 32px; color: #fff; background: linear-gradient(135deg, #0A2A1D, #145C3A); position: relative; overflow: hidden; }
.g-app::after { content: ""; position: absolute; width: 320px; height: 320px; right: -80px; top: -120px; border-radius: 50%; background: rgba(227,193,90,0.18); }
.g-app h2 { margin: 0 0 8px; color: #fff; font-family: var(--font-display); font-size: 26px; position: relative; z-index: 1; }
.g-app p { color: rgba(255,255,255,0.88); position: relative; z-index: 1; margin: 0 0 18px; }
.g-app .btns { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.g-app a.b1 { background: var(--gold-light); color: #0A2A1D !important; text-decoration: none; font-family: var(--font-display); font-weight: 700; padding: 12px 22px; border-radius: 999px; }
.g-app a.b2 { color: #fff !important; border: 1px solid rgba(255,255,255,0.4); text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 999px; }

/* Guides liés + pied de page */
.g-related { margin: 40px 0; }
.g-related h2 { font-family: var(--font-display); font-size: 24px; }
.g-related .grid a { text-decoration: none; }
.g-related .card:hover { border-color: var(--brand); }
.g-foot { background: var(--surface); border-top: 1px solid var(--border); margin-top: 40px; padding: 36px 0; font-size: 15px; color: var(--text-tertiary); }
.g-foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.g-foot h4 { font-family: var(--font-display); color: var(--text-primary); margin: 0 0 8px; font-size: 15px; }
.g-foot a { display: block; color: var(--text-secondary); text-decoration: none; margin: 4px 0; }
.g-foot .legal { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.g-theme, .g-logo { flex-shrink: 0; }
@media (max-width: 420px) { .g-header .wrap { gap: 10px; } .g-header .g-cta { padding: 8px 12px; font-size: 13px; } .g-logo { font-size: 18px; } .g-logo img { width: 30px; height: 30px; } }
.g-cta .s { display: none; }
@media (max-width: 420px) { .g-cta .l { display: none; } .g-cta .s { display: inline; } }
:root[data-theme="dark"] .g-logo { color: var(--text-primary); }
