:root {
  --color-primary: #5b5fc7;
  --color-primary-dark: #4548a3;
  --color-ink: #24262e;
  --color-muted: #5c5f6b;
  --color-bg-alt: #f5f5fa;
  --color-border: #e4e4ee;
  --max-width: 1080px;
  --radius: 14px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-ink);
  line-height: 1.6;
  background: #ffffff;
}

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

.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  height: 34px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 8px;
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--color-primary);
}

.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 10px 18px !important;
  border: none;
  border-radius: 999px;
  outline: none !important;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: var(--color-primary-dark);
}

.nav-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Hero */
.hero {
  padding: 96px 0 88px;
  background: radial-gradient(circle at top right, #eceafb 0%, #ffffff 60%);
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 800;
  max-width: 820px;
  margin: 0 auto 20px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto 36px;
}

.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 30px;
  transition: transform 0.15s ease, background 0.2s ease;
}

/* Process banner animation */
.process-banner {
  display: block;
  width: 100%;
  margin: 64px auto 0;
  overflow: visible;
}

.flow-line {
  fill: none;
  stroke: var(--color-border);
  stroke-width: 3;
}

.flow-progress {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 10 10;
  animation: flowDash 0.7s linear infinite;
  opacity: 0.85;
}

.flow-progress-2 {
  animation-delay: 0.6s;
}

.flow-progress-3 {
  animation-delay: 1.2s;
}

@keyframes flowDash {
  to {
    stroke-dashoffset: -20;
  }
}

.node-core {
  fill: #fff;
  stroke: var(--color-primary);
  stroke-width: 3;
}

.node-pulse {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2.5;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: nodePulse 2.4s ease-out infinite;
  animation-delay: var(--delay);
}

@keyframes nodePulse {
  0% {
    transform: scale(0.85);
    opacity: 0.7;
  }
  60% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.node-icon-svg {
  color: var(--color-primary);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.node-label {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 600;
  fill: var(--color-ink);
  text-anchor: middle;
}

/* Vertical process illustration (mobile only) */
.process-mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 64px auto 0;
}

.process-mobile-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.process-mobile-icon {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--color-primary);
  color: var(--color-primary);
}

.process-mobile-icon::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  opacity: 0;
  animation: benefitPulse 2.4s ease-out infinite;
  animation-delay: var(--delay);
}

.process-mobile-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-mobile-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-ink);
}

.process-mobile-connector {
  width: 2px;
  height: 32px;
  margin: 6px 0;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-border));
  opacity: 0.5;
}

@media (max-width: 640px) {
  .hero {
    padding-bottom: 40px;
  }

  .process-banner {
    display: none;
  }

  .process-mobile {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-progress,
  .node-pulse,
  .benefit-icon::before,
  .benefit-icon svg {
    animation: none;
  }

  .flow-progress {
    opacity: 0.5;
  }
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.eyebrow.center {
  display: block;
  text-align: center;
}

.section-grid {
  max-width: 760px;
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.section h2.center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section p {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin: 0;
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.benefit-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.benefit-card:hover {
  box-shadow: 0 12px 30px rgba(91, 95, 199, 0.12);
  transform: translateY(-3px);
}

.benefit-icon {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(91, 95, 199, 0.1);
  color: var(--color-primary);
}

.benefit-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  opacity: 0;
  animation: benefitPulse 2.6s ease-out infinite;
}

.benefit-card:nth-child(2) .benefit-icon::before {
  animation-delay: 0.4s;
}

.benefit-card:nth-child(3) .benefit-icon::before {
  animation-delay: 0.8s;
}

.benefit-card:nth-child(4) .benefit-icon::before {
  animation-delay: 1.2s;
}

@keyframes benefitPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.7);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.benefit-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: iconFloat 3s ease-in-out infinite;
}

.benefit-card:nth-child(2) .benefit-icon svg {
  animation-delay: 0.25s;
}

.benefit-card:nth-child(3) .benefit-icon svg {
  animation-delay: 0.5s;
}

.benefit-card:nth-child(4) .benefit-icon svg {
  animation-delay: 0.75s;
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.08);
  }
}

.benefit-card h3 {
  font-size: 1.1rem;
  margin: 0 0 10px;
}

.benefit-card p {
  font-size: 0.95rem;
}

/* Certifications */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.cert-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cert-card:hover {
  box-shadow: 0 12px 30px rgba(91, 95, 199, 0.1);
  transform: translateY(-2px);
}

.cert-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-primary);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cert-card h3 {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 6px;
}

.cert-meta {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
}

.about-photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 12px 30px rgba(36, 38, 46, 0.12);
}

.about-grid h2 {
  margin-bottom: 12px;
}

.credentials {
  color: var(--color-muted);
  font-weight: 500;
  font-size: 0.62em;
  vertical-align: middle;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
}

.contact-intro h2 {
  margin-bottom: 12px;
}

.contact-form {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(91, 95, 199, 0.15);
}

.form-status {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}

.form-status.is-visible {
  display: flex;
}

.form-status-icon {
  display: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-status.is-loading {
  color: var(--color-muted);
  padding: 0;
}

.form-status.is-success {
  background: rgba(30, 150, 105, 0.1);
  color: #1a8a5c;
}

.form-status.is-error {
  background: rgba(214, 69, 69, 0.1);
  color: #c23b3b;
}

.form-status.is-success .form-status-icon,
.form-status.is-error .form-status-icon {
  display: block;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-logo {
  height: 26px;
  opacity: 0.9;
  margin-bottom: 18px;
}

.footer-tagline {
  color: var(--color-muted);
  font-size: 0.95rem;
  max-width: 320px;
  margin: 0 0 18px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(91, 95, 199, 0.1);
  color: var(--color-primary);
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-social-link:hover {
  background: var(--color-primary);
  color: #fff;
}

.footer-social-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-ink);
  margin: 0 0 20px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--color-primary);
}

.footer-address {
  font-style: normal;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--color-border);
  padding: 24px 0;
}

.footer-bottom p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.footer-legal-link {
  color: var(--color-muted);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal-link:hover {
  color: var(--color-primary);
}

/* Responsive */
@media (max-width: 860px) {
  .benefits-grid,
  .certifications-grid {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-photo {
    margin: 0 auto;
  }

  .site-nav {
    gap: 12px;
    font-size: 0.9rem;
  }

  .site-nav a {
    padding: 4px 6px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-tagline {
    max-width: none;
    margin: 0 auto;
  }

  .footer-social-link {
    margin-top: 12px;
  }

  .footer-nav a {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }

  .footer-bottom p,
  .footer-legal-link {
    padding: 6px 0;
  }
}

@media (max-width: 560px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }
}

/* Legal pages */
.legal-content {
  max-width: 760px;
}

.legal-content h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin: 8px 0 4px;
}

.legal-updated {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 0 0 32px;
}

.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 36px 0 12px;
}

.legal-content p {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 4px;
}

.legal-content a {
  color: var(--color-primary);
  font-weight: 600;
}

/* Cookie consent banner (Loi 25) */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 30px rgba(36, 38, 46, 0.12);
  padding: 20px 24px;
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-consent-text {
  margin: 0;
  flex: 1 1 420px;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.cookie-consent-text a {
  color: var(--color-primary);
  font-weight: 600;
}

.cookie-consent-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-cookie {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  min-height: 44px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-cookie-decline {
  background: transparent;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
}

.btn-cookie-decline:hover {
  background: var(--color-bg-alt);
  color: var(--color-ink);
}

.btn-cookie-accept {
  background: var(--color-primary);
  color: #fff;
}

.btn-cookie-accept:hover {
  background: var(--color-primary-dark);
}

@media (max-width: 640px) {
  .cookie-consent {
    padding: 14px 16px;
  }

  .cookie-consent-inner {
    gap: 12px;
  }

  .cookie-consent-text {
    flex-basis: 100%;
    font-size: 0.85rem;
  }

  .cookie-consent-actions {
    width: 100%;
    gap: 10px;
  }

  .btn-cookie {
    flex: 1;
    min-height: 40px;
    padding: 8px 14px;
  }
}
