/* Desio Labs — design system (navy logo, bleu royal, cyan discret) */

:root {
  --navy: #0f172a;
  --navy-mid: #1e293b;
  --blue: #1d4ed8;
  --blue-light: #3b82f6;
  --cyan: #0ea5e9;
  --slate: #64748b;
  --slate-light: #94a3b8;
  --line: #e2e8f0;
  --wash: #f1f5f9;
  --white: #ffffff;

  --background: var(--wash);
  --foreground: var(--navy);
  --surface: var(--white);
  --bg-alt: #e8eef6;
  --primary: var(--blue);
  --primary-foreground: var(--white);
  --primary-hover: #1e40af;
  --primary-soft: #eff6ff;
  --secondary: #e2e8f0;
  --secondary-foreground: var(--navy-mid);
  --accent: var(--cyan);
  --accent-foreground: var(--white);
  --accent-soft: #f0f9ff;
  --border: var(--line);
  --input: var(--line);
  --ring: var(--blue);
  --text-secondary: var(--slate);
  --text-muted: var(--slate-light);
  --shadow-card: 0 1px 2px rgb(15 23 42 / 0.04), 0 8px 24px -6px rgb(15 23 42 / 0.08);
  --shadow-elevated: 0 4px 6px rgb(15 23 42 / 0.04), 0 20px 48px -12px rgb(15 23 42 / 0.14);
  --radius-lg: 16px;
  --radius-xl: 20px;
  --font-heading: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.di-page {
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
}

.di-container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .di-container {
    padding-inline: 2rem;
  }
}

/* —— Header —— */
.di-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 1rem 0;
  transition: padding 0.25s ease;
}

.di-header.is-scrolled {
  padding: 0.65rem 0;
}

.di-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.di-header.is-scrolled .di-header-bar {
  background: rgb(255 255 255 / 0.92);
  border-color: var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px -12px rgb(15 23 42 / 0.12);
}

.di-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.di-logo {
  height: 2.75rem;
  width: auto;
  max-width: 10.5rem;
  object-fit: contain;
}

@media (min-width: 768px) {
  .di-logo {
    height: 3.25rem;
    max-width: 12rem;
  }
}

.di-nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

@media (min-width: 1024px) {
  .di-nav {
    display: flex;
  }
}

.di-nav a {
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.di-nav a:hover {
  color: var(--blue);
  background: var(--primary-soft);
}

.di-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.di-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.di-btn--primary {
  padding: 0.65rem 1.15rem;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 2px 8px rgb(15 23 42 / 0.18);
}

.di-btn--primary:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
}

.di-btn--outline {
  padding: 0.65rem 1.15rem;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
}

.di-btn--outline:hover {
  border-color: rgb(29 78 216 / 0.35);
  color: var(--blue);
}

.di-btn--ghost {
  padding: 0.5rem 0.75rem;
  background: rgb(255 255 255 / 0.7);
  color: var(--slate);
  border: 1px solid var(--line);
  font-size: 0.75rem;
}

.di-btn--ghost:hover {
  color: var(--blue);
  border-color: rgb(29 78 216 / 0.3);
}

.di-menu-btn {
  display: flex;
  padding: 0.5rem;
  border: none;
  background: none;
  color: var(--navy);
  border-radius: 8px;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .di-menu-btn {
    display: none;
  }
}

/* —— Hero —— */
.di-hero {
  position: relative;
  overflow: hidden;
  padding: 7.5rem 0 4.5rem;
}

@media (min-width: 768px) {
  .di-hero {
    padding: 9rem 0 6rem;
  }
}

.di-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgb(14 165 233 / 0.07), transparent 60%),
    radial-gradient(ellipse 40% 35% at 0% 100%, rgb(29 78 216 / 0.06), transparent 55%),
    linear-gradient(180deg, var(--white) 0%, var(--wash) 100%);
}

.di-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .di-hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }
}

.di-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.di-eyebrow::before {
  content: '';
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  border-radius: 2px;
}

.di-hero h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.di-hero h1 em {
  font-style: normal;
  color: var(--blue);
}

.di-hero-lead {
  margin: 1.35rem 0 0;
  max-width: 34rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
}

.di-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Hero visual — panneau produits */
.di-hero-panel {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, var(--navy) 0%, #1e3a5f 55%, var(--blue) 100%);
  padding: 1.75rem;
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
}

.di-hero-panel::before {
  content: '';
  position: absolute;
  top: -2rem;
  right: -2rem;
  width: 8rem;
  height: 8rem;
  background: radial-gradient(circle, rgb(14 165 233 / 0.35), transparent 70%);
  pointer-events: none;
}

.di-hero-panel-label {
  margin: 0 0 1.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.55);
}

.di-hero-product {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  margin-bottom: 0.65rem;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.1);
  text-decoration: none;
  color: var(--white);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.di-hero-product:last-child {
  margin-bottom: 0;
}

.di-hero-product:hover {
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(255 255 255 / 0.2);
  transform: translateX(4px);
}

.di-hero-product-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  overflow: hidden;
  background: rgb(255 255 255 / 0.06);
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
}

.di-hero-product-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.di-hero-product-body {
  flex: 1;
  min-width: 0;
}

.di-hero-product-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
}

.di-hero-product-desc {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgb(255 255 255 / 0.65);
}

.di-hero-product-arrow {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
}

.di-hero-product:hover .di-hero-product-arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* —— Sections communes —— */
.di-section {
  padding: 4.5rem 0;
}

@media (min-width: 768px) {
  .di-section {
    padding: 6rem 0;
  }
}

.di-section--alt {
  background: var(--white);
}

.di-section-head {
  max-width: 36rem;
  margin-bottom: 2.75rem;
}

.di-section-label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.di-section h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--navy);
}

.di-section-intro {
  margin: 0.85rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--slate);
}

/* —— Produits —— */
.di-products-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .di-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .di-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.di-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.di-product-card:hover {
  transform: translateY(-4px);
  border-color: rgb(29 78 216 / 0.2);
  box-shadow: var(--shadow-elevated);
}

.di-product-card-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.di-product-card--timmigre .di-product-card-accent {
  background: linear-gradient(90deg, #0d9488, #0891b2);
}

.di-product-card--tryandtell .di-product-card-accent {
  background: linear-gradient(90deg, #7c3aed, #6366f1);
}

.di-product-card--bindi .di-product-card-accent {
  background: linear-gradient(90deg, var(--blue), var(--navy));
}

.di-product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.5rem 1.35rem;
}

.di-product-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.di-product-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 11px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  background: var(--navy);
}

.di-product-card--timmigre .di-product-mark {
  background: linear-gradient(135deg, #0d9488, #0f766e);
}

.di-product-card--tryandtell .di-product-mark {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.di-product-card--bindi .di-product-mark {
  background: linear-gradient(135deg, var(--blue), var(--navy));
}

.di-product-meta {
  flex: 1;
}

.di-product-tag {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
}

.di-product-title {
  margin: 0.2rem 0 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.di-product-desc {
  flex: 1;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--slate);
}

.di-product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.di-product-link:hover {
  color: var(--primary-hover);
}

.di-product-link svg {
  transition: transform 0.15s;
}

.di-product-link:hover svg {
  transform: translateX(3px);
}

/* —— Services —— */
.di-services-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .di-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.di-service-card {
  display: flex;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--wash);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.di-service-card:hover {
  border-color: rgb(29 78 216 / 0.25);
  box-shadow: var(--shadow-card);
}

.di-service-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 11px;
  background: var(--navy);
  color: var(--white);
}

.di-service-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.di-service-card h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

.di-service-card p {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--slate);
}

/* —— About —— */
.di-about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .di-about-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
  }
}

.di-about-copy p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate);
}

.di-about-copy p:last-child {
  margin-bottom: 0;
}

.di-about-panel {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.di-about-panel h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-light);
}

.di-about-panel p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--navy);
}

.di-about-panel hr {
  margin: 1.35rem 0;
  border: none;
  border-top: 1px solid var(--line);
}

/* —— Contact —— */
.di-contact-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .di-contact-grid {
    grid-template-columns: 2fr 3fr;
    gap: 2rem;
    align-items: stretch;
  }
}

.di-contact-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy) 0%, #1e3a5f 50%, var(--blue) 100%);
  color: var(--white);
  box-shadow: var(--shadow-elevated);
}

.di-contact-panel h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.di-contact-panel > p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgb(255 255 255 / 0.75);
}

.di-contact-lines {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.di-contact-line {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.875rem;
  color: inherit;
  text-decoration: none;
}

.di-contact-line:hover {
  opacity: 0.88;
}

.di-contact-line-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9px;
  background: rgb(255 255 255 / 0.1);
}

.di-contact-line-icon svg {
  width: 1rem;
  height: 1rem;
}

.di-contact-social {
  display: flex;
  gap: 0.5rem;
}

.di-contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9px;
  background: rgb(255 255 255 / 0.1);
  color: var(--white);
  transition: background 0.15s;
}

.di-contact-social a:hover {
  background: rgb(255 255 255 / 0.2);
}

.di-contact-social svg {
  width: 1rem;
  height: 1rem;
}

.di-form {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .di-form {
    padding: 2rem;
  }
}

.di-form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .di-form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.di-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate);
}

.di-field input,
.di-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--wash);
  font: inherit;
  font-size: 0.875rem;
  color: var(--navy);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.di-field input:focus,
.di-field textarea:focus {
  border-color: rgb(29 78 216 / 0.5);
  box-shadow: 0 0 0 3px rgb(29 78 216 / 0.1);
}

.di-field textarea {
  resize: vertical;
  min-height: 8rem;
}

.di-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}

.di-form-foot p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--slate-light);
}

.di-form-foot a {
  color: var(--blue);
}

.di-form-message {
  margin-top: 1rem;
}


/* Footer logo */
.di-footer-logo {
  height: 2.75rem;
  width: auto;
  max-width: 11rem;
  object-fit: contain;
}

/* Mobile drawer */
#mobile-drawer.is-open {
  display: block;
}

#lang-panel:not(.hidden) {
  display: block;
}

/* Compat Tailwind remnants */
.gradient-text {
  color: var(--blue);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.bg-hero-gradient,
.bg-grid {
  display: none;
}

.di-footer-tagline,
.di-footer-disclaimer {
  color: var(--text-secondary);
}

.di-footer-title {
  color: var(--foreground);
}

.di-footer-links a {
  color: var(--text-secondary);
}

.di-footer-links a:hover {
  color: var(--primary);
}

.di-social-btn {
  border-color: var(--border);
  color: var(--text-secondary);
}

.di-social-btn:hover:not(.is-disabled) {
  border-color: color-mix(in oklab, var(--primary) 40%, transparent);
  background: var(--primary-soft);
  color: var(--primary);
}

.di-footer-copy {
  color: var(--text-muted);
}
