/* ORSYS-Electronics — feuille de style principale */
:root {
  --ink: #142033;
  --ink-2: #44526a;
  --muted: #6b778c;
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --line: #dde3ec;
  --brand: #1d3fbf;      /* bleu du logo */
  --brand-dark: #142c86;
  --accent: #f2c200;     /* jaune du logo */
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,32,51,.06), 0 8px 24px rgba(20,32,51,.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.mt { margin-top: 2rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 99; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; }
.brand b { color: var(--brand); font-weight: 800; }
.brand:hover { text-decoration: none; }
nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
nav a:hover { background: var(--bg-alt); text-decoration: none; color: var(--ink); }
nav a[aria-current="page"] { color: var(--brand); background: #e9eefc; }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 14px; font: inherit; cursor: pointer; }

/* Héros */
.hero { background: linear-gradient(160deg, #0f1d44 0%, #1d3fbf 100%); color: #fff; padding: 72px 0 80px; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero .lead { color: #d7def5; }
.hero-img { margin: 0; background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.page-hero { background: linear-gradient(160deg, #0f1d44 0%, #1d3fbf 100%); color: #fff; padding: 56px 0 48px; }
.page-hero .lead { color: #d7def5; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.5rem; }
.subnav a { color: #fff; border: 1px solid rgba(255,255,255,.35); padding: 6px 14px; border-radius: 99px; font-size: .9rem; }
.subnav a:hover { background: rgba(255,255,255,.12); text-decoration: none; }

/* Boutons */
.cta { margin-top: 1.6rem; display: flex; gap: 12px; flex-wrap: wrap; }
.center .cta { justify-content: center; }
.btn { display: inline-block; background: var(--accent); color: #1b1b1b; font-weight: 700; padding: 12px 22px; border-radius: 10px; border: 2px solid var(--accent); }
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.section .btn.ghost { color: var(--brand); }

/* Chiffres */
.stats { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 28px 0; }
.stats b { display: block; font-size: 1.7rem; color: var(--brand); }
.stats span { color: var(--ink-2); font-size: .92rem; }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.framed { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.big { font-size: 1.3rem; font-weight: 700; color: var(--brand); }
.note { margin-top: 1.5rem; padding: 14px 18px; background: #fff8d6; border-left: 4px solid var(--accent); border-radius: 8px; }

/* Cartes */
.cards { display: grid; gap: 22px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card.small { padding: 22px; }
.card .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #e9eefc; color: var(--brand); font-size: 1.4rem; margin-bottom: 14px; }
.card figure { margin: 12px 0; }
.highlights .card { border-top: 4px solid var(--accent); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); background: #e9eefc; padding: 3px 10px; border-radius: 99px; margin-bottom: 10px; }

/* Listes */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 28px; margin-bottom: .55em; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; font-size: .93rem; }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; margin: 0; }
.kv div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); }
.kv dd { margin: 2px 0 0; color: var(--ink-2); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 10px; }
.steps b { display: block; }
.steps span { color: var(--ink-2); font-size: .93rem; }

/* Frise chronologique */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 82px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline > li { display: grid; grid-template-columns: 70px 1fr; gap: 34px; margin-bottom: 22px; position: relative; }
.timeline > li::before { content: ""; position: absolute; left: 76px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.timeline time { font-weight: 800; color: var(--brand); padding-top: 16px; text-align: right; font-size: .95rem; }
.tl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); }
.tl-card h3 { margin-bottom: .4em; }
.tl-card p { margin-bottom: .5em; color: var(--ink-2); font-size: .97rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 12px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 130px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.zoom { cursor: zoom-in; display: block; }

/* Contact */
.contact-card .lbl { display: inline-block; min-width: 70px; font-weight: 700; color: var(--muted); font-size: .85rem; text-transform: uppercase; }

/* Pied de page */
.site-footer { background: #0f1d44; color: #c9d2ea; padding: 36px 0; font-size: .93rem; }
.site-footer a { color: #fff; }
.footer-in { display: grid; grid-template-columns: 1.3fr 1.3fr .6fr; gap: 24px; align-items: end; }
.site-footer .muted { color: #8d9bc0; text-align: right; }

/* Visionneuse d'images */
#lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
#lightbox::backdrop { background: rgba(10,16,30,.85); }
#lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 8px; background: #fff; margin: auto; }
#lightbox p { color: #fff; text-align: center; margin: 10px 0 0; }
.lb-close { position: fixed; top: 14px; right: 18px; font-size: 2rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }

/* Adaptatif */
@media (max-width: 960px) {
  .hero-in, .split { grid-template-columns: 1fr; }
  .cards.three { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stats-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  #menu { display: none; position: absolute; left: 0; right: 0; top: 66px; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px 16px; }
  #menu.open { display: block; }
  #menu ul { flex-direction: column; }
  .cards.two, .cards.three, .kv, .steps, .footer-in { grid-template-columns: 1fr; }
  .site-footer .muted { text-align: left; }
  .timeline::before { left: 6px; }
  .timeline > li { grid-template-columns: 1fr; gap: 6px; padding-left: 28px; }
  .timeline > li::before { left: 0; top: 4px; }
  .timeline time { text-align: left; padding-top: 0; }
  .section { padding: 44px 0; }
}
.cards { align-items: start; }

/* En-tête avec le banner ORSYS-Electronics (jaune sur fond transparent) */
.site-header { background: rgba(15,29,68,.97); border-bottom: 1px solid rgba(255,255,255,.08); }
.header-in { min-height: 72px; }
.brand img { height: 46px; width: auto; max-width: 100%; }
nav a { color: #c9d2ea; }
nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
nav a[aria-current="page"] { color: #0f1d44; background: var(--accent); }
.menu-btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.hero, .page-hero { border-top: 1px solid rgba(255,255,255,.06); }
@media (max-width: 1100px) { .brand img { height: 36px; } nav a { padding: 8px 9px; font-size: .9rem; } }
@media (max-width: 760px) {
  .brand { flex: 1; min-width: 0; }
  .brand img { height: auto; width: 100%; max-width: 280px; }
  #menu { background: #0f1d44; top: 72px; border-bottom-color: rgba(255,255,255,.1); }
}

/* Carte électronique détourée sur le héros */
.hero-img { background: none; padding: 0; box-shadow: none; }
.hero-img img { filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }

/* Section Europ Assistance */
.kicker.dark { color: var(--brand); }
.period { font-size: .85rem; font-weight: 700; color: var(--brand); margin-bottom: .4em !important; }
.gallery.captions { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.gallery.captions img { height: 140px; object-fit: cover; object-position: top left; }
.gallery figcaption { font-size: .8rem; color: var(--muted); margin-top: 4px; line-height: 1.3; }

/* Fiches produits hardware */
.product { padding: 32px; }
.product .ptitle { font-size: 1.45rem; }
.product h4 { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin: 1.2em 0 .6em; }
.product .cards.two { gap: 32px; }
.gallery.captions.big { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery.captions.big img { height: 200px; object-fit: contain; background: #f3f6fa; object-position: center; }
.specs { grid-template-columns: 1fr; gap: 0; }
.specs div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 8px 0; }
.specs dd { margin: 0; }
@media (max-width: 760px) { .specs div { grid-template-columns: 1fr; gap: 0; } .product { padding: 22px; } }

/* Sélecteur de langue */
.lang { display: flex; gap: 2px; margin-left: 8px; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; padding: 2px; }
.lang a { color: #c9d2ea; font-size: .8rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; }
.lang a:hover { text-decoration: none; color: #fff; }
.lang a.on { background: var(--accent); color: #0f1d44; }
@media (max-width: 760px) { .lang { margin-left: auto; margin-right: 8px; } }
