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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #020617;
  background: radial-gradient(circle at top left, #e0f2fe 0, #f9fafb 45%, #f9fafb 100%);
  line-height: 1.6;
}

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

a {
  color: #0ea5e9;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
  color: #6366f1;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: #020617;
}

p {
  margin-top: 0;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-link {
  text-decoration: none;
}

.brand-link:hover,
.brand-link:focus-visible {
  text-decoration: none;
}

.brand-logo {
  width: 34px;
  height: 34px;
  display: block;
}

.brand-mark {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.brand-subtitle {
  font-size: 0.9rem;
  color: #9ca3af;
}

.main-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.main-nav a {
  color: #e5e7eb;
  font-weight: 500;
  position: relative;
  padding-bottom: 0.1rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  transition: width 0.2s ease-out;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
  width: 100%;
}

/* Hero */
.hero {
  padding: 4.75rem 0 3.75rem;
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.5) 0, transparent 45%),
    radial-gradient(circle at 80% 0, rgba(79, 70, 229, 0.5) 0, transparent 46%),
    radial-gradient(circle at 0 0, #1d4ed8 0, #020617 58%);
  color: #e5e7eb;
}

.hero-subpage {
  padding: 3.5rem 0 2.8rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 3rem;
  align-items: flex-start;
}

.hero-center {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding-top: 1.25rem;
}

.hero-text-center {
  text-align: center;
}

.hero-text {
  position: relative;
  padding: 2.25rem 2.4rem 2.6rem;
  border-radius: 1.75rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.88));
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.8),
    0 0 0 1px rgba(15, 23, 42, 0.8);
  overflow: hidden;
}

.hero-text::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 20% 0, rgba(56, 189, 248, 0.22) 0, transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(79, 70, 229, 0.22) 0, transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

.hero-text > * {
  position: relative;
}

.hero-inner-single {
  grid-template-columns: minmax(0, 1.7fr);
  max-width: 800px;
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #38bdf8;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  opacity: 0.7;
}

.hero h1 {
  font-size: clamp(1.9rem, 2.3vw, 2.4rem);
  line-height: 1.15;
  color: #f9fafb;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1rem;
  color: #e5e7eb;
  margin-bottom: 0.9rem;
}

.hero-sub {
  font-size: 0.95rem;
  color: #cbd5f5;
  max-width: 32rem;
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-start;
}

.hero-text-center .hero-actions {
  justify-content: center;
}

.hero-side {
  padding: 1.25rem 1.5rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-side h2 {
  color: #f9fafb;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.hero-side p {
  font-size: 0.9rem;
  color: #e5e7eb;
}

/* Buttons */
.btn-primary,
.btn-secondary,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 1px solid transparent;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  transition:
    background-color 0.2s ease-out,
    color 0.2s ease-out,
    box-shadow 0.2s ease-out,
    transform 0.1s ease-out,
    border-color 0.2s ease-out;
}

.btn-primary {
  background-color: #0ea5e9;
  color: #f9fafb;
  box-shadow: 0 8px 14px rgba(15, 23, 42, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #0284c7;
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.36);
  transform: translateY(-1px) scale(0.99);
}

.btn-secondary {
  background-color: transparent;
  border-color: rgba(148, 163, 184, 0.8);
  color: #e5e7eb;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: rgba(15, 23, 42, 0.9);
  border-color: #38bdf8;
  color: #f9fafb;
}

button {
  background-color: #0ea5e9;
  color: #f9fafb;
  box-shadow: 0 8px 14px rgba(15, 23, 42, 0.28);
}

button:hover,
button:focus-visible {
  background-color: #0284c7;
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.36);
  transform: translateY(-1px) scale(0.99);
}

button:active,
.btn-primary:active,
.btn-secondary:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.4);
}

/* Sections */
.section {
  padding: 3.75rem 0;
}

.section-alt {
  background: linear-gradient(180deg, #f3f4ff 0, #f1f5f9 55%);
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  position: relative;
}

.section h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 0.45rem;
  background: linear-gradient(90deg, #0ea5e9, #6366f1);
}

.section h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: flex-start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  align-items: stretch;
}

.card {
  background-color: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid #e2e8f0;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.04);
  transition:
    box-shadow 0.2s ease-out,
    transform 0.15s ease-out,
    border-color 0.2s ease-out,
    background-color 0.2s ease-out;
}

.section-alt .card {
  background-color: #f8fafc;
}

.card:hover {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  transform: translateY(-4px);
  border-color: #cbd5e1;
  background-color: #ffffff;
}

.card p {
  font-size: 0.95rem;
  color: #111827;
}

/* Contact section & form */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.8fr);
  gap: 2.3rem;
  align-items: flex-start;
}

.contact-form {
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  padding: 1.5rem 1.6rem 1.7rem;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  margin-bottom: 1rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: #e5e7eb;
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: #f9fafb;
  transition:
    border-color 0.15s ease-out,
    box-shadow 0.15s ease-out,
    background-color 0.15s ease-out;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
  background-color: #ffffff;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.checkbox-field input[type="checkbox"] {
  margin-top: 0.15rem;
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.checkbox-field label {
  font-size: 0.85rem;
  font-weight: 400;
}

.form-note {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: #64748b;
}

/* Privacy policy */
#privacy-policy ul {
  padding-left: 1.2rem;
}

#privacy-policy li {
  margin-bottom: 0.3rem;
}

.privacy-intro {
  max-width: 50rem;
}

.privacy-highlight {
  background-color: #eff6ff;
  border-radius: 0.75rem;
  padding: 0.8rem 1rem;
  border: 1px solid #bfdbfe;
  font-size: 0.9rem;
  color: #0f172a;
}

.section-alt .privacy-highlight {
  color: #0f172a;
}

.privacy-highlight a {
  color: #0369a1;
}

.privacy-highlight a:hover,
.privacy-highlight a:focus {
  color: #0f172a;
}

.privacy-updated {
  font-size: 0.85rem;
  color: #64748b;
}

.placeholder {
  font-style: italic;
  color: #9ca3af;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e2e8f0;
  padding: 1.4rem 0 1.6rem;
  background-color: #f9fafb;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.footer-brand {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.footer-text {
  font-size: 0.85rem;
  color: #6b7280;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
  font-size: 0.85rem;
}

.footer-links a {
  color: #0f172a;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #0369a1;
}

.main-nav a.active {
  color: #e0f2fe;
}

.main-nav a.active::after {
  width: 100%;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-inner-single {
    max-width: 100%;
  }

  .hero-side {
    order: -1;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .main-nav {
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }

  .hero {
    padding-top: 3.4rem;
  }

  .grid-2,
  .grid-3,
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 3rem 0;
  }

  .contact-form {
    padding: 1.25rem 1.35rem 1.45rem;
  }
}

/* === Layout inspiré de index2.html (version dark plus dynamique) === */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  color: #ffffff;
  background-color: #020617;
  line-height: 1.6;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2.5rem 0 3.5rem;
  position: relative;
  background:
    linear-gradient(135deg, #020617 0%, #0f172a 100%),
    radial-gradient(circle at 20% 80%, rgba(56, 189, 248, 0.25) 20%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.18) 0%, transparent 60%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #38bdf8;
  margin-bottom: 1.5rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, #6366f1);
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 4.6rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.7;
  opacity: 0.95;
  color: #e5e7eb;
}

.btn-primary {
  background: linear-gradient(45deg, #38bdf8, #6366f1);
  color: #ffffff;
  padding: 1.1rem 2.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.32);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: none;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 26px 60px rgba(56, 189, 248, 0.42);
}

.section {
  padding: 5.5rem 0;
  background: #f9fafb; /* clair */
  color: #020617;
}

.section-alt {
  background: #020617; /* sombre */
  color: #e5e7eb;
}

.section h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  text-align: center;
  margin-bottom: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section h2::after {
  display: none;
}

.grid {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: flex-start;
}

.section .card {
  background: #ffffff;
  border-radius: 1.2rem;
  border: 1px solid #e2e8f0;
  padding: 2.1rem 2rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.section-alt .card {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 1.4rem;
  padding: 2.4rem 2.2rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.8);
}

.section-alt .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.16), transparent);
  transition: left 0.6s;
}

.section-alt .card:hover::before {
  left: 100%;
}

.section .card:hover {
  transform: translateY(-6px);
  border-color: #bfdbfe;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.1);
  background: #eff6ff;
}

.section-alt .card:hover {
  transform: translateY(-10px);
  border-color: #38bdf8;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.7);
  background: rgba(15, 23, 42, 0.95);
}

.section .card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  font-weight: 600;
  color: #020617;
}

.section-alt .card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  font-weight: 600;
  color: #ffffff;
}

.section .card p {
  color: #111827;
  font-size: 0.98rem;
  line-height: 1.7;
}

.section-alt .card p {
  color: rgba(226, 232, 240, 0.95);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Couleurs de texte adaptées clair/sombre pour les sections */
.section p,
.section li {
  color: #020617;
}

.section h3 {
  color: #020617;
}

.section-alt p,
.section-alt li {
  color: rgba(226, 232, 240, 0.96);
}

.section-alt h3 {
  color: #ffffff;
}

/* Section teaser conformité (avant footer) */
/* Teaser conformité : suit les règles .section, mais cartes sombres */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: flex-start;
  max-width: 1120px;
  margin: 0 auto;
}

.contact-form {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 1.6rem;
  padding: 2.4rem 2.3rem;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.8);
}

.contact-form-cta p {
  color: rgba(226, 232, 240, 0.96);
  margin-bottom: 1.6rem;
  font-size: 0.98rem;
}

.site-footer {
  padding: 3rem 0 2.2rem;
  background: #0f172a;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
}

.footer-text {
  color: rgba(226, 232, 240, 0.9);
}

.footer-links a {
  color: rgba(226, 232, 240, 0.9);
}

.footer-links a:hover,
.footer-links a:focus {
  color: #38bdf8;
}

@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 1.5rem;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .contact-form {
    padding: 2.1rem 1.8rem;
  }
}

