/* ==========================================================================
   TechnoTrade Alliance — pages intérieures (services, charte, ressources,
   mentions légales, 404). Même langage que l'accueil : thème clair bleu ciel,
   Inter / Inter Tight, réseau neuronal en fond.
   ========================================================================== */
:root {
  --void: #EEF7FF;
  --panel: #FFFFFF;
  --bone: #0B2545;
  --ash: #3D5677;
  --mist: #34506F;
  --accent: #0A63B8;
  --accent-hover: #084F94;
  --saffron: #F5B301;
  --saffron-hover: #FFC858;
  --gold-ink: #8C5E00;
  --verdant: #0E7A52;
  --line: rgba(10, 99, 184, .16);
  --line-strong: rgba(10, 99, 184, .38);
  --card-shadow: 0 18px 44px -28px rgba(10, 60, 120, .45);
  --font-display: 'Inter Tight', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --expo: cubic-bezier(.19, 1, .22, 1);
  --radius: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--void); color: var(--bone); font: 300 18px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--accent); color: #fff; }
a { color: var(--accent); text-underline-offset: 3px; transition: color .3s; }
a:hover { color: var(--bone); }
strong, b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 120; padding: .7em 1em; border-radius: 10px; background: var(--saffron); color: var(--bone); font-weight: 600; text-decoration: none; transition: top .3s; }
.skip:focus { top: 16px; }

#constellation { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.top, main, footer { position: relative; z-index: 1; }

/* En-tête */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 960px; margin: 0 auto; padding: 22px 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--bone); text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 50%; transition: transform .9s var(--expo); }
.brand:hover img { transform: scale(1.06) rotate(-8deg); }
.wm { display: grid; justify-items: stretch; gap: 5px; line-height: 1; }
.wm b { font: 700 22px/1 var(--font-display); letter-spacing: -.025em; }
.wm span { display: flex; align-items: center; gap: 7px; font: 600 8px/1 var(--font-body); letter-spacing: .44em; text-transform: uppercase; color: var(--gold-ink); }
.wm span::before, .wm span::after { content: ''; flex: 1; height: 1px; background: var(--bone); opacity: .45; }
.wm span::after { margin-left: -.44em; }
.back { font: 600 13px/1.2 var(--font-body); letter-spacing: .03em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }

/* Contenu */
main { max-width: 960px; margin: 0 auto; padding: clamp(40px, 8vh, 90px) 24px 80px; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 26px; font: 600 13px/1.4 var(--font-body); letter-spacing: .03em; text-transform: uppercase; color: var(--gold-ink); }
.crumb::before { content: ''; width: 11px; height: 11px; margin-right: 6px; border: 0; background: var(--saffron); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.crumb a { color: var(--gold-ink); text-decoration: none; }
.crumb a:hover { color: var(--bone); }
h1 { margin: 0 0 .35em; max-width: 16ch; font: 400 clamp(2.5rem, 6.2vw, 4.6rem)/1.04 var(--font-display); letter-spacing: -.04em; text-wrap: balance; }
.upd { margin: 0 0 2.4em; color: var(--ash); font-size: .95rem; }
.intro { max-width: 46ch; margin: 0; color: var(--mist); font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
h2 { margin: 2.6em 0 .7em; padding-top: 1.4em; border-top: 1px solid var(--line); font: 400 clamp(1.6rem, 3vw, 2.3rem)/1.12 var(--font-display); letter-spacing: -.035em; }
h3 { font-family: var(--font-display); letter-spacing: -.02em; }
p, ul, ol, dl { margin: 0 0 1em; }
ul { padding-left: 0; list-style: none; }
ul li { position: relative; padding-left: 1.4em; }
ul li::before { content: ''; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; background: var(--saffron); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
li { margin: .4em 0; }
ol { padding-left: 0; list-style: none; counter-reset: n; }
ol li { position: relative; padding-left: 2.4em; counter-increment: n; }
ol li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .3em; font: 600 12px/1.4 var(--font-body); letter-spacing: .03em; color: var(--accent); }
dl { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: .6em 1.4em; }
dt { color: var(--ash); font-weight: 500; }
dd { margin: 0; }
.todo { color: var(--gold-ink); font-weight: 600; }

/* Boutons */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin: 36px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14.4px 22px; border-radius: var(--radius); background: var(--saffron); color: var(--bone); box-shadow: 0 10px 26px -14px rgba(140, 94, 0, .7); font: 600 14px/1.2 var(--font-body); letter-spacing: .03em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: transform .7s var(--expo), background-color .3s; }
.btn:hover { background: var(--saffron-hover); color: var(--bone); transform: translateY(-3px); }
.cta a:not(.btn) { font: 500 15px/1.4 var(--font-body); }

/* Encadrés et formules */
.box { margin: 1.6em 0; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .88); box-shadow: var(--card-shadow); transition: transform .7s var(--expo), border-color .4s; }
.box:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.box.gold { border-color: rgba(200, 140, 0, .55); background: #FFFBEA; }
.box h3 { margin: 0 0 .4em; font-size: 1.3rem; font-weight: 500; }
.box p:last-child { margin-bottom: 0; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 1.4em 0; }
.plans .box { margin: 0; }
.price { margin: .2em 0 .5em; font: 600 clamp(1.4rem, 2.4vw, 1.8rem)/1.2 var(--font-display); letter-spacing: -.02em; }
.price small { font: 500 .85rem/1 var(--font-body); color: var(--ash); letter-spacing: 0; }
.others { display: flex; flex-wrap: wrap; gap: 10px; }
.others li { margin: 0; padding: 0; }
.others li::before { display: none; }
.others a { display: inline-block; padding: 9px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); background: rgba(255, 255, 255, .7); font: 600 12px/1.2 var(--font-body); letter-spacing: .03em; text-transform: uppercase; text-decoration: none; transition: transform .6s var(--expo), background-color .3s, color .3s; }
.others a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* Ressources */
.res-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 1.4em 0; }
.res { display: flex; flex-direction: column; padding: 14px 14px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .88); box-shadow: var(--card-shadow); color: var(--bone); text-decoration: none; transition: transform .7s var(--expo), border-color .4s; }
.res:hover { transform: translateY(-5px); border-color: var(--line-strong); color: var(--bone); }
.res img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; margin-bottom: 14px; border-radius: 14px; background: #E1F0FC; }
.res-meta { margin: 0 6px; font: 600 12px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.res h3 { margin: .4em 6px .3em; font: 500 1.25rem/1.25 var(--font-display); }
.res p { flex: 1; margin: 0 6px .9em; color: var(--mist); font-size: 16px; }
.res-cta { margin: 0 6px; color: var(--gold-ink); font-weight: 600; font-size: 15px; }

/* Pied de page */
footer { max-width: 960px; margin: 0 auto; padding: 26px 24px 44px; border-top: 1px solid var(--line); color: var(--ash); font-size: 14px; }

/* Bouton WhatsApp fixe (téléphones et tablettes) */
.wa-fab { display: none; }
@media (max-width: 1024px), (pointer: coarse) {
  .wa-fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: .5em; min-height: 48px; padding: 0 1.1em 0 .9em; border-radius: 999px; background: #25D366; color: #021622; font: 600 .95rem/1 var(--font-body); text-decoration: none; box-shadow: 0 8px 24px rgba(10, 60, 120, .3); transition: opacity .3s, transform .3s; }
  .wa-fab svg { width: 22px; height: 22px; }
  .wa-fab:hover, .wa-fab:focus-visible { color: #021622; }
  .wa-fab.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; }
  body { padding-bottom: 72px; }
}

/* Entrée en scène */
.js main > * { animation: rise 1.1s var(--expo) both; }
.js main > *:nth-child(2) { animation-delay: .06s; }
.js main > *:nth-child(3) { animation-delay: .12s; }
.js main > *:nth-child(4) { animation-delay: .18s; }
.js main > *:nth-child(n+5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  dl { grid-template-columns: minmax(0, 1fr); }
  dt { margin-top: .6em; }
  .wm b { font-size: 19px; }
  .plans, .res-grid { grid-template-columns: minmax(0, 1fr); }
  .back { font-size: 12px; }
}
@media (pointer: coarse) {
  .btn, .others a, .back, .cta a { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* En-tête bleu nuit avec la forme du métier (fond peint par neural.js) */
.pagehead {
  --bone: #F2F8FF; --mist: #BCD0E8; --ash: #A3BAD6; --accent: #7CC4F5; --gold-ink: #F5B301;
  position: relative; padding-bottom: clamp(70px, 10vh, 110px); color: var(--bone);
}
.pagehead h1 { text-shadow: 0 2px 40px rgba(2, 11, 28, .6); }
.pagehead .btn { color: #0B2545; box-shadow: 0 10px 40px -10px rgba(245, 179, 1, .55); }
.pagehead .crumb, .pagehead .crumb a { color: #F5B301; }
.pagehead .crumb a:hover, .pagehead a:not(.btn):hover { color: #fff; }
.pagehead .intro, .pagehead .upd { color: var(--mist); text-shadow: 0 1px 18px rgba(2, 11, 28, .8); }
.pagehead + .pagebody + h2 { border-top: 0; }
.on-dark .top { --bone: #F2F8FF; --accent: #7CC4F5; --gold-ink: #F5B301; color: var(--bone); }
.on-dark .top .wm span::before, .on-dark .top .wm span::after { background: #F2F8FF; }
.on-dark ::selection { background: #7CC4F5; color: #021622; }
body { font-size: 19px; line-height: 1.6; }

/* Cartes « verre lumineux » */
.box, .res { background: linear-gradient(160deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .55)); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.box.gold { background: linear-gradient(160deg, rgba(255, 251, 234, .94), rgba(255, 244, 206, .72)); }
.box:hover, .res:hover { box-shadow: 0 30px 60px -30px rgba(10, 99, 184, .55); }

@media (max-width: 899px) {
  .pagehead { padding-top: 24vh; padding-top: 24svh; }
}

/* Tout le site en bleu nuit (20/11/2026 16 h) */
:root {
  --void: #04142E; --panel: #0A2148;
  --bone: #F2F8FF; --ash: #A3BAD6; --mist: #BCD0E8;
  --accent: #7CC4F5; --accent-hover: #A9DBFA; --gold-ink: #F5B301; --verdant: #3FD49A;
  --line: rgba(124, 196, 245, .18); --line-strong: rgba(124, 196, 245, .42);
  --card-shadow: 0 24px 60px -30px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
html, body { background: var(--void); }
body { color: var(--bone); }
::selection { background: #7CC4F5; color: #021622; }
a:hover { color: #fff; }
.btn, .btn:hover { color: #0B2545; }
.wm span::before, .wm span::after { background: #F2F8FF; }
.box, .res { background: linear-gradient(160deg, rgba(18, 48, 94, .62), rgba(6, 22, 48, .45)); }
.box.gold { background: linear-gradient(160deg, rgba(245, 179, 1, .16), rgba(6, 22, 48, .5)); border-color: rgba(245, 179, 1, .55); }
.others a { background: rgba(10, 33, 72, .7); }
.others a:hover { background: #7CC4F5; color: #021622; }
.res img { background: #0A2148; }
.res:hover { color: var(--bone); }
.pagehead .crumb, .pagehead .crumb a, .crumb, .crumb a { color: #F5B301; }
footer { border-top-color: var(--line); }

/* Page IA : l'image de la tête « IA », rendue lumineuse */
.aiviz { position: absolute; top: 50%; left: calc(50% + 29vw); width: min(46vw, 700px); margin: 0; transform: translate(-50%, -50%); pointer-events: none; z-index: -1;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); }
.aiviz img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 6px rgba(124, 196, 245, .8)); }
.aiviz .aiviz__glow { position: absolute; inset: 0; filter: blur(3px) brightness(1.4); opacity: .35; animation: aiglow 4.5s ease-in-out infinite; }
@keyframes aiglow { 50% { opacity: .8; } }
@media (max-width: 899px) {
  .pagehead--ia { padding-top: 40svh; }
  .aiviz { top: 0; left: 50%; width: min(112vw, 560px); transform: translate(-50%, 2svh); }
}

/* Lumière qui traverse la tête IA */
.aiviz__sweep, .aiviz__beam { position: absolute; inset: 0; pointer-events: none; }
.aiviz__sweep {
  -webkit-mask: url(ia-tete.webp) center / 100% 100% no-repeat; mask: url(ia-tete.webp) center / 100% 100% no-repeat;
  background: linear-gradient(100deg, transparent 38%, rgba(124, 196, 245, .6) 45%, #fff 50%, rgba(124, 196, 245, .6) 55%, transparent 62%) no-repeat;
  background-size: 260% 100%; animation: aisweep 5s cubic-bezier(.4, 0, .6, 1) infinite; }
.aiviz__beam {
  background: linear-gradient(100deg, transparent 40%, rgba(124, 196, 245, .22) 48%, rgba(200, 235, 255, .32) 50%, rgba(124, 196, 245, .22) 52%, transparent 60%) no-repeat;
  background-size: 260% 100%; filter: blur(10px); mix-blend-mode: screen; animation: aisweep 5s cubic-bezier(.4, 0, .6, 1) infinite; }
@keyframes aisweep { 0% { background-position: 71% 0; } 72%, 100% { background-position: 29% 0; } }
.aiviz img:not(.aiviz__glow), .aiviz-home img:not(.aiviz__glow) { opacity: .78; }
.aiviz__lit { position: absolute; inset: 0; pointer-events: none; filter: drop-shadow(0 0 3px #CFEAFF) drop-shadow(0 0 10px #7CC4F5) drop-shadow(0 0 22px rgba(58, 160, 234, .8)); }
.aiviz__sweep { background-image: linear-gradient(100deg, transparent 45%, rgba(124, 196, 245, .85) 48.5%, #fff 50%, rgba(124, 196, 245, .85) 51.5%, transparent 55%); background-size: 420% 100%; }
.aiviz__beam { background-image: linear-gradient(100deg, transparent 38%, rgba(124, 196, 245, .35) 47%, rgba(220, 242, 255, .5) 50%, rgba(124, 196, 245, .35) 53%, transparent 62%); }
@media (prefers-reduced-motion: reduce) { .aiviz__sweep, .aiviz__beam { animation: none; opacity: 0; } }

/* Questions fréquentes des pages de services (revue du 26/11/2026) */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.3em; line-height: 1; color: var(--accent, #2D8CFF); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .7em 0 0; }
