/* ==========================================================================
   ADronix Sàrl — Feuille de style principale
   Aucune ressource externe (pas de Google Fonts, pas de CDN) :
   meilleure vitesse et aucun transfert de données vers des tiers (nLPD).
   ========================================================================== */

/* ---------- Variables (palette & typographie) ---------- */
:root {
  --red: #c8102e;          /* Rouge principal (proche du rouge du logo) */
  --red-dark: #9f0d25;
  --red-soft: #fdf0f2;
  --ink: #161b26;          /* Anthracite (titres, fonds sombres) */
  --ink-2: #222939;
  --text: #3b4252;         /* Texte courant */
  --muted: #6b7280;
  --line: #e4e6eb;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 20px rgba(16, 24, 40, .06);
  --container: 1160px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 650; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
[id] { scroll-margin-top: 96px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { left: 8px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 8px; border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-dark-outline { border-color: var(--ink); color: var(--ink); }
.btn-dark-outline:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: var(--ink); color: #fff; }
.arrow::after { content: "→"; transition: transform .2s; }
a:hover .arrow::after, .btn:hover.arrow::after { transform: translateX(3px); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand-tagline {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); border-left: 1px solid var(--line); padding-left: 14px; line-height: 1.3;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.main-nav a {
  display: block; padding: 8px 14px; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-weight: 550; font-size: .98rem;
}
.main-nav a:hover { color: var(--red); background: var(--bg-alt); }
.main-nav a[aria-current="page"] { color: var(--red); }
.main-nav .nav-cta a { background: var(--red); color: #fff; margin-left: 8px; }
.main-nav .nav-cta a:hover { background: var(--red-dark); color: #fff; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero (accueil) ---------- */
.hero {
  position: relative; overflow: hidden;
  background-color: var(--ink);
  /* Motif discret évoquant des pistes de circuit imprimé (en attendant la photo) */
  background-image:
    radial-gradient(circle at 85% 20%, rgba(200,16,46,.35), transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='1.5'%3E%3Cpath d='M0 30h40l15 15h65M0 90h25l20-20h30l15 15h30M60 0v20l10 10M30 120v-15l15-15'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='.09'%3E%3Ccircle cx='55' cy='45' r='3'/%3E%3Ccircle cx='75' cy='70' r='3'/%3E%3Ccircle cx='70' cy='30' r='3'/%3E%3Ccircle cx='45' cy='90' r='3'/%3E%3C/g%3E%3C/svg%3E");
  color: #d5d9e2;
  padding: 110px 0 120px;
}
.hero::after { /* fine ligne rouge en bas */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero h1 em { font-style: normal; color: #ff5a6e; }
.hero .lead { font-size: 1.2rem; max-width: 36em; color: #c9ced8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red); margin-bottom: 16px;
}
.hero .eyebrow { color: #ff6b7d; }
.hero-visual {
  /* Emplacement réservé pour la future photo du hero */
  aspect-ratio: 4 / 3; border-radius: 14px;
  border: 1px dashed rgba(255,255,255,.2);
  background: rgba(255,255,255,.03);
  display: flex; align-items: center; justify-content: center;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.hero-visual .chip { width: 46%; opacity: .9; }

/* ---------- Bandeau de confiance ---------- */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.trust-list li { padding: 28px 22px; border-right: 1px solid var(--line); display: flex; gap: 14px; align-items: flex-start; }
.trust-list li:last-child { border-right: 0; }
.trust-list strong { display: block; color: var(--ink); font-size: 1.02rem; line-height: 1.3; }
.trust-list span { font-size: .9rem; color: var(--muted); line-height: 1.4; display: block; margin-top: 2px; }
.trust-list a { color: inherit; text-decoration: none; }
.trust-list a:hover strong { color: var(--red); }
.icon {
  flex: none; width: 40px; height: 40px; border-radius: 8px; background: var(--red-soft); color: var(--red);
  display: inline-flex; align-items: center; justify-content: center;
}
.icon svg { width: 22px; height: 22px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: #c9ced8; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.12rem; color: var(--muted); }
.section-dark .section-head p { color: #aeb4c0; }

/* ---------- Cartes services ---------- */
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: #d3d6dd; box-shadow: 0 2px 4px rgba(16,24,40,.06), 0 14px 34px rgba(16,24,40,.09); }
.card .icon { width: 52px; height: 52px; margin-bottom: 20px; }
.card .icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.45rem; }
.card .tag { font-size: .85rem; font-weight: 600; color: var(--red); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.card ul.checks { margin: 8px 0 24px; }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.card-small { padding: 28px; }
.card-small h3 { font-size: 1.15rem; }

ul.checks { list-style: none; padding: 0; }
ul.checks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
ul.checks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px;
  border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg);
}

/* ---------- Partenariat ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.quote-block {
  border-left: 4px solid var(--red); padding: 8px 0 8px 28px;
  font-size: 1.25rem; color: var(--ink); line-height: 1.55;
}
.points { display: grid; gap: 20px; }
.point { display: flex; gap: 18px; align-items: flex-start; background: #fff; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); }
.point h3 { font-size: 1.08rem; margin-bottom: .25em; }
.point p { margin: 0; font-size: .97rem; color: var(--muted); }

/* ---------- Processus ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding: 26px 20px 22px;
  background: var(--ink-2); border-radius: var(--radius); border-top: 3px solid var(--red);
}
.steps li::before {
  content: "0" counter(step); display: block; font-size: .85rem; font-weight: 700;
  color: #ff6b7d; letter-spacing: .1em; margin-bottom: 10px;
}
.steps h3 { font-size: 1.08rem; margin-bottom: .35em; }
.steps p { font-size: .93rem; margin: 0; color: #aeb4c0; }

/* ---------- Réalisations ---------- */
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ref {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.ref .domain { font-size: .78rem; font-weight: 700; color: var(--red); letter-spacing: .1em; text-transform: uppercase; }
.ref h3 { font-size: 1.08rem; margin: 8px 0 0; }

/* ---------- Actualité ---------- */
.news {
  display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.news-badge {
  aspect-ratio: 1; border-radius: 12px; background: var(--red-soft); color: var(--red);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px;
}
.news-badge svg { width: 56px; height: 56px; margin-bottom: 8px; }
.news-badge strong { font-size: 1.4rem; line-height: 1.1; }
.news .date { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Bandeau d'appel à l'action ---------- */
.cta-band { background: var(--red); color: #fff; padding: 72px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: #ffe1e5; font-size: 1.1rem; }

/* ---------- En-tête des pages intérieures ---------- */
.page-hero { background: var(--ink); color: #c9ced8; padding: 64px 0 60px; position: relative; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: .35em; }
.page-hero p { font-size: 1.15rem; max-width: 46em; margin: 0; }
.breadcrumb { list-style: none; padding: 0; margin: 0 0 18px; display: flex; gap: 8px; font-size: .88rem; color: #8f96a3; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; }
.breadcrumb a { color: #c9ced8; text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* Sous-navigation (ancres) */
.subnav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 80px; z-index: 40; }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; }
.subnav a { display: block; padding: 16px 18px; text-decoration: none; color: var(--text); font-weight: 550; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--red); border-bottom-color: var(--red); }

/* Bloc de service détaillé */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.service-block + .service-block { margin-top: 0; }
.service-block .examples {
  background: var(--bg-alt); border-radius: var(--radius); padding: 30px 32px; border: 1px solid var(--line);
}
.section-alt .service-block .examples { background: #fff; }
.examples h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--red); }
.photo-slot { /* emplacement futur pour une photo */
  margin-top: 28px; aspect-ratio: 16 / 9; border-radius: var(--radius);
  border: 1px dashed #cfd3da; background: repeating-linear-gradient(45deg, #fafbfc, #fafbfc 10px, #f3f4f6 10px, #f3f4f6 20px);
}
.photo-slot:empty { display: none; } /* invisible tant qu'il n'y a pas de photo */
.prose { max-width: 46em; }
.prose .lead { font-size: 1.15rem; color: var(--ink); }

/* À propos */
.profile {
  display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow);
}
.avatar {
  aspect-ratio: 1; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: #b7bcc6; font-size: 3.4rem; font-weight: 700;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.profile .role { color: var(--red); font-weight: 600; margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.stat { border-top: 3px solid var(--red); background: #fff; padding: 22px; border-radius: 0 0 var(--radius) var(--radius); border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat strong { display: block; font-size: 2rem; color: var(--ink); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .95rem; }
.signature { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.signature span { color: var(--red); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.contact-card { background: var(--ink); color: #c9ced8; border-radius: var(--radius); padding: 36px; }
.contact-card h2 { color: #fff; font-size: 1.5rem; }
.contact-card a { color: #fff; }
.contact-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact-item:last-of-type { border-bottom: 0; }
.contact-item .icon { background: rgba(200,16,46,.18); color: #ff6b7d; }
.contact-item small { display: block; color: #8f96a3; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-note { margin-top: 24px; font-size: .85rem; color: #8f96a3; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid #cfd3da; border-radius: 8px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,.15);
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; margin-bottom: 22px; }
.check input { margin-top: 5px; accent-color: var(--red); }
.hp { position: absolute; left: -9999px; } /* piège anti-spam */
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-weight: 500; }
.alert-error { background: var(--red-soft); color: var(--red-dark); border: 1px solid #f5c2ca; }
.alert[hidden] { display: none; }

/* ---------- Pages légales ---------- */
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal h2:first-child { margin-top: 0; }
.todo { background: #fff6d6; padding: 0 4px; border-radius: 3px; }

/* ---------- Pied de page ---------- */
.site-footer { background: #0f131b; color: #9aa1ad; padding: 64px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h2 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c9ced8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { height: 42px; width: auto; background: #fff; padding: 6px 10px; border-radius: 6px; margin-bottom: 16px; }
.footer-brand p { max-width: 22em; }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem;
}
.footer-bottom ul { display: flex; gap: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .split, .service-block, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; } /* réactiver quand la photo sera là, si souhaité */
  .steps { grid-template-columns: repeat(2, 1fr); }
  .ref-grid, .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .trust-list { grid-template-columns: repeat(2, 1fr); }
  .trust-list li:nth-child(2) { border-right: 0; }
  .trust-list li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .brand-tagline { display: none; }
  .main-nav {
    position: absolute; top: 80px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(16,24,40,.08);
    display: none;
  }
  .nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 24px 20px; gap: 2px; }
  .main-nav a { padding: 12px 10px; }
  .main-nav .nav-cta a { margin: 8px 0 0; text-align: center; }
  .subnav { top: 80px; }
}
@media (max-width: 680px) {
  body { font-size: 1rem; }
  .section { padding: 68px 0; }
  .hero { padding: 72px 0 80px; }
  .cards-2, .cards-3, .ref-grid, .steps, .stats, .form-row { grid-template-columns: 1fr; }
  .trust-list { grid-template-columns: 1fr; }
  .trust-list li { border-right: 0; border-bottom: 1px solid var(--line); }
  .news, .profile { grid-template-columns: 1fr; }
  .news-badge { aspect-ratio: auto; flex-direction: row; gap: 12px; justify-content: flex-start; }
  .news-badge svg { margin: 0; width: 40px; height: 40px; }
  .avatar { max-width: 200px; }
  .card, .form, .contact-card, .profile { padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .cta-band, .subnav, .nav-toggle { display: none; }
  .page-hero, .hero { background: none; color: #000; padding: 20px 0; }
  .page-hero h1, .hero h1 { color: #000; }
}
