/* ==========================================================================
   Dipole Security — feuille de style unique, 100% auto-hébergée.
   Pas de police, icône ou script externe : tout est servi par ce projet.
   ========================================================================== */

:root {
  --color-bg: #0a0f1e;
  --color-bg-alt: #0f172e;
  --color-surface: #131c33;
  --color-surface-hover: #182448;
  --color-border: #223056;
  --color-text: #e6ebf5;
  --color-text-muted: #9aa7c7;
  --color-accent: #35d7d0;
  --color-accent-strong: #1fb8b0;
  --color-accent-soft: rgba(53, 215, 208, 0.12);
  --color-danger: #ff6b6b;
  --color-success: #4ade80;
  --font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --max-width: 1120px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background-color: var(--color-bg);
  background-image:
    linear-gradient(rgba(53, 215, 208, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 215, 208, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 15% 0%, rgba(53, 215, 208, 0.1), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(53, 215, 208, 0.06), transparent 45%);
  background-size: 48px 48px, 48px 48px, auto, auto;
  background-position: center top;
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img, svg {
  max-width: 100%;
}

::selection {
  background: var(--color-accent);
  color: #06110f;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

html {
  scrollbar-color: var(--color-border) var(--color-bg);
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

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

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(53, 215, 208, 0.22);
  box-shadow: 0 1px 24px rgba(53, 215, 208, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  letter-spacing: 0.02em;
}
.brand:hover {
  color: var(--color-text);
  text-decoration: none;
}
.brand .logo-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.brand .brand-sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  padding: 8px 10px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
  text-decoration: none;
}

.nav-links .btn {
  color: #06110f;
}

.nav-social img {
  width: 20px;
  height: 20px;
  opacity: 0.85;
}
.nav-social:hover img {
  opacity: 1;
}

.lang-switch {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 5px 12px;
}
.lang-switch:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  text-decoration: none;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
  color: #06110f;
  box-shadow: 0 0 0 rgba(53, 215, 208, 0);
}
.btn-primary:hover {
  box-shadow: 0 0 24px rgba(53, 215, 208, 0.45);
  transform: translateY(-1px);
  color: #06110f;
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.btn-outline:hover {
  background: var(--color-accent-soft);
  box-shadow: 0 0 18px rgba(53, 215, 208, 0.3);
  text-decoration: none;
}

/* --- Badge plate (certifications / visas officiels) --- */
.badge-plate {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border-radius: 10px;
  padding: 10px 18px;
  box-shadow: var(--shadow);
}
.badge-plate img {
  display: block;
  height: 48px;
  width: auto;
}
.badge-plate span {
  color: #16213e;
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 160px;
  line-height: 1.3;
}
.trust-row {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

/* --- Hero --- */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}
.hero .eyebrow,
.section-header .eyebrow,
.page-header .eyebrow {
  font-family: var(--font-mono);
  text-shadow: 0 0 12px rgba(53, 215, 208, 0.5);
}
.hero .eyebrow::before,
.section-header .eyebrow::before,
.page-header .eyebrow::before {
  content: "// ";
  opacity: 0.7;
}

.hero .eyebrow {
  display: inline-block;
  color: var(--color-accent);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero h1 span {
  color: var(--color-accent);
}
.hero p.lead {
  max-width: 680px;
  margin: 0 auto 34px;
  color: var(--color-text-muted);
  font-size: 1.1rem;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Sections --- */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--color-border);
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}
.section-header .eyebrow {
  color: var(--color-accent);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.section-header h2 {
  font-size: 2rem;
  margin: 8px 0 12px;
}
.section-header p {
  color: var(--color-text-muted);
}

/* --- Cards / grid --- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 900px) {
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background:
    linear-gradient(90deg, var(--color-accent), transparent 65%) top left / 100% 2px no-repeat,
    var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius) 0 var(--radius) 0;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  padding: 28px;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, filter 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent);
  background:
    linear-gradient(90deg, var(--color-accent), transparent 65%) top left / 100% 2px no-repeat,
    var(--color-surface-hover);
  filter: drop-shadow(0 0 22px rgba(53, 215, 208, 0.25));
}
.card .icon {
  width: 42px;
  height: 42px;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}
.card p {
  color: var(--color-text-muted);
  margin: 0;
}
.card a.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.tag {
  background: var(--color-accent-soft);
  border: 1px solid rgba(53, 215, 208, 0.35);
  color: var(--color-accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

.callout {
  background: linear-gradient(135deg, rgba(53, 215, 208, 0.14), rgba(53, 215, 208, 0.02));
  border: 1px solid rgba(53, 215, 208, 0.3);
  border-radius: var(--radius) 0 var(--radius) 0;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  filter: drop-shadow(0 0 32px rgba(53, 215, 208, 0.14));
  padding: 44px;
  text-align: center;
}
.callout h2 {
  margin-top: 0;
}

/* --- Content pages --- */
.page-header {
  padding: 64px 0 32px;
  text-align: center;
}
.page-header .eyebrow {
  color: var(--color-accent);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.page-header h1 {
  margin: 10px 0 14px;
}
.page-header p {
  color: var(--color-text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.prose h2 {
  margin-top: 40px;
  font-size: 1.4rem;
}
.prose p {
  color: var(--color-text-muted);
}
.prose ul {
  color: var(--color-text-muted);
  padding-left: 20px;
}
.prose li {
  margin-bottom: 8px;
}

/* --- Contact --- */
.contact-info-centered {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}
.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--color-text-muted);
}
.contact-info-list .icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}
.contact-info-list strong {
  color: var(--color-text);
  display: block;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.footer-brand .logo-mark {
  width: 26px;
  height: 26px;
}
.footer-links {
  display: flex;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.footer-note {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  margin-top: 22px;
  text-align: center;
}

/* --- Mobile nav --- */
@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 16px;
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
}

/* --- Utilitaires (remplacent les styles en ligne, interdits par la CSP style-src) --- */
.no-border-top { border-top: none; }
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.btn-block { width: 100%; }
.prose-narrow { max-width: 760px; margin: 0 auto; }
.mt-14 { margin-top: 14px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-56 { margin-top: 56px; }
.mb-32 { margin-bottom: 32px; }

/* --- Kit de communication --- */
.logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.logo-preview img {
  width: 120px;
  height: 120px;
}
.logo-preview.on-dark {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}
.logo-preview.on-light {
  background: #ffffff;
}
.download-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.download-links .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.download-links .btn svg {
  width: 16px;
  height: 16px;
}

/* --- Numbered steps --- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background:
    linear-gradient(90deg, var(--color-accent), transparent 65%) top left / 100% 2px no-repeat,
    var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius) 0 var(--radius) 0;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  filter: drop-shadow(0 0 16px rgba(53, 215, 208, 0.1));
  padding: 24px 28px;
}
.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0% 50%);
  background: var(--color-accent-soft);
  filter: drop-shadow(0 0 10px rgba(53, 215, 208, 0.4));
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
}
.step h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.step p {
  margin: 0;
  color: var(--color-text-muted);
}
.step p + p {
  margin-top: 8px;
}
