/* ================= VARIABLES & RESET ================= */
:root {
  --white: #ffffff;
  --primary: #076066;
  --primary-dark: #053f43;
  --accent: #e3b728;
  --accent-soft: rgba(227, 183, 40, 0.16);
  --ink: #143f42;
  --muted: #627979;
  --surface: #e6f2f3;
  --card: #e2f5f5;
  --line: rgba(7, 96, 102, 0.12);
  --shadow-soft: 0 18px 44px rgba(7, 96, 102, 0.08);
  --shadow-lift: 0 24px 60px rgba(5, 60, 65, 0.12);
  --radius: 8px;
  --container: 1140px;
  --ease: cubic-bezier(.2, .9, .2, 1);
}

* { 
  box-sizing: border-box;
}

html, body { 
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color: var(--ink);
  /* Le dégradé maintient le bleu pur sur 250px avant de fondre vers le blanc */
  background: linear-gradient(180deg, var(--surface) 0, var(--surface) 250px, #ffffff 750px), #ffffff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ================= TYPOGRAPHIE GLOBALE ================= */
h1, h2, h3, h4 {
  letter-spacing: 0;
  text-wrap: balance; /* Équilibre le texte pour éviter d'avoir un seul mot sur la 2ème ligne d'un titre */
}

p {
  text-wrap: pretty; /* Évite qu'un mot se retrouve tout seul sur la dernière ligne d'un paragraphe */
}

h2 { 
  font-size: 34px; 
  margin: 0 0 12px; 
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.18;
  max-width: 760px;
}

p.lead { 
  color: var(--muted); 
  margin: 0 0 18px;
  max-width: 760px;
  line-height: 1.7;
}

.text-accent {
  display: inline-block;
  color: var(--primary);
  position: relative;
  white-space: nowrap;
  z-index: 0;
}

.text-accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.03em;
  height: 0.18em;
  background: rgba(227, 183, 40, 0.42);
  z-index: -1;
  border-radius: 999px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-eyebrow::before {
  content: "";
  width: 0px; 
  height: 2px;
  margin-right: 10px;
  background: var(--accent);
  border-radius: 999px;
}

/* ================= HEADER & NAVIGATION ================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* On remet un fond blanc légèrement transparent et on supprime l'inclinaison */
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(7, 96, 102, 0.08); /* Ombre douce et moderne */
}

/* IMPORTANT : On s'assure de bien faire disparaître le faux-fond incliné précédent */
header::before {
  display: none;
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  /* On remet des marges droites et équilibrées */
  padding: 18px 20px; 
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary);
}

.logo > div {
  width: auto;
  height: auto;
  border: 1px solid rgba(7, 96, 102, 0.18);
  border-radius: 8px;
  background: #fff;
  overflow: visible;
  padding: 0;
}

.logo > div img {
  height: 100%;
  width: auto;
  display: block;
}

.logo small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.85;
  transition: all 0.2s ease;
}

nav a:hover {
  opacity: 1;
  color: var(--primary-dark);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.burger-menu {
  display: none; 
  font-size: 28px; 
  background: none; 
  border: none;
  color: var(--primary); 
  cursor: pointer; 
  padding: 0 10px; 
  line-height: 1;
}

/* ================= BOUTONS GLOBAUX ================= */
button {
  all: unset;
  display: inline-block;
  box-sizing: border-box; 
}

.btn, button.btn {
  background: linear-gradient(180deg, #f0c94b, var(--accent));
  color: #073f43;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: inherit;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 22px rgba(227, 183, 40, 0.20);
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease);
  border: none;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.btn:hover, button.btn:hover { 
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(230, 183, 46, 0.28);
}

button.btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid rgba(227, 183, 40, 0.75);
  outline-offset: 3px;
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--primary-dark);
  box-shadow: none;
}

form button.btn { 
  align-self: flex-start; 
}

/* ================= SÉLECTEUR DE LANGUE ================= */
.custom-lang {
  position: relative;
  margin-right: 12px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #fff;
  border: 1px solid rgba(7, 96, 102, 0.15);
  border-radius: var(--radius);
  color: var(--primary-dark);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 9px 14px;
  box-shadow: 0 4px 12px rgba(7, 96, 102, 0.03);
  transition: all 0.2s ease;
}

.lang-btn::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 4px;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23076066%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.lang-btn:hover {
  border-color: rgba(7, 96, 102, 0.35);
  box-shadow: 0 6px 16px rgba(7, 96, 102, 0.08);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid rgba(7, 96, 102, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(7, 96, 102, 0.12);
  width: max-content;
  min-width: 100px;
  display: none;
  flex-direction: column;
  padding: 6px;
  z-index: 1000;
}

.custom-lang.open .lang-dropdown {
  display: flex;
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--primary-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.2s;
}

.lang-dropdown a:hover {
  background: rgba(7, 96, 102, 0.06);
  color: var(--primary);
}

/* ================= LAYOUT GLOBAL & SECTIONS ================= */
.container { 
  max-width: var(--container); 
  margin: 0 auto;
}

.section { 
  --pad-y: 86px; /* Variable qui gère l'espacement par défaut */
  padding: var(--pad-y) 20px;
  scroll-margin-top: 86px;
  position: relative; 
  z-index: 1; 
}

/* 1. Les sections blanches restent en arrière-plan */
#digisnow, #FAQ, #how-it-works {
  background: #ffffff;
  z-index: 1;
}

.section:nth-of-type(even) {
  background: transparent;
}

/* On ajoute du padding pour absorber la diagonale des sections grises sans écraser le texte */
#digisnow {
  padding-top: 74px;
  padding-bottom: calc(var(--pad-y) + 2.5vw);
}
#how-it-works, #FAQ {
  padding-top: calc(var(--pad-y) + 2.5vw);
  padding-bottom: calc(var(--pad-y) + 2.5vw);
}

/* 2. Les sections grisées passent au premier plan */
#features, #testimonials, #contact {
  background: transparent;
  z-index: 2;
  /* On réduit le padding car le fond incliné crée du padding visuel supplémentaire */
  padding-top: calc(var(--pad-y) - 2.5vw);
  padding-bottom: calc(var(--pad-y) - 2.5vw);
}

/* Le fond incliné ininterrompu de bord à bord */
#features::before, #testimonials::before, #contact::before {
  content: "";
  position: absolute;
  top: -2.5vw;    
  bottom: -2.5vw; 
  left: 0;
  right: 0;
  background: var(--surface);
  transform: skewY(-2deg);
  transform-origin: center;
  z-index: -1; 
}

/* ================= HERO SECTION ================= */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 500px);
  gap: 52px;
  align-items: center;
  padding: 136px 20px 44px;
  max-width: var(--container);
  margin: 0 auto;
  min-height: 690px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(7, 96, 102, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: -1;
  opacity: 0.8;
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(227, 183, 40, 0.42);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(7, 96, 102, 0.06);
}

.hero-kicker::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #e63946;
  border-radius: 50%;
  animation: pulseLive 1.8s infinite ease-in-out;
}

@keyframes pulseLive {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(230, 57, 70, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

.hero h1 {
  font-size: 46px;
  margin: 0 0 12px;
  color: var(--primary-dark);
  line-height: 1.08;
  max-width: 660px;
  word-wrap: break-word;
  font-weight: 800;
}

.hero p.lead {
  margin: 0 0 20px;
  color: #587070;
  font-size: 19px;
  max-width: 640px;
  line-height: 1.68;
}

.kpis {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.kpi {
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #496262;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(7, 97, 103, 0.04);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-top: 26px;
  margin-bottom: 10px;
}

.hero-actions .btn {
  width: auto;
  min-width: 0;
  padding-left: 20px;
  padding-right: 20px;
}

.hero-visual {
  background: linear-gradient(180deg, #ffffff, #f9fcfb);
  border-radius: var(--radius);
  padding: 12px;
  border: 1px solid rgba(7, 91, 97, 0.08);
  box-shadow: var(--shadow-lift);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  transform: translateY(4px);
  position: relative;
}

/* ================= CAROUSEL ================= */
.carousel {
  position: relative;
  width: 100%;
  height: 344px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(90deg, #ffffff, #f7fbfb);
  cursor: grab; 
  user-select: none; 
  -webkit-user-select: none; 
}

.carousel:active { cursor: grabbing; }

.carousel-inner {
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform; 
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none; 
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
}

.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  pointer-events: auto;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  border: 0;
  padding: 0;
}

.dot.active, .dot:hover { 
  background-color: var(--accent); 
  transform: scale(1.2); 
}

/* ================= PROOF STRIP & PARTNERS ================= */
.proof-strip {
  padding: 0 20px 78px;
  background: #ffffff;
}

.proof-panel {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(7, 96, 102, 0.06);
  background: rgba(255, 255, 255, 0.76);
}

.proof-item {
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item strong {
  display: block;
  color: var(--primary);
  font-size: 24px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.proof-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.client-logo-grid {
  display: flex; 
  justify-content: center; 
  align-items: center; 
  gap: 44px; 
  flex-wrap: wrap;
}

.client-logo-box img {
  max-height: 100%; 
  max-width: 100%; 
  object-fit: contain;
}

/* ================= DIGISNOW & USE CASES ================= */
.digisnow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 52px;
  align-items: start;
}

.benefit-list {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  border-top: 1px solid var(--line);
}

.benefit-list .card {
  padding: 20px 0 20px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  position: relative;
}

.benefit-list .card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(227, 183, 40, 0.12);
}

.benefit-list h3 {
  color: var(--primary);
  margin: 0 0 10px;
  font-size: 18px;
}

.use-case-card {
  position: sticky;
  top: 96px;
  border: 1px solid rgba(7, 96, 102, 0.14);
  border-left: 4px solid var(--accent);
  background: linear-gradient(180deg, #ffffff, #fbfdfc);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius);
  padding: 26px;
}

.use-case-card ul {
  list-style: none;
  padding-left: 0;
}

.use-case-card li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.use-case-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

/* ================= GRILLES & CARTES (FEATURES) ================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
  counter-reset: feature;
}

.features-grid .card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--line);
  transition: all .25s var(--ease);
  min-height: 172px;
  position: relative;
  overflow: hidden;
}

.features-grid .card::before {
  counter-increment: feature;
  content: "0" counter(feature);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: rgba(227, 183, 40, 0.16);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.features-grid .card:hover { 
  transform: translateY(-3px);
  border-color: rgba(227, 183, 40, 0.45);
  box-shadow: 0 16px 36px rgba(7, 96, 102, 0.08);
}

.features-grid .card h3 { 
  margin: 0 0 10px; 
  font-size: 18px;
  color: var(--primary-dark);
}

.features-grid .card p { 
  margin: 0; 
  color: var(--muted); 
  line-height: 1.65;
}

/* ================= COMMENT CA MARCHE (TIMELINE) ================= */
.process-wrapper {
  display: flex;
  align-items: stretch;
  gap: 32px;
  margin-top: 40px;
  position: relative;
}

.process-step {
  flex: 1;
  background: var(--surface); /* Garde un fond légèrement coloré pour la carte */
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 24px;
  position: relative;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.step-number {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  box-shadow: 0 8px 20px rgba(7, 96, 102, 0.25);
}

.process-step h3 {
  color: var(--primary-dark);
  font-size: 19px;
  margin: 0 0 12px;
}

.process-step p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* Flèches entre les étapes (Ordinateur) */
@media (min-width: 981px) {
  .process-step:not(:last-child)::after {
    content: "➔";
    position: absolute;
    top: 60px; /* Aligne la flèche avec le centre du cercle numéroté */
    right: -26px;
    font-size: 28px;
    color: var(--accent);
    transform: translateY(-50%);
    z-index: 2;
  }
}

/* Flèches entre les étapes (Mobile) */
@media (max-width: 980px) {
  .process-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .process-step:not(:last-child)::after {
    content: "↓";
    position: absolute;
    bottom: -22px;
    left: 50%;
    font-size: 28px;
    color: var(--accent);
    transform: translateX(-50%);
    z-index: 2;
  }
}

/* ================= TESTIMONIALS & FAQ ================= */
.testi-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 20px;
  margin-top: 28px;
}

.testi { 
  background: linear-gradient(180deg, #ffffff, #fbfdfc);
  border-radius: var(--radius); 
  padding: 30px; 
  border: 1px solid var(--line);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testi::before {
  content: "“";
  position: absolute;
  top: -10px;
  left: 24px;
  font-size: 90px;
  color: rgba(227, 183, 40, 0.4);
  font-family: Georgia, serif;
  line-height: 1;
}

.testi h3 {
  position: relative; 
  z-index: 1;
  color: var(--primary-dark);
  margin: 0 0 10px;
}

.testi p { 
  color: var(--muted); 
  margin: 16px 0 24px; 
  line-height: 1.6;
  font-size: 15px;
  position: relative;
  z-index: 1;
}

.testi strong {
  font-size: 14px;
  color: var(--primary);
  border-top: 1px solid rgba(7, 97, 103, 0.1);
  padding-top: 12px;
  display: block;
}

.faq-grid { 
  display: block; 
  max-width: 960px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.faq-item {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
  padding: 24px 16px;
  margin: 0 -16px;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}

.faq-item > * {
  transition: transform .25s ease;
}

.faq-item:hover {
  background: var(--surface);
}

.faq-item:hover > * {
  transform: translateX(12px);
}

.faq-item h4 { 
  margin: 0; 
  color: var(--primary-dark);
  font-size: 16px;
  line-height: 1.35;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ================= CONTACT & FORMULAIRES ================= */
.contact-grid { 
  display: grid; 
  grid-template-columns: minmax(0, 1fr) 360px; 
  gap: 24px; 
  align-items: start;
  margin-top: 30px;
}

.contact-grid > div {
  padding: 30px;
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
}

.contact-grid > aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-aside-card {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.contact-aside-card:first-child {
  background: linear-gradient(180deg, #ffffff, #fbfdfc);
  border-top: 4px solid var(--primary);
}

.contact-aside-card h3 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 18px;
}

.contact-aside-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.form-intro {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.form-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(7, 96, 102, 0.06);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
}

form { display: flex; flex-direction: column; gap: 10px; }

input, textarea, select {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-size: 15px;
  width: 100%; max-width: 100%;
  font-family: inherit;
  background: #fbfefe;
  color: var(--primary-dark);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(230, 183, 46, 0.85);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(230, 183, 46, 0.16);
}

select { 
  display: block;
  appearance: auto; 
  -webkit-appearance: auto;
  cursor: pointer;
}

textarea { min-height: 120px; max-height: 120px; }

.field-help {
  margin: -2px 0 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.form-row { display: flex; gap: 10px; }
.form-row .field { flex: 1; }

.select-row { 
  display: block; 
  margin-top: 6px; 
}
.select-row label { 
  font-size: 13px; 
  color: var(--muted); 
  white-space: normal; 
}

/* ================= FINAL CTA ================= */
section.final-cta {
  width: 100%;
  margin: 0;
  --pad-cta: 58px;
  padding-top: calc(var(--pad-cta) + 3.5vw); /* On pousse le texte vers le bas pour le protéger de la ligne */
  padding-bottom: var(--pad-cta);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important;
  color: #fff;
  z-index: 1;
}

.final-cta .container {
  position: relative;
  max-width: var(--container);
}

.final-cta .container::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.final-cta h2 { margin: 0 0 12px; color: #fff; }

.final-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
}

.final-cta .btn.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

/* ================= FOOTER ================= */
footer { padding: 28px 20px; background: #022f32; color: #cfe7e6; }
.foot-inner { max-width: var(--container); margin: 0 auto; display: flex; gap: 20px; align-items: flex-start; }
footer a { color: var(--accent); }

/* ================= BANDEAU COOKIE ================= */
.cookie-banner {
  position: fixed; 
  bottom: 30px; 
  left: 50%; 
  transform: translateX(-50%);
  width: 600px; 
  max-width: calc(100% - 40px);
  background: #fff; 
  border-radius: var(--radius); 
  padding: 24px;
  box-shadow: var(--shadow-lift); 
  border: 1px solid rgba(7, 97, 103, 0.1);
  z-index: 2000; 
  display: none; 
  text-align: center;
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from { transform: translate(-50%, 50px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.cookie-content h4 { margin: 0 0 10px; font-size: 18px; color: var(--primary); }
.cookie-content p { margin: 0 0 20px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.cookie-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn-accept {
  background: var(--primary); color: #fff; border: none; padding: 10px 24px;
  border-radius: var(--radius); font-weight: 700; font-size: 14px; cursor: pointer; min-width: 140px;
  transition: transform 0.2s;
}
.btn-accept:hover { transform: translateY(-2px); }

.btn-refuse {
  background: transparent; color: var(--muted); border: 1px solid rgba(7, 97, 103, 0.2);
  padding: 10px 24px; border-radius: var(--radius); font-weight: 500; font-size: 14px;
  cursor: pointer; min-width: 140px; transition: background 0.2s;
}
.btn-refuse:hover { background: rgba(7, 97, 103, 0.05); }

/* ================= ANIMATIONS ================= */
.fade-in { opacity: 0; transform: translateY(8px); animation: fadeIn .6s forwards; }
@keyframes fadeIn { to { opacity: 1; transform: none; } }

/* ========================================================================= */
/* MEDIA QUERIES                                */
/* ========================================================================= */

/* ------- STYLES EXCLUSIFS DESKTOP (> 980px) ------- */
@media (min-width: 981px) {
  nav a {
    font-size: 16px; 
    letter-spacing: -0.01em;
  }
  
  nav ul {
    gap: 24px;
  }

  .nav-actions {
    gap: 16px;
    align-items: center;
  }

  .lang-btn {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 8px 12px;
    height: auto;
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
  }
  
  .lang-btn:hover {
    background: rgba(7, 96, 102, 0.05);
    color: var(--primary-dark);
    border-radius: 6px;
    transform: none;
  }

  .nav-actions .btn.ghost {
    padding: 10px 18px;
    height: auto;
    border: 1px solid rgba(7, 96, 102, 0.12);
    background: #fff;
    box-shadow: 0 2px 8px rgba(7, 96, 102, 0.02);
    font-size: 16px;
    font-weight: 600;
  }

  .nav-actions button.btn:not(.lang-btn) {
    padding: 10px 22px;
    height: auto;
    font-size: 16px;
    font-weight: 700;
  }
}

/* ------- STYLES EXCLUSIFS DESKTOP / TABLETTE (> 600px) ------- */
@media (min-width: 601px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: nowrap;
  }
  .hero-actions .btn {
    white-space: nowrap;
    flex: 0 0 auto;
  }
}

/* ------- RESPONSIVE MOBILE / TABLETTE (< 980px) ------- */
.mobile-cta-item {
  display: none;
}

@media (max-width: 980px) {
  .nav {
    padding: 20px 16px;
    min-height: 72px;
  }

  .burger-menu {
    display: block;
    order: 1;
    margin: 0;
    padding: 0 10px;
    z-index: 10;
    transform: translateY(-4px); 
  }

  .logo {
    order: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 5;
  }
  
  .logo > div {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }

  .nav-actions {
    order: 3;
    margin-left: auto;
    margin-right: 0;
    gap: 0;
    z-index: 10;
  }
  
  .nav-actions .btn.ghost,
  .nav-actions button.btn:not(.lang-btn) {
    display: none;
  }

  .nav-actions .lang-btn {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 8px;
  }
  
  .nav-actions .lang-btn .lang-txt {
    display: none;
  }
  
  .nav-actions .lang-btn img {
    width: 22px; 
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
  }

  header:has(ul.show) .nav-actions .lang-btn {
    background-color: #fff;
    border: 1px solid rgba(7, 96, 102, 0.15);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(7, 96, 102, 0.03);
    padding: 9px 14px;
  }
  
  header:has(ul.show) .nav-actions .lang-btn .lang-txt {
    display: inline;
  }

  nav ul {
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    right: 0;
    background: #fff; 
    flex-direction: column; 
    padding: 20px 0;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
    border-top: 1px solid rgba(0,0,0,0.05);
  }

  nav ul.show { display: flex; }
  nav ul li { width: 100%; text-align: center; }
  nav ul li a { display: block; padding: 16px; }

  .mobile-cta-item {
    display: block;
    padding: 20px 20px 10px 20px;
    text-align: center;
  }
  
  .mobile-cta-item .btn {
    width: 100%;
    max-width: 280px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    display: inline-block;
  }

  /* Sections générales Mobile */
  .section {
    --pad-y: 40px; /* On réduit tout l'espace d'un coup */
    padding: var(--pad-y) 16px;
  }
  
  section.final-cta {
    --pad-cta: 40px; /* On réduit aussi l'espace du bas de page */
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 110px;
    text-align: center;
    gap: 28px;
  }

  .hero h1,
  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-kicker {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .proof-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-item:nth-child(2) {
    border-right: 0;
  }

  .proof-item:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .digisnow-layout,
  .features-grid, 
  .testi-grid, 
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .use-case-card {
    position: static;
  }

  textarea { min-width: 100%; }
  .form-row { flex-direction: column; }
}

/* ------- RESPONSIVE SMARTPHONE (< 600px) ------- */
@media (max-width: 600px) {
  .hero h1 { font-size: 32px; }
  .text-accent { white-space: normal; }
  .carousel { height: 250px; }
  
  .hero { min-height: auto; }
  
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  
  .kpi {
    width: 100%;
    justify-content: center;
  }

  .final-cta-actions, .final-cta .btn {
    width: 100%;
  }

  .final-cta .container { text-align: center; }

  .proof-strip { padding-bottom: 50px; }
  
  .proof-panel { grid-template-columns: 1fr; }
  .proof-item, .proof-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .proof-item:last-child { border-bottom: 0; }

  .benefit-list { grid-template-columns: 1fr; }
  
  .faq-item { display: block; }
  .faq-item h4 { margin-bottom: 8px; }
}

/* ==========================================================================
   BANDEAU DÉROULANT - MASQUE DE FONDU ET SURVOL PARFAIT
   ========================================================================== */

.partner-ticker-section {
  background: #ffffff;
  padding: 20px 0 60px;
  text-align: center;
  overflow: hidden;
}

.ticker-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 32px;
}

.ticker-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  display: flex;
  
  /* Le masque de fondu sur les bords */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: scrollTicker 45s linear infinite;
}

.ticker-list {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
}

/* La hitbox : un rectangle parfait qui capte la souris */
.ticker-list .client-logo-box {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 60px;
  cursor: pointer;
}

/* L'image est en couleurs et bien visible nativement */
.ticker-list .client-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(0%); /* Retire le noir et blanc */
  opacity: 1;            /* Rend le logo totalement opaque */
  pointer-events: none;
}

@keyframes scrollTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================= ANIMATIONS AU SCROLL (SECTIONS) ================= */

/* SÉCURITÉ : Le texte est caché au départ UNIQUEMENT si le JS fonctionne */
.js-anim-ready .section .section-eyebrow,
.js-anim-ready .section h2,
.js-anim-ready .section .lead {
  opacity: 0;
  transform: translateY(40px); /* Amplification du mouvement (avant: 15px) */
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Révélation au scroll */
.js-anim-ready .section.is-visible .section-eyebrow,
.js-anim-ready .section.is-visible h2,
.js-anim-ready .section.is-visible .lead {
  opacity: 1;
  transform: translateY(0);
}

/* Effet de cascade assumé et plus long */
.js-anim-ready .section.is-visible .section-eyebrow { transition-delay: 0s; }
.js-anim-ready .section.is-visible h2 { transition-delay: 0.15s; }
.js-anim-ready .section.is-visible .lead { transition-delay: 0.3s; }

/* On s'assure que le trait s'étire depuis sa gauche (plus naturel) */
.section-eyebrow::before {
  content: "";
  display: block;
  height: 2px;
  margin-right: 10px;
  background: var(--accent);
  border-radius: 999px;
  transform-origin: left center; 
}

/* L'état de départ est géré par l'animation elle-même */
.js-anim-ready .section .section-eyebrow::before {
  opacity: 0;
}

/* ================= L'ANIMATION FLUIDE "SWOOSH & PARKING" ================= */
@keyframes swooshAndPark {
  0% {
    opacity: 0;
    width: 0px;
    transform: translateX(-50px); /* Surgit de nulle part depuis la gauche */
  }
  60% {
    opacity: 1;
    width: 70px; /* S'étire avec l'élan */
    transform: translateX(4px); /* Dépasse d'un cheveu pour donner une impression de freinage */
  }
  100% {
    opacity: 1;
    width: 26px; /* Taille définitive */
    transform: translateX(0); /* Se gare parfaitement à sa place */
  }
}

/* On déclenche l'animation quand la section devient visible */
.js-anim-ready .section.is-visible .section-eyebrow::before {
  /* Durée de 0.8s avec une courbe (cubic-bezier) qui freine en douceur à la fin */
  animation: swooshAndPark 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.1s;
}

/* ================= 4. EFFET CASCADE SUR LE CONTENU (CARTES, ETAPES...) ================= */

/* État de départ : caché, légèrement abaissé et très légèrement rétréci (pour l'effet Pop) */
.js-anim-ready .section .card,
.js-anim-ready .section .process-step,
.js-anim-ready .section .testi,
.js-anim-ready .section .faq-item,
.js-anim-ready .section .contact-grid > div,
.js-anim-ready .section .contact-aside-card {
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Révélation : taille et position normales */
.js-anim-ready .section.is-visible .card,
.js-anim-ready .section.is-visible .process-step,
.js-anim-ready .section.is-visible .testi,
.js-anim-ready .section.is-visible .faq-item,
.js-anim-ready .section.is-visible .contact-grid > div,
.js-anim-ready .section.is-visible .contact-aside-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Délais en cascade : chaque élément apparaît 0.1s après le précédent */
.js-anim-ready .section.is-visible .card:nth-child(1),
.js-anim-ready .section.is-visible .process-step:nth-child(1),
.js-anim-ready .section.is-visible .testi:nth-child(1),
.js-anim-ready .section.is-visible .faq-item:nth-child(1),
.js-anim-ready .section.is-visible .contact-grid > div:first-child,
.js-anim-ready .section.is-visible .contact-aside-card:nth-child(1) { transition-delay: 0.3s; }

.js-anim-ready .section.is-visible .card:nth-child(2),
.js-anim-ready .section.is-visible .process-step:nth-child(2),
.js-anim-ready .section.is-visible .testi:nth-child(2),
.js-anim-ready .section.is-visible .faq-item:nth-child(2),
.js-anim-ready .section.is-visible .contact-aside-card:nth-child(2) { transition-delay: 0.4s; }

.js-anim-ready .section.is-visible .card:nth-child(3),
.js-anim-ready .section.is-visible .process-step:nth-child(3),
.js-anim-ready .section.is-visible .testi:nth-child(3),
.js-anim-ready .section.is-visible .faq-item:nth-child(3) { transition-delay: 0.5s; }

.js-anim-ready .section.is-visible .card:nth-child(4),
.js-anim-ready .section.is-visible .testi:nth-child(4),
.js-anim-ready .section.is-visible .faq-item:nth-child(4) { transition-delay: 0.6s; }

.js-anim-ready .section.is-visible .card:nth-child(5),
.js-anim-ready .section.is-visible .faq-item:nth-child(5) { transition-delay: 0.7s; }

.js-anim-ready .section.is-visible .card:nth-child(6) { transition-delay: 0.8s; }


/* ================= AJUSTEMENT ÉLÉGANCE ORDINATEURS PORTABLES (LAPTOPS) ================= */
@media (max-width: 1400px) and (min-width: 981px) {
  .container, 
  .hero, 
  .proof-panel {
    max-width: 88% !important; /* On passe à 88% pour grapiller de l'espace vital sur les côtés */
  }

  .hero {
    /* On donne la priorité au texte (1.3fr) et on réduit sagement le bloc image (max 440px) */
    grid-template-columns: minmax(0, 1.3fr) minmax(380px, 440px); 
    gap: 40px; /* On resserre l'écart entre les deux colonnes */
  }

  .hero-actions .btn {
    padding-left: 15px;  /* On réduit très légèrement le padding latéral des boutons */
    padding-right: 15px; /* pour garantir qu'ils respirent sans jamais déborder */
  }

  .features-grid {
    gap: 20px;
  }

  .digisnow-layout {
    gap: 32px;
  }
}


/* ========================================================================= */
/* RESPONSIVE MOBILE & TABLETTE (VERSION RESTAURÉE ET CORRIGÉE)              */
/* ========================================================================= */

.mobile-cta-item {
  display: none;
}

@media (max-width: 980px) {
  /* On garde EXACTEMENT tes alignements d'origine */
  .nav {
    padding: 20px 16px;
    min-height: 72px;
  }

  .burger-menu {
    display: block;
    order: 1;
    margin: 0;
    padding: 0 10px;
    z-index: 10;
    transform: translateY(-4px); 
  }

  .logo {
    order: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 5;
  }
  
  .logo > div {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }

  .nav-actions {
    order: 3;
    margin-left: auto;
    margin-right: 0;
    gap: 0;
    z-index: 10;
  }
  
  .nav-actions .btn.ghost,
  .nav-actions button.btn:not(.lang-btn) {
    display: none;
  }

  .nav-actions .lang-btn {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 8px;
  }
  
  .nav-actions .lang-btn .lang-txt {
    display: none;
  }
  
  .nav-actions .lang-btn img {
    width: 22px; 
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
  }

  header:has(ul.show) .nav-actions .lang-btn {
    background-color: #fff;
    border: 1px solid rgba(7, 96, 102, 0.15);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(7, 96, 102, 0.03);
    padding: 9px 14px;
  }
  
  header:has(ul.show) .nav-actions .lang-btn .lang-txt {
    display: inline;
  }

  nav ul {
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    right: 0;
    background: #fff; 
    flex-direction: column; 
    padding: 20px 0;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
    border-top: 1px solid rgba(0,0,0,0.05);
  }

  nav ul.show { display: flex; }
  nav ul li { width: 100%; text-align: center; }
  nav ul li a { display: block; padding: 16px; }

  .mobile-cta-item {
    display: block;
    padding: 20px 20px 10px 20px;
    text-align: center;
  }
  
  .mobile-cta-item .btn {
    width: 100%;
    max-width: 280px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    display: inline-block;
  }

  .section {
    --pad-y: 56px; /* On remet un espacement équilibré */
    padding: var(--pad-y) 16px;
  }
  
  section.final-cta {
    --pad-cta: 56px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 110px;
    text-align: center;
    gap: 28px;
  }

  .hero h1, .hero p.lead, .hero-kicker { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .proof-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .digisnow-layout, .features-grid, .testi-grid, .contact-grid { grid-template-columns: 1fr; }
  .use-case-card { position: static; }
  .benefit-list { grid-template-columns: 1fr; }
  
  textarea { min-width: 100%; }
  .form-row { flex-direction: column; }
}

/* ------- RESPONSIVE SMARTPHONE (< 600px) ------- */
@media (max-width: 600px) {
  /* Sécurité anti-débordement pour les petits écrans */
  .hero h1 { font-size: 34px; }
  .text-accent { white-space: normal; }
  .carousel { height: 250px; }
  .hero { min-height: auto; }
  
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  
  .kpi { width: 100%; justify-content: center; }
  .final-cta-actions, .final-cta .btn { width: 100%; }
  .final-cta .container { text-align: center; }

  .proof-strip { padding-bottom: 50px; }
  .proof-panel { grid-template-columns: 1fr; }
  .proof-item, .proof-item:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-item:last-child { border-bottom: 0; }

  .benefit-list { grid-template-columns: 1fr; }
  .faq-item { display: block; }
  .faq-item h4 { margin-bottom: 8px; }

  /* FIX CHIRURGICAL : On annule les effets de survol de la souris sur mobile */
  /* Évite que les cartes restent décalées ou buggées après avoir tapé dessus avec le doigt */
  .faq-item:hover > * { transform: none !important; }
  .features-grid .card:hover { transform: none !important; box-shadow: none !important; border-color: var(--line) !important; }
  .process-step:hover { transform: none !important; box-shadow: none !important; }
}

/* ================= BOUTON DE RETOUR EN HAUT ================= */
.back-to-top {
  position: fixed;
  bottom: 20px; /* Position en bas */
  right: 20px;  /* Position à droite */
  width: 50px;
  height: 50px;
  background-color: var(--primary); /* Utilisation de la couleur primaire */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;          /* Initialement caché */
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top:hover {
  background-color: var(--primary-dark); /* Survol plus sombre */
  transform: translateY(-3px);
}

.back-to-top svg {
  transform: translateY(-1px);
}

.back-to-top.show {
  opacity: 1; /* Apparaît quand la classe .show est ajoutée */
}