/* =========================================================
   DESIGN SYSTEM — Prestation & Soutien Technique Événementiel
   Palette : anthracite profond + blanc pur + gris métallique
   Typo : Space Grotesk (titres) / Inter (texte courant)
   ========================================================= */

:root {
  --bg-0: #0b0c0e;          /* fond principal, noir anthracite */
  --bg-1: #141619;          /* panneaux / cartes */
  --bg-2: #1b1e22;          /* panneaux surélevés / hover */
  --line: #2a2d32;          /* hairlines discrets */
  --line-strong: #45484e;   /* liseré technique un peu plus visible */
  --steel: #9aa0a8;         /* gris métallique — accent de guidage */
  --steel-bright: #d7dbe0;  /* gris clair lumineux */
  --white: #f6f5f2;         /* blanc cassé — texte principal */
  --white-pure: #ffffff;    /* blanc pur — emphase ponctuelle */
  --text-dim: #8b9096;      /* texte secondaire */

  --font-head: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  --container: 1180px;
  --radius: 3px;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--white-pure);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.06; font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.3; }

p { margin: 0 0 1em; max-width: 62ch; color: var(--text-dim); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--steel);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--steel);
}

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

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--white-pure);
  color: var(--bg-0);
}
.btn-primary:hover { background: var(--steel-bright); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--steel-bright); color: var(--white-pure); }
.btn-small { padding: 10px 20px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(11, 12, 14, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white-pure);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.logo span { color: var(--steel); font-weight: 400; font-size: 0.95rem; }

.main-nav { display: flex; align-items: center; gap: 40px; }
.main-nav ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.main-nav a {
  font-size: 0.92rem;
  color: var(--text-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--white-pure); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px; height: 24px;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--white);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-0);
  isolation: isolate;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 40%, black 10%, transparent 75%);
  z-index: 0;
}
.hero-beam {
  position: absolute;
  top: -20%;
  right: 6%;
  width: 46%;
  height: 150%;
  background: linear-gradient(180deg, rgba(215, 219, 224, 0.16), rgba(215, 219, 224, 0) 70%);
  transform: rotate(18deg);
  z-index: 0;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-top: 120px;
  padding-bottom: 80px;
}
.hero-content .eyebrow { color: var(--steel-bright); }
.hero-content h1 { margin-bottom: 26px; }
.hero-content .lead {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 52ch;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 48px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  max-width: 640px;
}
.hero-stats .stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: var(--white-pure);
  font-weight: 600;
}
.hero-stats .stat span {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ---------- Sections génériques ---------- */
section { position: relative; padding: 120px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.divider {
  height: 1px;
  background: var(--line);
  border: none;
  margin: 0;
}

/* ---------- Expertise ---------- */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.expertise-card {
  background: var(--bg-0);
  padding: 44px 36px;
  transition: background 0.3s var(--ease);
}
.expertise-card:hover { background: var(--bg-1); }
.expertise-icon {
  width: 46px; height: 46px;
  margin-bottom: 28px;
  color: var(--steel-bright);
}
.expertise-icon svg { width: 100%; height: 100%; }
.expertise-card h3 { margin-bottom: 14px; }
.expertise-card p { margin-bottom: 20px; font-size: 0.95rem; }
.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0; margin: 0;
}
.expertise-tags li {
  font-size: 0.76rem;
  color: var(--steel);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 5px 12px;
}

/* ---------- Méthode / process (vraie séquence -> numérotation justifiée) ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.process-step { border-top: 1px solid var(--line-strong); padding-top: 20px; }
.process-step .num {
  font-family: var(--font-head);
  color: var(--steel);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 14px;
}
.process-step h4 { font-size: 1.02rem; margin-bottom: 8px; color: var(--white-pure); font-family: var(--font-body); font-weight: 600; }
.process-step p { font-size: 0.9rem; margin-bottom: 0; }

/* ---------- Portfolio ---------- */
.portfolio-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.portfolio-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-btn {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.filter-btn:hover { color: var(--white-pure); border-color: var(--steel-bright); }
.filter-btn.active { background: var(--white-pure); color: var(--bg-0); border-color: var(--white-pure); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.portfolio-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--line);
}
.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.portfolio-item:hover img { transform: scale(1.045); }
.portfolio-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  background: linear-gradient(180deg, transparent, rgba(11,12,14,0.92) 78%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.portfolio-item:hover .portfolio-caption { opacity: 1; transform: translateY(0); }
.portfolio-caption b { display: block; font-size: 0.92rem; color: var(--white-pure); }
.portfolio-caption span { font-size: 0.78rem; color: var(--steel); }

.portfolio-empty, .portfolio-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--line-strong);
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* ---------- Réassurance / logos partenaires ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-strip span { font-size: 0.82rem; color: var(--text-dim); letter-spacing: 0.02em; }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
}
.contact-info dl { margin: 32px 0 0; }
.contact-info dt {
  font-size: 0.78rem;
  color: var(--steel);
  margin-top: 22px;
}
.contact-info dd { margin: 6px 0 0; color: var(--white); font-size: 0.98rem; }
.contact-info dd:first-of-type { margin-top: 0; }

.form-row { margin-bottom: 22px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}
input, textarea, select {
  width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  color: var(--white);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--steel-bright);
  outline: none;
}
textarea { min-height: 130px; resize: vertical; }

.consent-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.consent-row input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 3px;
  accent-color: var(--white-pure);
  flex-shrink: 0;
}
.consent-row label {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.consent-row a { color: var(--steel-bright); text-decoration: underline; }

.form-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 10px;
}
.form-success {
  display: none;
  border: 1px solid var(--line-strong);
  padding: 18px 20px;
  font-size: 0.9rem;
  color: var(--white);
  margin-top: 18px;
}
.form-success.visible { display: block; }
.form-error {
  display: none;
  border: 1px solid var(--line-strong);
  padding: 18px 20px;
  font-size: 0.9rem;
  color: var(--steel-bright);
  margin-top: 18px;
}
.form-error.visible { display: block; }

/* Champ honeypot : masqué visuellement mais présent dans le DOM,
   pour rester "visible" aux robots qui remplissent les formulaires
   sans exécuter le CSS. */
.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- CTA bande ---------- */
.cta-band {
  padding: 90px 0;
  border-top: 1px solid var(--line);
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-col h4 {
  font-size: 0.82rem;
  color: var(--steel);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: 0.9rem; color: var(--text-dim); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--white-pure); }
.footer-logo { font-family: var(--font-head); font-size: 1.1rem; color: var(--white-pure); margin-bottom: 14px; }
.footer-baseline { font-size: 0.88rem; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.footer-bottom a:hover { color: var(--white-pure); }

/* ---------- Bannière cookies ---------- */
.cookie-banner {
  position: fixed;
  left: 24px; right: 24px; bottom: 24px;
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  padding: 26px 28px;
  z-index: 999;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.cookie-banner.visible { transform: translateY(0); opacity: 1; }
.cookie-banner p { font-size: 0.88rem; margin-bottom: 18px; color: var(--text-dim); }
.cookie-banner p a { color: var(--steel-bright); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.cookie-prefs {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: none;
}
.cookie-prefs.visible { display: block; }
.cookie-pref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}
.cookie-pref-row:last-child { border-bottom: none; }
.cookie-pref-row span.desc { display: block; font-size: 0.76rem; color: var(--text-dim); margin-top: 3px; max-width: 40ch; }
.switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0;
  background: var(--line-strong);
  border-radius: 20px;
  transition: background 0.2s var(--ease);
  cursor: pointer;
}
.switch .track::before {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s var(--ease);
}
.switch input:checked + .track { background: var(--steel); }
.switch input:checked + .track::before { transform: translateX(18px); }
.switch input:disabled + .track { opacity: 0.5; cursor: not-allowed; }

/* ---------- Pages légales ---------- */
.legal-page { padding-top: 160px; padding-bottom: 100px; }
.legal-page h1 { margin-bottom: 12px; }
.legal-updated { color: var(--steel); font-size: 0.85rem; margin-bottom: 56px; }
.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.legal-page h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.legal-page p, .legal-page li { color: var(--text-dim); font-size: 0.96rem; max-width: 74ch; }
.legal-page ul { padding-left: 20px; }
.legal-page li { margin-bottom: 8px; }
.legal-placeholder {
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  padding: 2px 6px;
  color: var(--steel-bright);
  font-size: 0.9em;
  border-radius: 2px;
}
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 40px; font-size: 0.88rem; color: var(--steel-bright); }

/* ---------- Skip link (accessibilité) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white-pure);
  color: var(--bg-0);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .expertise-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; gap: 56px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

@media (max-width: 720px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: var(--bg-0); flex-direction: column; align-items: stretch; padding: 32px; transform: translateX(100%); transition: transform 0.3s var(--ease); }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 8px; }
  .main-nav ul a { display: block; padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: 24px; width: 100%; }
  .nav-toggle { display: block; }
  section { padding: 80px 0; }
  .process { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row.two { grid-template-columns: 1fr; gap: 0; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 22px; }
}
