/* Tarek Soft — PHP / XAMPP — Style IT Medical */
:root {
  --primary: #0057b8;
  --primary-dark: #023384;
  --primary-light: #e8f1fb;
  --gradient: linear-gradient(271deg, #023384 4.14%, #0057b8 71.64%);
  --text: #080808;
  --text-muted: #5c5c5c;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --border: #d6d6d6;
  --radius: 10px;
  --radius-pill: 9999px;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-serif: 'Noto Serif', Georgia, serif;
  --header-h: 76px;
  --shadow: 0 8px 32px rgba(2, 51, 132, 0.1);
  --transition: 0.3s ease;
  --slider-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --slider-duration: 0.45s;
  --slider-card-radius: 16px;
  --slider-card-shadow: 0 4px 24px rgba(2, 51, 132, 0.08);
  --slider-card-shadow-hover: 0 8px 32px rgba(2, 51, 132, 0.12);
  --slider-accent: 4px solid var(--primary);
  --carousel-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --carousel-duration: 0.6s;
  --carousel-btn-shadow: 0 4px 20px rgba(2, 51, 132, 0.18);
  --carousel-dot-size: 8px;
  --carousel-dot-active: 28px;
  --promo-gradient: linear-gradient(135deg, #EF4444 0%, #E63946 45%, #DC2626 100%);
  --promo-shadow: 0 2px 10px rgba(220, 38, 38, 0.35);
  --promo-shadow-hover: 0 4px 14px rgba(220, 38, 38, 0.45);
}

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.2; }
a { color: var(--primary); text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 600px; }
.text-center { text-align: center; }

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.logo-img { width: 48px; height: 48px; }
.logo-text strong { display: block; font-size: 0.95rem; font-family: var(--font-sans); font-weight: 700; letter-spacing: 0.3px; }
.logo-text small { font-size: 0.7rem; color: var(--text-muted); }

.main-nav { display: flex; gap: 0.15rem; flex-wrap: wrap; }

.main-nav a {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.main-nav a:hover, .main-nav a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.header-actions { display: flex; align-items: center; gap: 0.65rem; }
.user-name { font-size: 0.82rem; color: var(--text-muted); }

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  font-size: 1.15rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary { background: var(--gradient); color: white; }
.btn-primary:hover { filter: brightness(1.08); color: white; text-decoration: none; transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); text-decoration: none; }
.btn-sm { padding: 0.4rem 1.2rem; font-size: 0.82rem; }
.btn-lg { padding: 0.75rem 2rem; }
.btn-block { width: 100%; }

/* ─── Plans Slider — Full-width Hero ─── */
.plans-slider {
  --plans-overlay-color: #023384;
  --plans-overlay-opacity: 0.65;
  --plans-popup-edge: clamp(1.25rem, 4vw, 3rem);
  --plans-transition-duration: 0.8s;
  --plans-transition-ease: cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #fff;
  min-height: 640px;
}

.plans-track {
  position: relative;
  min-height: 640px;
}

.plan-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  will-change: opacity;
  transition:
    opacity var(--plans-transition-duration) var(--plans-transition-ease),
    visibility var(--plans-transition-duration);
}

.plan-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.plan-slide.is-leaving {
  visibility: visible;
  pointer-events: none;
  z-index: 1;
  animation: planFadeOut var(--plans-transition-duration) var(--plans-transition-ease) forwards;
}

.plan-slide.is-entering {
  visibility: visible;
  pointer-events: auto;
  z-index: 3;
  animation: planFadeIn var(--plans-transition-duration) var(--plans-transition-ease) forwards;
}

.plan-slide.is-entering,
.plan-slide.is-leaving {
  transition: none;
}

@keyframes planFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes planFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.plan-slide-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(0, 87, 184, 0.35) 0%, transparent 50%),
    linear-gradient(115deg, var(--primary-dark) 0%, var(--plan-color, #0057b8) 42%, #0066cc 100%);
  pointer-events: none;
}

.plan-slide.has-bg-image .plan-slide-bg {
  background: var(--plan-color, #0057b8);
}

.plan-slide.has-bg-image .plan-slide-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  background-image: var(--plan-bg-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
}

.plan-slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 51, 132, 0.15) 0%, transparent 40%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
  z-index: 1;
}

.plan-slide.has-bg-image .plan-slide-bg::after {
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--plans-overlay-color) calc(var(--plans-overlay-opacity) * 100%), transparent) 0%,
      color-mix(in srgb, var(--plans-overlay-color) calc(var(--plans-overlay-opacity) * 72%), transparent) 32%,
      transparent 52%
    );
}

.plan-slide-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 46%);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: 640px;
  padding: 4rem 0 5.5rem;
}

.plan-slide.has-bg-image .plan-slide-inner {
  position: relative;
  display: block;
  grid-template-columns: 1fr;
  max-width: none;
  width: 100%;
  min-height: 640px;
  padding: 4rem var(--plans-popup-edge) 5.5rem;
  margin: 0;
}

.plan-slide.has-bg-image .plan-content {
  position: absolute;
  width: min(var(--plans-popup-width, 720px), calc(100% - 2 * var(--plans-popup-edge)));
  max-width: var(--plans-popup-width, 720px);
  min-height: var(--plans-popup-min-height, auto);
  margin: 0;
  z-index: 2;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  text-align: left;
  align-items: flex-start;
  box-sizing: border-box;
}

.plans-design-glassmorphism .plan-slide.has-bg-image .plan-content {
  background: color-mix(in srgb, var(--plans-overlay-color) calc(var(--plans-popup-opacity, 0.65) * 100%), transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Emplacement popup slider (9 positions — relatif à l'écran) */
.plans-popup-position-left .plan-slide.has-bg-image .plan-content {
  left: var(--plans-popup-edge);
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  align-items: flex-start;
}

.plans-popup-position-center .plan-slide.has-bg-image .plan-content {
  left: 50%;
  right: auto;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  align-items: center;
}

.plans-popup-position-right .plan-slide.has-bg-image .plan-content {
  right: var(--plans-popup-edge);
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
  align-items: flex-end;
}

.plans-popup-position-top-left .plan-slide.has-bg-image .plan-content {
  left: var(--plans-popup-edge);
  right: auto;
  top: 4rem;
  bottom: auto;
  transform: none;
  text-align: left;
  align-items: flex-start;
}

.plans-popup-position-top-center .plan-slide.has-bg-image .plan-content {
  left: 50%;
  right: auto;
  top: 4rem;
  bottom: auto;
  transform: translateX(-50%);
  text-align: center;
  align-items: center;
}

.plans-popup-position-top-right .plan-slide.has-bg-image .plan-content {
  right: var(--plans-popup-edge);
  left: auto;
  top: 4rem;
  bottom: auto;
  transform: none;
  text-align: right;
  align-items: flex-end;
}

.plans-popup-position-bottom-left .plan-slide.has-bg-image .plan-content {
  left: var(--plans-popup-edge);
  right: auto;
  bottom: 5.5rem;
  top: auto;
  transform: none;
  text-align: left;
  align-items: flex-start;
}

.plans-popup-position-bottom-center .plan-slide.has-bg-image .plan-content {
  left: 50%;
  right: auto;
  bottom: 5.5rem;
  top: auto;
  transform: translateX(-50%);
  text-align: center;
  align-items: center;
}

.plans-popup-position-bottom-right .plan-slide.has-bg-image .plan-content {
  right: var(--plans-popup-edge);
  left: auto;
  bottom: 5.5rem;
  top: auto;
  transform: none;
  text-align: right;
  align-items: flex-end;
}

/* Priorité emplacement popup sur les designs qui centrent le contenu */
.plans-popup-position-left .plan-slide.has-bg-image .plan-slide-inner,
.plans-popup-position-right .plan-slide.has-bg-image .plan-slide-inner,
.plans-popup-position-top-left .plan-slide.has-bg-image .plan-slide-inner,
.plans-popup-position-top-right .plan-slide.has-bg-image .plan-slide-inner,
.plans-popup-position-bottom-left .plan-slide.has-bg-image .plan-slide-inner,
.plans-popup-position-bottom-right .plan-slide.has-bg-image .plan-slide-inner {
  justify-items: stretch;
  text-align: left;
}

.plans-popup-position-left .plan-slide.has-bg-image .plan-content,
.plans-popup-position-top-left .plan-slide.has-bg-image .plan-content,
.plans-popup-position-bottom-left .plan-slide.has-bg-image .plan-content {
  text-align: left;
  align-items: flex-start;
}

.plans-popup-position-left .plan-slide.has-bg-image .plan-tag,
.plans-popup-position-top-left .plan-slide.has-bg-image .plan-tag,
.plans-popup-position-bottom-left .plan-slide.has-bg-image .plan-tag {
  align-self: flex-start;
}

.plans-popup-position-left .plan-slide.has-bg-image .plan-actions,
.plans-popup-position-top-left .plan-slide.has-bg-image .plan-actions,
.plans-popup-position-bottom-left .plan-slide.has-bg-image .plan-actions {
  justify-content: flex-start;
}

.plans-popup-position-left .plan-slide.has-bg-image .plan-content p,
.plans-popup-position-top-left .plan-slide.has-bg-image .plan-content p,
.plans-popup-position-bottom-left .plan-slide.has-bg-image .plan-content p {
  margin-left: 0;
  margin-right: 0;
}

.plans-popup-position-center .plan-slide.has-bg-image .plan-tag,
.plans-popup-position-top-center .plan-slide.has-bg-image .plan-tag,
.plans-popup-position-bottom-center .plan-slide.has-bg-image .plan-tag {
  align-self: center;
}

.plans-popup-position-center .plan-slide.has-bg-image .plan-actions,
.plans-popup-position-top-center .plan-slide.has-bg-image .plan-actions,
.plans-popup-position-bottom-center .plan-slide.has-bg-image .plan-actions {
  justify-content: center;
}

.plans-popup-position-right .plan-slide.has-bg-image .plan-actions,
.plans-popup-position-top-right .plan-slide.has-bg-image .plan-actions,
.plans-popup-position-bottom-right .plan-slide.has-bg-image .plan-actions {
  justify-content: flex-end;
}

.plans-popup-position-center .plan-slide.has-bg-image .plan-content p,
.plans-popup-position-top-center .plan-slide.has-bg-image .plan-content p,
.plans-popup-position-bottom-center .plan-slide.has-bg-image .plan-content p {
  margin-left: auto;
  margin-right: auto;
}

.plan-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 580px;
}

.plan-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 380px;
}

.plan-icon {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 420px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: calc(var(--radius) + 6px);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.15) inset;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan-icon svg {
  width: 88px;
  height: 88px;
  color: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.plan-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 420px;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
  background: rgba(255, 255, 255, 0.06);
}

.plan-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.plan-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.1rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-pill);
}

.plan-content h2 {
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  color: #fff;
  margin-bottom: 1.15rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}

.plan-content p {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: flex-start;
}

.btn-hero,
.btn-hero-primary,
.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.btn-hero-primary {
  color: #fff;
  background: var(--gradient);
  border: 2px solid transparent;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
  color: #fff;
  text-decoration: none;
  filter: brightness(1.08);
}

.btn-hero-outline {
  color: #fff;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-hero-outline:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.plans-controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
}

.plans-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.plans-nav:hover,
.plans-nav:focus-visible {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  border-color: transparent;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  outline: none;
}

.plans-nav:active {
  transform: translateY(0) scale(0.98);
}

.plans-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.plans-dot {
  width: var(--carousel-dot-size);
  height: var(--carousel-dot-size);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    width var(--carousel-duration) var(--carousel-ease),
    background var(--transition),
    box-shadow var(--transition);
}

.plans-dot:hover {
  background: rgba(255, 255, 255, 0.65);
}

.plans-dot.active {
  background: #fff;
  width: var(--carousel-dot-active);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}

.plans-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ─── Plan Detail Page ─── */
.plan-detail-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  min-height: 420px;
}

.plan-detail-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(0, 87, 184, 0.35) 0%, transparent 50%),
    linear-gradient(115deg, var(--primary-dark) 0%, var(--plan-color, #0057b8) 42%, #0066cc 100%);
  pointer-events: none;
}

.plan-detail-hero.has-bg-image .plan-detail-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--plan-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.plan-detail-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 51, 132, 0.2) 0%, transparent 40%, rgba(0, 0, 0, 0.25) 100%);
}

.plan-detail-hero.has-bg-image .plan-detail-hero-bg::after {
  background:
    linear-gradient(105deg, rgba(2, 51, 132, 0.88) 0%, rgba(0, 87, 184, 0.62) 42%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, transparent 45%, rgba(0, 0, 0, 0.35) 100%);
}

.plan-detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 4rem;
  max-width: 720px;
}

.plan-detail-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition);
}

.plan-detail-back:hover {
  color: #fff;
  text-decoration: none;
}

.plan-detail-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.15;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
}

.plan-detail-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 600px;
}

.plan-detail-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.plan-detail-image {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 87, 184, 0.12);
}

.plan-detail-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.plan-detail-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--plan-color, #0057b8), var(--primary-dark));
  border-radius: calc(var(--radius) + 4px);
  color: #fff;
}

.plan-detail-icon svg {
  width: 56px;
  height: 56px;
}

.plan-detail-content h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.plan-detail-content p {
  color: var(--text-muted);
  line-height: 1.8;
}

.plan-detail-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-detail-color {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.plan-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.5rem;
}

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 0.65rem; }
.section-header p { color: var(--text-muted); font-size: 1rem; }

.page-hero {
  background: var(--gradient);
  color: white;
  text-align: center;
  padding: 3rem 0;
}

.page-hero h1 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); color: white; margin-bottom: 0.5rem; }
.page-hero p { opacity: 0.9; }

/* ─── Shared Slider Controls ─── */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.slider-nav {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--primary);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.slider-nav:hover,
.slider-nav:focus-visible {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  outline: none;
}

.slider-nav:active { opacity: 0.85; }

.slider-progress-wrap {
  flex: 1;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.slider-progress {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.slider-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width var(--slider-duration) var(--slider-ease);
  width: 0%;
}

.slider-counter {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* Features — Timeline horizontale */
#features {
  padding: 5.5rem 0 6rem;
  background:
    linear-gradient(180deg, var(--bg-alt) 0%, #eef3fa 55%, #e8f0fa 100%);
  position: relative;
  overflow: hidden;
}

#features::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 87, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 87, 184, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

#features::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,40 C200,80 400,0 600,40 C800,80 1000,0 1200,40 L1200,80 L0,80 Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

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

#features .section-header {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header--center { text-align: center; margin-left: auto; margin-right: auto; }

#features .section-header h2 { font-size: clamp(1.85rem, 3.5vw, 2.6rem); }
#features .section-header p { font-size: 1.125rem; }

.feature-timeline {
  position: relative;
  padding: 1rem 0 2rem;
}

.feature-timeline-line {
  position: absolute;
  top: 50%;
  left: 2%;
  right: 2%;
  height: 4px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--primary) 0%, #0066cc 50%, var(--primary-dark) 100%);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 12px rgba(0, 87, 184, 0.25);
  z-index: 0;
}

.feature-timeline-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
  min-height: 320px;
}

.feature-timeline-step {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  align-items: center;
  text-align: center;
}

.feature-timeline-step--above .feature-timeline-card {
  grid-row: 1;
  align-self: end;
  margin-bottom: 1.25rem;
}

.feature-timeline-step--above .feature-timeline-node { grid-row: 2; }

.feature-timeline-step--below .feature-timeline-node { grid-row: 2; }

.feature-timeline-step--below .feature-timeline-card {
  grid-row: 3;
  align-self: start;
  margin-top: 1.25rem;
}

.feature-timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  justify-self: center;
}

.feature-timeline-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  box-shadow:
    0 0 0 4px #fff,
    0 6px 20px rgba(2, 51, 132, 0.28);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-timeline-icon {
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0.85;
}

.feature-timeline-step:hover .feature-timeline-num {
  transform: scale(1.08);
  box-shadow:
    0 0 0 4px #fff,
    0 10px 28px rgba(2, 51, 132, 0.32);
}

.feature-timeline-card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(0, 87, 184, 0.1);
  border-radius: var(--radius);
  padding: 1rem 0.85rem;
  box-shadow: 0 4px 20px rgba(2, 51, 132, 0.07);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-timeline-step:hover .feature-timeline-card {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(2, 51, 132, 0.12);
}

.feature-timeline-card h3 {
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--primary-dark);
  margin-bottom: 0.45rem;
}

.feature-timeline-card p {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

#testimonialSlider .carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  margin-top: 2.25rem;
}

#testimonialSlider .carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(0, 87, 184, 0.25);
  background: white;
  color: var(--primary);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--carousel-btn-shadow);
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

#testimonialSlider .carousel-btn:hover,
#testimonialSlider .carousel-btn:focus-visible {
  background: var(--gradient);
  color: white;
  border-color: transparent;
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 8px 28px rgba(2, 51, 132, 0.28),
    0 0 18px rgba(0, 87, 184, 0.2);
  outline: none;
}

#testimonialSlider .carousel-btn:active {
  transform: translateY(0) scale(0.98);
}

#testimonialSlider .carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 87, 184, 0.12);
}

#testimonialSlider .carousel-dot {
  width: var(--carousel-dot-size);
  height: var(--carousel-dot-size);
  border-radius: var(--radius-pill);
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    width var(--carousel-duration) var(--carousel-ease),
    background var(--transition),
    box-shadow var(--transition);
}

#testimonialSlider .carousel-dot:hover {
  background: rgba(0, 87, 184, 0.35);
}

#testimonialSlider .carousel-dot.active {
  background: var(--primary);
  width: var(--carousel-dot-active);
  box-shadow: 0 0 10px rgba(0, 87, 184, 0.35);
}

#testimonialSlider .carousel-dot:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  transition: var(--transition);
}

.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.product-image-wrap {
  margin: -1.5rem -1.5rem 1rem;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 16 / 10;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-badge,
.product-detail-badge,
.product-detail-hero-badge {
  display: inline-block;
  background: var(--promo-gradient);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  box-shadow: var(--promo-shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.68rem;
  padding: 0.28rem 0.7rem;
}

.product-card:hover .product-badge {
  box-shadow: var(--promo-shadow-hover);
  transform: translateY(-1px);
}

.product-category {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.5rem;
}

.product-card h3 { font-size: 1rem; margin-bottom: 0.65rem; line-height: 1.4; }
.product-desc {
  flex-grow: 1;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-bottom: 1rem;
}

.product-ref { font-size: 0.78rem; color: var(--text-muted); }
.product-price { font-weight: 700; color: var(--primary); font-size: 1.1rem; }

.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.product-detail-image {
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}

.product-detail-image img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  display: block;
}

.product-detail-text { color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; }

.product-detail-ref {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.product-detail-badge {
  font-size: 0.72rem;
  padding: 0.32rem 0.78rem;
  margin-bottom: 0.5rem;
}

.product-detail-hero-badge {
  font-size: 0.75rem;
  padding: 0.32rem 0.85rem;
  margin-bottom: 0.75rem;
}

/* Testimonials — Glassmorphism (slider 2 style) */
#testimonialSlider {
  --testimonial-gap: 1.25rem;
  --testimonials-per-view: 1;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 769px) {
  #testimonialSlider { --testimonials-per-view: 2; }
}

@media (min-width: 1025px) {
  #testimonialSlider { --testimonials-per-view: 3; }
}

#testimonialSlider .testimonials-viewport {
  overflow: hidden;
}

#testimonialSlider .testimonials-track {
  display: flex;
  gap: var(--testimonial-gap);
  transition: transform var(--carousel-duration) var(--carousel-ease);
  will-change: transform;
}

#testimonialSlider .testimonial {
  display: block;
  flex: 0 0 calc((100% - var(--testimonial-gap) * (var(--testimonials-per-view) - 1)) / var(--testimonials-per-view));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 87, 184, 0.12);
  padding: 1.75rem;
  border-radius: calc(var(--radius) + 4px);
  box-shadow:
    var(--shadow),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  margin: 0;
  transition: box-shadow var(--transition), transform var(--carousel-duration) var(--carousel-ease);
}

#testimonialSlider .testimonial:hover {
  box-shadow:
    0 12px 40px rgba(2, 51, 132, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

#testimonialSlider .testimonial-inner { display: flex; gap: 1.25rem; align-items: flex-start; }
#testimonialSlider .testimonial-photo { flex-shrink: 0; }
#testimonialSlider .testimonial-photo img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 87, 184, 0.12);
  background: #fff;
}

@media (min-width: 1025px) {
  #testimonialSlider .testimonial { padding: 2rem; }
  #testimonialSlider .testimonial-inner { gap: 1.5rem; }
  #testimonialSlider .testimonial-photo img { width: 88px; height: 88px; }
}

#testimonialSlider .testimonial-content { flex: 1; min-width: 0; }

#testimonialSlider .testimonial p { font-style: italic; color: var(--text-muted); margin-bottom: 1rem; font-size: 1.02rem; line-height: 1.75; font-family: var(--font-serif); }
#testimonialSlider .testimonial footer strong { display: block; color: var(--primary-dark); }
#testimonialSlider .testimonial footer span { font-size: 0.85rem; color: var(--text-muted); }

#testimonialSlider .testimonials-controls.is-hidden { display: none; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.about-grid h2 { font-size: 1.85rem; margin-bottom: 0.85rem; }
.about-grid > div > p { color: var(--text-muted); line-height: 1.75; margin-bottom: 1rem; }

/* Accueil — chiffres clés */
.home-stats {
  background: var(--gradient);
  color: #fff;
  padding: 2rem 0;
}

.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.home-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.home-stat span {
  font-size: 0.875rem;
  opacity: 0.92;
}

/* Accueil — services */
.home-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.home-service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.home-service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(2, 51, 132, 0.12);
}

.home-service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.home-service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.home-service-card p {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.65;
}

/* Accueil — parcours */
.home-process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.home-process-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--slider-card-shadow);
}

.home-process-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.home-process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--primary-dark);
}

.home-process-step p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Accueil — FAQ */
.container-narrow-lg { max-width: 780px; margin: 0 auto; padding: 0 1.25rem; }

.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--primary-dark);
  list-style: none;
}

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

.faq-item summary::after {
  content: '+';
  float: right;
  font-weight: 400;
  color: var(--primary);
}

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

.faq-item p {
  padding: 0 1.25rem 1rem;
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.7;
}

/* Accueil — CTA */
.home-cta {
  background: var(--gradient);
  color: #fff;
  padding: 3.5rem 0;
}

.home-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.home-cta h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.home-cta p {
  opacity: 0.92;
  max-width: 520px;
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.about-cards { display: flex; flex-direction: column; gap: 1rem; }

.about-list { list-style: none; margin-top: 1rem; }
.about-list li { padding: 0.45rem 0 0.45rem 1.5rem; position: relative; color: var(--text-muted); }
.about-list li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

.info-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.info-card h4 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.info-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }

/* Logiciels grid */
.logiciels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.logiciel-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.logiciel-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.logiciel-image-wrap {
  height: 170px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.65rem;
  flex-shrink: 0;
}

.logiciel-image-wrap--card {
  margin: -1.5rem -1.5rem 1rem;
  border-radius: var(--radius) var(--radius) 0 0;
}

.logiciel-image-placeholder span { font-size: 2.5rem; opacity: 0.5; }

.logiciel-image-wrap img,
.logiciel-image-wrap > img,
img.logiciel-image {
  max-width: 100%;
  max-height: 100%;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center;
  display: block;
  flex-shrink: 0;
}

.logiciel-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.logiciel-specialite {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.logiciel-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; line-height: 1.4; }
.logiciel-version { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.logiciel-desc { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1rem; flex: 1; }

.logiciel-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.logiciel-price { font-size: 1.1rem; font-weight: 700; color: var(--primary); }

.logiciel-detail-image {
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  min-height: 200px;
  max-height: 320px;
}

.logiciel-image--detail {
  max-width: min(100%, 400px);
  max-height: 280px;
}

.logiciel-detail-text { color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; }

.config-block {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.config-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.config-steps { list-style: decimal; }

.form-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.form-section-title:first-of-type { margin-top: 0; }

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}

/* Software / sidebar */
.software-grid { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; }
.software-modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.5rem; }

.module-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.module-icon { font-size: 1.5rem; display: block; margin-bottom: 0.5rem; }
.module-card h4 { font-size: 0.92rem; margin-bottom: 0.3rem; font-family: var(--font-sans); font-weight: 600; }
.module-card p { font-size: 0.82rem; color: var(--text-muted); }

.sidebar-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.sidebar-card.highlight { background: var(--primary-light); border-color: rgba(0,87,184,0.2); }
.sidebar-card h3 { font-size: 1rem; margin-bottom: 0.65rem; font-family: var(--font-sans); font-weight: 600; }

.price-tag { font-size: 1.65rem; font-weight: 700; color: var(--primary); margin: 0.5rem 0; }
.price-tag small { font-size: 0.85rem; font-weight: 400; color: var(--text-muted); }

/* Forms */
.form-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.form-group input[type="file"] {
  padding: 0.5rem 0;
  border: none;
  background: transparent;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,87,184,0.12);
}

.form-msg { padding: 0.85rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.form-msg.success { background: #d1fae5; color: #065f46; }
.form-msg.error { background: #fee2e2; color: #991b1b; }
.form-hint { font-size: 0.82rem; color: var(--text-muted); margin-top: 1rem; text-align: center; }
.form-hint-left { text-align: left; margin-top: 0.35rem; }

.input-range-row,
.input-color-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.input-range-row input[type="range"] {
  flex: 1;
  min-width: 0;
}

.input-range-row input[type="number"] {
  width: 5rem;
  flex-shrink: 0;
}

.input-color-row input[type="color"] {
  width: 3rem;
  height: 2.5rem;
  padding: 0.15rem;
  flex-shrink: 0;
  cursor: pointer;
}

.input-color-row input[type="text"] {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, monospace;
}

.plans-overlay-preview {
  position: relative;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, #94a3b8 0%, #64748b 50%, #475569 100%);
  border: 1px solid var(--border);
}

.plans-popup-preview-wrap .plans-overlay-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      color-mix(in srgb, var(--plans-overlay-color, #023384) calc(var(--plans-overlay-opacity, 0.65) * 135%), transparent) 0%,
      color-mix(in srgb, var(--plans-overlay-color, #023384) calc(var(--plans-overlay-opacity, 0.65) * 95%), transparent) 42%,
      rgba(0, 0, 0, calc(var(--plans-overlay-opacity, 0.65) * 0.69)) 100%
    );
}

.plans-popup-preview-card {
  position: absolute;
  z-index: 2;
  width: min(var(--plans-popup-width, 240px), calc(100% - 2rem));
  max-width: min(var(--plans-popup-width, 240px), calc(100% - 2rem));
  min-height: var(--plans-popup-min-height, auto);
  padding: 0.85rem 1rem;
  border-radius: calc(var(--radius) + 2px);
  background: color-mix(in srgb, var(--plans-overlay-color, #023384) calc(var(--plans-popup-opacity, 0.65) * 100%), transparent);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
}

.plans-popup-preview-card strong {
  font-size: 0.95rem;
}

.plans-popup-preview-tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.plans-popup-preview-wrap.plans-popup-position-left .plans-popup-preview-card {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.plans-popup-preview-wrap.plans-popup-position-center .plans-popup-preview-card {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.plans-popup-preview-wrap.plans-popup-position-right .plans-popup-preview-card {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
}

.plans-popup-preview-wrap.plans-popup-position-top-left .plans-popup-preview-card {
  left: 1rem;
  top: 1rem;
}

.plans-popup-preview-wrap.plans-popup-position-top-center .plans-popup-preview-card {
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
  text-align: center;
}

.plans-popup-preview-wrap.plans-popup-position-top-right .plans-popup-preview-card {
  right: 1rem;
  top: 1rem;
  text-align: right;
}

.plans-popup-preview-wrap.plans-popup-position-bottom-left .plans-popup-preview-card {
  left: 1rem;
  bottom: 1rem;
}

.plans-popup-preview-wrap.plans-popup-position-bottom-center .plans-popup-preview-card {
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  text-align: center;
}

.plans-popup-preview-wrap.plans-popup-position-bottom-right .plans-popup-preview-card {
  right: 1rem;
  bottom: 1rem;
  text-align: right;
}

.plans-overlay-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      color-mix(in srgb, var(--plans-overlay-color, #023384) calc(var(--plans-overlay-opacity, 0.65) * 135%), transparent) 0%,
      color-mix(in srgb, var(--plans-overlay-color, #023384) calc(var(--plans-overlay-opacity, 0.65) * 95%), transparent) 42%,
      rgba(0, 0, 0, calc(var(--plans-overlay-opacity, 0.65) * 0.69)) 100%
    );
}

.plans-overlay-preview-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.form-checkboxes {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  accent-color: var(--primary);
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.5rem;
}

.product-preview {
  margin-bottom: 0.75rem;
}

.product-preview img {
  max-width: 200px;
  max-height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
  margin-bottom: 0.35rem;
}

.product-preview .logiciel-image-wrap {
  height: 140px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.35rem;
}

.product-preview img.logiciel-image {
  max-width: 240px;
  max-height: 120px;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; }
.contact-card { background: var(--bg-alt); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 0.85rem; border: 1px solid var(--border); }
.contact-card h3 { font-size: 0.9rem; color: var(--primary); margin-bottom: 0.4rem; font-weight: 600; }
.contact-card p { font-size: 0.88rem; color: var(--text-muted); }

/* Admin layout */
.admin-layout {
  margin: 0;
  background: #f1f5f9;
  min-height: 100vh;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.admin-layout .admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 190;
}

.admin-layout .admin-overlay.active { display: block; }

.admin-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 250px;
  height: 100vh;
  height: 100dvh;
  background: var(--primary-dark);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow-y: auto;
  transition: transform 0.25s ease;
}

.admin-sidebar-brand {
  padding: 1.25rem 1rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: white;
}

.admin-brand-link strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.admin-brand-link small {
  display: block;
  font-size: 0.72rem;
  opacity: 0.7;
  font-weight: 500;
}

.admin-sidebar-nav {
  flex: 1;
  padding: 1rem 0;
}

.admin-nav-group { margin-bottom: 1.1rem; }

.admin-nav-label {
  display: block;
  padding: 0 1.15rem;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.45);
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s;
}

.admin-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.admin-nav-link.active {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border-left-color: #60a5fa;
  font-weight: 600;
}

.admin-nav-icon {
  width: 1.25rem;
  text-align: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.admin-sidebar-footer {
  padding: 1rem 1.15rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
}

.admin-user-greeting {
  margin: 0 0 0.65rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
}

.admin-footer-link {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 0.3rem 0;
  font-weight: 500;
}

.admin-footer-link:hover { color: white; }

.admin-wrapper {
  margin-left: 250px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: white;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-menu-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  font-size: 1.15rem;
  cursor: pointer;
  color: #334155;
  line-height: 1;
}

.admin-topbar-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
}

.admin-main {
  flex: 1;
  padding: 1.75rem 2rem 2.5rem;
}

.admin-page-header {
  margin-bottom: 1.5rem;
}

.admin-page-header h1 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.35rem;
}

.admin-page-header p {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
}

.admin-page-body {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
}

.admin-page-body--narrow {
  max-width: 720px;
}

.admin-layout .tab-btn.active {
  background: var(--primary-dark);
  color: white;
  border-color: var(--primary-dark);
}

.admin-layout .stat-num { color: var(--primary-dark); }

@media (max-width: 900px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-wrapper { margin-left: 0; }

  .admin-topbar { display: flex; }

  .admin-main { padding: 1.25rem 1rem 2rem; }

  body.admin-menu-open { overflow: hidden; }
}

.admin-toolbar {
  margin-bottom: 1.25rem;
}

.table-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.table-thumb--logiciel {
  width: 56px;
  height: 44px;
  object-fit: contain;
  object-position: center;
  background: #f8fafc;
  padding: 3px;
}

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

.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; }

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.admin-chart-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.admin-chart-card--kpi {
  background: var(--gradient);
  border-color: var(--primary-dark);
  color: white;
  justify-content: center;
}

.admin-chart-card h3 {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
}

.admin-chart-card--kpi h3 {
  color: rgba(255, 255, 255, 0.85);
}

.admin-chart-wrap {
  position: relative;
  flex: 1;
  min-height: 200px;
}

.admin-chart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 200px;
  color: #94a3b8;
  font-size: 0.88rem;
  text-align: center;
  padding: 1rem;
}

.admin-kpi-value {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  margin: 0.5rem 0;
}

.admin-kpi-label {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0;
}

.admin-kpi-link {
  display: inline-block;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  text-decoration: none;
  font-weight: 500;
}

.admin-kpi-link:hover { color: white; }

.admin-nav-link--site {
  margin-top: 0.15rem;
}

.admin-dashboard-section {
  margin-bottom: 2rem;
}

.admin-dashboard-section-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin: 0 0 1rem;
}
.stat-num { display: block; font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

.admin-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.tab-btn { padding: 0.55rem 1.25rem; border: 1px solid var(--border); background: white; border-radius: var(--radius-pill); cursor: pointer; font-weight: 600; font-size: 0.85rem; color: var(--text-muted); }
.tab-btn.active { background: var(--gradient); color: white; border-color: transparent; }

.admin-panel { display: none; }
.admin-panel.active { display: block; }

/* Admin tables — modern card layout */
.admin-table-wrap,
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.admin-table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  font-size: 0.875rem;
  line-height: 1.45;
  box-shadow: none;
  border-radius: 0;
}

.admin-table thead,
.data-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.admin-table th,
.data-table th,
.admin-layout .admin-table th,
.admin-layout .data-table th {
  background: #f8fafc;
  color: #64748b;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.admin-table td,
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.admin-table tbody tr:nth-child(even) td,
.data-table tbody tr:nth-child(even) td {
  background: #fafbfc;
}

.admin-table tbody tr:hover td,
.data-table tbody tr:hover td {
  background: #f1f5f9;
}

.admin-table tbody tr:last-child td,
.data-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table .empty,
.data-table .empty {
  text-align: center;
  color: #94a3b8;
  padding: 2.5rem 16px;
  font-size: 0.875rem;
}

.table-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.admin-table .table-actions .btn-sm,
.admin-table td > .btn-sm,
.data-table .table-actions .btn-sm,
.data-table td > .btn-sm {
  padding: 0.32rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 500;
  border-radius: 999px;
  line-height: 1.3;
  white-space: nowrap;
}

.admin-table .btn-outline.btn-sm,
.data-table .btn-outline.btn-sm {
  border-color: #cbd5e1;
  color: #475569;
  background: #fff;
}

.admin-table .btn-outline.btn-sm:hover,
.data-table .btn-outline.btn-sm:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #1e293b;
}

.admin-table .btn-danger.btn-sm,
.data-table .btn-danger.btn-sm {
  color: #dc2626;
  border-color: #fecaca;
  background: #fff;
}

.admin-table .btn-danger.btn-sm:hover,
.data-table .btn-danger.btn-sm:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-pill--yes {
  background: #dcfce7;
  color: #15803d;
}

.badge-pill--no {
  background: #f1f5f9;
  color: #64748b;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #dbeafe;
  color: #1d4ed8;
}
.inline-form { display: inline; margin: 0; }
.btn-danger { color: #b42318; border-color: #fecdca; }
.btn-danger:hover { background: #fef3f2; color: #912018; }
.color-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; margin-right: 0.35rem; }

.alert-warning { background: #fef9ec; color: #7a5c00; padding: 0.75rem 0; border-bottom: 1px solid #f0d080; font-size: 0.9rem; }

/* Agenda rendez-vous — Google Calendar week view */
.agenda-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.agenda-nav,
.agenda-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.gcal-toolbar {
  padding: 0.65rem 0 1rem;
  border-bottom: 1px solid #e8eaed;
  margin-bottom: 0.5rem;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  border-radius: 8px 8px 0 0;
}

.gcal-nav {
  gap: 0.75rem;
}

.gcal-btn-today {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #3c4043;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
}

.gcal-btn-today:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.1);
  color: #3c4043;
}

.gcal-nav-arrows {
  display: flex;
  gap: 0.15rem;
}

.gcal-btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.35rem;
  line-height: 1;
  color: #5f6368;
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.15s;
}

.gcal-btn-arrow:hover {
  background: #f1f3f4;
  color: #3c4043;
}

.gcal-week-title {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 400;
  color: #3c4043;
  margin: 0;
  letter-spacing: -0.01em;
}

.gcal-btn-create {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  background: #1a73e8;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(26, 115, 232, 0.3);
  transition: background 0.15s, box-shadow 0.15s;
}

.gcal-btn-create:hover {
  background: #1765cc;
  box-shadow: 0 1px 3px rgba(26, 115, 232, 0.4);
  color: #fff;
}

.gcal-btn-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a73e8;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s;
}

.gcal-btn-link:hover {
  background: #e8f0fe;
  color: #1a73e8;
}

.gcal-view-switcher {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dadce0;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.gcal-view-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #5f6368;
  text-decoration: none;
  border-right: 1px solid #dadce0;
  transition: background 0.15s, color 0.15s;
}

.gcal-view-pill:last-child {
  border-right: none;
}

.gcal-view-pill:hover {
  background: #f8f9fa;
  color: #3c4043;
}

.gcal-view-pill.is-active {
  background: #e8f0fe;
  color: #1a73e8;
}

.gcal-grid.is-day-view {
  min-width: 360px;
}

.gcal-grid.is-day-view .agenda-header,
.gcal-grid.is-day-view .agenda-body {
  grid-template-columns: 56px 1fr;
}

.agenda-month-wrap {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
  overflow: hidden;
}

.agenda-month-grid {
  display: flex;
  flex-direction: column;
}

.agenda-month-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid #dadce0;
  background: #fafbfc;
}

.agenda-month-weekday {
  padding: 0.55rem 0.35rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #70757a;
  text-transform: uppercase;
}

.agenda-month-cells {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(6.5rem, 1fr);
}

.agenda-month-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 6.5rem;
  padding: 0.35rem 0.4rem 0.45rem;
  border-right: 1px solid #e8eaed;
  border-bottom: 1px solid #e8eaed;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: background 0.12s;
}

.agenda-month-cell:nth-child(7n) {
  border-right: none;
}

.agenda-month-cell:hover {
  background: #f8f9fa;
}

.agenda-month-cell.is-other-month {
  background: #fafafa;
}

.agenda-month-cell.is-other-month .agenda-month-day-num {
  color: #9aa0a6;
}

.agenda-month-cell.is-today {
  background: #e8f0fe;
}

.agenda-month-cell.is-today .agenda-month-day-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  font-weight: 600;
}

.agenda-month-day-num {
  font-size: 0.82rem;
  font-weight: 500;
  color: #3c4043;
  line-height: 1.2;
}

.agenda-month-dots {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}

.agenda-month-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1a73e8;
}

.agenda-month-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
}

.agenda-month-event {
  display: block;
  padding: 1px 4px;
  font-size: 0.68rem;
  line-height: 1.25;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-left: 2px solid rgba(26, 115, 232, 0.5);
  background: #e8f0fe;
  color: #1a1a1a;
  cursor: pointer;
}

.agenda-month-event.statut-en_attente {
  background: #fff8e1;
  border-left-color: #f9a825;
}

.agenda-month-event.statut-confirme {
  background: #e8f5e9;
  border-left-color: #43a047;
}

.agenda-month-event.statut-annule {
  background: #ffebee;
  border-left-color: #e53935;
  opacity: 0.85;
}

.agenda-month-event.statut-termine {
  background: #eceff1;
  border-left-color: #78909c;
}

.agenda-month-more {
  font-size: 0.65rem;
  color: #70757a;
  padding-left: 2px;
}

.agenda-config {
  margin-bottom: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
}

.agenda-config-toggle {
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.agenda-config-toggle::-webkit-details-marker {
  display: none;
}

.agenda-config-toggle::before {
  content: '▸ ';
  display: inline-block;
  transition: transform 0.15s ease;
}

.agenda-config[open] .agenda-config-toggle::before {
  transform: rotate(90deg);
}

.agenda-config-body {
  padding: 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.agenda-config-form,
.agenda-categories-card {
  margin-bottom: 0;
  padding: 1rem;
}

.agenda-config-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.agenda-categories-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.agenda-categorie-row-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.agenda-categorie-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.agenda-categorie-delete {
  flex-shrink: 0;
}

.agenda-cat-nom {
  min-width: 140px;
  flex: 1;
}

.agenda-cat-ordre {
  width: 4rem;
}

.agenda-cat-actif {
  font-size: 0.8rem;
  white-space: nowrap;
}

.agenda-legend-categorie::before {
  background: var(--legend-color, #e8f0fe);
}

.agenda-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0;
}

.agenda-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #5f6368;
}

.agenda-legend-item::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.agenda-scroll {
  overflow: auto;
  max-height: 75vh;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
}

.gcal-scroll {
  -webkit-overflow-scrolling: touch;
}

.agenda-grid {
  min-width: 900px;
}

.gcal-grid {
  min-width: 960px;
}

.agenda-header {
  display: grid;
  grid-template-columns: 56px repeat(7, 1fr);
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid #dadce0;
}

.gcal-header {
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.06);
}

.agenda-corner {
  background: #fff;
  border-right: 1px solid #e8eaed;
}

.gcal-corner {
  min-height: 4.5rem;
}

.agenda-day-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 0.25rem;
  text-align: center;
  background: #fff;
  border-right: 1px solid #e8eaed;
}

.gcal-day-header:last-child {
  border-right: none;
}

.agenda-day-weekday {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #70757a;
  line-height: 1;
}

.agenda-day-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.35rem;
  font-weight: 400;
  color: #3c4043;
  border-radius: 50%;
  line-height: 1;
}

.agenda-day-header.is-today .agenda-day-weekday {
  color: #1a73e8;
}

.agenda-day-header.is-today .agenda-day-date {
  background: #1a73e8;
  color: #fff;
  font-weight: 500;
}

.agenda-body {
  display: grid;
  grid-template-columns: 56px repeat(7, 1fr);
}

.agenda-times {
  border-right: 1px solid #e8eaed;
  background: #fff;
}

.agenda-time-label {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0 0.5rem;
  font-size: 0.65rem;
  color: #70757a;
  font-weight: 400;
  box-sizing: border-box;
}

.gcal-time-label.is-hour span,
.gcal-time-label.is-hour {
  transform: translateY(-0.45rem);
}

.agenda-day-col {
  position: relative;
  border-right: 1px solid #e8eaed;
  background: #fff;
}

.gcal-day-col:last-child {
  border-right: none;
}

.gcal-day-col.is-today {
  background: linear-gradient(180deg, #e8f0fe 0%, #f8fbff 8%, #f8fbff 100%);
}

.gcal-day-col.is-drop-target {
  background: #e8f0fe;
}

.agenda-slot {
  display: block;
  border-top: 1px solid #f1f3f4;
  text-decoration: none;
  transition: background 0.15s ease;
  box-sizing: border-box;
}

.gcal-slot.is-hour {
  border-top-color: #dadce0;
}

.agenda-slot:hover {
  background: #e8f0fe;
}

.agenda-slot.is-slot-active {
  background: #d2e3fc;
}

.agenda-event {
  position: absolute;
  left: 2px;
  right: 4px;
  border-radius: 4px;
  padding: 2px 6px 2px 8px;
  font-size: 0.72rem;
  line-height: 1.3;
  text-decoration: none;
  overflow: hidden;
  z-index: 2;
  pointer-events: auto;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15);
  border-left: 4px solid transparent;
  transition: box-shadow 0.15s ease, transform 0.12s ease, opacity 0.15s ease;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.agenda-event:hover {
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.22);
  z-index: 3;
}

.agenda-event.is-dragging {
  opacity: 0.35;
  cursor: grabbing;
  box-shadow: none;
  z-index: 1;
}

.agenda-event.is-saving {
  cursor: wait;
}

.agenda-event.is-resizing {
  cursor: ns-resize;
  z-index: 5;
  box-shadow: 0 2px 10px rgba(26, 115, 232, 0.35);
}

.agenda-event-ghost {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.92;
  box-shadow: 0 6px 16px rgba(60, 64, 67, 0.35);
  transform: rotate(0.5deg);
  cursor: grabbing;
}

.agenda-drop-indicator {
  position: absolute;
  left: 2px;
  right: 4px;
  background: rgba(26, 115, 232, 0.12);
  border: 2px dashed #1a73e8;
  border-radius: 4px;
  pointer-events: none;
  z-index: 4;
  display: none;
  box-sizing: border-box;
}

.agenda-event-resize {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  cursor: ns-resize;
  z-index: 2;
}

.agenda-event-resize::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: rgba(60, 64, 67, 0.25);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.agenda-event:hover .agenda-event-resize::after,
.agenda-event.is-resizing .agenda-event-resize::after {
  opacity: 1;
}

body.agenda-drag-active,
body.agenda-resize-active {
  cursor: grabbing;
  user-select: none;
}

body.agenda-resize-active {
  cursor: ns-resize;
}

body.agenda-drag-active .agenda-slot {
  pointer-events: none;
}

.toast.toast-success {
  background: #137333;
}

.toast.toast-error {
  background: #c5221f;
}

.agenda-event-time,
.agenda-event-title,
.agenda-event-motif {
  pointer-events: none;
}

.agenda-event-time {
  display: block;
  font-weight: 500;
  font-size: 0.68rem;
}

.agenda-event-title {
  display: block;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agenda-event-motif {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.65rem;
  opacity: 0.85;
}

.agenda-event.statut-en_attente {
  background: #fce8b2;
  color: #b06000;
  border-left-color: #f9ab00;
}

.agenda-event.statut-confirme {
  background: #ceead6;
  color: #137333;
  border-left-color: #34a853;
}

.agenda-event.statut-annule {
  background: #f1f3f4;
  color: #5f6368;
  border-left-color: #9aa0a6;
}

.agenda-event.statut-termine {
  background: #d2e3fc;
  color: #185abc;
  border-left-color: #1a73e8;
}

.agenda-now-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #ea4335;
  z-index: 4;
  pointer-events: none;
}

.agenda-now-dot {
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: #ea4335;
  border-radius: 50%;
}

.statut-en_attente,
.badge-rdv.statut-en_attente,
.agenda-legend-item.statut-en_attente::before {
  background: #f9ab00;
}

.statut-confirme,
.badge-rdv.statut-confirme,
.agenda-legend-item.statut-confirme::before {
  background: #34a853;
}

.statut-annule,
.badge-rdv.statut-annule,
.agenda-legend-item.statut-annule::before {
  background: #9aa0a6;
}

.statut-termine,
.badge-rdv.statut-termine,
.agenda-legend-item.statut-termine::before {
  background: #1a73e8;
}

/* Agenda page — compact chrome for maximum grid height */
.agenda-page .admin-main {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.agenda-page .admin-page-header {
  margin-bottom: 0.5rem;
}

.agenda-page .admin-page-header h1 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0;
}

.agenda-page .admin-page-header p {
  display: none;
}

.agenda-page .admin-page-body {
  padding: 0.65rem 1rem 0.85rem;
}

.agenda-page .gcal-toolbar {
  padding: 0.3rem 0 0.45rem;
  margin-bottom: 0.35rem;
}

.agenda-page .gcal-week-title {
  font-size: 1rem;
}

.agenda-page .gcal-btn-today,
.agenda-page .gcal-btn-create,
.agenda-page .gcal-btn-link {
  padding: 0.32rem 0.7rem;
  font-size: 0.8rem;
}

.agenda-page .gcal-btn-arrow {
  width: 1.9rem;
  height: 1.9rem;
  font-size: 1.15rem;
}

.agenda-page .agenda-legend {
  margin-bottom: 0.35rem;
  padding: 0;
  gap: 0.5rem;
}

.agenda-page .agenda-legend-item {
  font-size: 0.7rem;
}

.agenda-page .agenda-scroll {
  max-height: calc(100vh - 9rem);
}

.agenda-page .gcal-corner {
  min-height: 3rem;
}

.agenda-page .agenda-day-header {
  padding: 0.35rem 0.2rem;
  gap: 0.15rem;
}

.agenda-page .agenda-day-date {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 1rem;
}

.agenda-page .agenda-event {
  font-size: 0.65rem;
  line-height: 1.2;
  padding: 1px 4px 1px 6px;
}

@media (max-width: 768px) {
  .gcal-week-title {
    font-size: 1.1rem;
    width: 100%;
    order: 3;
  }

  .gcal-nav {
    width: 100%;
  }

  .gcal-toolbar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .gcal-view-switcher {
    order: -1;
    width: 100%;
    justify-content: center;
  }

  .gcal-view-pill {
    flex: 1;
    justify-content: center;
  }

  .agenda-month-cells {
    grid-auto-rows: minmax(5rem, 1fr);
  }

  .agenda-month-cell {
    min-height: 5rem;
    padding: 0.25rem;
  }

  .agenda-month-event {
    font-size: 0.62rem;
  }

  .agenda-scroll {
    margin: 0 -1.25rem;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }

  .agenda-page .agenda-scroll {
    max-height: calc(100vh - 7.5rem);
  }
}

/* ── Modal rendez-vous (style Google Agenda) ── */
body.rdv-modal-open {
  overflow: hidden;
}

.rdv-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(32, 33, 36, 0.45);
  backdrop-filter: blur(2px);
}

.rdv-modal-overlay[hidden] {
  display: none !important;
}

.rdv-modal {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 2rem);
  overflow: visible;
  background: #fff;
  border-radius: 12px;
  box-shadow:
    0 1px 2px rgba(60, 64, 67, 0.15),
    0 8px 24px rgba(60, 64, 67, 0.25),
    0 16px 48px rgba(60, 64, 67, 0.12);
  animation: rdvModalIn 0.2s ease;
}

@keyframes rdvModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.rdv-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1.15rem 0.5rem;
  border-bottom: 1px solid #e8eaed;
}

.rdv-modal-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: #202124;
  letter-spacing: -0.01em;
}

.rdv-modal-close {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #5f6368;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.rdv-modal-close:hover {
  background: #f1f3f4;
  color: #202124;
}

.rdv-modal-msg {
  margin: 0.5rem 1.15rem 0;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  font-size: 0.82rem;
}

.rdv-modal-msg--error {
  background: #fce8e6;
  color: #c5221f;
}

.rdv-modal-msg--loading {
  background: #f1f3f4;
  color: #5f6368;
}

.rdv-modal-form {
  padding: 0.65rem 1.15rem 0.85rem;
}

.rdv-modal-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.65rem;
}

.rdv-modal-form .form-group {
  margin-bottom: 0.5rem;
}

.rdv-modal-form .form-row .form-group {
  margin-bottom: 0;
}

.rdv-modal-form label {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #3c4043;
}

.rdv-modal-form input[type="date"],
.rdv-modal-form input[type="time"],
.rdv-modal-form input[type="text"],
.rdv-modal-form input[type="tel"],
.rdv-modal-form input[type="email"],
.rdv-modal-form select,
.rdv-modal-form textarea {
  width: 100%;
  padding: 0.32rem 0.5rem;
  min-height: 0;
  border: 1px solid #dadce0;
  border-radius: 6px;
  font-size: 0.84rem;
  line-height: 1.35;
  font-family: inherit;
  color: #202124;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rdv-modal-form select {
  padding-top: 0.28rem;
  padding-bottom: 0.28rem;
}

.rdv-modal-form textarea {
  min-height: 2.6rem;
  resize: vertical;
}

.rdv-modal-form input:focus,
.rdv-modal-form select:focus,
.rdv-modal-form textarea:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.rdv-modal-form .form-hint {
  margin-top: 0.15rem;
  font-size: 0.68rem;
  line-height: 1.2;
  color: #80868b;
}

.rdv-modal-form .checkbox-label {
  font-size: 0.78rem;
  line-height: 1.3;
  color: #3c4043;
}

.rdv-modal-form .form-group:has(.checkbox-label) {
  margin-bottom: 0.35rem;
}

.rdv-modal-footer {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid #e8eaed;
}

.rdv-modal-footer .btn {
  padding: 0.5rem 0.85rem;
  border-width: 1px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.rdv-modal-footer .btn-primary {
  background: #1a73e8;
  border-color: #1a73e8;
}

.rdv-modal-footer .btn-primary:hover {
  background: #1765cc;
  border-color: #1765cc;
}

.rdv-modal-delete {
  margin-left: 0;
}

button.gcal-btn-create {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 560px) {
  .rdv-modal-form .form-row {
    grid-template-columns: 1fr;
  }

  .rdv-modal-footer {
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .rdv-modal-footer .btn {
    flex: 1 1 auto;
    min-width: 0;
  }
}

.badge-rdv {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: white;
  line-height: 1.3;
  white-space: nowrap;
}

.form-msg.warning {
  background: #fef9ec;
  color: #7a5c00;
  border: 1px solid #f0d080;
}

.rdv-delete-form {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Footer */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.75); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3.5rem 1.25rem;
}

.footer-logo { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.85rem; }
.footer-logo strong { color: white; font-size: 0.95rem; }

.footer-col h4 { color: white; margin-bottom: 1rem; font-size: 0.95rem; font-family: var(--font-sans); font-weight: 600; }
.footer-col p, .footer-col a { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-bottom: 0.4rem; text-decoration: none; line-height: 1.6; }
.footer-col a:hover { color: white; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1rem 0; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.5); }

.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: var(--primary-dark); color: white;
  padding: 0.85rem 1.25rem; border-radius: var(--radius);
  transform: translateY(120%); transition: 0.3s ease;
  z-index: 999; max-width: 340px; font-size: 0.88rem;
}

.toast.show { transform: translateY(0); }

@media (max-width: 900px) {
  .plans-slider,
  .plans-track {
    min-height: 520px;
  }

  .plan-slide.active {
    position: relative;
  }

  .plan-slide-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
    padding: 3rem 0 6rem;
    text-align: center;
  }

  .plan-content {
    max-width: none;
    order: 2;
  }

  .plan-visual {
    order: 1;
    min-height: auto;
  }

  .plan-tag { align-self: center; }
  .plan-actions { justify-content: center; }
  .plan-content p { margin-left: auto; margin-right: auto; }

  .plan-slide.has-bg-image .plan-slide-inner {
    grid-template-columns: 1fr;
    text-align: left;
    min-height: 520px;
  }

  .plan-slide.has-bg-image .plan-content {
    position: absolute;
    width: min(var(--plans-popup-width, 720px), calc(100% - 2 * var(--plans-popup-edge)));
    max-width: var(--plans-popup-width, 720px);
  }

  .plans-popup-position-top-left .plan-slide.has-bg-image .plan-content,
  .plans-popup-position-top-center .plan-slide.has-bg-image .plan-content,
  .plans-popup-position-top-right .plan-slide.has-bg-image .plan-content {
    top: 3rem;
  }

  .plans-popup-position-bottom-left .plan-slide.has-bg-image .plan-content,
  .plans-popup-position-bottom-center .plan-slide.has-bg-image .plan-content,
  .plans-popup-position-bottom-right .plan-slide.has-bg-image .plan-content {
    bottom: 6rem;
  }

  .plan-slide.has-bg-image .plan-content {
    align-items: flex-start;
  }

  .plan-slide.has-bg-image .plan-tag { align-self: flex-start; }
  .plan-slide.has-bg-image .plan-actions { justify-content: flex-start; }
  .plan-slide.has-bg-image .plan-content p { margin-left: 0; margin-right: 0; }

  .plan-image,
  .plan-icon {
    max-height: 260px;
    aspect-ratio: 16 / 10;
  }

  .plan-icon svg { width: 64px; height: 64px; }

  .plan-content h2 { font-size: clamp(1.75rem, 6vw, 2.4rem); }

  .plans-controls {
    bottom: 1.25rem;
    gap: 0.85rem;
  }

  .plans-nav {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }
  .about-grid, .software-grid, .contact-grid { grid-template-columns: 1fr; }
  .home-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .home-services-grid { grid-template-columns: repeat(2, 1fr); }
  .home-process-steps { grid-template-columns: 1fr; }
  .home-cta-inner { flex-direction: column; text-align: center; }
  .home-cta-actions { justify-content: center; }

  .feature-timeline-line {
    top: 0;
    bottom: 0;
    left: 28px;
    right: auto;
    width: 4px;
    height: auto;
    transform: none;
  }

  .feature-timeline-steps {
    flex-direction: column;
    min-height: 0;
    gap: 1.5rem;
    padding-left: 3.5rem;
  }

  .feature-timeline-step {
    display: block;
    text-align: left;
  }

  .feature-timeline-step--above .feature-timeline-card,
  .feature-timeline-step--below .feature-timeline-card {
    margin: 0 0 0 0;
    grid-row: auto;
  }

  .feature-timeline-node {
    position: absolute;
    left: -3.5rem;
    top: 0.35rem;
    flex-direction: row;
    gap: 0;
  }

  .feature-timeline-step {
    position: relative;
  }

  .feature-timeline-icon { display: none; }

  .feature-timeline-num {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .feature-timeline-card h3 { font-size: 1rem; }
  .feature-timeline-card p { font-size: 0.875rem; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .site-header { position: relative; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .user-name { display: none; }

  #features { padding: 3.5rem 0; }
  #features .section-header { margin-bottom: 2rem; }
  #features .section-header h2 { font-size: clamp(1.5rem, 5vw, 1.85rem); }
  #features .section-header p { font-size: 1rem; }

  .feature-timeline-card { padding: 1rem 1.1rem; }

  .home-stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .home-services-grid { grid-template-columns: 1fr; }
  .home-stat strong { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .plan-slide, .plan-slide.is-entering, .plan-slide.is-leaving, #testimonialSlider .testimonials-track, #testimonialSlider .testimonial, .slider-progress-fill { animation: none; transition: none; }
  .feature-timeline-step:hover .feature-timeline-num,
  .feature-timeline-step:hover .feature-timeline-card { transform: none; transition: none; }
  .slider-nav, #testimonialSlider .carousel-btn { transition: none; }
}

/* Admin — sélecteur de thèmes */
.theme-picker-form { margin-top: 0.5rem; }

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.theme-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.theme-card:hover {
  border-color: rgba(0, 87, 184, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.theme-card--active,
.theme-card:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent);
}

.theme-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-card-swatch {
  display: block;
  height: 72px;
}

.theme-card-body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.theme-card-title {
  font-size: 0.92rem;
  color: var(--text);
}

.theme-card-colors {
  display: flex;
  gap: 0.35rem;
}

.theme-card-colors span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.theme-card-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
}

.theme-picker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Admin — sélecteur images slider plans */
.slider-image-picker-form { margin-top: 0.5rem; }

.slider-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.slider-image-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.slider-image-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.slider-image-card:hover {
  border-color: rgba(0, 87, 184, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.slider-image-card--active,
.slider-image-card:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent);
}

.slider-image-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.slider-image-preview {
  position: relative;
  display: block;
  aspect-ratio: 12 / 5;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  overflow: hidden;
}

.slider-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-image-preview--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 600;
}

.slider-image-overlay-dot {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.slider-image-body {
  padding: 0.75rem 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.slider-image-grid--compact .slider-image-body {
  padding: 0.45rem 0.5rem 0.55rem;
}

.slider-image-title {
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.3;
}

.slider-image-grid--compact .slider-image-title {
  font-size: 0.72rem;
}

.slider-image-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.slider-image-tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
}

.slider-image-tag--security {
  color: #0d3d6e;
  background: #dbeafe;
}

.slider-image-filter-tabs {
  flex-wrap: wrap;
}

.slider-image-picker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
