/* ADECID — feuille de style du site vitrine (statique, sans dépendance externe) */

:root {
  --blue: #0077be;
  --blue-light: #5faad8;
  --orange: #ff9800;
  --orange-light: #ffbb5c;
  --ink: #0f1b2d;
  --ink-soft: #46556b;
  --navy: #0a1628;
  --navy-2: #12243d;
  --surface: #ffffff;
  --surface-alt: #f4f7fb;
  --line: #e3e9f1;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 12px 32px -12px rgba(15, 27, 45, .18);
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: #005a91; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--orange); color: var(--navy); padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 22, 40, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: .04em; }
.brand img { width: 38px; height: 38px; }
.brand .ad { color: var(--blue-light); }
.brand .ecid { color: var(--orange); }
.nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.nav a { color: #d6e2f0; text-decoration: none; font-weight: 500; font-size: .95rem; padding: .5rem .85rem; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav a.cta { background: var(--orange); color: var(--navy); font-weight: 700; }
.nav a.cta:hover { background: var(--orange-light); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(255, 152, 0, .22), transparent 60%),
    radial-gradient(50rem 30rem at -10% 110%, rgba(0, 119, 190, .35), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(4rem, 9vw, 6.5rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-light); background: rgba(255, 152, 0, .12); border: 1px solid rgba(255, 152, 0, .3); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.4rem; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 152, 0, .25); }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; margin-bottom: .45em; }
.hero h1 .accent { background: linear-gradient(90deg, var(--orange) 0%, var(--orange-light) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #c3d2e4; max-width: 36rem; margin-bottom: 2rem; }
.actions { display: flex; gap: .85rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; text-decoration: none; padding: .9rem 1.4rem; border-radius: 12px; transition: transform .15s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: var(--orange-light); color: var(--navy); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.hero-visual { position: relative; }
.hero-visual .card-glass { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; padding: 1.5rem; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.hero-visual .gears { position: absolute; width: 120px; right: -18px; top: -42px; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .35)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(6deg); } }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1rem; }
.kpi { background: rgba(255, 255, 255, .05); border-radius: 12px; padding: .7rem .8rem; }
.kpi strong { display: block; font-size: 1.35rem; color: #fff; }
.kpi span { font-size: .78rem; color: #9fb3ca; }

/* ---------- Sections ---------- */
section { padding: clamp(4rem, 8vw, 6rem) 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 46rem; margin-bottom: 2.75rem; }
.section-head .kicker { color: var(--blue); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .6rem; }
.section-head p { color: var(--ink-soft); font-size: 1.125rem; }

/* À propos */
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: start; }
.about p { color: var(--ink-soft); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--blue), var(--orange)); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 1.5rem 2.5rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--blue); }
.timeline li:last-child::before { border-color: var(--orange); }
.timeline strong { display: block; }
.timeline span { color: var(--ink-soft); font-size: .95rem; }

/* Services */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.75rem; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(15, 27, 45, .06), 0 24px 48px -16px rgba(15, 27, 45, .25); }
.icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.25rem; }
.icon svg { width: 26px; height: 26px; }
.icon.blue { background: rgba(0, 119, 190, .1); color: var(--blue); }
.icon.orange { background: rgba(255, 152, 0, .14); color: #e08600; }
.icon.mix { background: linear-gradient(135deg, rgba(0, 119, 190, .12), rgba(255, 152, 0, .16)); color: var(--blue); }
.card ul { margin: 0; padding: 0; list-style: none; }
.card li { position: relative; padding-left: 1.5rem; margin-bottom: .6rem; color: var(--ink-soft); font-size: .98rem; }
.card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); transform: rotate(45deg); }
.card .sub { font-weight: 700; color: var(--ink); margin: 1rem 0 .5rem; font-size: .95rem; }
.card .sub:first-of-type { margin-top: 0; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: 1.25rem; }
.tag { font-size: .78rem; font-weight: 600; color: var(--blue); background: rgba(0, 119, 190, .08); padding: .25rem .6rem; border-radius: 999px; }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: stretch; }
.contact-panel { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-radius: var(--radius); padding: 2.5rem; position: relative; overflow: hidden; }
.contact-panel::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; bottom: -80px; background: radial-gradient(circle, rgba(255, 152, 0, .35), transparent 70%); }
.contact-panel h2 { color: #fff; }
.contact-panel p { color: #c3d2e4; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.25rem; box-shadow: var(--shadow); transition: border-color .2s, transform .2s; }
.contact-list a:hover { border-color: var(--blue-light); transform: translateX(3px); color: var(--ink); }
.contact-list small { display: block; color: var(--ink-soft); font-size: .82rem; }
.contact-list strong { font-weight: 650; }

/* Pied de page */
.site-footer { background: var(--navy); color: #9fb3ca; padding: 2.5rem 0; font-size: .92rem; }
.site-footer .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.site-footer a { color: #d6e2f0; }

/* Page texte (mentions légales, 404) */
.page { padding: clamp(3rem, 7vw, 5rem) 0; }
.page .container { max-width: 52rem; }
.page h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.page h2 { font-size: 1.35rem; margin-top: 2rem; }
.page dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; margin: 0; }
.page dt { font-weight: 650; }
.page dd { margin: 0; color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container, .about, .contact-wrap { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero-visual { max-width: 30rem; }
}
@media (max-width: 560px) {
  .nav a:not(.cta) { padding: .45rem .6rem; font-size: .9rem; }
  .kpis { grid-template-columns: 1fr 1fr 1fr; }
  .page dl { grid-template-columns: 1fr; }
  .page dd { margin-bottom: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Ajustements */
.contact-panel .kicker { color: var(--orange-light); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .6rem; }
.contact-list .icon { margin: 0; flex: none; }
