/* ============================================================
   SIMBADI TECH NUMÉRIQUE — Landing page
   CSS3 pur · mobile-first · zéro framework
   ============================================================ */

:root {
  --bg:        #0B0F19;
  --bg-alt:    #0F172A;
  --surface:   rgba(255, 255, 255, .04);
  --surface-h: rgba(255, 255, 255, .07);
  --border:    rgba(148, 163, 184, .16);
  --accent:    #1E63D0;
  --accent-2:  #29B7E8;
  --brand:     linear-gradient(120deg, #1E63D0, #29B7E8);
  --emerald:   #10B981;
  --text:      #F8FAFC;
  --muted:     #94A3B8;
  --radius:    16px;
  --shadow:    0 20px 50px -20px rgba(0, 0, 0, .6);
  --font-d:    'Space Grotesk', system-ui, sans-serif;
  --font-b:    'Inter', system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* Fond décoratif global (grille + halos) */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 85% -5%, rgba(37, 99, 235, .14), transparent 60%),
    radial-gradient(50rem 26rem at -10% 40%, rgba(34, 211, 238, .07), transparent 60%),
    var(--bg);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(148, 163, 184, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 30%, transparent 100%);
}

/* ---------- Typo ---------- */
h1, h2, h3, .brand-name { font-family: var(--font-d); line-height: 1.15; }
h1 { font-size: clamp(2rem, 5.4vw, 3.6rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 1.15rem; font-weight: 600; }
.eyebrow {
  color: var(--accent-2); font-size: .8rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: .75rem;
}
.section-sub { color: var(--muted); max-width: 42rem; margin-top: .6rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; box-shadow: 0 10px 30px -10px rgba(37, 99, 235, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(37, 99, 235, .7); }
.btn-secondary { border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.btn-secondary:hover { background: var(--surface-h); border-color: var(--accent-2); transform: translateY(-2px); }
.btn-lg { padding: 1rem 2.2rem; font-size: 1rem; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  backdrop-filter: blur(14px); background: rgba(11, 15, 25, .72);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-color: var(--border); background: rgba(11, 15, 25, .92); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mark { filter: drop-shadow(0 0 8px rgba(34, 211, 238, .35)); }
.brand-name { font-size: .95rem; font-weight: 700; letter-spacing: .06em; }
.brand-name em { font-style: normal; color: var(--accent-2); font-size: .72rem; letter-spacing: .22em; display: block; }

.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { font-size: .92rem; font-weight: 500; color: var(--muted); transition: color .25s; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta { color: #fff; }
.nav-cta { padding: .6rem 1.25rem; }

.burger { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(7rem, 14vh, 10rem) 0 clamp(4rem, 8vh, 6rem); }
.hero-content { display: grid; gap: 3rem; align-items: center; }
.hero-sub { color: var(--muted); font-size: 1.08rem; max-width: 38rem; margin: 1.4rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
  padding: 1.4rem 0; border-top: 1px solid var(--border);
}
.hero-metrics dt { font-family: var(--font-d); font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 700;
  background: linear-gradient(120deg, #fff, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-metrics dd { color: var(--muted); font-size: .85rem; }
.hero-visual { display: none; }
.hero-visual svg { margin-inline: auto; animation: float 7s ease-in-out infinite; filter: drop-shadow(0 0 28px rgba(37, 99, 235, .35)); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(2deg); } }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vh, 6.5rem) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(15, 23, 42, .7) 18%, rgba(15, 23, 42, .7) 82%, transparent); }
.section-head { margin-bottom: 2.8rem; }

/* ---------- Cartes ---------- */
.cards { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.9rem 1.6rem; height: 100%;
  transition: transform .3s ease, border-color .3s, background .3s, box-shadow .3s;
}
.card:hover {
  transform: translateY(-6px); border-color: rgba(34, 211, 238, .4);
  background: var(--surface-h); box-shadow: var(--shadow);
}
.card p { color: var(--muted); font-size: .95rem; margin-top: .7rem; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(37, 99, 235, .22), rgba(34, 211, 238, .1));
  border: 1px solid rgba(34, 211, 238, .3); color: var(--accent-2); margin-bottom: 1.2rem;
}
.card-icon svg { width: 26px; height: 26px; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter-btn {
  padding: .5rem 1.15rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  border: 1px solid var(--border); color: var(--muted); background: var(--surface);
  transition: all .25s;
}
.filter-btn:hover { color: var(--text); border-color: var(--accent-2); }
.filter-btn.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }

.works { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.work {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); transition: transform .3s, border-color .3s, box-shadow .3s;
}
.work:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, .4); box-shadow: var(--shadow); }
.work h3 { padding: 0 1.3rem; }
.work p { color: var(--muted); font-size: .9rem; padding: .4rem 1.3rem 1.1rem; }
.work .tag {
  display: inline-block; margin: 0 1.3rem 1.3rem; padding: .22rem .7rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-2); background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .3);
}
.work[hidden] { display: none; }
.work-thumb {
  aspect-ratio: 16 / 9; display: grid; place-items: end start; padding: 1rem 1.3rem;
  background-size: cover; position: relative;
}
.work-thumb figcaption {
  font-family: var(--font-d); font-size: .8rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255, 255, 255, .75);
}
.thumb-1 { background: linear-gradient(135deg, #1e3a8a, #0e7490); }
.thumb-2 { background: linear-gradient(135deg, #065f46, #0e7490); }
.thumb-3 { background: linear-gradient(135deg, #4c1d95, #1e3a8a); }
.thumb-4 { background: linear-gradient(135deg, #9a3412, #b45309); }
.thumb-5 { background: linear-gradient(135deg, #155e75, #1d4ed8); }
.thumb-6 { background: linear-gradient(135deg, #7c2d12, #4c1d95); }
.work-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, .1), transparent 45%);
}

/* ---------- Contact ---------- */
.contact-wrap { display: grid; gap: 2.5rem; }
#contact-form, #recruit-form {
  display: grid; gap: 1.2rem; grid-template-columns: 1fr;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.2rem);
}
.field { display: grid; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.field abbr { color: var(--accent-2); text-decoration: none; }
input, select, textarea {
  font: inherit; color: var(--text); background: rgba(11, 15, 25, .6);
  border: 1px solid var(--border); border-radius: 10px; padding: .75rem .9rem;
  transition: border-color .25s, box-shadow .25s; width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .15);
}
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: #f87171; }
textarea { resize: vertical; min-height: 120px; }
select option { background: var(--bg-alt); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

#form-status { font-size: .95rem; font-weight: 500; min-height: 1.4em; }
#form-status.ok  { color: var(--emerald); }
#form-status.err { color: #f87171; }
#form-status a { color: var(--accent-2); text-decoration: underline; }

.contact-info h3 { margin-bottom: 1rem; }
.contact-info address { font-style: normal; display: grid; gap: .55rem; color: var(--muted); margin-bottom: 1.4rem; }
.contact-info address a { color: var(--accent-2); }
.contact-info address a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 3.5rem 0 1.6rem; background: rgba(7, 10, 18, .6); }
.footer-grid { display: grid; gap: 2.2rem; grid-template-columns: 1fr; }
.site-footer h3 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.footer-grid ul { display: grid; gap: .55rem; }
.footer-grid a:hover { color: var(--accent-2); }
.footer-tag { color: var(--muted); font-size: .9rem; margin-top: 1rem; max-width: 22rem; }
.site-footer address { font-style: normal; display: grid; gap: .55rem; color: var(--muted); font-size: .92rem; }
.site-footer address a { color: var(--text); }
.copyright { text-align: center; color: #64748B; font-size: .8rem; margin-top: 3rem; }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  #contact-form, #recruit-form { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
  .works { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .works { grid-template-columns: repeat(3, 1fr); }
  .hero-content { grid-template-columns: 1.25fr .75fr; }
  .hero-visual { display: block; }
  .contact-wrap { grid-template-columns: 1.5fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 1120px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 859px) {
  .burger { display: flex; }
  .nav-links {
    position: absolute; top: 76px; inset-inline: 0; flex-direction: column; align-items: stretch;
    gap: 0; padding: .8rem 1.25rem 1.4rem; background: rgba(11, 15, 25, .97);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .3s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links li { padding: .55rem 0; }
  .nav-cta { text-align: center; margin-top: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-visual svg, .reveal { animation: none; transition: none; opacity: 1; transform: none; }
}

/* ---------- Bandeau Lead Magnet (audit gratuit) ---------- */
.audit-band { padding: 0 0 clamp(2rem, 5vh, 3rem); }
.audit-inner {
  display: grid; gap: 1.6rem; align-items: center;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(37, 99, 235, .18), rgba(34, 211, 238, .06));
  border: 1px solid rgba(34, 211, 238, .35);
  box-shadow: 0 24px 60px -30px rgba(37, 99, 235, .5);
}
.audit-text h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
.audit-text h2 em { font-style: normal; color: var(--accent-2); }
.audit-text p { color: var(--muted); font-size: .95rem; margin-top: .5rem; }
#audit-form { display: grid; gap: .8rem; grid-template-columns: 1fr; }
#audit-form .btn { width: 100%; }
#audit-status { font-size: .88rem; min-height: 1.2em; }
#audit-status.ok { color: var(--emerald); }
#audit-status.err { color: #f87171; }
#audit-status a { color: var(--accent-2); text-decoration: underline; }

/* ---------- Tarifs ---------- */
.pricing { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.9rem 1.6rem; display: flex; flex-direction: column; gap: 1.2rem; height: 100%;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.price-card:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, .4); box-shadow: var(--shadow); }
.price-card.featured { border-color: rgba(34, 211, 238, .55); background: linear-gradient(160deg, rgba(37, 99, 235, .14), var(--surface)); position: relative; }
.price-card .badge {
  position: absolute; top: -12px; right: 1.2rem; padding: .2rem .8rem; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
}
.price-card .price { font-family: var(--font-d); font-size: 2rem; font-weight: 700; margin-top: .4rem;
  background: linear-gradient(120deg, #fff, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-card .price span { font-size: .85rem; font-weight: 500; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.price-card ul { display: grid; gap: .55rem; color: var(--muted); font-size: .92rem; flex: 1; }
.price-card ul li { padding-left: 1.4rem; position: relative; }
.price-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--emerald); font-weight: 700; }
.btn-block { width: 100%; text-align: center; }
.pricing-note { color: var(--muted); font-size: .85rem; margin-top: 1.4rem; text-align: center; }

/* ---------- Simulateur de devis ---------- */
.calc { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
.calc-options { display: grid; gap: .8rem; border: 0; }
.check-item input { position: absolute; opacity: 0; pointer-events: none; width: auto; }
.check-item label {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.2rem; border-radius: 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .25s, background .25s, transform .2s;
}
.check-item label:hover { border-color: rgba(34, 211, 238, .4); transform: translateX(4px); }
.check-item label b { font-size: .95rem; font-weight: 600; }
.check-item label span { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.check-item input:checked + label {
  border-color: var(--accent-2); background: rgba(37, 99, 235, .15);
  box-shadow: inset 0 0 0 1px var(--accent-2);
}
.check-item input:checked + label b::before { content: '✓ '; color: var(--accent-2); }
.check-item input:focus-visible + label { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.calc-result {
  background: var(--surface); border: 1px solid rgba(34, 211, 238, .35); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; align-self: start; position: sticky; top: 96px;
}
.calc-amount { font-family: var(--font-d); font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; margin: .8rem 0 .2rem;
  background: linear-gradient(120deg, #fff, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc-monthly { color: var(--emerald); font-weight: 600; font-size: .95rem; }
.calc-list { margin: 1rem 0; display: grid; gap: .35rem; color: var(--muted); font-size: .9rem; }
.calc-disclaimer { color: #64748B; font-size: .78rem; margin-bottom: 1.2rem; }
.calc-actions { display: grid; gap: .7rem; }
.calc-actions .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

@media (min-width: 640px) {
  #audit-form { grid-template-columns: 1fr 1fr; }
  #audit-form .btn, #audit-status { grid-column: 1 / -1; }
  .pricing { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .audit-inner { grid-template-columns: 1fr 1.4fr; }
  #audit-form { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1.4fr 1fr; }
}

/* ---------- Bibliothèque (e-books) ---------- */
.hero-mini { padding-bottom: 1rem; }
.books { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.book {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; height: 100%;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.book:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, .4); box-shadow: var(--shadow); }
.book[hidden] { display: none; }
.book-cover {
  aspect-ratio: 21 / 9; display: grid; place-items: center; position: relative; overflow: hidden;
}
.book-cover figcaption {
  font-family: var(--font-d); font-size: 3rem; font-weight: 700;
  color: rgba(255, 255, 255, .9); text-shadow: 0 4px 20px rgba(0, 0, 0, .4);
}
.book-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, .12), transparent 45%);
}
.cover-tech      { background: linear-gradient(135deg, #155e75, #1d4ed8); }
.cover-securite  { background: linear-gradient(135deg, #92400e, #b45309); }
.cover-business  { background: linear-gradient(135deg, #065f46, #0e7490); }
.cover-marketing { background: linear-gradient(135deg, #6b21a8, #1e3a8a); }
.cover-startup   { background: linear-gradient(135deg, #991b1b, #7c2d12); }
.cover-excel     { background: linear-gradient(135deg, #065f46, #166534); }
.book-head { padding: 1.2rem 1.3rem 0; }
.book-head .tag {
  display: inline-block; margin-top: .5rem; padding: .2rem .65rem; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-2); background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .3);
}
.book > p { color: var(--muted); font-size: .9rem; padding: .7rem 1.3rem 1rem; flex: 1; }
.book-foot {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: 0 1.3rem 1.3rem;
}
.book-price { font-family: var(--font-d); font-weight: 700; font-size: 1.05rem; }
.book-price.free { color: var(--emerald); }
.book-price.paid { color: var(--accent-2); }
.btn-sm { padding: .5rem 1rem; font-size: .82rem; }

/* ---------- Étapes (comment acheter) ---------- */
.steps { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.9rem 1.6rem; position: relative;
}
.step-num {
  position: absolute; top: -14px; left: 1.4rem; width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-family: var(--font-d); font-weight: 700; color: #fff; font-size: .9rem;
}
.step h3 { margin-top: .4rem; }
.step p { color: var(--muted); font-size: .92rem; margin-top: .5rem; }
.step b { color: var(--accent-2); }

@media (min-width: 640px) {
  .books { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .books { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   FINITIONS "AWWWARDS" + MODULE PAIEMENT
   ============================================================ */

/* ---------- Accessibilité & détails ---------- */
.skip-link {
  position: fixed; top: -60px; left: 1rem; z-index: 200;
  padding: .6rem 1.2rem; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: .85rem; font-weight: 600; transition: top .25s;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(37, 99, 235, .5); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1E293B; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------- Barre de progression de scroll ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 150;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: left; transform: scaleX(0);
}

/* ---------- Lueur curseur sur les cartes ---------- */
.card, .book, .work, .price-card, .step { position: relative; isolation: isolate; }
.card::after, .book::after, .work::after, .price-card::after, .step::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(320px 200px at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, .12), transparent 60%);
  opacity: 0; transition: opacity .35s; pointer-events: none;
}
.card:hover::after, .book:hover::after, .work:hover::after, .price-card:hover::after, .step:hover::after { opacity: 1; }

/* ---------- Sheen boutons ---------- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .28) 50%, transparent 60%);
  transform: translateX(-100%); transition: transform .6s ease;
}
.btn-primary:hover::before { transform: translateX(100%); }

/* ---------- Bouton WhatsApp ---------- */
.btn-whatsapp { background: linear-gradient(135deg, #25D366, #00b35c); color: #fff; }
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(37, 211, 102, .5); }

/* ---------- Liens portfolio ---------- */
.work-link:hover { color: var(--accent-2); }
.tag-link { cursor: pointer; transition: all .25s; }
.tag-link:hover { background: rgba(34, 211, 238, .25); }

/* ---------- Navigation catégories (ancres) ---------- */
.cat-nav { margin-bottom: 1rem; }

/* ---------- Modale de paiement (<dialog>) ---------- */
dialog#pay-modal {
  border: 1px solid rgba(34, 211, 238, .35); border-radius: 18px;
  background: var(--bg-alt); color: var(--text); padding: 0;
  width: min(480px, calc(100% - 2rem)); box-shadow: var(--shadow);
}
dialog#pay-modal::backdrop { background: rgba(4, 7, 14, .75); backdrop-filter: blur(6px); }
dialog#pay-modal[open] { animation: modalIn .3s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.pay-box { padding: 1.6rem; display: grid; gap: 1.1rem; }
.pay-head { display: flex; align-items: center; justify-content: space-between; }
.pay-head h3 { font-size: 1.15rem; }
.pay-close {
  width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; line-height: 1;
  background: var(--surface-h); color: var(--muted); transition: all .25s;
}
.pay-close:hover { background: rgba(248, 113, 113, .2); color: #f87171; transform: rotate(90deg); }
.pay-item { color: var(--accent-2); font-weight: 600; font-size: .95rem; }
.pay-group h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.pay-group ul { display: grid; gap: .45rem; font-size: .9rem; color: var(--muted); }
.pay-group b, .hl { color: var(--text); }
.pay-online {
  display: inline-flex; padding: .45rem .95rem; border-radius: 8px; font-size: .85rem; font-weight: 600;
  background: rgba(37, 99, 235, .18); border: 1px solid rgba(34, 211, 238, .4); color: var(--accent-2);
  transition: all .25s;
}
.pay-online:hover { background: rgba(37, 99, 235, .35); color: #fff; }
.pay-note { font-size: .78rem; color: #64748B; text-align: center; }

/* ---------- Méthodes de paiement (section) ---------- */
.pay-methods { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.pay-method {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
}
.pay-method h3 { font-size: 1rem; margin-bottom: .9rem; }
.pay-method ul { display: grid; gap: .55rem; color: var(--muted); font-size: .92rem; }
.pay-method b { color: var(--text); }
.pay-method .hl { color: var(--accent-2); }
.pay-strip {
  text-align: center; color: var(--muted); font-size: .85rem; margin-top: 2rem;
  padding: .8rem 1.2rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  width: fit-content; margin-inline: auto;
}
.pay-strip b { color: var(--accent-2); }

@media (min-width: 760px) {
  .pay-methods { grid-template-columns: 1fr 1fr; }
}

/* ---------- Page Merci (retour PayDunya) ---------- */
.merci-card {
  text-align: center; max-width: 40rem; margin-inline: auto;
  background: var(--surface); border: 1px solid rgba(16, 185, 129, .4);
  border-radius: var(--radius); padding: clamp(2rem, 6vw, 3.5rem);
  box-shadow: 0 30px 80px -30px rgba(16, 185, 129, .35);
}
.merci-check {
  width: 76px; height: 76px; margin: 0 auto 1.4rem; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #10B981, #22D3EE);
  box-shadow: 0 0 40px rgba(16, 185, 129, .45);
  animation: popIn .5s cubic-bezier(.2, .9, .3, 1.4);
}
.merci-check svg { width: 38px; height: 38px; }
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }
.merci-sub { color: var(--muted); margin: 1rem 0; }
.merci-sub b { color: var(--text); }
.merci-tip { color: var(--accent-2); font-size: .92rem; margin-bottom: 1.4rem; }
.merci-foot { color: #64748B; font-size: .82rem; margin-top: 1.8rem; }
.merci-foot a { color: var(--muted); text-decoration: underline; }

/* ============================================================
   REFONTE — MAQUETTES & SECTEURS
   ============================================================ */

/* ---------- Badge logo (image claire sur fond sombre) ---------- */
.logo-badge {
  width: 46px; height: 46px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, #D6F2E3, #C9DEFB);
  display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid rgba(34, 211, 238, .35);
  box-shadow: 0 0 18px rgba(34, 211, 238, .2);
}
.logo-badge img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Maquettes navigateur (mockups) ---------- */
.mockup {
  border-radius: 12px; overflow: hidden; background: #0F172A;
  border: 1px solid rgba(34, 211, 238, .28);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, .7);
  transition: transform .35s ease, box-shadow .35s ease;
}
.mockup:hover { transform: translateY(-5px) rotate(-.5deg); box-shadow: 0 26px 60px -18px rgba(37, 99, 235, .45); }
.mockup-bar {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px;
  background: #1E293B; border-bottom: 1px solid rgba(148, 163, 184, .2);
}
.mockup-bar i { width: 9px; height: 9px; border-radius: 50%; }
.mockup-bar i:nth-child(1) { background: #f87171; }
.mockup-bar i:nth-child(2) { background: #fbbf24; }
.mockup-bar i:nth-child(3) { background: #34d399; }
.mockup-bar b {
  margin-left: 8px; flex: 1; height: 14px; border-radius: 7px;
  background: #0B0F19; font-size: 8px; color: #64748B; font-weight: 400;
  display: flex; align-items: center; padding: 0 10px;
}
.mockup-body { padding: 10px; display: grid; gap: 7px; }
.sk { border-radius: 5px; }
.sk-hero  { height: 38px; }
.sk-band  { height: 10px; }
.sk-bar   { height: 7px; border-radius: 4px; }
.sk-row   { display: grid; gap: 7px; }
.sk-block { height: 26px; }
.sk-pill  { height: 16px; border-radius: 999px; }
.sk-txt   { height: 6px; border-radius: 3px; }

/* Variantes de contenu */
.mock-hotel  .sk-hero { background: linear-gradient(120deg, #1e3a8a, #0e7490); }
.mock-hotel  .sk-band { background: linear-gradient(90deg, #2563EB, #22D3EE); }
.mock-hotel  .sk-bar  { background: #334155; }
.mock-hotel  .sk-pill { background: #2563EB; }
.mock-school .sk-hero { background: linear-gradient(120deg, #4c1d95, #1e3a8a); }
.mock-school .sk-band { background: linear-gradient(90deg, #A855F7, #2563EB); }
.mock-school .sk-bar  { background: #334155; }
.mock-school .sk-pill { background: #A855F7; }
.mock-resto  .sk-hero { background: linear-gradient(120deg, #9a3412, #b45309); }
.mock-resto  .sk-band { background: linear-gradient(90deg, #F59E0B, #EF4444); }
.mock-resto  .sk-bar  { background: #334155; }
.mock-resto  .sk-pill { background: #F59E0B; }
.mock-shop   .sk-hero { background: linear-gradient(120deg, #065f46, #0e7490); }
.mock-shop   .sk-band { background: linear-gradient(90deg, #10B981, #22D3EE); }
.mock-shop   .sk-bar  { background: #334155; }
.mock-shop   .sk-pill { background: #10B981; }
.mock-pos    .sk-hero { background: linear-gradient(120deg, #1e293b, #334155); }
.mock-pos    .sk-band { background: linear-gradient(90deg, #22D3EE, #2563EB); }
.mock-pos    .sk-bar  { background: #475569; }
.mock-pos    .sk-pill { background: #22D3EE; }
.mock-design .sk-hero { background: linear-gradient(120deg, #7c2d12, #4c1d95); }
.mock-design .sk-band { background: linear-gradient(90deg, #EC4899, #A855F7); }
.mock-design .sk-bar  { background: #334155; }
.mock-design .sk-pill { background: #EC4899; }

/* Bloc maquette + légende */
.maquette { display: grid; gap: .9rem; }
.maquette figcaption {
  font-size: .8rem; color: var(--muted); text-align: center;
  letter-spacing: .05em; text-transform: uppercase;
}
.maquettes { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .maquettes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .maquettes { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Cartes secteur ---------- */
.sectors { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.sector {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.7rem 1.6rem; display: grid; gap: .9rem; height: 100%;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.sector:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, .4); box-shadow: var(--shadow); }
.sector h3 { display: flex; align-items: center; gap: .6rem; }
.sector h3 .s-ico {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(37, 99, 235, .18); font-size: 1rem;
}
.sector p { color: var(--muted); font-size: .92rem; }
.sector .sector-link { color: var(--accent-2); font-size: .85rem; font-weight: 600; align-self: end; }
.sector .sector-link:hover { text-decoration: underline; }

/* ---------- Détail secteur (page secteurs) ---------- */
.sector-block {
  display: grid; gap: 2rem; align-items: center;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 1.8rem;
  transition: border-color .3s, box-shadow .3s;
}
.sector-block:hover { border-color: rgba(34, 211, 238, .4); box-shadow: var(--shadow); }
.sector-txt h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: .8rem; }
.sector-txt .opp { display: grid; gap: .55rem; margin: 1rem 0 1.4rem; }
.sector-txt .opp li { color: var(--muted); font-size: .94rem; padding-left: 1.5rem; position: relative; }
.sector-txt .opp li::before { content: '→'; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }
.sector-txt .opp b { color: var(--text); }
.deliver { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.deliver span {
  padding: .3rem .75rem; border-radius: 999px; font-size: .75rem; font-weight: 600;
  background: rgba(37, 99, 235, .15); border: 1px solid rgba(34, 211, 238, .3); color: var(--accent-2);
}
@media (min-width: 900px) {
  .sector-block { grid-template-columns: 1.1fr .9fr; }
  .sector-block:nth-child(even) .sector-txt { order: 2; }
}

/* ---------- Page services : blocs ---------- */
.service-block {
  display: grid; gap: 2.2rem; align-items: start;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 1.8rem;
  transition: border-color .3s, box-shadow .3s;
}
.service-block:hover { border-color: rgba(34, 211, 238, .4); box-shadow: var(--shadow); }
.service-txt h2 { margin-bottom: .6rem; }
.service-txt > p { color: var(--muted); }
.sub-services { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.4rem; }
.sub-service {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.2rem 1.3rem;
}
.sub-service h4 { font-size: .98rem; font-weight: 600; color: var(--accent-2); margin-bottom: .4rem; }
.sub-service p { color: var(--muted); font-size: .88rem; }
.process { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.process span {
  padding: .4rem .9rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
  border: 1px dashed rgba(34, 211, 238, .4); color: var(--muted);
}
@media (min-width: 900px) {
  .service-block { grid-template-columns: 1.05fr .95fr; }
  .sub-services { grid-template-columns: 1fr 1fr; }
}

/* ---------- CTA de fin de page ---------- */
.cta-block {
  text-align: center; padding: 2.6rem 1.5rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(34, 211, 238, .07));
  border: 1px solid rgba(34, 211, 238, .3); border-radius: var(--radius);
  margin-top: 2.5rem;
}
.cta-block h2 { margin-bottom: .5rem; }
.cta-block > p { color: var(--muted); margin-bottom: 1.4rem; }
.cta-block .btn { margin: .3rem; }

/* Grille secteurs : 2 colonnes sur écran large */
@media (min-width: 760px) { .sectors { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1150px) { .sectors { grid-template-columns: repeat(3, 1fr); } }

/* Variante maquette : club sportif */
.mock-sport .sk-hero { background: linear-gradient(120deg, #166534, #1e3a8a); }
.mock-sport .sk-band { background: linear-gradient(90deg, #22C55E, #22D3EE); }
.mock-sport .sk-bar  { background: #334155; }
.mock-sport .sk-pill { background: #22C55E; }

/* ============================================================
   POLISH RESPONSIVE — mobile / tablette / grand écran
   ============================================================ */

/* Barre d'URL des maquettes : pas de débordement */
.mockup-bar b { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Menu mobile : scroll interne si l'écran est trop petit en hauteur */
@media (max-width: 859px) {
  .nav-links { max-height: calc(100vh - 76px); overflow-y: auto; }
}

/* Très petits écrans (< 400px) */
@media (max-width: 399px) {
  .logo-badge { width: 40px; height: 40px; border-radius: 10px; }
  .brand-name { font-size: .82rem; }
  .brand-name em { font-size: .62rem; letter-spacing: .16em; }
  .hero-metrics { gap: .6rem; }
  .hero-metrics dd { font-size: .74rem; }
  .btn { padding: .75rem 1.2rem; font-size: .9rem; }
}

/* Options du simulateur : prix sous le libellé sur mobile */
@media (max-width: 519px) {
  .check-item label { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .check-item label span { white-space: normal; }
}

/* Montant du devis : coupe proprement sur mobile */
.calc-amount { overflow-wrap: anywhere; font-size: clamp(1.35rem, 6vw, 2.2rem); }
.calc-monthly { overflow-wrap: anywhere; }

/* Bandeau moyens de paiement : retour à la ligne propre */
.pay-strip { border-radius: var(--radius); max-width: 100%; line-height: 1.9; }

/* CTA fin de page : boutons pleine largeur sur mobile */
@media (max-width: 479px) {
  .cta-block .btn { width: 100%; margin: .3rem 0; }
}

/* Tablettes : sections moins hautes */
@media (max-width: 859px) {
  .hero { padding-top: 6rem; }
  .audit-inner { padding: 1.3rem; }
}

/* Grands écrans PC : contenu plus aéré */
@media (min-width: 1440px) {
  .container { width: min(1180px, 100% - 3rem); }
  body { font-size: 1.05rem; }
}

/* Sécurité anti-débordement globale */
img, svg, .mockup, .calc-result, table { max-width: 100%; }

/* ---------- Illustrations SVG ---------- */
.illus {
  width: 100%; height: auto; display: block; border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, .28);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, .7);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s;
}
.illus:hover {
  transform: translateY(-5px) rotate(-.4deg);
  border-color: rgba(34, 211, 238, .5);
  box-shadow: 0 26px 60px -18px rgba(37, 99, 235, .45);
}
.hero-visual .illus { animation: float 7s ease-in-out infinite; }

/* ---------- Navigation : page active ---------- */
.nav-links a[aria-current="page"] {
  color: var(--text); position: relative;
}
.nav-links a[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--brand); border-radius: 2px;
}
.nav-links a.nav-cta[aria-current="page"]::after { display: none; }

/* Titres : accents couleur logo */
h1 em, h2 em { font-style: normal; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Barre de progression : couleurs logo */
.scroll-progress { background: var(--brand); }

/* Bandeau hero : liseré logo */
.site-header { border-bottom: 1px solid transparent; }

/* ============================================================
   COMPATIBILITÉ SAFARI (macOS & iOS)
   ============================================================ */

/* backdrop-filter nécessite le préfixe -webkit- sur Safari */
.site-header {
  -webkit-backdrop-filter: blur(14px);
}
dialog#pay-modal::backdrop {
  -webkit-backdrop-filter: blur(6px);
}

/* mask-image sur la grille de fond */
body::after {
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 30%, transparent 100%);
}

/* Hauteur viewport fiable sur iOS (barre d'outils dynamique) */
@supports (height: 100dvh) {
  @media (max-width: 859px) {
    .nav-links { max-height: calc(100dvh - 76px); }
  }
}

/* iOS : empêcher le zoom automatique sur focus des champs */
input, select, textarea { font-size: 16px; }

/* Textes en dégradé : fallback si background-clip: text non supporté */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  h1 em, h2 em { color: var(--accent-2); background: none; }
}

/* :user-invalid non supporté sur Safari ancien → équivalent :invalid:focus */
input:invalid:focus, select:invalid:focus, textarea:invalid:focus { border-color: #f87171; }

/* iOS : apparence native des champs désactivée + flèche select personnalisée */
input, textarea { -webkit-appearance: none; appearance: none; border-radius: 10px; }
select {
  -webkit-appearance: none; appearance: none; border-radius: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
  padding-right: 2.4rem;
}
