/* ==========================================================================
   Evil Corpo — feuille de style principale
   Aucun style en ligne ni ressource externe : compatible avec CSP default-src 'self'.
   ========================================================================== */

:root {
  --bg: #0b0b10;
  --surface: #14141c;
  --surface-2: #1c1c27;
  --border: #2a2a38;
  --text: #ececf2;
  --muted: #9d9db0;
  --accent: #d7263d;
  --accent-hover: #ef3b52;
  --accent-soft: rgba(215, 38, 61, 0.14);
  --gold: #d4a72c;
  --success: #3ccf8e;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --max: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

/* ---------- Bilingue : seul le texte de la langue active est affiché ---------- */
html[lang="fr"] [data-l="en"],
html[lang="en"] [data-l="fr"] {
  display: none !important;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 700px) { .container { padding: 0 28px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 16, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 800; letter-spacing: 0.12em; font-size: 1.05rem;
}
.brand:hover { text-decoration: none; }
.brand b { color: var(--accent); font-weight: 800; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--muted); font-weight: 600; font-size: 0.95rem;
}
.site-nav a:hover { color: var(--text); text-decoration: none; background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.site-nav a.nav-project { color: var(--gold); border: 1px dashed rgba(212, 167, 44, 0.5); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.lang-toggle {
  font: inherit; font-size: 0.85rem; font-weight: 700;
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 12px; cursor: pointer;
}
.lang-toggle:hover { border-color: var(--muted); }
.lang-toggle .lt-sep { margin: 0 4px; opacity: 0.5; }
html[lang="fr"] .lang-toggle .lt-fr,
html[lang="en"] .lang-toggle .lt-en { color: var(--text); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  width: 42px; height: 42px; cursor: pointer; color: var(--text);
  align-items: center; justify-content: center;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: "";
}
.nav-toggle-bar::before { position: absolute; top: -6px; }
.nav-toggle-bar::after { position: absolute; top: 6px; }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: 12px 14px; border-radius: var(--radius-sm); }
}

/* ---------- Héros ---------- */
.hero {
  position: relative;
  padding: clamp(80px, 14vw, 160px) 0 clamp(70px, 10vw, 120px);
  background-color: var(--bg);
  background-image:
    linear-gradient(100deg, rgba(11, 11, 16, 0.94) 0%, rgba(11, 11, 16, 0.7) 42%, rgba(11, 11, 16, 0.1) 100%),
    url("../img/hero.jpg"),
    radial-gradient(ellipse at 80% 20%, rgba(215, 38, 61, 0.45), transparent 60%);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--accent); }

.page-hero {
  padding: clamp(60px, 9vw, 110px) 0 clamp(40px, 6vw, 70px);
  background-image:
    radial-gradient(ellipse at 90% 0%, rgba(215, 38, 61, 0.32), transparent 55%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }

/* ---------- Bandeau boursier ---------- */
.ticker {
  background: var(--accent); color: #fff; overflow: hidden; white-space: nowrap;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em;
}
.ticker-track { display: inline-flex; gap: 48px; padding: 10px 0; animation: ticker 38s linear infinite; }
.ticker-track span { display: inline-flex; gap: 8px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 2.6rem; max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: rgba(215, 38, 61, 0.55); transform: translateY(-2px); }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent); font-size: 1.4rem;
}

/* Cartes avec image : un dégradé s'affiche si l'image n'existe pas encore */
.media-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.media-card .card-body { padding: 26px; flex: 1; }
.media {
  aspect-ratio: 16 / 9;
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
}
.svc-1 { background-image: url("../img/service-1.jpg"), linear-gradient(135deg, #3a0c14, #14141c); }
.svc-2 { background-image: url("../img/service-2.jpg"), linear-gradient(135deg, #2b1a3d, #14141c); }
.svc-3 { background-image: url("../img/service-3.jpg"), linear-gradient(135deg, #0e2a3a, #14141c); }
.svc-4 { background-image: url("../img/service-4.jpg"), linear-gradient(135deg, #3a2a0c, #14141c); }
.svc-5 { background-image: url("../img/service-5.jpg"), linear-gradient(135deg, #1d3a0c, #14141c); }
.svc-6 { background-image: url("../img/service-6.jpg"), linear-gradient(135deg, #3a0c30, #14141c); }

.office-img {
  min-height: 340px; border-radius: var(--radius); border: 1px solid var(--border);
  background-size: cover; background-position: center;
  background-image: url("../img/office.jpg"), radial-gradient(circle at 30% 70%, rgba(215, 38, 61, 0.5), transparent 60%), linear-gradient(160deg, #1c1c27, #0b0b10);
}
.careers-img {
  min-height: 320px; border-radius: var(--radius); border: 1px solid var(--border);
  background-size: cover; background-position: center;
  background-image: url("../img/careers.jpg"), radial-gradient(circle at 70% 30%, rgba(212, 167, 44, 0.35), transparent 60%), linear-gradient(160deg, #1c1c27, #0b0b10);
}

.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-hover);
  margin: 0 6px 10px 0;
}
.tag-gold { background: rgba(212, 167, 44, 0.14); color: var(--gold); }

/* ---------- Statistiques ---------- */
.stats { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stat { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; }
.stat-value { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; }
.stat-label { color: var(--muted); font-size: 0.95rem; }

/* ---------- Citation ---------- */
.quote { max-width: 820px; margin: 0 auto; text-align: center; }
.quote blockquote {
  margin: 0 0 1rem; font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; line-height: 1.35;
}
.quote blockquote::before { content: "« "; color: var(--accent); }
.quote blockquote::after { content: " »"; color: var(--accent); }
html[lang="en"] .quote blockquote::before { content: "\201C"; }
html[lang="en"] .quote blockquote::after { content: "\201D"; }
.quote cite { color: var(--muted); font-style: normal; }

/* ---------- Bandeau d'appel à l'action ---------- */
.cta-band {
  border-radius: var(--radius);
  padding: clamp(36px, 6vw, 64px);
  background-image: radial-gradient(ellipse at 100% 0%, rgba(255, 255, 255, 0.14), transparent 50%), linear-gradient(120deg, #a3172b, var(--accent));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-band h2 { margin: 0 0 0.3em; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.85); }
.cta-band .btn-primary { background: #fff; color: var(--accent); }
.cta-band .btn-primary:hover { background: #ffe9ec; }

/* ---------- Tarifs ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); box-shadow: var(--shadow); position: relative; }
.price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; margin: 0.2em 0; }
.price small { font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.price-card ul { padding-left: 1.1em; color: var(--muted); flex: 1; }
.price-card .btn { align-self: flex-start; margin-top: 12px; }

/* ---------- Chronologie ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding: 0 0 2rem 40px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.timeline .year { font-weight: 800; color: var(--accent-hover); font-size: 1.05rem; }
.timeline p { color: var(--muted); margin: 0.2em 0 0; }

/* ---------- Équipe ---------- */
.person { text-align: center; }
.avatar {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: #fff;
  background-size: cover; background-position: center;
  border: 3px solid var(--border);
}
.av-1 { background-image: url("../img/team-1.jpg"), linear-gradient(135deg, #d7263d, #4a0a14); }
.av-2 { background-image: url("../img/team-2.jpg"), linear-gradient(135deg, #d4a72c, #4a3a0a); }
.av-3 { background-image: url("../img/team-3.jpg"), linear-gradient(135deg, #6c3bd4, #22104a); }
.av-4 { background-image: url("../img/team-4.jpg"), linear-gradient(135deg, #2c8fd4, #0a2c4a); }
/* Équipe de projet (page « Le projet ») */
.avp-1 { background-image: url("../img/project-1.jpg"), linear-gradient(135deg, #d7263d, #4a0a14); }
.avp-2 { background-image: url("../img/project-2.jpg"), linear-gradient(135deg, #d4a72c, #4a3a0a); }
.avp-3 { background-image: url("../img/project-3.jpg"), linear-gradient(135deg, #6c3bd4, #22104a); }
.avp-4 { background-image: url("../img/project-4.jpg"), linear-gradient(135deg, #2c8fd4, #0a2c4a); }
.avp-5 { background-image: url("../img/project-5.jpg"), linear-gradient(135deg, #3ccf8e, #0a4a2c); }
.avatar { text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }

/* Bannière de la page Contact */
.page-hero.hero-contact {
  background-image:
    linear-gradient(100deg, rgba(11, 11, 16, 0.96) 0%, rgba(11, 11, 16, 0.82) 50%, rgba(11, 11, 16, 0.35) 100%),
    url("../img/contact.jpg");
  background-size: cover;
  background-position: center 30%;
}
.person .role { color: var(--gold); font-weight: 600; font-size: 0.92rem; margin-bottom: 0.6em; }
.person p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Emplois ---------- */
.jobs { display: grid; gap: 14px; }
.job {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 26px;
}
.job:hover { border-color: rgba(215, 38, 61, 0.55); }
.job h3 { margin: 0 0 0.2em; }
.job-meta { color: var(--muted); font-size: 0.92rem; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 800;
  background: var(--accent-soft); color: var(--accent-hover);
}
.check-list.secure li::before { background: rgba(60, 207, 142, 0.14); color: var(--success); }

/* ---------- Formulaire ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.field input,
.field select,
.field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-note { font-size: 0.88rem; color: var(--muted); margin: 0; }
.form-status {
  border-radius: var(--radius-sm); padding: 14px 16px;
  background: rgba(60, 207, 142, 0.12); border: 1px solid rgba(60, 207, 142, 0.4); color: var(--success);
}

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.info-list strong { display: block; color: var(--text); }
.info-list span { color: var(--muted); }

/* ---------- Page « Le projet » ---------- */
.notice {
  border: 1px dashed rgba(212, 167, 44, 0.55); background: rgba(212, 167, 44, 0.07);
  border-radius: var(--radius); padding: 18px 22px; color: var(--text);
}
.phases { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); counter-reset: phase; }
.phase { counter-increment: phase; }
.phase h3::before { content: counter(phase) ". "; color: var(--accent); }
.phase ul { padding-left: 1.1em; color: var(--muted); margin: 0; font-size: 0.95rem; }

.arch { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 10px; }
.arch-node {
  flex: 1 1 150px; max-width: 220px; text-align: center;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 12px;
}
.arch-node strong { display: block; }
.arch-node span { color: var(--muted); font-size: 0.85rem; }
.arch-node.hl { border-color: var(--accent); }
.arch-arrow { align-self: center; color: var(--accent); font-weight: 800; font-size: 1.3rem; }
@media (max-width: 700px) { .arch { flex-direction: column; align-items: center; } .arch-node { max-width: none; width: 100%; } .arch-arrow { transform: rotate(90deg); } }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.9em; background: var(--surface-2); padding: 2px 6px; border-radius: 5px; }

/* ---------- Page 404 ---------- */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.error-code { font-family: var(--font-display); font-size: clamp(6rem, 20vw, 11rem); font-weight: 900; line-height: 1; color: var(--accent); }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 60px 0 30px; background: var(--surface); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer-grid h4 { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text); opacity: 0.85; }
.footer-grid a:hover { opacity: 1; }
.footer-blurb { color: var(--muted); max-width: 36ch; margin-top: 12px; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  color: var(--muted); font-size: 0.86rem;
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .btn, .card { transition: none; }
}
