/* CertiShielder™ — Landing statique · système uniquement · WCAG AA */

:root {
  --color-navy: #0c1222;
  --color-navy-light: #1e293b;
  --color-accent: #1e40af;
  --color-accent-hover: #2563eb;
  --color-accent-soft: #dbeafe;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-border: #e2e8f0;
  --color-status: #b45309;
  --color-status-bg: #fef3c7;
  --font-system: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 72rem;
  --radius: 0.5rem;
  --shadow: 0 1px 3px rgb(15 23 42 / 8%);
  --focus-ring: 0 0 0 3px rgb(30 64 175 / 35%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-system);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-accent-hover);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 0.25rem;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--color-navy);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

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

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

body.site-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255 255 255 / 95%);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
}

.logo {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.logo-text .certi {
  color: var(--color-navy);
}

.logo-text .shielder {
  color: var(--color-accent);
}

.logo-text sup {
  font-size: 0.55em;
  vertical-align: super;
  font-weight: 400;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.header-nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.125rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-nav-list > .nav-item {
  display: flex;
  align-items: center;
  position: relative;
}

.header-nav-list > .nav-item + .nav-item::before {
  content: "|";
  margin: 0 0.625rem;
  color: #cbd5e1;
  font-weight: 300;
  user-select: none;
  pointer-events: none;
}

.nav-dropdown:not([open]) .nav-dropdown-panel,
.lang-dropdown:not([open]) .lang-panel {
  display: none;
}

.lang-dropdown {
  position: relative;
}

.lang-dropdown summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-navy);
}

.lang-dropdown summary::-webkit-details-marker {
  display: none;
}

.lang-dropdown summary::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.55;
}

.icon-globe {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--color-text-muted);
}

.lang-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 200;
  min-width: 13rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 0.625rem;
  box-shadow: 0 12px 32px rgb(12 18 34 / 14%);
}

.lang-panel-title {
  margin: 0 0 0.5rem;
  padding: 0 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.lang-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang-menu a {
  display: block;
  padding: 0.5rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
}

.lang-menu a:hover {
  background: var(--color-bg-alt);
  color: var(--color-accent);
}

.lang-menu a[aria-current="true"] {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-weight: 600;
}

.main-nav a,
.nav-dropdown summary {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current="page"],
.nav-dropdown summary:hover {
  color: var(--color-accent);
}

.nav-item--dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.375rem;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.55;
}

.nav-dropdown[open] summary {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  z-index: 150;
  min-width: 15rem;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 0.625rem;
  box-shadow: 0 12px 32px rgb(12 18 34 / 12%);
}

.nav-dropdown-panel a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-decoration: none;
}

.nav-dropdown-panel a:hover {
  background: var(--color-bg-alt);
  color: var(--color-accent);
}

/* Page intérieure (layout header · page · footer) */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-navy);
  letter-spacing: -0.02em;
}

.page-lead {
  margin: 0;
  max-width: 42rem;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
}

.page-content {
  padding: 2rem 0 3rem;
}

.page-content > :first-child {
  margin-top: 0;
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-status);
  background: var(--color-status-bg);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-navy);
}

.hero-baseline {
  margin: 0 0 1.5rem;
  max-width: 42rem;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--color-text-muted);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-navy);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

.icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Sections */
section {
  padding: 3.5rem 0;
}

section:nth-of-type(even) {
  background: var(--color-bg-alt);
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-navy);
  letter-spacing: -0.01em;
}

.section-header p {
  margin: 0;
  max-width: 40rem;
  color: var(--color-text-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-card h3 {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  color: var(--color-navy);
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.feature-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.mission-block {
  max-width: 48rem;
}

.mission-block p {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
}

.mission-block p:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 1.5rem;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.footer-container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
}

.footer-section h3 .certi {
  color: var(--color-navy);
}

.footer-section h3 .shielder {
  color: var(--color-accent);
}

.footer-section h3 sup {
  font-size: 0.55em;
  vertical-align: super;
  font-weight: 400;
}

.footer-section h4 {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-navy);
}

.footer-section p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-tagline {
  margin-bottom: 1rem !important;
}

.footer-powered {
  margin-top: 1rem !important;
  font-size: 0.875rem !important;
}

.footer-powered a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.footer-powered a:hover {
  text-decoration: underline;
}

.footer-address {
  display: inline;
}

.footer-address::before {
  content: " ";
  white-space: pre;
}

.footer-phone small {
  display: inline;
  margin-left: 0.35em;
}

.footer-phone {
  margin-top: 0.75rem !important;
  font-size: 0.875rem !important;
}

.footer-phone a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.footer-phone a:hover {
  text-decoration: underline;
}

.footer-phone small {
  color: #94a3b8;
  font-size: 0.8125rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.625rem;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.875rem;
  color: #94a3b8;
}

.footer-bottom a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Contact */
.contact-section {
  padding: 3.5rem 0;
  background: #fff;
}

.contact-panel {
  max-width: 48rem;
  margin-inline: auto;
}

.contact-cryptpeer-box {
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, rgb(29 78 216 / 8%) 0%, rgb(29 78 216 / 3%) 100%);
  border: 2px solid rgb(29 78 216 / 20%);
  border-radius: 0.75rem;
}

.contact-cryptpeer-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgb(29 78 216 / 15%);
}

.contact-cryptpeer-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-accent);
}

.contact-cryptpeer-header h3 {
  margin: 0 0 0.375rem;
  font-size: 1.125rem;
  color: var(--color-navy);
}

.contact-cryptpeer-header p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.contact-cryptpeer-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-navy);
}

.contact-cryptpeer-title .icon {
  color: var(--color-accent);
}

.btn-contact-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  max-width: 100%;
  padding: 0.875rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgb(29 78 216 / 25%);
}

.btn-contact-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.contact-register-box {
  padding: 1rem;
  background: rgb(255 255 255 / 85%);
  border: 1px solid rgb(29 78 216 / 15%);
  border-radius: 0.375rem;
}

.contact-register-box p {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.contact-register-box a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-note-small {
  margin: 0.625rem 0 0 !important;
  font-size: 0.8125rem !important;
  color: #94a3b8 !important;
}

.contact-alt-box {
  padding: 1.25rem;
  text-align: center;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
}

.contact-alt-box > p {
  margin: 0 0 0.875rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.btn-contact-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--color-accent);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--color-accent);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.btn-contact-secondary:hover {
  background: var(--color-accent);
  color: #fff;
}

@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive */
.contact-signup-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-signup-link:hover {
  text-decoration: underline;
}

.contact-signup-lead {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.contact-qr-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: 1rem;
  background: rgb(255 255 255 / 85%);
  border: 1px solid rgb(30 64 175 / 12%);
  border-radius: var(--radius);
}

.contact-qr {
  flex-shrink: 0;
  width: 10rem;
  height: 10rem;
  padding: 0.375rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.contact-signup {
  flex: 1;
  min-width: 0;
}

.contact-cryptpeer-box .btn-contact-primary {
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .site-nav {
    flex: 1 1 100%;
    order: 3;
  }

  .header-nav-list {
    justify-content: flex-start;
    gap: 0.25rem 0;
  }

  .header-nav-list > .nav-item + .nav-item::before {
    display: none;
  }

  .main-nav a,
  .nav-dropdown summary {
    font-size: 0.875rem;
  }

  .nav-dropdown-panel {
    position: static;
    width: 100%;
    margin-top: 0.25rem;
    box-shadow: none;
    border: none;
    padding-left: 0.75rem;
  }

  .lang-panel {
    position: static;
    width: 100%;
    margin-top: 0.375rem;
    box-shadow: none;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .contact-qr-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-signup {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
