@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #081d38;
  --navy-2: #102d4c;
  --navy-line: #2a4664;
  --ink: #11263f;
  --teal: #10b8b0;       /* décor et texte sur fond sombre */
  --teal-dark: #0a7f79;  /* texte sur fond clair (contraste suffisant) */
  --lime: #a8d94b;
  --red: #e5484d;
  --mist: #f2f6f6;
  --muted: #4f5f73;
  --muted-dark: #b4c3d0;
  --line: #d9e3e5;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Manrope, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-weight: 700;
}
.skip-link:focus { top: 12px; }

.shell { max-width: 1160px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header-inner {
  height: 76px; max-width: 1160px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand img { width: 150px; height: auto; display: block; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 700; }
.nav a:not(.nav-cta) { padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav a:not(.nav-cta):hover { color: var(--teal-dark); border-color: var(--teal); }
.nav-cta { background: var(--navy); color: #fff; padding: 11px 16px; border-radius: var(--radius); transition: background .2s; }
.nav-cta:hover { background: var(--navy-2); }
.nav-cta span { color: var(--teal); margin-left: 6px; }
.menu-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--navy); cursor: pointer; padding: 6px 8px; }

/* Typographie commune */
.eyebrow {
  font-family: 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .12em;
  font-size: 13px; font-weight: 500; color: var(--teal-dark); margin: 0 0 18px;
}
.light .eyebrow, .dark-section .eyebrow { color: var(--lime); }
.pulse {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block; vertical-align: middle;
  background: var(--lime); margin-right: 8px; box-shadow: 0 0 0 5px #e9f6cc;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(168, 217, 75, .15); } }

h2 {
  font-size: clamp(32px, 4vw, 50px); line-height: 1.1; letter-spacing: -.04em;
  margin: 0; font-weight: 800;
}
h2 span { color: var(--teal-dark); }
.dark-section h2 span { color: var(--teal); }
.section-intro { max-width: 700px; }
.intro-lead { font-size: 19px; color: var(--muted); margin: 22px 0 0; }
.light .intro-lead, .light p { color: var(--muted-dark); }
.note { margin: 34px 0 0; color: var(--muted); font-size: 16px; max-width: 760px; border-left: 3px solid var(--teal); padding-left: 16px; }

/* Boutons */
.button {
  display: inline-flex; gap: 18px; align-items: center; padding: 15px 22px;
  font-size: 15px; font-weight: 800; border-radius: var(--radius); transition: transform .15s, background .2s;
}
.button:hover { transform: translateY(-1px); }
.button span { font-size: 18px; line-height: 0; }
.button-primary { background: var(--teal-dark); color: #fff; }
.button-primary:hover { background: #086b66; }
.button-light { background: #fff; color: var(--navy); white-space: nowrap; }
.text-link { font-size: 15px; font-weight: 800; }
.text-link span { color: var(--teal-dark); margin-left: 6px; }
.text-link:hover { color: var(--teal-dark); }

/* Accueil */
.hero {
  min-height: 600px; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 48px; padding-top: 48px; padding-bottom: 80px;
}
.hero h1 {
  font-size: clamp(44px, 5.6vw, 74px); line-height: 1.03; letter-spacing: -.05em;
  margin: 0 0 24px; max-width: 610px; font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--teal-dark); }
.hero-lead { font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 540px; margin: 0; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 34px; flex-wrap: wrap; }

.hero-visual { margin: 0; background: var(--mist); border-radius: 12px; overflow: hidden; }
.hero-visual svg { display: block; width: 100%; height: auto; }
.orbits ellipse { fill: none; stroke: #c8e2e0; stroke-width: 1; }
.link { fill: none; stroke: #b9cfd2; stroke-width: 2; stroke-dasharray: 4 6; }
.link-live { stroke: var(--teal); stroke-dasharray: none; stroke-width: 3; }
.dot { fill: var(--lime); }
.dot-b { fill: var(--teal); }
.node rect { fill: #fff; stroke: var(--line); stroke-width: 2; filter: drop-shadow(0 8px 16px rgba(17, 38, 63, .10)); }
.node text { font: 700 15px Manrope, Arial, sans-serif; fill: var(--ink); }
.node-no { font: 500 13px 'DM Mono', monospace; fill: var(--teal-dark); }
.core { fill: var(--navy); }
.core-halo { fill: rgba(16, 184, 176, .12); }
.core-mark { font: 800 46px Manrope, Arial, sans-serif; fill: var(--teal); }
.core-label { font: 500 12px 'DM Mono', monospace; letter-spacing: .12em; fill: #fff; }
.badge circle { fill: currentColor; }
.badge path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.badge-ko { color: var(--red); }
.badge-ok { color: var(--teal-dark); }
.caption text { font: 600 16px Manrope, Arial, sans-serif; fill: var(--muted); }

.proof-bar { background: var(--navy); color: #fff; }
.proof-grid { min-height: 78px; display: flex; align-items: center; justify-content: space-between; font-size: 17px; gap: 16px; }
.proof-grid span { color: var(--muted-dark); }
.proof-grid strong { font-weight: 700; color: var(--teal); }

/* Sections */
.section { padding-top: 110px; padding-bottom: 110px; }
.section-alt { background: var(--mist); padding: 110px 0; }
.dark-section { background: var(--navy); color: #fff; padding: 110px 0; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 54px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.section:not(.section-alt) .card { background: var(--mist); border-color: transparent; }
.card h3 { font-size: 20px; line-height: 1.3; margin: 14px 0 10px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card-no { font: 500 13px 'DM Mono', monospace; color: var(--teal-dark); }
.card-featured { border: 2px solid var(--teal); box-shadow: 0 18px 40px rgba(16, 184, 176, .12); }
.tag {
  display: inline-block; font: 500 12px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .1em;
  color: var(--teal-dark); background: #e2f4f3; padding: 4px 10px; border-radius: 99px;
}
.card .ident {
  font: 500 14px 'DM Mono', monospace; color: var(--navy); background: var(--mist);
  border-radius: 4px; padding: 8px 10px; margin: 0 0 14px; overflow-wrap: anywhere;
}

/* Piliers */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--navy-line); margin-top: 60px; border-radius: 10px; overflow: hidden; }
.pillar { background: var(--navy); padding: 34px 30px 38px; }
.pillar.featured { background: var(--navy-2); }
.pillar-no { font: 500 13px 'DM Mono', monospace; color: var(--teal); }
.pillar-icon { width: 46px; height: 46px; display: block; margin: 30px 0 22px; fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-size: 21px; margin: 0 0 12px; }
.pillar p { font-size: 16px; color: var(--muted-dark); margin: 0; }

/* Fonctionnement */
.process { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 45px; position: relative; margin: 64px 0 0; }
.process::before { content: ""; height: 2px; background: linear-gradient(90deg, var(--teal), var(--lime)); position: absolute; top: 19px; left: 20px; right: 20px; }
.process-step { position: relative; }
.process-step b {
  display: flex; background: #fff; border: 2px solid var(--teal); width: 40px; height: 40px;
  align-items: center; justify-content: center; border-radius: 50%;
  font: 500 13px 'DM Mono', monospace; color: var(--teal-dark); margin-bottom: 26px; position: relative;
}
.process-step h3 { font-size: 20px; margin: 0 0 8px; }
.process-step p { color: var(--muted); font-size: 16px; margin: 0; max-width: 320px; }

.tech { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; margin-top: 80px; align-items: center; }
.tech h3 { font-size: 24px; line-height: 1.25; margin: 0 0 14px; }
.tech-copy p { color: var(--muted); margin: 0 0 14px; }
.code-card { margin: 0; background: var(--navy); border-radius: 10px; padding: 22px 24px; color: #e6eef3; box-shadow: 0 24px 50px rgba(8, 29, 56, .18); }
.code-card figcaption { font: 500 12px 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); margin-bottom: 14px; }
.code-card pre { margin: 0; overflow-x: auto; }
.code-card code { font: 14px/1.75 'DM Mono', monospace; }
.code-card .c { color: #8ea3b6; }
.code-card b { color: var(--teal); font-weight: 500; }
.code-card i { color: var(--lime); font-style: normal; }

/* Confiance */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative; padding: 16px 0 16px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px;
}
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist li strong { color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 18px; width: 24px; height: 24px; border-radius: 50%;
  background: #e2f4f3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%230a7f79' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px no-repeat;
}

/* 2028 */
.reg-grid { display: grid; grid-template-columns: 340px 1fr; gap: 72px; align-items: center; }
.reg-date {
  border: 1px solid var(--navy-line); border-radius: 12px; padding: 40px 32px; text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(16, 184, 176, .22), transparent 70%);
}
.reg-date span { display: block; font: 500 18px 'DM Mono', monospace; color: var(--lime); text-transform: uppercase; letter-spacing: .1em; }
.reg-date strong { display: block; font-size: 104px; line-height: 1; letter-spacing: -.05em; color: #fff; margin-top: 8px; }
.dark-section .section-intro p { margin: 18px 0 0; }
.roles { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.roles li { border: 1px solid var(--navy-line); border-radius: 8px; padding: 14px 16px; background: var(--navy-2); }
.roles b { display: block; font: 500 15px 'DM Mono', monospace; color: var(--teal); }
.roles span { display: block; font-size: 15px; color: var(--muted-dark); margin-top: 4px; line-height: 1.45; }
.dark-section .small { font-size: 15px; }

/* Pour qui */
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.audience-list > div { border-top: 1px solid var(--line); padding: 22px 0; display: grid; grid-template-columns: 42px 1fr; column-gap: 16px; }
.audience-list span { font: 500 13px 'DM Mono', monospace; color: var(--teal-dark); padding-top: 4px; }
.audience-list h3 { margin: 0; font-size: 20px; }
.audience-list p { grid-column: 2; color: var(--muted); font-size: 16px; margin: 6px 0 0; }
.sub-title { font-size: 24px; margin: 80px 0 24px; }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.level { border: 1px solid var(--line); border-radius: 10px; padding: 26px 28px; }
.level-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.level h4 { margin: 0; font-size: 20px; }
.level p { margin: 0; color: var(--muted); font-size: 16px; }
.effort { display: inline-flex; gap: 4px; }
.effort i { width: 18px; height: 6px; border-radius: 3px; background: var(--line); }
.effort i.on { background: var(--teal); }

/* Principes */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 54px; }
.principles > div { background: #fff; border-radius: 10px; padding: 26px; border-top: 3px solid var(--teal); }
.principles h3 { font-size: 19px; line-height: 1.3; margin: 0 0 10px; }
.principles p { margin: 0; color: var(--muted); font-size: 16px; }

/* Calendrier */
.timeline { list-style: none; padding: 0; margin: 60px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--line); }
.timeline li { position: relative; padding-top: 34px; }
.timeline li::before {
  content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid var(--teal);
}
.timeline li.done::before { background: var(--teal); }
.timeline li.key::before { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 0 6px rgba(168, 217, 75, .25); }
.timeline span { display: block; font: 500 14px 'DM Mono', monospace; color: var(--teal-dark); margin-bottom: 6px; }
.timeline li.key span { color: var(--ink); font-weight: 700; }
.timeline p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 72px; align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-weight: 700; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 16px; font-size: 26px; font-weight: 400; color: var(--teal-dark); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--teal-dark); }
.faq details p { margin: 0 0 22px; color: var(--muted); font-size: 16px; max-width: 640px; }

/* Contact */
.contact { padding-top: 100px; padding-bottom: 100px; }
.contact-box {
  background: linear-gradient(135deg, var(--teal-dark), #0b6560); color: #fff;
  padding: 56px 60px; border-radius: 14px; display: flex; justify-content: space-between; align-items: end; gap: 30px;
}
.contact .eyebrow { color: var(--lime); }
.contact h2 { max-width: 600px; }
.contact-box { align-items: start; }
.contact-copy { flex: 1 1 45%; }
.contact-copy p:not(.eyebrow) { max-width: 540px; font-size: 17px; color: #e3f4f2; margin: 18px 0 0; }

/* Formulaire */
.contact-form { flex: 1 1 55%; max-width: 560px; display: grid; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; color: #fff; }
.field .opt { font-weight: 500; color: #cfe9e6; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"],
.contact-form select, .contact-form textarea {
  width: 100%; font: 500 16px Manrope, Arial, sans-serif; color: var(--ink);
  background: #fff; border: 2px solid transparent; border-radius: var(--radius); padding: 11px 13px;
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--lime); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #e3f4f2; line-height: 1.5; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--lime); flex-shrink: 0; }
.contact-form .button { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.contact-form .button:disabled { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pages merci et erreur */
.message-page { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding-top: 60px; padding-bottom: 60px; }
.message-page img { width: 150px; height: auto; margin-bottom: 40px; }
.message-page h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.1; letter-spacing: -.04em; margin: 0; }
.message-page p:not(.eyebrow) { color: var(--muted); font-size: 18px; margin: 14px 0 28px; }
.form-status { margin: 0; font-size: 15px; font-weight: 700; min-height: 1.5em; color: #fff; }
.form-status.ok { color: var(--lime); }
.form-status.ko { color: #ffd4d5; }

/* Pied de page */
.footer {
  border-top: 1px solid var(--line); min-height: 90px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted);
}
.footer img { width: 110px; height: auto; }
.footer a { color: var(--ink); font-weight: 700; }
.footer a:hover { color: var(--teal-dark); }

/* Tablettes */
@media (max-width: 1000px) {
  .principles { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .timeline::before { display: none; }
  .reg-grid { grid-template-columns: 1fr; gap: 40px; }
  .reg-date { max-width: 340px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .nav.open {
    display: flex; position: absolute; top: 76px; left: 0; right: 0; background: #fff;
    padding: 18px 32px 26px; flex-direction: column; align-items: flex-start; gap: 14px;
    box-shadow: 0 16px 30px rgba(11, 35, 65, .14); font-size: 17px;
  }
  .menu-toggle { display: block; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; min-height: 0; }
  .split, .audience-grid, .faq-grid, .tech { grid-template-columns: 1fr; gap: 36px; }
  .cards-3, .pillars, .process, .levels { grid-template-columns: 1fr; }
  .process::before { display: none; }
  .process { gap: 32px; }
  .contact-box { display: block; padding: 40px; }
  .contact-form { margin-top: 30px; max-width: none; }
  .contact-box .button { margin-top: 6px; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .section-alt, .dark-section { padding: 80px 0; }
  .roles { grid-template-columns: 1fr; }
}

/* Téléphones */
@media (max-width: 520px) {
  .shell, .header-inner { padding-left: 16px; padding-right: 16px; }
  .nav.open { padding-left: 16px; padding-right: 16px; }
  .brand img { width: 124px; }
  .hero h1 { font-size: 42px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .proof-grid { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 18px; padding-bottom: 18px; }
  .principles, .timeline { grid-template-columns: 1fr; }
  .reg-date strong { font-size: 80px; }
  .contact-box { padding: 30px 22px; }
  .field-row { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; padding-top: 22px; padding-bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
  .button:hover { transform: none; }
}
