/* Morellia — design system
   Noir / blanc + accents: apps=bleu, datacenter=vert, domotique=ambre */

:root {
  --bg: #050505;
  --bg-elevated: #0c0c0c;
  --bg-soft: #121212;
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --text-dim: #6b6b6b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --blue: #7eb6e8;
  --blue-soft: rgba(126, 182, 232, 0.12);
  --blue-glow: rgba(126, 182, 232, 0.28);

  --green: #8fbf9a;
  --green-soft: rgba(143, 191, 154, 0.12);
  --green-glow: rgba(143, 191, 154, 0.28);

  --amber: #d4b483;
  --amber-soft: rgba(212, 180, 131, 0.12);
  --amber-glow: rgba(212, 180, 131, 0.28);

  --accent: var(--blue);
  --accent-soft: var(--blue-soft);
  --accent-glow: var(--blue-glow);

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Outfit", sans-serif;
  --font-mono: "Outfit", sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 7rem;

  --nav-h: 5.75rem;
  --radius: 0;
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 300;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Mobile : légère réduction seulement — garde la présence typo (Cormorant). */
@media (max-width: 768px) {
  html { font-size: 96%; }
}

@media (max-width: 480px) {
  html { font-size: 95%; }
}

img, svg, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul, ol { list-style: none; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 2.25rem, var(--max));
  }

  .section {
    padding: clamp(3.75rem, 13vw, 5.5rem) 0;
  }

  .section--tight {
    padding: clamp(2.85rem, 10vw, 4.25rem) 0;
  }

  .section-head {
    display: grid;
    margin-bottom: clamp(2.15rem, 8vw, 3.25rem);
    gap: 1.05rem;
  }

  .section-head .h2,
  .section-head .h1 {
    line-height: 1.22;
  }

  .section-head .lede,
  .lede {
    line-height: 1.75;
  }

  .hero-content {
    width: min(100% - 2rem, 72rem);
    padding: calc(var(--nav-h) + 2.25rem) 0 1.5rem;
  }

  .hero-copy {
    width: 100%;
    margin-bottom: clamp(2rem, 10vh, 3.5rem);
  }

  .hero-headline {
    font-size: clamp(2.65rem, 11vw, 3.6rem);
    max-width: 12ch;
  }

  .hero-lede {
    margin-top: 1.1rem;
    font-size: 1.02rem;
    line-height: 1.6;
  }

  .hero-kicker {
    margin-bottom: 0.95rem;
  }

  .billing-toggle {
    width: 100%;
    max-width: 100%;
  }
}

.container--narrow {
  width: min(100% - 2.5rem, 42rem);
}

/* ——— Typography ——— */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

.eyebrow--blue { color: var(--blue); }
.eyebrow--green { color: var(--green); }
.eyebrow--amber { color: var(--amber); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.h1 {
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  font-weight: 500;
}

.h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  font-weight: 500;
}

.h3 {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 500;
}

.lede {
  font-size: clamp(1.02rem, 1.35vw, 1.15rem);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 34rem;
  line-height: 1.75;
}

.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }

/* ——— Buttons & text links ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), opacity 0.4s var(--ease);
}

.btn:hover { opacity: 0.88; }
.btn:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 3px;
}

.btn--primary {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--primary:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  opacity: 1;
}

.btn--ghost {
  border-color: transparent;
  background: transparent;
  color: var(--text-muted);
  padding-inline: 0.25rem;
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: 0.95rem;
}

.btn--ghost:hover {
  color: var(--text);
  opacity: 1;
}

.btn--blue,
.btn--green,
.btn--amber {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 0.2rem;
  transition: border-color 0.35s var(--ease), gap 0.35s var(--ease);
  width: fit-content;
}

.text-link:hover {
  border-bottom-color: var(--text);
  gap: 0.9rem;
}

.link-cta {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.3s;
}

.link-cta:hover { opacity: 1; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

/* ——— Nav ——— */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
}

.logo img {
  height: 1.85rem;
  width: auto;
  object-fit: contain;
}

.site-header .logo img {
  height: 3.75rem;
}

.logo-fallback {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  position: relative;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a[data-accent="blue"]:hover { color: var(--blue); }
.nav-links a[data-accent="green"]:hover { color: var(--green); }
.nav-links a[data-accent="amber"]:hover { color: var(--amber); }

.nav-actions {
  display: none;
  align-items: center;
  gap: 1.15rem;
  margin-left: auto;
}

.nav-cta {
  display: none;
}

.nav-actions .nav-cta {
  display: inline-flex;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  color: var(--text);
  opacity: 0.82;
  transition: opacity 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-icon:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.nav-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  max-width: 1.05rem;
  max-height: 1.05rem;
  display: block;
  flex-shrink: 0;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  z-index: 2;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  padding: calc(var(--nav-h) + 2rem) 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.nav-mobile.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile a {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.nav-mobile-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 0.5rem;
}

.nav-mobile-icons .nav-icon {
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line-strong);
  opacity: 1;
}

.nav-mobile-icons .nav-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

@media (min-width: 1100px) {
  .nav-links {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-actions {
    display: flex;
  }

  .nav-toggle,
  .nav-mobile { display: none; }

  .nav { position: relative; }
}

@media (min-width: 960px) and (max-width: 1099px) {
  .nav-links {
    display: flex;
    gap: 0.85rem;
  }

  .nav-actions {
    display: flex;
    gap: 0.75rem;
  }

  .nav-links a {
    font-size: 0.78rem;
  }

  .nav-cta {
    font-size: 0.72rem;
  }

  .nav-toggle,
  .nav-mobile { display: none; }
}

/* ——— Barre de navigation mobile (fond noir, toujours lisible) ——— */
@media (max-width: 959px) {
  /* Plus de header transparent sur mobile : fond noir dès le haut de page,
     pour que le logo et le bouton menu restent toujours visibles. */
  .site-header {
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.97), rgba(5, 5, 5, 0.84));
    border-bottom-color: var(--line);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  }

  .site-header.is-scrolled {
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.99), rgba(5, 5, 5, 0.92));
  }

  /* Bouton menu : un vrai bouton tactile, encadré et bien visible */
  .nav-toggle {
    align-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
  }

  .nav-toggle:active {
    background: rgba(255, 255, 255, 0.12);
  }

  .nav-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--line-strong);
  }

  /* Menu plein écran : respect de l'encoche (notch) en haut */
  .nav-mobile {
    padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 1.5rem);
  }
}

/* ——— Sections ——— */

.section {
  padding: var(--space-9) 0;
  position: relative;
}

.section--tight {
  padding: var(--space-8) 0;
}

.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 40rem;
}

.section-head--row {
  max-width: none;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .section-head--row {
    grid-template-columns: 1fr auto;
  }
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
}

/* ——— Accent surfaces ——— */

.accent-blue { --accent: var(--blue); --accent-soft: var(--blue-soft); --accent-glow: var(--blue-glow); }
.accent-green { --accent: var(--green); --accent-soft: var(--green-soft); --accent-glow: var(--green-glow); }
.accent-amber { --accent: var(--amber); --accent-soft: var(--amber-soft); --accent-glow: var(--amber-glow); }

/* ——— Domain cards (home) ——— */

.domain-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 900px) {
  .domain-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.domain-card {
  background: var(--bg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: grid;
  gap: 1.25rem;
  min-height: 20rem;
  transition: background 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.domain-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.domain-card:hover {
  background: var(--bg-elevated);
}

.domain-card:hover::before {
  transform: scaleX(1);
}

.domain-card .index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.domain-card h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

.domain-card p {
  color: var(--text-muted);
  max-width: 22rem;
}

.domain-card .link {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.domain-card .link svg {
  transition: transform 0.35s var(--ease);
}

.domain-card:hover .link svg {
  transform: translateX(4px);
}

/* Editorial domain rows (home) */
.domain-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.domain-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: padding 0.4s var(--ease);
}

.domain-row-name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
}

.domain-row-desc {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 0.98rem;
}

.domain-row-go {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.5rem;
}

@media (min-width: 800px) {
  .domain-row {
    grid-template-columns: 1.2fr 1.4fr auto;
    gap: 1.5rem;
    padding: 2rem 0;
  }
  .domain-row-go { margin-top: 0; }
  .domain-row:hover {
    padding-left: 0.75rem;
  }
}

/* ——— Pricing ——— */

.billing-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0.25rem;
  width: min(100%, 17rem);
  padding: 0.3rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.billing-toggle button {
  min-height: 2.4rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  transition: color 0.25s, background 0.25s;
}

.billing-toggle button.is-active {
  background: var(--text);
  color: var(--bg);
}

.billing-toggle .badge {
  display: none;
}

.price-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 900px) {
  .price-grid { grid-template-columns: repeat(3, 1fr); }
}

.price-card {
  background: var(--bg);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  display: grid;
  gap: 1.25rem;
  position: relative;
}

.price-card.is-featured {
  background: var(--bg-soft);
}

.price-card.is-featured::after {
  content: "Populaire";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Ruban logo Morellia (formule premium) */
.price-card.is-premium {
  overflow: hidden;
}

.price-card.is-premium .name {
  padding-left: 0.15rem;
  padding-top: 0.35rem;
}

.price-card .price-ribbon {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 5.75rem;
  height: 5.75rem;
  overflow: hidden;
  pointer-events: none;
}

.price-card .price-ribbon-band {
  position: absolute;
  top: 0.95rem;
  left: -1.85rem;
  width: 7.75rem;
  height: 1.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-45deg);
  background-image: linear-gradient(45deg, #ff6547 0%, #ffb144 51%, #ff7053 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

.price-card .price-ribbon-logo {
  display: block;
  height: 0.78rem;
  width: auto;
  max-width: 4.6rem;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

.price-card .name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.price-card .amount {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-card .amount span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}

.price-card .tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.price-card ul {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.price-card li {
  display: flex;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.price-card li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.55rem;
  flex-shrink: 0;
  background: var(--accent);
}

/* ——— Product / app grids ——— */

.item-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 700px) {
  .item-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .item-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.item-card {
  background: var(--bg);
  padding: 1.75rem;
  display: grid;
  gap: 0.85rem;
  transition: background 0.35s var(--ease);
}

.item-card:hover {
  background: var(--bg-elevated);
}

.item-card .tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.item-card .price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.item-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ——— Case studies ——— */

.case-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 2rem;
  }
}

.case-card {
  display: grid;
  gap: 0.85rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.case-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.case-card .meta .dot-accent {
  color: var(--accent);
}

.case-card h3 {
  font-size: 1.35rem;
  transition: color 0.3s var(--ease);
}

.case-card:hover h3 {
  color: var(--accent);
}

.case-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ——— Article ——— */

.article-hero {
  padding: calc(var(--nav-h) + 4rem) 0 3rem;
  border-bottom: 1px solid var(--line);
}

.article-body {
  padding: 3.5rem 0 5rem;
}

.article-body .prose {
  display: grid;
  gap: 1.25rem;
  color: var(--text-muted);
}

.article-body .prose h2 {
  color: var(--text);
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

.article-body .prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.client-box {
  margin-top: 3rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  display: grid;
  gap: 0.75rem;
}

.client-box a {
  color: var(--accent);
  font-weight: 600;
}

/* ——— Forms ——— */

.form {
  display: grid;
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font: inherit;
  transition: border-color 0.25s;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1.4fr 0.8fr !important;
    align-items: start;
  }
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.form-status {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  font-size: 0.95rem;
  display: none;
}

.form-status.is-visible { display: block; }
.form-status.is-ok { border-color: var(--green); color: var(--green); }
.form-status.is-err { border-color: #ff5c5c; color: #ff5c5c; }

/* ——— Page hero (inner) ——— */

.page-hero {
  padding: calc(var(--nav-h) + 4.5rem) 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(50vw, 28rem);
  height: min(50vw, 28rem);
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  opacity: 0.45;
  pointer-events: none;
}

.page-hero .container {
  display: grid;
  gap: 1.35rem;
  position: relative;
}

.page-hero--photo {
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(var(--nav-h) + 4.5rem) 0 4rem;
  color: #f7f4ef;
}

.page-hero--photo::before {
  display: none;
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-hero-veil {
  position: absolute;
  inset: 0;
  /* Filtre noir allégé de 10% sur desktop (opacités ×0.9) */
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.738) 0%, rgba(5, 5, 5, 0.495) 28%, rgba(5, 5, 5, 0.198) 58%, rgba(5, 5, 5, 0.315) 100%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.702) 0%, rgba(5, 5, 5, 0.198) 48%, rgba(5, 5, 5, 0.36) 100%);
  pointer-events: none;
}

/* Filtre noir allégé de 20% sur mobile (opacités ×0.8 des valeurs d'origine) */
@media (max-width: 899px) {
  .page-hero-veil {
    background:
      linear-gradient(90deg, rgba(5, 5, 5, 0.656) 0%, rgba(5, 5, 5, 0.44) 28%, rgba(5, 5, 5, 0.176) 58%, rgba(5, 5, 5, 0.28) 100%),
      linear-gradient(0deg, rgba(5, 5, 5, 0.624) 0%, rgba(5, 5, 5, 0.176) 48%, rgba(5, 5, 5, 0.32) 100%);
  }
}

.page-hero--photo .container {
  z-index: 1;
  max-width: 40rem;
}

.page-hero--photo .h1,
.page-hero--photo .lede {
  color: #f7f4ef;
}

.page-hero--photo .lede {
  color: rgba(247, 244, 239, 0.78);
}

.page-hero--photo .btn--ghost {
  color: #f7f4ef;
  border-color: rgba(247, 244, 239, 0.35);
}

.page-hero--photo .btn--ghost:hover {
  border-color: rgba(247, 244, 239, 0.7);
  background: rgba(247, 244, 239, 0.08);
}

/* ——— Footer ——— */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand p {
  margin-top: 1rem;
  color: var(--text-muted);
  max-width: 22rem;
  font-size: 0.95rem;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer-col a,
.footer-col p {
  display: block;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
  transition: color 0.25s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ——— Reveal ——— */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ——— Home hero — cinematic ——— */

.hero {
  --hero-accent: var(--blue);
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: #f7f4ef;
  overflow: hidden;
}

.hero[data-active="apps"] { --hero-accent: var(--blue); }
.hero[data-active="ai"] { --hero-accent: var(--blue); }
.hero[data-active="datacenter"] { --hero-accent: var(--green); }
.hero[data-active="domotique"] { --hero-accent: var(--amber); }

.hero-media { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide.is-leaving {
  opacity: 0;
  z-index: 0;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 6.5s linear;
}

.hero-slide.is-active img {
  transform: scale(1.06);
}

/* Intro « Bienvenue » — fumée / fondue lettre par lettre */
.hero-welcome {
  position: absolute;
  top: calc(var(--nav-h) + clamp(1.75rem, 4vh, 3rem));
  left: 50%;
  z-index: 5;
  transform: translateX(-50%);
  pointer-events: none;
  text-align: center;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.hero-welcome.is-done {
  opacity: 0;
}

.hero-welcome-word {
  display: flex;
  justify-content: center;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.22em;
  color: rgba(247, 244, 239, 0.94);
  text-shadow:
    0 0 28px rgba(255, 255, 255, 0.18),
    0 8px 40px rgba(0, 0, 0, 0.35);
}

.hero-welcome-word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(-1.15em) scale(0.94);
  filter: blur(10px);
  will-change: transform, opacity, filter;
}

.hero-welcome.is-in .hero-welcome-word span {
  animation: welcomeLetterIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i) * 85ms);
}

.hero-welcome.is-out .hero-welcome-word span {
  animation: welcomeLetterOut 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: calc(var(--i) * 75ms);
}

@keyframes welcomeLetterIn {
  0% {
    opacity: 0;
    transform: translateY(-1.2em) scale(0.92);
    filter: blur(12px);
  }
  55% {
    opacity: 0.85;
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes welcomeLetterOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(0.85em) scale(1.04);
    filter: blur(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-welcome { display: none; }
}

/* Flèche scroll — opacity sur le lien, bounce sur le SVG (évite les conflits transform) */
.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 3.6vh, 2.35rem);
  z-index: 5;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 4.25rem;
  color: rgba(247, 244, 239, 0.98);
  text-decoration: none;
  transform: translateX(-50%);
  filter: blur(8px);
  opacity: 0;
  animation: heroScrollCueIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) 4s forwards;
}

.hero-scroll-cue:hover {
  color: #fff;
}

.hero-scroll-cue svg {
  width: 1.35rem;
  height: 3.85rem;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
  stroke-width: 1.35;
  animation: heroScrollCuePulse 2.2s ease-in-out 5.2s infinite;
}

@keyframes heroScrollCueIn {
  0% {
    opacity: 0;
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes heroScrollCuePulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue {
    opacity: 1;
    filter: none;
    animation: none;
  }

  .hero-scroll-cue svg {
    animation: none;
  }
}

@media (max-width: 560px) {
  .hero-scroll-cue {
    bottom: 0.85rem;
    width: 2.2rem;
    height: 3.1rem;
  }

  .hero-scroll-cue svg {
    width: 1.1rem;
    height: 2.85rem;
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Filtre noir allégé de 10% sur desktop (opacités ×0.9) */
  background:
    linear-gradient(90deg, rgba(5,5,5,0.738) 0%, rgba(5,5,5,0.495) 28%, rgba(5,5,5,0.162) 58%, rgba(5,5,5,0.252) 100%),
    linear-gradient(0deg, rgba(5,5,5,0.81) 0%, rgba(5,5,5,0.18) 45%, rgba(5,5,5,0.405) 100%);
  pointer-events: none;
}

/* Filtre noir allégé de 20% sur mobile (opacités ×0.8 des valeurs d'origine) */
@media (max-width: 899px) {
  .hero-veil {
    background:
      linear-gradient(90deg, rgba(5,5,5,0.656) 0%, rgba(5,5,5,0.44) 28%, rgba(5,5,5,0.144) 58%, rgba(5,5,5,0.224) 100%),
      linear-gradient(0deg, rgba(5,5,5,0.72) 0%, rgba(5,5,5,0.16) 45%, rgba(5,5,5,0.36) 100%);
  }
}

/* Voile encore plus léger pour le hero de la page Contact (image plus visible) */
.hero-veil--soft {
  background:
    linear-gradient(90deg, rgba(5,5,5,0.6) 0%, rgba(5,5,5,0.38) 28%, rgba(5,5,5,0.12) 58%, rgba(5,5,5,0.2) 100%),
    linear-gradient(0deg, rgba(5,5,5,0.68) 0%, rgba(5,5,5,0.14) 45%, rgba(5,5,5,0.32) 100%);
}

@media (max-width: 899px) {
  .hero-veil--soft {
    background:
      linear-gradient(90deg, rgba(5,5,5,0.5) 0%, rgba(5,5,5,0.32) 28%, rgba(5,5,5,0.1) 58%, rgba(5,5,5,0.16) 100%),
      linear-gradient(0deg, rgba(5,5,5,0.6) 0%, rgba(5,5,5,0.12) 45%, rgba(5,5,5,0.28) 100%);
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(100% - 2.75rem, 72rem);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3rem) 0 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
}

.hero-copy {
  display: grid;
  justify-items: start;
  width: min(100%, 32rem);
  margin-bottom: clamp(2.5rem, 8vh, 4.5rem);
  text-align: left;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.15rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.55);
}

.hero-kicker-sep {
  width: 1.5rem;
  height: 1px;
  background: rgba(247, 244, 239, 0.35);
}

.hero-kicker [data-hero-num] {
  color: var(--hero-accent);
  transition: color 0.5s ease;
}

.hero-kicker [data-hero-eyebrow],
.hero-headline-text,
.hero-lede {
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-kicker [data-hero-eyebrow].is-out,
.hero-headline-text.is-out,
.hero-lede.is-out {
  opacity: 0;
  transform: translateY(12px);
}

.hero-headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.85rem, 7.5vw, 5.75rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #f7f4ef;
  max-width: 11ch;
}

.hero-headline-text { display: inline-block; }

.hero-lede {
  margin: 1.35rem 0 0;
  max-width: 26rem;
  font-size: clamp(0.98rem, 1.25vw, 1.1rem);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(247, 244, 239, 0.7);
}

.hero .text-link {
  margin-top: 1.75rem;
  color: #f7f4ef;
  border-bottom-color: rgba(247, 244, 239, 0.35);
}

.hero .text-link:hover { border-bottom-color: #f7f4ef; }

.hero-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.25rem 0 0.5rem;
}

.hero-progress-seg {
  position: relative;
  width: clamp(2.75rem, 8vw, 4.25rem);
  height: 1px;
  padding: 0.85rem 0;
  background: transparent;
}

.hero-progress-seg::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(247, 244, 239, 0.22);
  transform: translateY(-50%);
}

.hero-progress-fill {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: var(--hero-accent);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  transition: background 0.45s ease, transform 0s linear;
}

.hero-progress-seg.is-active .hero-progress-fill {
  transform: translateY(-50%) scaleX(1);
  transition:
    background 0.45s ease,
    transform var(--bar-ms, 5000ms) linear;
}

.hero-progress-seg.is-done .hero-progress-fill {
  transform: translateY(-50%) scaleX(1);
  transition: background 0.45s ease, transform 0s linear;
}

.hero-progress-seg.is-reset .hero-progress-fill {
  transform: translateY(-50%) scaleX(0);
  transition: none;
}

.hero-progress-seg:hover::before {
  background: rgba(247, 244, 239, 0.4);
}

.hero-progress-seg:focus-visible {
  outline: 1px solid rgba(247, 244, 239, 0.45);
  outline-offset: 6px;
}

.hero--boot:not(.hero--ready) [data-hero-in] {
  opacity: 0;
  transform: translateY(18px);
}

.hero--ready [data-hero-in] {
  animation: heroIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--in-delay, 0ms);
}

@keyframes heroIn { to { opacity: 1; transform: none; } }

@media (min-width: 900px) {
  .hero-copy {
    width: min(100%, 34rem);
    margin-bottom: clamp(3rem, 10vh, 5.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide img {
    transform: none !important;
    transition: none !important;
  }
  .hero-slide { transition: opacity 0.2s linear; }
  .hero-progress-seg.is-active .hero-progress-fill {
    transition: none;
    transform: translateY(-50%) scaleX(1);
  }
}

/* ——— Utility ——— */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-accent { color: var(--accent); }

/* ——— Light bands (below hero, homepage) ——— */

.hero-to-light {
  height: clamp(4rem, 12vh, 7rem);
  margin-top: -1px;
  background: linear-gradient(180deg, #050505 0%, rgba(5,5,5,0.5) 45%, #ffffff 100%);
  pointer-events: none;
}

.band {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  position: relative;
}

.band--light {
  background: #ffffff;
  color: #1c1b19;
}

.band--mist {
  background: #ffffff;
  color: #1c1b19;
}

.band--cta {
  background: #ffffff;
  color: #1c1b19;
  padding: clamp(5rem, 11vw, 8.5rem) 0;
}

.eyebrow--ink {
  color: #6a675f;
}

.eyebrow--ink::before {
  background: currentColor;
}

.h2--ink {
  color: #1c1b19;
  font-weight: 500;
}

.lede--ink {
  color: #5a574f;
}

.section-head--ink {
  max-width: 38rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.about-grid {
  display: grid;
  gap: clamp(1.75rem, 5vw, 3rem);
  align-items: start;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 2rem 4rem;
  }

  .about-intro {
    grid-column: 1;
    grid-row: 1;
  }

  .about-prose--more {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
  }

  .about-portrait {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

.about-prose {
  display: grid;
  gap: 1.15rem;
  max-width: 36rem;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.75;
  color: #4a4840;
}

.about-prose--lead {
  margin-top: 1.75rem;
}

@media (max-width: 899px) {
  .about-grid {
    gap: 2rem;
  }

  .about-prose {
    gap: 1.35rem;
    line-height: 1.8;
  }

  .about-prose--lead {
    margin-top: 1.45rem;
  }

  .about-portrait {
    width: min(100%, 19rem);
  }
}

.about-portrait {
  margin: 0;
  justify-self: center;
  width: min(100%, 22rem);
}

.about-portrait-frame {
  background:
    linear-gradient(160deg, rgba(126, 182, 232, 0.2), transparent 40%),
    linear-gradient(340deg, rgba(143, 191, 154, 0.18), transparent 45%),
    #ddd6c8;
  overflow: hidden;
}

.about-portrait-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  mix-blend-mode: multiply;
  opacity: 0.95;
}

.about-portrait figcaption {
  display: grid;
  gap: 0.2rem;
  margin-top: 1rem;
}

.about-portrait strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  font-style: italic;
  color: #1c1b19;
}

.about-portrait span {
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: #6a675f;
}

.benefit-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(28, 27, 25, 0.12);
}

.benefit {
  display: grid;
  gap: 0.65rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(28, 27, 25, 0.12);
}

.benefit h3 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  font-weight: 500;
  font-style: italic;
  color: #1c1b19;
}

.benefit p {
  max-width: 34rem;
  color: #5a574f;
  font-weight: 400;
  line-height: 1.7;
}

@media (min-width: 800px) {
  .benefit {
    grid-template-columns: minmax(12rem, 0.7fr) 1.3fr;
    gap: 2rem;
    align-items: baseline;
    padding: 2rem 0;
  }
}

.partner-list {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .partner-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.partner {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(28, 27, 25, 0.14);
}

.partner h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  font-style: italic;
  color: #1c1b19;
}

.partner-role {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6a675f;
}

.partner p:last-child {
  color: #5a574f;
  font-size: 0.98rem;
  line-height: 1.65;
}

.cta-block {
  max-width: 36rem;
}

.cta-block .lede {
  margin: 1.25rem 0 2rem;
}

.btn-ink {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid #1c1b19;
  color: #1c1b19;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.btn-ink:hover {
  background: #1c1b19;
  color: #ebe6dc;
}

.site-footer--light {
  background: #1c1b19;
  border-top: none;
  color: rgba(247, 244, 239, 0.72);
}

.site-footer--light .footer-brand p,
.site-footer--light .footer-col a,
.site-footer--light .footer-col p {
  color: rgba(247, 244, 239, 0.55);
}

.site-footer--light .footer-col a:hover {
  color: #f7f4ef;
}

.site-footer--light .footer-col h4,
.site-footer--light .footer-bottom {
  color: rgba(247, 244, 239, 0.35);
  border-top-color: rgba(247, 244, 239, 0.1);
}

/* Prix — détails déroulants (pattern SaaS mobile) */
.price-details {
  display: grid;
  gap: 0.65rem;
}

.price-details summary {
  list-style: none;
  cursor: pointer;
  width: fit-content;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 0.15rem;
}

.price-details summary::-webkit-details-marker {
  display: none;
}

.price-details summary::after {
  content: " +";
  font-weight: 500;
}

.price-details[open] summary::after {
  content: " −";
}

.price-details ul {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.price-card > ul {
  display: none;
}

@media (min-width: 721px) {
  .price-details summary {
    display: none;
  }

  .price-details ul {
    border-top: 1px solid var(--line);
    padding-top: 0.5rem;
  }
}

/* Mobile : cartes empilées, offre mise en avant en premier */
@media (max-width: 720px) {
  .price-grid,
  .price-grid--ink {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    background: transparent;
    border: none;
  }

  .price-card {
    padding: 1.65rem 1.4rem 1.5rem;
    gap: 1.1rem;
    border-radius: 0.9rem;
  }

  .price-card.is-featured {
    padding-top: 2.6rem;
    box-shadow: inset 0 3px 0 #1a9a55;
  }

  .price-card .name {
    font-size: 1.3rem;
  }

  .price-card .tagline {
    display: block;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .price-card .amount {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem 0.55rem;
    font-size: clamp(2.1rem, 8vw, 2.5rem);
  }

  .price-card .amount span {
    display: inline;
    width: auto;
    font-size: 0.9rem;
  }

  .price-details {
    gap: 0.85rem;
  }

  .price-details summary {
    color: var(--ink-soft, #5a5a5a);
    border-bottom-color: rgba(20, 20, 20, 0.2);
    padding: 0.15rem 0 0.25rem;
  }

  .price-details ul {
    gap: 0.8rem;
    padding-top: 0.75rem;
  }

  .price-card .btn,
  .price-card .btn--ghost {
    min-height: 3rem;
    justify-content: center;
    width: 100%;
    margin-top: 0.15rem;
  }
}
