/* IntraTech - site public */
:root {
  --bg: #05070f;
  --bg-2: #0a1124;
  --navy: #0b1226;
  --panel: rgba(255, 255, 255, .035);
  --line: rgba(148, 170, 255, .14);
  --text: #f4f6fb;
  --muted: #9aa6c3;
  --blue: #2f6bff;
  --blue-2: #4f8cff;
  --electric: #38bdf8;
  --radius: 18px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; margin-top: 2rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--electric); outline-offset: 3px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 650; font-size: .98rem; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; box-shadow: 0 8px 28px -10px rgba(47, 107, 255, .8); }
.btn-primary:hover { box-shadow: 0 12px 34px -10px rgba(47, 107, 255, 1); }
.btn-ghost { background: rgba(255, 255, 255, .05); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: rgba(79, 140, 255, .6); }
.btn-outline { border-color: rgba(79, 140, 255, .45); color: #cfe0ff; background: transparent; }
.btn-outline:hover { background: rgba(47, 107, 255, .12); }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
.site-header.scrolled, .page-legal .site-header { background: rgba(5, 7, 15, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.25rem; }
.logo-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--blue), var(--electric)); font-weight: 800; font-size: .95rem; color: #fff; box-shadow: 0 0 22px -4px rgba(56, 189, 248, .6); }
.logo-text { font-weight: 500; letter-spacing: -.01em; }
.logo-text strong { font-weight: 800; color: #fff; }
.menu { display: flex; align-items: center; gap: 1.8rem; }
.menu a:not(.btn) { color: var(--muted); font-weight: 550; font-size: .95rem; transition: color .2s; position: relative; }
.menu a:not(.btn):hover, .menu a.active { color: #fff; }
.menu a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--electric); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); border-radius: 12px; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.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 { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 70% 10%, rgba(47, 107, 255, .22), transparent 60%), radial-gradient(ellipse 60% 50% at 10% 90%, rgba(56, 189, 248, .10), transparent 60%), linear-gradient(180deg, #070b18 0%, var(--bg) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(148, 170, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 170, 255, .06) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); pointer-events: none; }
.hero-glow { position: absolute; width: 520px; height: 520px; right: -120px; top: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(56, 189, 248, .18), transparent 65%); filter: blur(10px); animation: float 12s ease-in-out infinite; pointer-events: none; }
@keyframes float { 50% { transform: translate(-30px, 30px); } }
.hero-inner { position: relative; max-width: 880px; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--electric); margin-bottom: 1.2rem; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--electric); box-shadow: 0 0 0 4px rgba(56, 189, 248, .18); }
.accent { background: linear-gradient(90deg, var(--blue-2), var(--electric)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: #c3cbe0; max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.6rem; }
.quick-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.quick-contact a, .quick-contact span { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .95rem; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: .92rem; color: #dbe3f6; transition: border-color .2s; }
.quick-contact a:hover { border-color: rgba(79, 140, 255, .55); }
.quick-contact svg { width: 17px; height: 17px; fill: var(--electric); }

/* Sections */
.section { padding: 110px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.2rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { position: relative; padding: 2rem 1.7rem; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(79, 140, 255, .5); box-shadow: 0 20px 50px -24px rgba(47, 107, 255, .55); }
.card p { color: var(--muted); flex: 1; }
.card .btn { align-self: flex-start; margin-top: .4rem; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.3rem; background: rgba(47, 107, 255, .14); border: 1px solid rgba(79, 140, 255, .3); }
.card-icon svg { width: 26px; height: 26px; fill: var(--electric); }

/* Avis */
.rating-summary { display: inline-flex; align-items: center; gap: .7rem; padding: .55rem 1.1rem; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.rating-summary strong { font-size: 1.3rem; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 17px; height: 17px; fill: rgba(255, 255, 255, .18); }
.stars svg.on { fill: #fbbf24; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.review { margin: 0; padding: 1.6rem; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1rem; }
.review blockquote { margin: 0; color: #d3dbee; font-size: .97rem; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: .75rem; }
.review figcaption small { display: block; color: var(--muted); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--electric)); font-weight: 700; }
.empty-reviews { text-align: center; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .8rem; }
.info-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.info-list span { color: var(--muted); font-size: .9rem; }
.info-list a, .info-list strong { font-weight: 650; text-align: right; }
.info-list a:hover { color: var(--electric); }
.contact-form { padding: 2rem; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); border: 1px solid var(--line); }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .4rem; color: #cfd7ea; }
.field input, .field textarea { width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(5, 7, 15, .6); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(47, 107, 255, .25); }
.field.has-error input, .field.has-error textarea { border-color: #f87171; }
.err { display: block; color: #fca5a5; font-size: .82rem; min-height: 0; margin-top: .3rem; }
.err:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: .82rem; color: var(--muted); }
.consent a { text-decoration: underline; }
.alert { padding: .9rem 1.1rem; border-radius: 12px; margin-bottom: 1.2rem; font-size: .95rem; }
.alert-success { background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .4); color: #bbf7d0; }
.alert-error { background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .4); color: #fecaca; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 1.5rem; background: #04060c; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; align-items: start; }
.footer-grid .muted { margin-top: .8rem; font-size: .92rem; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: .5rem; font-size: .93rem; }
.footer-links a, .footer-contact a { color: var(--muted); transition: color .2s; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-bottom { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .82rem; color: #6b7690; }

/* Pages légales */
.legal { padding: 130px 0 80px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2.2rem; color: #fff; }
.legal p, .legal li { color: #c3cbe0; }
.legal a { color: var(--electric); text-decoration: underline; }
.legal .todo { background: rgba(251, 191, 36, .1); border: 1px dashed rgba(251, 191, 36, .6); color: #fde68a; padding: .9rem 1.1rem; border-radius: 12px; font-size: .92rem; }
.legal .updated { color: var(--muted); font-size: .9rem; }

/* Animations au défilement (légères, GPU) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.visible { opacity: 1; transform: none; }
.page-legal .reveal { opacity: 1; transform: none; }
/* Hero : visible immédiatement, simple fondu CSS sans attendre le JavaScript */
.js .hero .reveal { opacity: 1; transform: none; transition: none; animation: heroIn .55s cubic-bezier(.2, .7, .2, 1) both; }
.hero .reveal:nth-child(2) { animation-delay: .05s; }
.hero .reveal:nth-child(3) { animation-delay: .1s; }
.hero .reveal:nth-child(4) { animation-delay: .15s; }
.hero .reveal:nth-child(5) { animation-delay: .2s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero-glow, .js .hero .reveal { animation: none; } }

/* Responsive */
@media (max-width: 960px) {
  .cards, .reviews { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .burger { display: inline-flex; }
  .menu { position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: .6rem 20px 1.4rem; background: #05070f; box-shadow: 0 30px 40px -10px rgba(0, 0, 0, .7); border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility .25s; }
  .menu.open { transform: none; opacity: 1; visibility: visible; }
  .menu a:not(.btn) { padding: .95rem .2rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .menu a.active::after { display: none; }
  .menu .btn { margin-top: 1rem; }
  .site-header.menu-open { background: #05070f; }
}
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .cards, .reviews, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .contact-form { padding: 1.4rem; }
  .info-list li { flex-direction: column; gap: .2rem; }
  .info-list a, .info-list strong { text-align: left; }
}

/* ------------------------------------------------------------------ */
/* Bouton de thème (lune / soleil) et thème clair                      */
/* ------------------------------------------------------------------ */
.nav-wrap { gap: 1rem; }
.nav-wrap .logo { margin-right: auto; }
.menu { order: 1; }
.theme-toggle { order: 2; width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: #e6ebf8; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.theme-toggle:hover { border-color: rgba(79, 140, 255, .6); transform: rotate(-12deg); }
.theme-toggle svg { width: 19px; height: 19px; fill: currentColor; stroke: currentColor; }
.theme-toggle .i-sun { display: none; }
.burger { order: 3; }
[data-theme="light"] .theme-toggle .i-sun { display: block; }
[data-theme="light"] .theme-toggle .i-moon { display: none; }

[data-theme="light"] {
  --bg: #f6f8fc; --bg-2: #eaf0fb; --panel: #ffffff; --line: rgba(15, 30, 70, .12);
  --text: #0b1226; --muted: #5a6683;
}
[data-theme="light"] body { background: var(--bg); color: var(--text); }
[data-theme="light"] .logo-text strong, [data-theme="light"] .legal h2 { color: var(--text); }
[data-theme="light"] .site-header.scrolled, [data-theme="light"] .page-legal .site-header, [data-theme="light"] .site-header.menu-open { background: rgba(246, 248, 252, .9); }
[data-theme="light"] .menu a:not(.btn):hover, [data-theme="light"] .menu a.active { color: var(--text); }
[data-theme="light"] .burger span { background: var(--text); }
[data-theme="light"] .burger, [data-theme="light"] .theme-toggle { background: #fff; color: var(--text); }
[data-theme="light"] .hero { background: radial-gradient(ellipse 80% 60% at 70% 10%, rgba(47, 107, 255, .16), transparent 60%), radial-gradient(ellipse 60% 50% at 10% 90%, rgba(56, 189, 248, .12), transparent 60%), linear-gradient(180deg, #eef3ff 0%, var(--bg) 100%); }
[data-theme="light"] .hero::before { background-image: linear-gradient(rgba(15, 40, 120, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 40, 120, .06) 1px, transparent 1px); }
[data-theme="light"] .lead, [data-theme="light"] .review blockquote, [data-theme="light"] .legal p, [data-theme="light"] .legal li, [data-theme="light"] .field label { color: #34405c; }
[data-theme="light"] .eyebrow, [data-theme="light"] .legal a { color: #1d63d8; }
[data-theme="light"] .quick-contact a, [data-theme="light"] .quick-contact span { color: var(--text); background: #fff; }
[data-theme="light"] .quick-contact svg, [data-theme="light"] .card-icon svg { fill: #2563eb; }
[data-theme="light"] .btn-ghost { background: #fff; color: var(--text); }
[data-theme="light"] .btn-outline { color: #1d4ed8; }
[data-theme="light"] .card, [data-theme="light"] .contact-form { background: #fff; box-shadow: 0 10px 30px -18px rgba(15, 30, 70, .25); }
[data-theme="light"] .section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }
[data-theme="light"] .stars svg { fill: rgba(15, 30, 70, .15); }
[data-theme="light"] .stars svg.on { fill: #f59e0b; }
[data-theme="light"] .field input, [data-theme="light"] .field textarea { background: #fff; }
[data-theme="light"] .alert-success { color: #14532d; }
[data-theme="light"] .alert-error { color: #7f1d1d; }
[data-theme="light"] .site-footer { background: #eef2f9; }
[data-theme="light"] .footer-links a:hover, [data-theme="light"] .footer-contact a:hover { color: var(--text); }
[data-theme="light"] .footer-bottom { color: var(--muted); }
[data-theme="light"] .legal .todo { color: #7c5800; background: #fff8e1; }
@media (max-width: 820px) {
  [data-theme="light"] .menu { background: #f6f8fc; box-shadow: 0 30px 40px -10px rgba(15, 30, 70, .2); }
}
