/* Machtech Télécommunication — feuille de style du site public */

/* Police Inter hébergée localement (aucune requête vers Google — Loi 25) */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --navy-950: #01142e;
  --navy-900: #021f45;
  --navy-800: #032d62;
  --navy-700: #0a3f80;
  --blue-600: #0a67ad;
  --blue-500: #1f84d0;
  --blue-300: #8cc7f2;
  --amber-500: #e2a345;
  --amber-600: #c9862a;
  --ink: #0d1b2e;
  --ink-soft: #4a5a70;
  --line: #dfe6ef;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(3, 45, 98, .06), 0 12px 32px -12px rgba(3, 45, 98, .18);
  --wrap: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--navy-800); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 3px; border-radius: 4px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9em 1.5em; border-radius: 999px; border: 1px solid transparent;
  font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s, box-shadow .25s, border-color .2s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn-accent { background: var(--amber-500); color: var(--navy-950); box-shadow: 0 8px 24px -10px rgba(226, 163, 69, .7); }
.btn-accent:hover { background: #ebb35f; transform: translateY(-1px); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn-sm { padding: .6em 1.05em; font-size: .9rem; }
.btn-sm .icon { width: 1em; height: 1em; }
.btn-sm:hover .icon:last-child { transform: none; }
.btn-block { width: 100%; }

/* En-tête */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; position: relative; width: 170px; flex: none; }
.brand .logo { width: 100%; transition: opacity .3s; }
.brand .logo-dark { position: absolute; inset: 0; opacity: 0; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: .5em .8em; border-radius: 8px; transition: color .2s, background-color .2s;
}
.nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav .lang { font-size: .85rem !important; opacity: .85; }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; border-radius: 8px; }
.menu-toggle .icon { width: 28px; height: 28px; }

.site-header.scrolled { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(3, 45, 98, .25); }
.site-header.scrolled .logo-light { opacity: 0; }
.site-header.scrolled .logo-dark { opacity: 1; }
.site-header.scrolled .nav a:not(.btn) { color: var(--ink-soft); }
.site-header.scrolled .nav a:not(.btn):hover { color: var(--navy-800); background: var(--bg-soft); }
.site-header.scrolled .menu-toggle { color: var(--navy-800); }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--navy-900); padding: 12px 16px 20px; border-top: 1px solid rgba(255, 255, 255, .08);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s;
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .5);
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: .85em 1em; font-size: 1rem; color: rgba(255, 255, 255, .9) !important; }
  .nav .btn { margin: 10px 0 0; }
  .site-header.menu-open { background: var(--navy-900); }
  .site-header.menu-open .logo-light { opacity: 1; }
  .site-header.menu-open .logo-dark { opacity: 0; }
  .site-header.menu-open .menu-toggle { color: #fff; }
}

/* Héros */
.hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: radial-gradient(120% 90% at 85% 10%, var(--navy-700) 0%, var(--navy-800) 35%, var(--navy-950) 100%);
  min-height: min(100vh, 880px); display: flex; align-items: center;
  padding: calc(var(--header-h) + 56px) 0 72px;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-glow {
  position: absolute; z-index: -1; right: -10%; top: 10%; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px;
  background: url("../img/globe.webp") center / contain no-repeat; opacity: .12;
  animation: spin 120s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 120px; z-index: -1;
  background: linear-gradient(to bottom, transparent, rgba(1, 20, 46, .6));
}
.hero-inner { max-width: var(--wrap); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  font-size: .85rem; font-weight: 500; letter-spacing: .02em; color: var(--blue-300);
  padding: 7px 14px 7px 12px; border: 1px solid rgba(140, 199, 242, .25); border-radius: 999px; background: rgba(140, 199, 242, .06);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber-500); box-shadow: 0 0 0 4px rgba(226, 163, 69, .2); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; max-width: 14ch; margin-bottom: .45em; }
.hero h1 em {
  font-style: normal; background: linear-gradient(100deg, var(--blue-300), #fff 45%, var(--amber-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .78); max-width: 58ch; margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 64px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; max-width: 860px; border-top: 1px solid rgba(255, 255, 255, .14); }
.stats > div { padding: 22px 24px 0 0; }
.stats > div + div { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .14); }
.stats dt { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats .amp { color: var(--amber-500); }
.stats dd { margin: 6px 0 0; color: rgba(255, 255, 255, .65); font-size: .92rem; line-height: 1.4; }
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stats > div, .stats > div + div { padding: 16px 0; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .hero-cta .btn { flex: 1 1 auto; }
}

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 14px; }
.kicker-light { color: var(--amber-500); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p:not(.kicker) { color: var(--ink-soft); font-size: 1.08rem; }

/* À propos */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-grid > div:first-child p:not(.kicker) { color: var(--ink-soft); }
.commit { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.commit p { color: var(--ink-soft); }
.values { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.values li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-weight: 600; font-size: .95rem; color: var(--navy-800); }
.values .icon { color: var(--blue-600); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .values { grid-template-columns: 1fr; } }

/* FTTH clé en main */
.ftth { background: radial-gradient(100% 80% at 90% 0%, var(--navy-700) 0%, var(--navy-800) 40%, var(--navy-950) 100%); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.ftth::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45;
  background-image: radial-gradient(rgba(140, 199, 242, .18) 1px, transparent 1px); background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.ftth .section-head p:not(.kicker) { color: rgba(255, 255, 255, .75); }
.edge { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 32px; }
.edge-item {
  position: relative; padding: 32px 28px 28px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .12); border-top: 3px solid var(--amber-500);
  transition: transform .35s var(--ease), border-color .3s, background-color .3s;
}
.edge-item:hover { transform: translateY(-4px); border-color: rgba(226, 163, 69, .5); }
.edge-num { position: absolute; top: 18px; right: 24px; font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: rgba(226, 163, 69, .22); }
.edge-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px;
  color: var(--navy-950); background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  box-shadow: 0 10px 24px -10px rgba(226, 163, 69, .8);
}
.edge-icon .icon { width: 26px; height: 26px; }
.edge-item h3 { font-size: 1.3rem; }
.edge-item p { color: rgba(255, 255, 255, .72); font-size: .97rem; margin: 0; }
@media (max-width: 900px) { .edge { grid-template-columns: 1fr; } }

.ftth-process { padding: clamp(24px, 4vw, 36px); border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); margin-bottom: 24px; }
.ftth-process h3 { margin-bottom: 24px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 22px; height: 2px; z-index: 0;
  background: repeating-linear-gradient(90deg, rgba(140, 199, 242, .45) 0 8px, transparent 8px 16px);
}
.steps li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.step-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; margin-bottom: 10px;
  background: var(--navy-800); border: 2px solid var(--blue-500); color: var(--blue-300); box-shadow: 0 0 0 6px var(--navy-900);
}
.step-icon .icon { width: 20px; height: 20px; }
.steps .is-edge .step-icon { background: var(--amber-500); border-color: var(--amber-500); color: var(--navy-950); }
.step-num { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-300); }
.steps .is-edge .step-num { color: var(--amber-500); }
.steps strong { font-size: .98rem; line-height: 1.3; }
.step-txt { font-size: .85rem; line-height: 1.45; color: rgba(255, 255, 255, .62); }
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .steps::before { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; row-gap: 16px; }
  .steps li { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; row-gap: 2px; align-items: start; text-align: left; }
  .step-icon { grid-row: 1 / span 3; margin: 0; box-shadow: none; }
}

.ftth-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding: 22px 28px; border-radius: var(--radius); background: rgba(226, 163, 69, .1); border: 1px solid rgba(226, 163, 69, .35);
}
.ftth-cta strong { display: block; font-size: 1.08rem; }
.ftth-cta span { display: block; color: rgba(255, 255, 255, .72); font-size: .97rem; }
@media (max-width: 560px) { .ftth-cta .btn { width: 100%; } }

/* Solutions */
.solutions { background: var(--bg-soft); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.card {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: #c8d6e8; box-shadow: 0 2px 4px rgba(3, 45, 98, .06), 0 24px 48px -20px rgba(3, 45, 98, .3); }
.card-media { aspect-ratio: 700 / 276; overflow: hidden; background: var(--navy-800); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card-icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  color: #fff; background: linear-gradient(135deg, var(--blue-500), var(--navy-800));
  box-shadow: 0 8px 18px -8px rgba(10, 103, 173, .7);
}
.card-media + .card-body .card-icon { margin-top: -49px; border: 3px solid #fff; width: 52px; height: 52px; }
.card p { color: var(--ink-soft); font-size: .97rem; }
.tags { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .78rem; font-weight: 500; color: var(--navy-700); background: #eaf2fb; border-radius: 999px; padding: 4px 10px; }

/* Vision */
.vision { background: linear-gradient(135deg, var(--navy-900), var(--navy-800)); color: #fff; position: relative; overflow: hidden; }
.vision::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(140, 199, 242, .18) 1px, transparent 1px); background-size: 26px 26px;
  mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.vision-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.vision p:not(.kicker) { color: rgba(255, 255, 255, .75); font-size: 1.08rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-weight: 500; font-size: .95rem;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(4px);
}
.chips .icon { width: 1em; height: 1em; color: var(--amber-500); }
@media (max-width: 860px) { .vision-grid { grid-template-columns: 1fr; } }

/* Gestion des risques (Akisens) */
.risk-head { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; margin-bottom: 56px; }
.risk-head p:not(.kicker) { color: var(--ink-soft); font-size: 1.08rem; max-width: 64ch; }
.risk-partner { color: var(--ink-soft); }
.risk-visual { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: #cfe5f1; box-shadow: var(--shadow); }
.risk-visual > img { width: 100%; aspect-ratio: 780 / 600; object-fit: cover; }
.risk-visual figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; border-radius: 12px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
}
.risk-visual figcaption img { width: 120px; }
.risk-visual figcaption a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--blue-600); text-decoration: none; }
.risk-visual figcaption a:hover { text-decoration: underline; }
.risk-visual figcaption .icon { width: 1em; height: 1em; }
@media (max-width: 860px) { .risk-head { grid-template-columns: 1fr; } }

.flow { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: none; position: relative; }
.flow::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 160px; height: 2px; z-index: 0;
  background: repeating-linear-gradient(90deg, var(--blue-300) 0 8px, transparent 8px 16px);
}
.flow-step { position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px 24px; box-shadow: var(--shadow); overflow: hidden; }
.flow-img { margin: 0 -24px 0; height: 160px; display: grid; place-items: center; background: #fff; border-bottom: 1px solid var(--line); }
.flow-img img { max-height: 140px; width: auto; max-width: 88%; object-fit: contain; transition: transform .5s var(--ease); }
.flow-step:hover .flow-img img { transform: scale(1.05); }
.flow-icon { margin-top: -24px; position: relative; }
.flow-num { position: absolute; top: 14px; left: 18px; font-size: .8rem; font-weight: 700; color: var(--blue-300); }
.flow-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; margin-bottom: 16px;
  color: #fff; background: linear-gradient(135deg, var(--blue-500), var(--navy-800)); box-shadow: 0 0 0 6px #eaf2fb;
}
.flow-step:nth-child(3) .flow-icon { background: linear-gradient(135deg, var(--amber-500), var(--amber-600)); color: var(--navy-950); box-shadow: 0 0 0 6px #fbf0dc; }
.flow-step h3 { margin-bottom: .4em; }
.flow-step p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
@media (max-width: 1000px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .flow::before { display: none; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

.risk-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; }
@media (max-width: 900px) { .risk-grid { grid-template-columns: 1fr; } }
.risk-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); background: var(--bg-soft); }
.spec { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 18px; }
.spec li { display: flex; gap: 14px; align-items: flex-start; }
.spec .icon { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--blue-600); }
.spec strong { display: block; color: var(--navy-800); }
.spec span { display: block; color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }
.risk-panel-dark { background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); color: #fff; border: 0; display: flex; flex-direction: column; }
.risk-panel-dark p { color: rgba(255, 255, 255, .72); font-size: .97rem; margin: 20px 0 24px; }
.risk-panel-dark .btn { align-self: flex-start; margin-top: auto; }
.audience { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.audience li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-weight: 500; }
.audience .icon { width: 1.05em; height: 1.05em; color: var(--amber-500); }

.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; font-size: .93rem; color: var(--blue-600); text-decoration: none; }
.card-link .icon { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.card-link:hover .icon { transform: translateX(3px); }

.components { margin: 0 0 32px; padding: clamp(24px, 4vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.components h3 { margin-bottom: 20px; }
.components ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1100px) { .components ul { grid-template-columns: repeat(9, minmax(0, 1fr)); } }
.components li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 10px 12px; text-align: center; transition: transform .3s var(--ease), box-shadow .3s; }
.components li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.components img { width: 100%; max-width: 110px; margin: 0 auto 6px; aspect-ratio: 1; object-fit: contain; }
.components span { display: block; font-size: .82rem; font-weight: 600; color: var(--navy-800); line-height: 1.3; }

.risk-panel-dark { position: relative; overflow: hidden; isolation: isolate; }
.risk-panel-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .28;
  background: url("../img/akisens/immeuble.webp") center bottom / cover no-repeat;
  mask-image: linear-gradient(to top, #000 10%, transparent 75%);
}

/* Intercom (ButterflyMX) : même gabarit que la section Akisens, fond inversé */
.intercom { background: var(--bg-soft); }
.intercom .risk-panel:not(.risk-panel-dark), .intercom .components { background: #fff; }
.intercom .risk-panel-dark::before { background-image: url("../img/butterflymx/livraison.webp"); }

/* Contact */
.contact { background: var(--navy-950); color: #fff; position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; width: 700px; height: 700px; left: -250px; bottom: -350px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 132, 208, .35), transparent 65%);
}
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-grid > div > p:not(.kicker) { color: rgba(255, 255, 255, .72); font-size: 1.08rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list .icon { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .07); color: var(--amber-500); }
.contact-list a { text-decoration: none; color: #fff; font-weight: 500; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--blue-300); }

.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(31, 132, 208, .15); }
.field .invalid { border-color: #d14343; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-size: .95rem; min-height: 1.5em; }
.form-status.ok { color: #1c7c4a; font-weight: 600; }
.form-status.err { color: #c03434; }
.form-note { margin: 14px 0 0; font-size: .82rem; line-height: 1.5; color: var(--ink-soft); }
.form-note a { color: var(--blue-600); }
.form.sending button { opacity: .7; pointer-events: none; }

/* Pied de page */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .6); border-top: 1px solid rgba(255, 255, 255, .08); padding: 36px 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-inner p { margin: 0; }
.footer-logo { width: 140px; opacity: .9; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { text-decoration: none; color: rgba(255, 255, 255, .75); }
.footer-links a:hover { color: #fff; }
.footer-links .ota-link { font-family: ui-monospace, monospace; font-size: .82rem; color: var(--amber-500); }

/* Apparition au défilement (activée seulement si JS) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
/* Héros : entrée au chargement, sans attendre l'observateur */
.js .hero .reveal { opacity: 1; transform: none; transition: none; animation: rise .9s var(--ease) both; animation-delay: var(--d, 0ms); }
.js .hero .reveal:nth-child(2) { --d: 90ms; }
.js .hero .reveal:nth-child(3) { --d: 180ms; }
.js .hero .reveal:nth-child(4) { --d: 270ms; }
.js .hero .reveal:nth-child(5) { --d: 360ms; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Page Politique de confidentialité */
.legal { padding: calc(var(--header-h) + 56px) 0 96px; background: var(--bg-soft); }
.legal .wrap { max-width: 820px; }
.legal-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 5vw, 56px); }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--navy-800); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; color: var(--navy-800); }
.legal .updated { color: var(--ink-soft); font-size: .95rem; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: .3em 0; }
.legal a { color: var(--blue-600); }
.legal address { font-style: normal; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 16px 20px; }
.header-links { display: flex; align-items: center; gap: 4px; }
.header-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .5em .8em; border-radius: 8px; }
.header-links a:hover { color: var(--navy-800); background: var(--bg-soft); }
@media (max-width: 480px) { .header-simple .brand { width: 130px; } .header-links a { padding: .5em .5em; font-size: .88rem; } }
