/* =============================================================
   DEVGBLX — FEUILLE DE STYLES PRINCIPALE
   Sections :
   1.  Propriétés personnalisées (design tokens)
   2.  Reset & base
   3.  Typographie
   4.  Utilitaires de mise en page
   5.  Composant : boutons
   6.  Composant : formulaires
   7.  En-tête & navigation
   8.  Section : hero
   9.  Section : services
   10. Section : tarifs
   11. Section : processus
   12. Section : à propos
   13. Section : contact
   14. Pied de page
   15. Animations au défilement
   16. Media queries
   ============================================================= */


/* =============================================================
   1. PROPRIÉTÉS PERSONNALISÉES (design tokens)
   ============================================================= */
:root {
  /* --- Couleurs primaires --- */
  --color-primary:       #2563EB;
  --color-primary-dark:  #1D4ED8;
  --color-primary-light: #EFF6FF;
  --color-primary-mid:   #DBEAFE;

  /* --- Couleurs icônes services --- */
  --icon-blue-bg:    #EFF6FF;
  --icon-blue:       #2563EB;
  --icon-violet-bg:  #F5F3FF;
  --icon-violet:     #7C3AED;
  --icon-emerald-bg: #ECFDF5;
  --icon-emerald:    #059669;
  --icon-orange-bg:  #FFF7ED;
  --icon-orange:     #D97706;

  /* --- Neutres --- */
  --color-bg:           #FFFFFF;
  --color-surface:      #F8FAFF;
  --color-surface-2:    #F1F5F9;
  --color-text:         #111827;
  --color-text-sec:     #4B5563;
  --color-text-muted:   #9CA3AF;
  --color-border:       #E5E7EB;
  --color-border-light: #F3F4F6;

  /* --- Typographie --- */
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Échelle fluide — clamp(min, préféré, max) */
  --fs-xs:   clamp(0.70rem,  0.68rem + 0.12vw, 0.75rem);
  --fs-sm:   clamp(0.82rem,  0.80rem + 0.12vw, 0.875rem);
  --fs-base: 1rem;
  --fs-lg:   clamp(1.05rem,  1.00rem + 0.30vw, 1.125rem);
  --fs-xl:   clamp(1.18rem,  1.10rem + 0.45vw, 1.25rem);
  --fs-2xl:  clamp(1.35rem,  1.20rem + 0.80vw, 1.5rem);
  --fs-3xl:  clamp(1.60rem,  1.40rem + 1.10vw, 2.00rem);
  --fs-4xl:  clamp(2.00rem,  1.70rem + 1.70vw, 2.75rem);
  --fs-hero: clamp(2.60rem,  2.10rem + 3.00vw, 4.20rem);

  /* --- Espacement --- */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* --- Bordures --- */
  --r-sm:   0.375rem;
  --r:      0.5rem;
  --r-md:   0.75rem;
  --r-lg:   1rem;
  --r-xl:   1.5rem;
  --r-2xl:  2rem;
  --r-full: 9999px;

  /* --- Ombres --- */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow:    0 1px 3px 0 rgb(0 0 0 / 0.10), 0 1px 2px -1px rgb(0 0 0 / 0.10);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
  --shadow-focus: 0 0 0 3px rgb(37 99 235 / 0.30);

  /* --- Transitions --- */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:    150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t:         200ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow:    350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* --- Mise en page --- */
  --max-w:       1200px;
  --pad-x:       clamp(1rem, 3.5vw, 1.5rem);
  --section-pad: clamp(4rem, 8vw, 6.5rem);
  --nav-h:       72px;
  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}


/* =============================================================
   2. RESET & BASE
   ============================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--safe-top) + 1rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[data-nav-open="true"] {
  overflow: hidden;
}

img, svg   { display: block; max-width: 100%; }
a          { color: inherit; text-decoration: none; }
ul         { list-style: none; }
button     { cursor: pointer; background: none; border: none; font: inherit; }
input, select, textarea { font: inherit; }

/* Lien d'accès rapide (accessibilité) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: white;
  border-radius: var(--r);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 1rem; }


/* =============================================================
   3. TYPOGRAPHIE
   ============================================================= */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--color-text);
}

p { max-width: 68ch; }

strong { font-weight: 600; }

/* L'italique dans le titre hero devient une couleur accentuée */
em {
  font-style: normal;
  color: var(--color-primary);
}


/* =============================================================
   4. UTILITAIRES DE MISE EN PAGE
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

section { padding-block: var(--section-pad); }

/* En-tête de section centré */
.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--sp-16);
}

.section-label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 0.3em 0.9em;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-4);
}

.section-heading {
  font-size: var(--fs-4xl);
  margin-bottom: var(--sp-4);
}

.section-subline {
  font-size: var(--fs-lg);
  color: var(--color-text-sec);
  line-height: 1.65;
  max-width: 52ch;
  margin-inline: auto;
}


/* =============================================================
   5. COMPOSANT : BOUTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: var(--fs-base);
  font-weight: 600;
  padding: 0.65em 1.35em;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t),
              transform var(--t), box-shadow var(--t);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* Primaire */
.btn-primary {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Contour */
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

/* Fantôme */
.btn-ghost {
  background: transparent;
  color: var(--color-text-sec);
  border-color: transparent;
}
.btn-ghost:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

.btn-lg { font-size: var(--fs-lg); padding: 0.75em 1.65em; }

.btn-block { width: 100%; justify-content: center; }

.icon-arrow { width: 1.1em; height: 1.1em; flex-shrink: 0; }


/* =============================================================
   6. COMPOSANT : FORMULAIRES
   ============================================================= */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.required {
  color: var(--color-primary);
  margin-left: 2px;
}

.form-input {
  padding: 0.75em 1em;
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-md);
  background: white;
  font-size: var(--fs-base);
  color: var(--color-text);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--t), box-shadow var(--t);
}

.form-input::placeholder { color: var(--color-text-muted); }

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}

/* Indicateur de validation HTML5 */
.form-input:user-invalid { border-color: #EF4444; }

/* Flèche déroulante personnalisée */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75em center;
  background-size: 1.2em;
  padding-right: 2.5em;
  cursor: pointer;
}

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

.form-note {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.55;
}

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

.form-group--checkbox { gap: 0; }

.form-checkbox {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: var(--sp-3);
  align-items: start;
  font-size: var(--fs-sm);
  color: var(--color-text-sec);
  line-height: 1.55;
  cursor: pointer;
}

.form-checkbox input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  accent-color: var(--color-primary);
}

.form-checkbox a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.form-input[aria-invalid="true"] {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgb(239 68 68 / 0.12);
}

.form-checkbox input[aria-invalid="true"] {
  outline: 2px solid rgb(239 68 68 / 0.35);
  outline-offset: 2px;
  border-radius: 0.2rem;
}

.form-status {
  display: none;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

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

.form-status--loading {
  color: #1D4ED8;
  background: #EFF6FF;
  border-color: #BFDBFE;
}

.form-status--success {
  color: #065F46;
  background: #ECFDF5;
  border-color: #A7F3D0;
}

.form-status--error {
  color: #B91C1C;
  background: #FEF2F2;
  border-color: #FECACA;
}

.btn[disabled] {
  opacity: 0.72;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}


/* =============================================================
   7. EN-TÊTE & NAVIGATION
   ============================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: calc(var(--nav-h) + var(--safe-top));
  padding-top: var(--safe-top);
  background: rgb(255 255 255 / 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}

/* Ombre au défilement (ajoutée via JS) */
.site-header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: var(--sp-8);
}

@supports not ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
  .site-header {
    background: rgb(255 255 255 / 0.98);
  }
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--color-text);
  flex-shrink: 0;
  transition: transform var(--t);
}

.nav-logo:hover { transform: translateY(-1px); }

.nav-logo-mark {
  width: auto;
  height: 42px;
  flex-shrink: 0;
  transition: transform var(--t);
}

.nav-logo-text {
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-text);
  transition: color var(--t);
}

.nav-logo:hover .nav-logo-mark { transform: scale(1.03); }

.nav-logo:hover .nav-logo-text { color: var(--color-primary); }

.footer-logo {
  margin-bottom: var(--sp-4);
  display: inline-flex;
}

.footer-logo-image {
  width: min(100%, 240px);
  height: auto;
}

.footer-logo:hover {
  opacity: 0.92;
  transform: none;
}

/* Liens du menu */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav-link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text-sec);
  padding: 0.4em 0.7em;
  border-radius: var(--r);
  transition: color var(--t), background var(--t);
}
.nav-link:hover,
.nav-link[aria-current="true"] {
  color: var(--color-text);
  background: var(--color-surface-2);
}

.nav-cta { flex-shrink: 0; }

/* --- Bouton hamburger (mobile) --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--r);
  transition: background var(--t);
}
.nav-toggle:hover { background: var(--color-surface-2); }

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transform-origin: center;
  transition: transform var(--t), opacity var(--t);
}

/* Animation croix lors de l'ouverture */
[data-nav-open="true"] .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
[data-nav-open="true"] .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
[data-nav-open="true"] .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =============================================================
   8. SECTION : HERO
   ============================================================= */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + var(--section-pad));
  padding-bottom: var(--section-pad);
  overflow: hidden;
}

/* Dégradé de fond décoratif */
.hero-bg-decoration {
  position: absolute;
  inset: 0 0 auto auto;
  width: 65%;
  height: 100%;
  background: radial-gradient(ellipse 80% 70% at top right, var(--color-primary-light) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--sp-16);
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-5);
  transition-delay: 0.05s;
}

.hero-heading {
  font-size: var(--fs-hero);
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 13ch;
  margin-bottom: var(--sp-6);
  transition-delay: 0.15s;
}

.hero-subline {
  font-size: var(--fs-lg);
  color: var(--color-text-sec);
  line-height: 1.7;
  max-width: 44ch;
  margin-bottom: var(--sp-8);
  transition-delay: 0.25s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  transition-delay: 0.35s;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  transition-delay: 0.20s;
}

.hero-illustration {
  width: 100%;
  max-width: 520px;
  filter: drop-shadow(0 20px 40px rgb(37 99 235 / 0.07));
}

.subpage-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + var(--section-pad));
  padding-bottom: calc(var(--section-pad) * 0.85);
  overflow: hidden;
  background: linear-gradient(180deg, #F8FBFF 0%, #FFFFFF 100%);
}

.subpage-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgb(37 99 235 / 0.12) 0%, transparent 34%),
    radial-gradient(circle at left 20%, rgb(191 219 254 / 0.55) 0%, transparent 28%);
  pointer-events: none;
}

.subpage-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.subpage-heading {
  font-size: clamp(2.1rem, 1.8rem + 2vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: var(--sp-5);
}

.subpage-intro {
  font-size: var(--fs-lg);
  color: var(--color-text-sec);
  line-height: 1.7;
  max-width: 58ch;
  margin-bottom: var(--sp-8);
}

.subpage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}


/* =============================================================
   9. SECTION : SERVICES
   ============================================================= */
.services { background: var(--color-surface); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}

.service-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  transition: transform var(--t-slow), box-shadow var(--t-slow);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Icône service */
.service-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
}
.service-icon { width: 26px; height: 26px; }

.service-icon-blue    { background: var(--icon-blue-bg);    color: var(--icon-blue); }
.service-icon-violet  { background: var(--icon-violet-bg);  color: var(--icon-violet); }
.service-icon-emerald { background: var(--icon-emerald-bg); color: var(--icon-emerald); }
.service-icon-orange  { background: var(--icon-orange-bg);  color: var(--icon-orange); }

.service-title {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-3);
}

.service-desc {
  font-size: var(--fs-base);
  color: var(--color-text-sec);
  line-height: 1.65;
  margin-bottom: var(--sp-5);
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--color-text-sec);
}
.service-features li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
/* Puce bleue */
.service-features li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

/* Délais d'animation pour la grille */
.services-grid .service-card:nth-child(2) { transition-delay: 0.10s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.20s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.30s; }


/* =============================================================
   10. SECTION : TARIFS
   ============================================================= */
.pricing {
  background:
    radial-gradient(circle at top left, rgb(37 99 235 / 0.10), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 48%, #eef5ff 100%);
}

.pricing-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-8);
  margin-bottom: var(--sp-6);
  align-items: start;
}

.pricing-group {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: var(--sp-8);
  box-shadow: var(--shadow-xl);
}

.pricing-group::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
}

.pricing-group--web {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.96) 0%, rgb(248 251 255 / 0.98) 100%);
  border: 1px solid rgb(37 99 235 / 0.10);
}

.pricing-group--web::before {
  background: linear-gradient(90deg, #2563EB 0%, #60A5FA 55%, #93C5FD 100%);
}

.pricing-group--app {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.96) 0%, rgb(248 251 255 / 0.98) 100%);
  border: 1px solid rgb(37 99 235 / 0.10);
}

.pricing-group--app::before {
  background: linear-gradient(90deg, #2563EB 0%, #60A5FA 55%, #93C5FD 100%);
}

.pricing-group-head {
  margin-bottom: var(--sp-6);
}

.pricing-group-label {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.82rem;
  margin-bottom: var(--sp-4);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-group--web .pricing-group-label {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border: 1px solid rgb(37 99 235 / 0.14);
}

.pricing-group--app .pricing-group-label {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border: 1px solid rgb(37 99 235 / 0.14);
}

.pricing-group-title {
  font-size: var(--fs-3xl);
  line-height: 1.08;
  letter-spacing: -0.05em;
  margin-bottom: var(--sp-3);
  max-width: 14ch;
}

.pricing-group-copy {
  font-size: var(--fs-base);
  line-height: 1.7;
  max-width: none;
}

.pricing-group--web .pricing-group-copy {
  color: var(--color-text-sec);
}

.pricing-group--app .pricing-group-copy {
  color: var(--color-text-sec);
}

.pricing-stack {
  display: grid;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.pricing-tier {
  border-radius: var(--r-xl);
  padding: var(--sp-5);
}

.pricing-group--web .pricing-tier {
  background: white;
  border: 1px solid rgb(37 99 235 / 0.12);
}

.pricing-group--app .pricing-tier {
  background: white;
  border: 1px solid rgb(37 99 235 / 0.12);
}

.pricing-tier-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--sp-4);
  align-items: start;
  margin-bottom: var(--sp-4);
}

.pricing-tier-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.pricing-group--web .pricing-tier-index {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.pricing-group--app .pricing-tier-index {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.pricing-tier-heading {
  min-width: 0;
}

.pricing-tier-name {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-2);
}

.pricing-tier-scope {
  font-size: var(--fs-sm);
  line-height: 1.65;
  max-width: none;
}

.pricing-group--web .pricing-tier-scope {
  color: var(--color-text-sec);
}

.pricing-group--app .pricing-tier-scope {
  color: var(--color-text-sec);
}

.pricing-tier-price {
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  text-align: right;
}

.pricing-group--web .pricing-tier-price {
  color: var(--color-text);
}

.pricing-group--app .pricing-tier-price {
  color: var(--color-text);
}

.pricing-group--app .pricing-tier-price--from {
  color: var(--color-primary-dark);
}

.pricing-tier-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.pricing-tier-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.72rem;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.pricing-group--web .pricing-tier-tag {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border: 1px solid rgb(37 99 235 / 0.10);
}

.pricing-group--app .pricing-tier-tag {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border: 1px solid rgb(37 99 235 / 0.10);
}

.pricing-tier-fit {
  font-size: var(--fs-sm);
  line-height: 1.65;
  max-width: none;
}

.pricing-group--web .pricing-tier-fit {
  color: var(--color-text-sec);
}

.pricing-group--app .pricing-tier-fit {
  color: var(--color-text-sec);
}

.pricing-group-cta {
  width: 100%;
  justify-content: center;
}

.pricing-note {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-align: center;
  max-width: none;
}


/* =============================================================
   11. SECTION : PROCESSUS
   ============================================================= */
.process { background: var(--color-surface); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-8) var(--sp-16);
}

.process-step {
  display: flex;
  gap: var(--sp-6);
}

/* Grand numéro décoratif */
.process-number {
  font-size: var(--fs-4xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-primary-mid);
  line-height: 1;
  flex-shrink: 0;
  min-width: 3rem;
  padding-top: 0.1em;
  user-select: none;
}

.process-content { flex: 1; }

.process-title {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-3);
}

.process-desc {
  font-size: var(--fs-base);
  color: var(--color-text-sec);
  line-height: 1.65;
}

/* Délais d'animation */
.process-grid .process-step:nth-child(2) { transition-delay: 0.10s; }
.process-grid .process-step:nth-child(3) { transition-delay: 0.15s; }
.process-grid .process-step:nth-child(4) { transition-delay: 0.20s; }


/* =============================================================
   12. SECTION : À PROPOS
   ============================================================= */
.about { background: white; overflow: hidden; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: var(--sp-24);
  align-items: center;
}

/* Composition géométrique abstraite */
.about-visual { position: relative; }

.about-visual-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 420px;
}

.about-shape { position: absolute; }

.about-shape-1 {
  width: 72%;
  height: 72%;
  top: 0;
  left: 0;
  background: var(--color-primary-light);
  border-radius: 42% 58% 60% 40% / 40% 44% 56% 60%;
}

.about-shape-2 {
  width: 58%;
  height: 58%;
  bottom: 0;
  right: 0;
  background: var(--color-primary-mid);
  border-radius: 58% 42% 42% 58% / 58% 60% 40% 42%;
}

.about-shape-3 {
  width: 32%;
  height: 32%;
  bottom: 18%;
  left: 22%;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0.12;
}

/* Badge localisation */
.about-badge {
  position: absolute;
  bottom: -1rem;
  right: -0.5rem;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  padding: var(--sp-3) var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  color: var(--color-text);
}

.about-badge-icon {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Contenu texte */
.about-content { display: flex; flex-direction: column; }

.about-text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
  font-size: var(--fs-lg);
  color: var(--color-text-sec);
  line-height: 1.7;
}
.about-text strong { color: var(--color-text); }

/* Valeurs */
.about-values {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  border-top: 1px solid var(--color-border);
  padding-top: var(--sp-8);
}

.about-value {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}
.about-value strong {
  font-size: var(--fs-base);
  color: var(--color-text);
}
.about-value span {
  font-size: var(--fs-sm);
  color: var(--color-text-sec);
  max-width: 45ch;
}


/* =============================================================
   13. SECTION : FAQ
   ============================================================= */
.faq {
  background: white;
}

.faq-list {
  max-width: 860px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.faq-item {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}

.faq-item:hover {
  border-color: #D1D9E6;
  box-shadow: var(--shadow-md);
}

.faq-item[open] {
  border-color: #BFDBFE;
  box-shadow: 0 12px 30px -18px rgb(37 99 235 / 0.35);
}

.faq-question {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: var(--sp-6) var(--sp-6);
  cursor: pointer;
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-primary);
}

.faq-item[open] .faq-question::after {
  content: '-';
}

.faq-answer {
  padding: 0 var(--sp-6) var(--sp-6);
  color: var(--color-text-sec);
}

.faq-answer p {
  max-width: 64ch;
  line-height: 1.7;
}


/* =============================================================
   14. SECTION : CONTACT
   ============================================================= */
.contact { background: var(--color-surface); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--sp-20);
  align-items: start;
}

.contact-intro {
  font-size: var(--fs-lg);
  color: var(--color-text-sec);
  line-height: 1.65;
  margin-bottom: var(--sp-8);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-base);
  color: var(--color-text-sec);
  max-width: none;
}
.contact-detail--link {
  text-decoration: none;
  transition: color var(--t);
}
.contact-detail--link:hover { color: var(--color-primary); }

.contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.contact-response {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--color-text-sec);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
}
.contact-response p { max-width: none; }

/* Formulaire */
.contact-form-wrap {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  padding: var(--sp-10);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.form-challenge {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
}

.form-challenge-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.form-challenge-title {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.form-challenge-prompt {
  margin: 0;
  max-width: none;
  color: var(--color-text-sec);
}

.form-challenge-refresh {
  border: 0;
  background: transparent;
  color: var(--color-primary);
  font: inherit;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.form-challenge-refresh:hover,
.form-challenge-refresh:focus-visible {
  color: var(--color-text);
}

.form-challenge-refresh[aria-busy="true"] {
  pointer-events: none;
  opacity: 0.65;
}

/* Message de succès (ajouté par JS) */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--sp-4);
  padding: var(--sp-10) var(--sp-6);
}

.form-success-icon {
  width: 56px;
  height: 56px;
  background: #ECFDF5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-success-icon svg {
  width: 28px;
  height: 28px;
  color: #059669;
}

.form-success-title {
  font-size: var(--fs-xl);
  font-weight: 700;
}

.form-success-desc {
  font-size: var(--fs-base);
  color: var(--color-text-sec);
}


/* =============================================================
   15. INFORMATIONS LÉGALES
   ============================================================= */
.site-info { background: white; }

.site-info--page {
  padding-top: 0;
}

.site-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}

.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
}

.info-card-title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-3);
}

.info-card-text {
  color: var(--color-text-sec);
  margin-bottom: var(--sp-5);
}

.info-card-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.info-card-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  color: var(--color-text-sec);
}

.info-card-list li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.55em;
}

.info-card a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.info-card-note {
  margin-top: var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}


/* =============================================================
   16. PIED DE PAGE
   ============================================================= */
.site-footer {
  background: var(--color-text);
  color: white;
  padding-top: var(--sp-16);
  padding-bottom: calc(var(--sp-8) + var(--safe-bottom));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-16);
}

.footer-location {
  font-size: var(--fs-xs);
  color: rgb(255 255 255 / 0.45);
  max-width: none;
}

.footer-nav-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.45);
  margin-bottom: var(--sp-4);
  max-width: none;
}

.footer-nav ul,
.footer-services ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer-nav a {
  font-size: var(--fs-sm);
  color: rgb(255 255 255 / 0.70);
  transition: color var(--t);
}
.footer-nav a:hover { color: white; }

.footer-services li {
  font-size: var(--fs-sm);
  color: rgb(255 255 255 / 0.60);
}

.footer-services a {
  color: rgb(255 255 255 / 0.70);
  transition: color var(--t);
}

.footer-services a:hover { color: white; }

.footer-email {
  display: block;
  font-size: var(--fs-sm);
  color: rgb(255 255 255 / 0.70);
  margin-bottom: var(--sp-2);
  transition: color var(--t);
  max-width: none;
}
.footer-email:hover { color: white; }

.footer-response {
  font-size: var(--fs-xs);
  color: rgb(255 255 255 / 0.40);
  max-width: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  padding-top: var(--sp-8);
  border-top: 1px solid rgb(255 255 255 / 0.10);
}

.footer-copyright,
.footer-legal {
  font-size: var(--fs-xs);
  color: rgb(255 255 255 / 0.40);
  max-width: none;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer-meta a {
  font-size: var(--fs-xs);
  color: rgb(255 255 255 / 0.50);
  transition: color var(--t);
}

.footer-meta a:hover { color: white; }


/* =============================================================
   17. ANIMATIONS AU DÉFILEMENT
   ============================================================= */

/* État initial — invisible et décalé vers le bas */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

/* État visible — déclenché par l'IntersectionObserver */
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Réduction de mouvement : désactiver les animations si demandé */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* =============================================================
   18. MEDIA QUERIES (approche mobile-first)
   ============================================================= */

/* --- Tablette large (max 1080px) --- */
@media (max-width: 1080px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text  { align-items: center; }
  .hero-heading { max-width: 100%; }
  .hero-subline { max-width: 56ch; }

  .hero-visual {
    order: -1;
    max-width: 440px;
    margin-inline: auto;
  }

  .about-grid { grid-template-columns: 1fr; gap: var(--sp-16); }
  .about-visual {
    display: flex;
    justify-content: center;
    order: -1;
  }
  .about-visual-inner { max-width: 320px; }

  .pricing-showcase {
    grid-template-columns: 1fr;
  }

  .pricing-group-title {
    max-width: none;
  }

  .site-info-grid { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-10);
  }
  .footer-brand { grid-column: 1 / -1; }
}

/* --- Tablette (max 768px) --- */
@media (max-width: 768px) {

  /* Navigation mobile */
  .nav-links {
    display: none;
    position: absolute;
    top: calc(var(--nav-h) + var(--safe-top));
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: var(--sp-4) var(--pad-x);
    padding-bottom: calc(var(--sp-4) + var(--safe-bottom));
    gap: var(--sp-1);
    max-height: calc(100dvh - var(--nav-h) - var(--safe-top));
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: var(--shadow-md);
  }
  [data-nav-open="true"] .nav-links { display: flex; }

  .nav-link  { font-size: var(--fs-base); padding: 0.6em 0.75em; width: 100%; }
  .nav-cta   { display: none; }
  .nav-toggle { display: flex; }

  /* Services : 1 colonne */
  .services-grid { grid-template-columns: 1fr; }

  /* Tarifs */
  .pricing-group {
    padding: var(--sp-6);
  }

  .pricing-tier-top {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pricing-tier-price {
    grid-column: 2;
    text-align: left;
  }

  .pricing-group-title {
    max-width: none;
  }

  /* Processus : 1 colonne */
  .process-grid { grid-template-columns: 1fr; gap: var(--sp-8); }

  /* FAQ */
  .faq-question {
    font-size: var(--fs-lg);
    padding: var(--sp-5);
  }
  .faq-answer {
    padding: 0 var(--sp-5) var(--sp-5);
  }

  /* Contact : 1 colonne */
  .contact-grid { grid-template-columns: 1fr; gap: var(--sp-10); }
  .contact-form-wrap { padding: var(--sp-6); }

  /* Pied de page */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-meta { justify-content: center; }
}

/* --- Mobile (max 480px) --- */
@media (max-width: 480px) {
  .nav-logo-mark { height: 36px; }
  .nav-logo-text { font-size: var(--fs-lg); }

  .subpage-actions {
    flex-direction: column;
    width: 100%;
  }
  .subpage-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Badge à propos — éviter le débordement */
  .about-badge { right: 0; }

  .pricing-group {
    padding: var(--sp-5);
  }

  .pricing-tier {
    padding: var(--sp-4);
  }

  .pricing-tier-top {
    gap: var(--sp-3);
  }

  .pricing-tier-index {
    width: 2.4rem;
    height: 2.4rem;
  }

  .pricing-tier-tags {
    gap: var(--sp-2);
  }

  .info-card { padding: var(--sp-6); }
}
