/* ===================================================================
   RICHOU INFORMATIQUE — Design system (Or & Noir)
   Palette : noir profond · or · anthracite
   =================================================================== */

:root {
  --navy:        #0d0d0f;
  --navy-2:      #16161a;
  --navy-3:      #201f26;
  --blue:        #9a7b12;   /* or lisible sur blanc (texte, bordures) */
  --blue-dark:   #7d6410;
  --gold:        #d4af37;   /* or brillant (fonds sombres, accents) */
  --gold-bright: #e7c766;
  --sky:         #e7c766;
  --anthracite:  #1a1a1e;
  --slate:       #52525b;
  --slate-light: #6b6b73;
  --line:        #e7e4dc;
  --line-dark:   rgba(212,175,55,.18);
  --bg:          #ffffff;
  --bg-soft:     #faf8f3;
  --bg-softer:   #f3efe4;
  --ink:         #111114;
  --ink-soft:    #33323a;
  --white:       #ffffff;

  --f-head: 'Manrope', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, sans-serif;

  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 10px 30px -12px rgba(0,0,0,.35);
  --shadow-lg: 0 30px 60px -25px rgba(0,0,0,.5);
  --header-h: 76px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { font-family: var(--f-body); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; max-width: 100%; }
img, canvas, svg, iframe, video { max-width: 100%; }
h1,h2,h3,h4,.logo-text { font-family: var(--f-head); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.grad { background: linear-gradient(120deg,var(--gold),var(--gold-bright)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.eyebrow { display: inline-block; font-family: var(--f-head); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.eyebrow.on-dark { color: var(--sky); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1.6rem; border-radius: 999px; font-family: var(--f-head); font-weight: 600; font-size: .95rem; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg,var(--gold),var(--gold-bright)); color: #17130a; box-shadow: 0 12px 24px -10px rgba(212,175,55,.55); }
.btn-primary:hover { background: linear-gradient(135deg,var(--gold-bright),var(--gold)); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* Top bar */
.topbar { background: var(--navy); color: #e8e2d2; font-size: .82rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.topbar a { color: #e8e2d2; transition: color .15s; }
.topbar a:hover { color: #fff; }
.topbar .tb-left { display: flex; gap: 1.4rem; }
.topbar .tb-right { display: flex; gap: 1.1rem; align-items: center; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: .4rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 130; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.logo { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.logo-mark { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; background: url('../assets/logo-emblem.webp') center/84% no-repeat, radial-gradient(circle at 50% 38%,#18181d,#0b0b0d); color: transparent; font-size: 0; border: 1px solid rgba(212,175,55,.45); box-shadow: 0 6px 16px -6px rgba(212,175,55,.45); }
.logo-text { font-size: 1.2rem; letter-spacing: -.02em; }
.logo-text b { color: var(--blue); font-weight: 800; }
.logo-sub { display: block; font-family: var(--f-body); font-size: .64rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--slate-light); margin-top: -2px; }

.main-nav { display: flex; align-items: center; gap: .15rem; }
.main-nav > a, .nav-item > a { display: inline-flex; align-items: center; gap: .3rem; padding: .6rem .8rem; border-radius: 9px; font-size: .93rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap; transition: color .15s, background .15s; }
.main-nav > a:hover, .nav-item > a:hover, .nav-item:hover > a { color: var(--blue); background: var(--bg-soft); }
.main-nav a.active { color: var(--blue); }
.nav-item { position: relative; }
.nav-item .caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; opacity: .6; transition: transform .2s; }
.nav-item:hover .caret { transform: rotate(225deg); margin-top: 3px; }
.dropdown { position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s var(--ease); }
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: 9px; font-size: .9rem; color: var(--ink-soft); transition: background .15s, color .15s; }
.dropdown a:hover { background: var(--bg-soft); color: var(--blue); }
.dropdown a .di { font-size: 1.1rem; }
.header-cta { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.hcontact { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: 1.05rem; transition: transform .2s, border-color .2s, background .2s; }
.hcontact:hover { transform: translateY(-2px); border-color: var(--blue); }
.theme-dark .hcontact { border-color: rgba(212,175,55,.35); }
.theme-dark .hcontact:hover { border-color: var(--gold-bright); background: rgba(212,175,55,.1); }
@media (max-width: 900px) { .hcontact { display: none; } }
/* Logos WhatsApp (SVG) */
.hcontact svg, .wa-float svg, .footer-social a svg, .mobile-bar .wa-ico svg { display: block; }
.hcontact svg { width: 20px; height: 20px; }
.hcontact.wa { color: #25d366; }
.theme-dark .hcontact.wa { color: #25d366; }
.wa-float svg { width: 28px; height: 28px; }
.footer-social a svg { width: 18px; height: 18px; }
.mobile-bar .wa-ico { display: inline-flex; }
.mobile-bar .wa-ico svg { width: 22px; height: 22px; color: #25d366; }
.footer-col .wa-inline { display: inline-flex; vertical-align: -3px; color: #25d366; }
.footer-col .wa-inline svg { width: 15px; height: 15px; }
.contact-tile .ic.wa { color: #25d366; }
.contact-tile .ic svg { width: 20px; height: 20px; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero IA */
.hero { position: relative; color: #fff; overflow: hidden; background: radial-gradient(900px 500px at 78% 0%, rgba(212,175,55,.14), transparent 60%), radial-gradient(700px 500px at 8% 30%, rgba(231,199,102,.06), transparent 55%), linear-gradient(180deg,#08080a,#0d0d10 60%,#0a0a0c); }
#ai-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::before { content:""; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(600px 320px at 80% 5%, rgba(212,175,55,.16), transparent 60%); }
.hero .container { position: relative; z-index: 2; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 88px 0 72px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem,4.6vw,3.5rem); margin: 1.1rem 0 1.2rem; }
.hero h1 span { color: var(--sky); }
.hero .lead { color: #d9d3c4; font-size: 1.12rem; max-width: 34rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.hero-trust { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-trust div strong { display: block; font-family: var(--f-head); font-size: 1.5rem; color: #fff; }
.hero-trust div span { font-size: .84rem; color: #a9a390; }
.hero-visual { position: relative; }
.hero-logo-wrap { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero-logo { width: min(400px,84%); aspect-ratio: 1/1; background: url('../assets/logo-transparent.webp') center/contain no-repeat; filter: drop-shadow(0 14px 34px rgba(212,175,55,.42)); z-index: 2; animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(212,175,55,.28); box-shadow: inset 0 0 40px rgba(212,175,55,.06); }
.ring.r1 { width: 300px; height: 300px; animation: spin 22s linear infinite; }
.ring.r2 { width: 400px; height: 400px; border-style: dashed; border-color: rgba(212,175,55,.18); animation: spin 34s linear infinite reverse; }
.ring.r3 { width: 500px; height: 500px; border-color: rgba(212,175,55,.10); }
@keyframes spin { to { transform: rotate(360deg); } }
.ring .orb { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 14px 3px rgba(231,199,102,.7); transform: translateX(-50%); }
.hero-glowdot { position: absolute; inset: 0; margin: auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(212,175,55,.20), transparent 65%); z-index: 0; filter: blur(6px); }

.trust-strip { border-top: 1px solid rgba(255,255,255,.12); position: relative; z-index: 2; }
.trust-strip .container { display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; justify-content: center; padding-top: 26px; padding-bottom: 26px; }
.trust-strip span { color: #a9a390; font-size: .82rem; font-weight: 600; letter-spacing: .06em; }
.trust-strip .tlogo { color: #e8e2d2; font-family: var(--f-head); font-weight: 700; opacity: .85; font-size: 1.05rem; }

/* Module IA */
.ai-module { background: linear-gradient(160deg,#0e0e12,#141018); border: 1px solid rgba(212,175,55,.22); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.ai-module::after { content:""; position:absolute; inset:0; background: radial-gradient(400px 200px at 100% 0%, rgba(212,175,55,.12), transparent 60%); pointer-events:none; }
.ai-chat { position: relative; z-index: 1; }
.ai-avatar { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(140deg,var(--gold),var(--gold-bright)); color: #17130a; display: grid; place-items: center; font-size: 1.1rem; font-weight: 800; flex-shrink: 0; }
.ai-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.ai-head b { color: #fff; font-family: var(--f-head); display: block; }
.ai-head span { color: #6ee7b7; font-size: .8rem; display: inline-flex; align-items: center; gap: .35rem; }
.ai-head span i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
.ai-bubble { background: rgba(255,255,255,.04); border: 1px solid rgba(212,175,55,.16); border-radius: 14px; padding: 1rem 1.2rem; color: #e8e2d2; min-height: 74px; font-size: 1.02rem; }
.ai-bubble .cursor { display: inline-block; width: 2px; height: 1.1em; background: var(--gold-bright); margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ai-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.ai-chips a { border: 1px solid rgba(212,175,55,.3); color: var(--gold-bright); padding: .4rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 600; transition: .18s; }
.ai-chips a:hover { background: rgba(212,175,55,.12); }
.ai-features { display: grid; gap: 1rem; }
.ai-feature { display: flex; gap: .9rem; align-items: flex-start; }
.ai-feature .fi { width: 40px; height: 40px; border-radius: 10px; background: rgba(212,175,55,.1); border: 1px solid rgba(212,175,55,.22); display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; }
.ai-feature b { display: block; font-family: var(--f-head); }
.ai-feature p { color: var(--slate); font-size: .9rem; margin: 0; }
.section-navy .ai-feature b { color: #fff; }
.section-navy .ai-feature p { color: #cbc4b2; }

/* Sections */
.section { padding: 92px 0; }
.section-sm { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 42rem; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem,3.6vw,2.6rem); margin: .6rem 0 .8rem; }
.section-head p { color: var(--slate); font-size: 1.05rem; }
.section-navy .section-head p { color: #cbc4b2; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #e0d8c4; }
.card-ico { width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center; font-size: 1.5rem; background: linear-gradient(145deg,var(--bg-softer),#fff); border: 1px solid var(--line); margin-bottom: 1.1rem; }
.card h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.card p { color: var(--slate); font-size: .95rem; }
.card .card-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; color: var(--blue); font-weight: 600; font-size: .9rem; }
.card .card-link:hover { gap: .6rem; }
.cat-card { border-top: 3px solid var(--gold); }
.cat-card .cat-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.cat-card .cat-head .emo { font-size: 1.8rem; }
.cat-card ul li { padding: .5rem 0; border-top: 1px dashed var(--line); color: var(--ink-soft); font-size: .95rem; display: flex; align-items: center; gap: .5rem; }
.cat-card ul li::before { content: "→"; color: var(--blue); font-weight: 700; }

.steps { counter-reset: step; display: grid; gap: 24px; grid-template-columns: repeat(5,1fr); }
.step { position: relative; padding-top: 1rem; }
.step .num { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--gold); font-family: var(--f-head); font-weight: 700; display: grid; place-items: center; margin-bottom: 1rem; border: 1px solid rgba(212,175,55,.4); }
.step h4 { font-size: 1.05rem; margin-bottom: .4rem; }
.step p { color: var(--slate); font-size: .9rem; }

.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat { text-align: center; padding: 1.5rem 1rem; }
.stat strong { display: block; font-family: var(--f-head); font-size: 2.6rem; color: var(--blue); }
.section-navy .stat strong { color: var(--sky); }
.stat span { color: var(--slate); font-size: .95rem; }
.section-navy .stat span { color: #cbc4b2; }

.checks li { position: relative; padding-left: 2rem; margin-bottom: .7rem; color: var(--ink-soft); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(212,175,55,.14); color: var(--blue); font-weight: 700; font-size: .8rem; display: grid; place-items: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .media { border-radius: var(--radius-lg); min-height: 340px; background: linear-gradient(150deg,var(--navy),var(--navy-3)); position: relative; overflow: hidden; display: grid; place-items: center; box-shadow: var(--shadow); border: 1px solid rgba(212,175,55,.2); }
.split .media .badge-xl { text-align: center; color: #fff; padding: 2rem; }
.split .media .badge-xl strong { display: block; font-family: var(--f-head); font-size: 3rem; color: var(--sky); }

.cta-band { background: linear-gradient(135deg,var(--navy),var(--navy-2)); color: #fff; border-radius: var(--radius-lg); padding: 56px; position: relative; overflow: hidden; border: 1px solid rgba(212,175,55,.25); }
.cta-band::before { content:""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 90% 10%, rgba(212,175,55,.25), transparent 60%); }
.cta-band .container, .cta-band-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 1.9rem; }
.cta-band p { color: #d9d3c4; margin-top: .4rem; }

.page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; padding: 64px 0 58px; }
.page-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(600px 300px at 85% 0%, rgba(212,175,55,.22), transparent 60%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2rem,4vw,2.9rem); margin-bottom: .7rem; }
.page-hero p { color: #d9d3c4; max-width: 40rem; font-size: 1.05rem; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: #a9a390; margin-bottom: 1.1rem; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .5; }

/* Formulaires */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .4rem; color: var(--ink-soft); }
.field .req { color: var(--blue); }
.field input, .field select, .field textarea { width: 100%; padding: .82rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-family: inherit; font-size: .95rem; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(212,175,55,.16); }
.field textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stepper { display: flex; align-items: center; gap: .5rem; margin-bottom: 2rem; }
.stepper .s { flex: 1; text-align: center; position: relative; }
.stepper .s .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-softer); color: var(--slate); font-weight: 700; font-family: var(--f-head); display: grid; place-items: center; margin: 0 auto .4rem; border: 2px solid var(--line); transition: .25s; }
.stepper .s small { color: var(--slate); font-size: .78rem; font-weight: 600; }
.stepper .s.active .dot { background: var(--gold); color: #17130a; border-color: var(--gold); }
.stepper .s.done .dot { background: #f6edcf; color: var(--blue); border-color: #e7d18f; }
.stepper .s::after { content:""; position:absolute; top:17px; left:60%; width:80%; height:2px; background: var(--line); z-index:-1; }
.stepper .s:last-child::after { display:none; }
.form-step { display: none; }
.form-step.active { display: block; animation: fadeUp .35s var(--ease); }
.choice-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .8rem; }
.choice { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; cursor: pointer; transition: .18s; display: flex; align-items: center; gap: .7rem; }
.choice:hover { border-color: var(--blue); }
.choice input { width: auto; margin: 0; accent-color: var(--gold); }
.choice.selected { border-color: var(--blue); background: rgba(212,175,55,.06); }
.step-actions { display: flex; justify-content: space-between; margin-top: 1.5rem; gap: 1rem; }
.form-note { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-size: .92rem; }
.form-note.ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.form-note.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* FAQ */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .8rem; background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 1.15rem 1.3rem; font-family: var(--f-head); font-weight: 600; font-size: 1.02rem; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-q .ic { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-softer); display: grid; place-items: center; transition: .25s; font-weight: 700; color: var(--blue); }
.faq-item.open .faq-q .ic { transform: rotate(45deg); background: var(--gold); color: #17130a; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a p { padding: 0 1.3rem 1.2rem; color: var(--slate); }

/* Portfolio */
.folio-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.folio { border-radius: var(--radius); overflow: hidden; position: relative; min-height: 220px; background: linear-gradient(150deg,var(--navy-2),var(--navy)); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; border: 1px solid rgba(212,175,55,.18); transition: transform .25s var(--ease), box-shadow .25s; }
.folio:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.folio .tagcat { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); }
.folio h4 { color: #fff; font-size: 1.1rem; margin: .3rem 0; }
.folio p { color: #cbc4b2; font-size: .88rem; }

/* Témoignages */
.testi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.testi .stars { color: #f59e0b; margin-bottom: .8rem; letter-spacing: 2px; }
.testi p { color: var(--ink-soft); font-style: italic; margin-bottom: 1.2rem; }
.testi .who { display: flex; align-items: center; gap: .8rem; }
.testi .who .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(140deg,var(--navy-2),var(--gold)); color: #17130a; display: grid; place-items: center; font-family: var(--f-head); font-weight: 700; }
.testi .who b { display: block; font-family: var(--f-head); }
.testi .who span { color: var(--slate); font-size: .85rem; }

/* Blog */
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-thumb { height: 170px; background: linear-gradient(150deg,var(--navy-2),var(--gold)); position: relative; display: grid; place-items: center; color: #17130a; font-size: 2.4rem; }
.post-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-body .meta { font-size: .78rem; color: var(--slate-light); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.post-body h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.post-body p { color: var(--slate); font-size: .92rem; flex: 1; }
.post-body .card-link { color: var(--blue); font-weight: 600; font-size: .9rem; margin-top: .8rem; display: inline-flex; gap: .35rem; }
.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-size: 1.6rem; margin: 2rem 0 .8rem; }
.article h3 { font-size: 1.25rem; margin: 1.6rem 0 .6rem; }
.article p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.article ul { margin: 0 0 1.1rem 1.2rem; list-style: disc; color: var(--ink-soft); }
.article ul li { margin-bottom: .4rem; }
.article blockquote { border-left: 4px solid var(--gold); padding: .6rem 0 .6rem 1.2rem; margin: 1.4rem 0; color: var(--slate); font-style: italic; background: var(--bg-soft); border-radius: 0 8px 8px 0; }

/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-bottom: 1.6rem; }
.contact-tile { display: flex; align-items: center; gap: .9rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: .2s; }
.contact-tile:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.contact-tile .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--bg-softer); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-tile b { display: block; font-family: var(--f-head); font-size: .95rem; }
.contact-tile span { color: var(--slate); font-size: .85rem; }
.map-embed { border: 0; border-radius: var(--radius); width: 100%; min-height: 300px; }

/* Footer */
.site-footer { background: var(--navy); color: #cbc4b2; padding: 64px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { margin-top: 1rem; font-size: .92rem; color: #a9a390; max-width: 24rem; }
.footer-col { min-width: 0; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer-col a { display: block; padding: .3rem 0; color: #a9a390; font-size: .92rem; transition: color .15s; overflow-wrap: anywhere; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #e8e2d2; transition: .2s; }
.footer-social a:hover { background: var(--gold); color: #17130a; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.2rem; padding: 20px 0 4px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-legal a { color: #a9a390; font-size: .84rem; }
.footer-legal a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: #8f887a; }
.footer-bottom a { color: #a9a390; }
.footer-bottom a:hover { color: #fff; }

/* Bandeau cookies */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 95; max-width: 720px; margin: 0 auto; background: #0e0e12; border: 1px solid rgba(212,175,55,.3); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.cookie-banner[hidden] { display: none !important; }
.cookie-banner p { color: #d9d3c4; font-size: .88rem; margin: 0; flex: 1; min-width: 220px; }
.cookie-banner a { color: var(--gold-bright); text-decoration: underline; }
.cookie-actions { display: flex; gap: .6rem; flex-shrink: 0; }
.cookie-actions .btn { padding: .6rem 1.2rem; font-size: .88rem; }

/* Toast (confirmation copie email) */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); z-index: 200; background: #0e0e12; color: #fff; border: 1px solid rgba(212,175,55,.4); border-radius: 999px; padding: .7rem 1.3rem; font-size: .9rem; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .25s, transform .25s; }
.toast[hidden] { display: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast b { color: var(--gold-bright); }

/* WhatsApp flottant */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px -8px rgba(37,211,102,.6); font-size: 1.6rem; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }

/* Accessibilité : lien d'évitement + focus visible */
.skip-link { position: fixed; left: 8px; top: -60px; z-index: 200; background: var(--gold); color: #17130a; padding: .7rem 1.2rem; border-radius: 10px; font-family: var(--f-head); font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .faq-q:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* Retour en haut */
.to-top { position: fixed; left: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--gold); border: 1px solid rgba(212,175,55,.5); cursor: pointer; font-size: 1.2rem; box-shadow: var(--shadow); transition: transform .2s, opacity .3s; }
.to-top[hidden] { display: none; }
.to-top:hover { transform: translateY(-3px); }

/* Barre d'action mobile */
.mobile-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 92; background: rgba(13,13,15,.96); backdrop-filter: blur(10px); border-top: 1px solid rgba(212,175,55,.28); }
.mobile-bar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; color: #e8e2d2; font-size: .72rem; font-weight: 600; }
.mobile-bar a span { font-size: 1.2rem; }
.mobile-bar a.mb-cta { color: #17130a; background: linear-gradient(135deg,var(--gold),var(--gold-bright)); }
@media (max-width: 720px) {
  .mobile-bar { display: flex; }
  .wa-float { bottom: 74px; width: 50px; height: 50px; font-size: 1.4rem; }
  .to-top { bottom: 74px; left: 16px; width: 42px; height: 42px; }
  .cookie-banner { bottom: 74px; }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Utils */
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-0{margin-bottom:0}.center{text-align:center}.muted{color:var(--slate)}

/* Responsive */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .hero-inner, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-logo-wrap { min-height: 320px; }
  .ring.r3 { display:none; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .folio-grid { grid-template-columns: 1fr 1fr; }
  .topbar { display: none; }
  .ring, .hero-glowdot { display: none; }         /* pas d'anneaux hors écran sur mobile */
  .section, .page-hero, .hero { overflow-x: clip; } /* aucun débordement horizontal possible */
  /* Tiroir latéral glassmorphique */
  .main-nav { position: fixed; top: 0; right: 0; height: 100dvh; width: min(84%, 340px); flex-direction: column; align-items: stretch; gap: 3px; background: rgba(11,11,15,.82); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-left: 1px solid rgba(212,175,55,.28); border-radius: 26px 0 0 26px; padding: 90px 16px 24px; box-shadow: -24px 0 70px -24px rgba(0,0,0,.75); transform: translateX(106%); transition: transform .55s cubic-bezier(.34,1.56,.64,1); overflow-y: auto; z-index: 120; }
  .main-nav.open { transform: none; }
  /* Apparition en cascade avec rebond */
  .main-nav > a, .main-nav > .nav-item { opacity: 0; transform: translateX(28px); transition: opacity .35s ease, transform .5s cubic-bezier(.34,1.56,.64,1); }
  .main-nav.open > a, .main-nav.open > .nav-item { opacity: 1; transform: none; }
  .main-nav.open > *:nth-child(1) { transition-delay: .08s; }
  .main-nav.open > *:nth-child(2) { transition-delay: .12s; }
  .main-nav.open > *:nth-child(3) { transition-delay: .16s; }
  .main-nav.open > *:nth-child(4) { transition-delay: .20s; }
  .main-nav.open > *:nth-child(5) { transition-delay: .24s; }
  .main-nav.open > *:nth-child(6) { transition-delay: .28s; }
  .main-nav.open > *:nth-child(7) { transition-delay: .32s; }
  .main-nav.open > *:nth-child(8) { transition-delay: .36s; }
  .main-nav > a, .nav-item > a { padding: .95rem 1rem; border-radius: 12px; color: #e8e2d2; font-size: 1rem; }
  .main-nav > a:hover, .nav-item > a:hover, .nav-item:hover > a { background: rgba(255,255,255,.07); color: #fff; }
  .main-nav a.active { color: var(--gold-bright); background: rgba(212,175,55,.08); }
  .nav-item .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; border: 0; border-left: 2px solid rgba(212,175,55,.3); border-radius: 0; margin: .2rem 0 .5rem .8rem; padding: 0; display: none; }
  .nav-item.open .dropdown { display: block; }
  .nav-item .dropdown a { color: #cfc9ba; }
  .nav-item .dropdown a:hover { color: #fff; background: rgba(255,255,255,.06); }
  .nav-item .caret { margin-left: auto; }
  .burger { display: flex; }
  .header-cta .btn-primary { display: none; } /* devis dispo dans le menu + barre mobile */
  .logo-sub { display: none; }
  .logo-mark { width: 42px; height: 42px; }
  .logo-text { font-size: 1.08rem; }
}
@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .site-footer { padding-bottom: 84px; } /* place pour la barre mobile */
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .folio-grid, .contact-cards, .field-row { grid-template-columns: 1fr; }
  .steps, .stats { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .footer-brand p { max-width: none; }
  .section { padding: 60px 0; }
  .cta-band { padding: 36px 26px; }
  .choice-grid { grid-template-columns: 1fr; }
  .cookie-banner { bottom: 84px; }
  .cookie-actions { width: 100%; } .cookie-actions .btn { flex: 1; }
}

/* ===================================================================
   THÈME "GLASS & NÉON" — page d'accueil (body.theme-dark)
   =================================================================== */
body.theme-dark {
  background:
    radial-gradient(720px 480px at 10% 4%, rgba(212,175,55,.12), transparent 60%),
    radial-gradient(820px 560px at 92% 22%, rgba(231,199,102,.07), transparent 60%),
    radial-gradient(700px 600px at 50% 100%, rgba(212,175,55,.05), transparent 60%),
    #07070a;
  background-attachment: fixed;
  color: #ece7da;
}
.theme-dark .section, .theme-dark .section-soft, .theme-dark .section-navy { background: transparent; }
.theme-dark h1, .theme-dark h2, .theme-dark h3, .theme-dark h4 { color: #fff; }
.theme-dark .section-head p, .theme-dark .muted { color: #b3ae9f; }
.theme-dark .eyebrow, .theme-dark .eyebrow.on-dark { color: var(--gold-bright); }

/* Header sombre translucide sur l'accueil */
.theme-dark .site-header { background: rgba(8,8,11,.72); border-bottom-color: rgba(212,175,55,.14); }
.theme-dark .logo-text { color: #fff; }
.theme-dark .main-nav > a, .theme-dark .nav-item > a { color: #cfc9ba; }
.theme-dark .main-nav > a:hover, .theme-dark .nav-item > a:hover, .theme-dark .nav-item:hover > a { color: #fff; background: rgba(255,255,255,.06); }
.theme-dark .main-nav a.active { color: var(--gold-bright); }
.theme-dark .burger span { background: #fff; }
/* Overlay du tiroir mobile */
.nav-overlay { position: fixed; inset: 0; z-index: 115; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.nav-overlay.open { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

/* Hero plus audacieux */
.theme-dark .hero { background: transparent; }
.theme-dark .hero h1 { font-size: clamp(2.7rem, 6.2vw, 4.3rem); letter-spacing: -.03em; line-height: 1.04; }
.theme-dark .hero h1 span { background: linear-gradient(115deg, var(--gold), var(--gold-bright) 55%, #fff5d8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.theme-dark .hero .eyebrow.on-dark { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border: 1px solid rgba(212,175,55,.35); border-radius: 999px; background: rgba(212,175,55,.07); backdrop-filter: blur(6px); font-size: .74rem; }
.theme-dark .trust-strip { border-top-color: rgba(212,175,55,.16); }
.theme-dark .trust-strip .tlogo { padding: .38rem .9rem; border: 1px solid rgba(212,175,55,.22); border-radius: 999px; background: rgba(255,255,255,.03); font-size: .88rem; }

/* Cartes en verre + effet projecteur */
.theme-dark .card {
  position: relative; overflow: hidden;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(212,175,55,.18);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: #ece7da;
}
.theme-dark .card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx,50%) var(--my,-20%), rgba(231,199,102,.16), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.theme-dark .card:hover { transform: translateY(-6px); border-color: rgba(231,199,102,.5); box-shadow: 0 26px 60px -26px rgba(212,175,55,.35); }
.theme-dark .card:hover::before { opacity: 1; }
.theme-dark .card h3 { color: #fff; }
.theme-dark .card p { color: #b3ae9f; }
.theme-dark .card-ico { background: linear-gradient(150deg, rgba(212,175,55,.16), rgba(255,255,255,.02)); border-color: rgba(212,175,55,.26); }
.theme-dark .card .card-link { color: var(--gold-bright); }
.theme-dark .cat-card { border-top-color: var(--gold); }
.theme-dark .cat-card ul li { border-top-color: rgba(212,175,55,.14); color: #d5cfbf; }

/* Étapes / stats / checks / témoignages en version sombre */
.theme-dark .step .num { background: rgba(255,255,255,.05); border-color: rgba(212,175,55,.4); }
.theme-dark .step h4 { color: #fff; } .theme-dark .step p { color: #b3ae9f; }
.theme-dark .stat strong { color: var(--gold-bright); } .theme-dark .stat span { color: #b3ae9f; }
.theme-dark .checks li { color: #d5cfbf; }
.theme-dark .testi { background: rgba(255,255,255,.045); border-color: rgba(212,175,55,.18); backdrop-filter: blur(8px); }
.theme-dark .testi p { color: #d8d2c4; } .theme-dark .testi .who span { color: #b3ae9f; }
.theme-dark .split .media { border-color: rgba(212,175,55,.28); }

@media (max-width: 620px) {
  .theme-dark .card { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,.05); }
  .theme-dark .testi { backdrop-filter: none; }
}

/* Pages de contenu (blog, mentions) lisibles sur fond sombre */
.theme-dark .article p, .theme-dark .article ul, .theme-dark .article li { color: #c9c3b4; }
.theme-dark .article h2, .theme-dark .article h3 { color: #fff; }
.theme-dark .article a { color: var(--gold-bright); }
.theme-dark .article blockquote { color: #e0dacb; background: rgba(255,255,255,.04); border-left-color: var(--gold); }
/* Cartes claires (formulaires, FAQ, blog, contact) en version verre sombre */
.theme-dark .form-card, .theme-dark .faq-item, .theme-dark .post-card, .theme-dark .contact-tile, .theme-dark .zone-hours {
  background: rgba(255,255,255,.05); border-color: rgba(212,175,55,.18); backdrop-filter: blur(10px); color: #ece7da;
}
.theme-dark .form-card h3, .theme-dark .faq-q, .theme-dark .post-body h3, .theme-dark .contact-tile b { color: #fff; }
.theme-dark .field label { color: #cfc9ba; }
.theme-dark .field input, .theme-dark .field select, .theme-dark .field textarea { background: rgba(0,0,0,.25); border-color: rgba(212,175,55,.25); color: #fff; }
.theme-dark .field input::placeholder, .theme-dark .field textarea::placeholder { color: #8f897a; }
.theme-dark .faq-a p, .theme-dark .post-body p, .theme-dark .post-body .meta, .theme-dark .contact-tile span { color: #b3ae9f; }
.theme-dark .faq-q .ic { background: rgba(212,175,55,.12); color: var(--gold-bright); }
.theme-dark .post-thumb { color: #17130a; }
.theme-dark .price-table { background: rgba(255,255,255,.04); }
.theme-dark .price-table td { color: #d5cfbf; border-color: rgba(212,175,55,.14); }
.theme-dark .breadcrumb a:hover { color: #fff; }
.theme-dark .cat-card { background: rgba(255,255,255,.045); }

/* Accessibilité : respect de "réduire les animations" */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .ring, .hero-logo, .hero-glowdot, .orb { animation: none !important; }
}
