/* AlyxIA Solutions — reproduction locale (alyxia.ch) */

:root {
  --bg: #080808;
  --border-subtle: #1e1e1e;
  --text: #ffffff;
  --text-muted: #a4a4a4;
  --text-nav: rgba(255, 255, 255, 0.78);
  --pad-section: clamp(1.5rem, 5vw, 6.5rem);
  /* Largeur de lecture (paragraphes) : éviter une colonne trop étroite */
  --content-max: min(100%, 62rem);
  --wide-max: 1280px;
  /* Titres / hero : plus de largeur pour éviter des retours à la ligne involontaires */
  --title-max: min(100%, 72rem);
  --font-ui: "Geist Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Titres très grands : Inter se lit souvent mieux à cette échelle que Geist seul */
  --font-display: "Inter", "Geist Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-demo: var(--font-ui);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gradient-hero-btn: linear-gradient(
    135deg,
    rgb(49, 149, 242) 0%,
    rgb(145, 7, 224) 37%,
    rgb(253, 0, 0) 100%
  );
  --gradient-demo: linear-gradient(
    135deg,
    #3b5fe0 0%,
    #4a4de8 18%,
    #6a3de8 34%,
    #9b30d6 50%,
    #d42a8e 68%,
    #e8245a 84%,
    #e02040 100%
  );
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.05rem);
  line-height: 1.55;
  animation: pageFade 0.6s ease-out;
  -webkit-font-smoothing: antialiased;
}

input,
textarea,
select,
button {
  color-scheme: dark;
}

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

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

a:hover {
  text-decoration: underline;
}

.site-root {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
  padding: min(1.5rem, 2vw) var(--pad-section);
}

.site-header__inner {
  max-width: var(--wide-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.35rem, 2vw, 1rem);
  flex-wrap: nowrap;
  width: 100%;
}

.site-logo {
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.site-logo:hover {
  text-decoration: none;
  opacity: 0.92;
}

.site-logo__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  font-family: var(--font-display);
}

.site-logo__primary {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.site-logo__secondary {
  font-size: clamp(0.65rem, 1.5vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.2rem;
  justify-content: flex-end;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.site-nav a {
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-nav);
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
}

main {
  flex: 1;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  /* Hauteur viewport : la vidéo entière reste visible (letterboxing sombre si besoin) */
  min-height: clamp(22rem, 72svh, 52rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
  background: var(--bg);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.45);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--pad-section);
  padding-top: clamp(1.5rem, 4vw, 3rem);
  max-width: var(--title-max);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  box-sizing: border-box;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 1rem;
  color: #fff;
}

.hero__subtitle {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 0.33rem;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: filter 0.25s ease, transform 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.btn--gradient {
  background: var(--gradient-hero-btn);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid #4f7cff;
}

.btn--outline:hover {
  background: rgba(79, 124, 255, 0.1);
}

/* ——— Linear reveal (hero) ——— */
@keyframes alyxiaLinearReveal {
  0% {
    opacity: 0;
    transform: translateY(-28px) scale(0.95);
    filter: blur(12px);
  }
  60% {
    opacity: 1;
    transform: translateY(2px) scale(1.002);
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.linear-reveal {
  opacity: 0;
  animation: alyxiaLinearReveal 1.4s var(--ease-out) forwards;
}

.linear-reveal-delay-1 {
  opacity: 0;
  animation: alyxiaLinearReveal 1.4s var(--ease-out) 0.15s forwards;
}

.linear-reveal-delay-2 {
  opacity: 0;
  animation: alyxiaLinearReveal 1.4s var(--ease-out) 0.2s forwards;
}

/* ——— Scroll reveal ——— */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  filter: blur(10px);
  transition:
    opacity 1.15s var(--ease-out),
    transform 1.15s var(--ease-out),
    filter 1.15s var(--ease-out);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  .linear-reveal,
  .linear-reveal-delay-1,
  .linear-reveal-delay-2 {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }

  .reveal-on-scroll,
  .reveal-on-scroll.is-visible {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ——— Sections ——— */
.section {
  background: var(--bg);
}

.section--pad {
  padding: var(--pad-section);
  padding-left: max(1rem, var(--pad-section));
  padding-right: max(1rem, var(--pad-section));
  box-sizing: border-box;
}

/* Moins d’air autour de « Notre approche » */
#approche.section--pad {
  padding-top: clamp(1.25rem, 2.5vw, 2.75rem);
  padding-bottom: clamp(1.25rem, 2.5vw, 2.75rem);
}

.section--border {
  border-top: 1px solid var(--border-subtle);
}

.section--services {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 2rem;
}

.section--page {
  padding-top: 3rem;
}

.section__title {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 2rem;
  color: #fff;
}

h1.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.section__title--left {
  text-align: left;
}

.section__title.text-center {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--title-max);
}

.section .lead.text-center {
  text-align: center;
}

.section__title--bold {
  font-weight: 600;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #c4d4ff 40%,
    #e8b4ff 65%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section__narrow {
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
}

/* Même colonne que le header (1280px) : titre + texte alignés, assez large pour ~2 lignes / paragraphe */
#approche .section__narrow--approche {
  max-width: var(--wide-max);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.lead {
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  color: #fff;
  margin: 0 0 1.5rem;
}

/* Une seule marge entre le 1er et le 2e paragraphe (après lignes 1–2, avant lignes 3–4) */
#approche .section__narrow--approche > .lead:first-of-type {
  margin-bottom: 0;
}

.lead--approche-gap {
  margin-top: clamp(1.35rem, 2.5vw, 2.25rem);
}

.intro-after-title {
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto 1rem;
  color: #fff;
  padding: 0;
  box-sizing: border-box;
}

.intro-tight {
  margin-bottom: 2rem;
}

/* ——— Demo widget ——— */
.alyxia-demo-standalone-wrap {
  width: 100%;
  max-width: 1040px;
  margin: 2rem auto 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.alyxia-demo {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: grid;
  grid-template-columns: 180px 1fr 210px;
  grid-template-rows: auto 1fr;
  height: 480px;
  background:
    radial-gradient(circle at top left, rgba(74, 77, 232, 0.08), transparent 32%),
    radial-gradient(circle at bottom right, rgba(232, 36, 90, 0.06), transparent 30%),
    #0f1115;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
  font-family: var(--font-demo);
}

.alyxia-demo.is-visible {
  opacity: 1;
}

.demo-sidebar {
  grid-row: 1 / -1;
  background: linear-gradient(180deg, #0d1016 0%, #11151d 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.demo-sidebar-header {
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.demo-sidebar-logo {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f5f7fb;
}

.demo-sidebar-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.demo-new-chat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--gradient-demo);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  border: none;
  cursor: default;
  white-space: nowrap;
}

.demo-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.demo-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 0.68rem;
  color: #8e9ab0;
  pointer-events: none;
}

.demo-main {
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top center, rgba(74, 77, 232, 0.07), transparent 32%),
    linear-gradient(180deg, #10141c 0%, #0c1017 100%);
  min-width: 0;
}

.demo-topbar {
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

.demo-topbar-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f5f7fb;
}

.demo-chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
}

.demo-chat-area.has-conversation {
  justify-content: flex-start;
  align-items: stretch;
}

.demo-watermark {
  position: absolute;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.035);
  pointer-events: none;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.demo-chat-area.has-conversation .demo-watermark {
  display: none;
}

.demo-welcome {
  text-align: center;
  position: relative;
  z-index: 1;
}

.demo-greeting {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f5f7fb;
  margin: 0 0 4px;
}

.demo-greeting-sub {
  font-size: 0.82rem;
  color: #8e9ab0;
  margin: 0;
}

.demo-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 90%;
  animation: demoMsgIn 0.4s var(--ease-out) both;
}

.demo-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
  margin-bottom: 6px;
}

.demo-msg-ai {
  align-self: flex-start;
  margin-top: 10px;
  margin-bottom: 16px;
}

@keyframes demoMsgIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.demo-msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.75rem;
  line-height: 1.6;
}

.demo-msg-user .demo-msg-bubble {
  background: var(--gradient-demo);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.demo-msg-ai .demo-msg-bubble {
  background: rgba(255, 255, 255, 0.04);
  color: #c5cedd;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom-left-radius: 4px;
}

.demo-msg-ai .demo-msg-bubble strong {
  color: #fff;
  font-weight: 700;
}

.demo-typing-dots {
  display: inline-flex;
  gap: 4px;
  padding: 4px 0;
}

.demo-typing-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9ea8bc;
  animation: demoDotBounce 1.4s ease-in-out infinite;
}

.demo-typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.demo-typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes demoDotBounce {
  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.demo-input-zone {
  padding: 0 20px 14px;
}

.demo-input-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px 12px;
  gap: 8px;
}

.demo-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.72rem;
  font-family: inherit;
  color: #8e9ab0;
  background: transparent;
}

.demo-send-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-demo);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: default;
  flex-shrink: 0;
}

.demo-templates {
  grid-row: 1 / -1;
  background: linear-gradient(180deg, #0d1016 0%, #11151d 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.demo-templates-header {
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #f5f7fb;
  font-size: 0.72rem;
  font-weight: 700;
}

.demo-templates-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 6px;
}

.demo-template-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: inherit;
  margin-bottom: 4px;
}

.demo-template-item:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.05);
}

.demo-tpl-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-tpl-blue {
  color: #7aa2ff;
}

.demo-tpl-purple {
  color: #a78bfa;
}

.demo-tpl-green {
  color: #5ee7a0;
}

.demo-tpl-red {
  color: #ff6b93;
}

.demo-tpl-title {
  font-size: 0.65rem;
  font-weight: 600;
  color: #c5cedd;
  line-height: 1.2;
  margin: 0;
}

.demo-tpl-desc {
  font-size: 0.55rem;
  color: #8e9ab0;
  margin: 1px 0 0;
}

@media (max-width: 1024px) {
  .alyxia-demo {
    grid-template-columns: 150px 1fr 180px;
    height: 420px;
  }
}

@media (max-width: 768px) {
  .alyxia-demo-standalone-wrap .alyxia-demo {
    min-width: 0;
    height: auto;
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .alyxia-demo {
    opacity: 1 !important;
    transition: none !important;
  }
}

/* ——— Carousel étapes ——— */
.alyxia-carousel {
  background: var(--bg);
  padding: 34px 18px;
  border-radius: 32px;
  max-width: var(--wide-max);
  margin: 0 auto;
}

.alyxia-track {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  padding: 36px 44px 30px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  scrollbar-color: #3a3a3a #0f0f0f;
  scrollbar-width: thin;
}

.alyxia-track::-webkit-scrollbar {
  height: 10px;
}

.alyxia-track::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 999px;
  border: 2px solid var(--bg);
}

.alyxia-card {
  display: block;
  scroll-snap-align: start;
  flex: 0 0 calc((100% - 75px) / 4);
  min-width: 200px;
  height: 320px;
  padding: 16px 16px 56px;
  border-radius: 18px;
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, #3b5cff 0%, #7a1fa2 55%, #e60023 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.alyxia-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.alyxia-card > summary {
  list-style: none;
}

.alyxia-card > summary::-webkit-details-marker {
  display: none;
}

.alyxia-card__summary {
  cursor: pointer;
  user-select: none;
}

.alyxia-card__summary:focus,
.alyxia-card__summary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}

.alyxia-card__toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.alyxia-card__toggle::before,
.alyxia-card__toggle::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 3px;
  background: #111;
  border-radius: 2px;
}

.alyxia-card__toggle::after {
  transform: rotate(90deg);
}

.alyxia-card[open] .alyxia-card__toggle {
  transform: rotate(90deg);
}

.alyxia-card:nth-child(1) {
  background: linear-gradient(135deg, #4f7cff 0%, #5b6be6 70%, #6a1b9a 100%);
}

.alyxia-card:nth-child(2) {
  background: linear-gradient(135deg, #5b6be6 0%, #6a1b9a 65%, #7b1fa2 100%);
}

.alyxia-card:nth-child(3) {
  background: linear-gradient(135deg, #6a1b9a 0%, #7b1fa2 65%, #8e24aa 100%);
}

.alyxia-card:nth-child(4) {
  background: linear-gradient(135deg, #7b1fa2 0%, #8e24aa 55%, #c2185b 100%);
}

.alyxia-card:nth-child(5) {
  background: linear-gradient(135deg, #8e24aa 0%, #c2185b 50%, #e60023 100%);
}

.alyxia-card:nth-child(6) {
  background: linear-gradient(135deg, #b0126b 0%, #e60023 60%, #ff1a1a 100%);
}

.alyxia-card__step {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin: 8px 0 10px;
}

.alyxia-card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 8px;
}

.alyxia-card__text,
.alyxia-card__more p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

.alyxia-card__more {
  margin-top: 14px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    max-height 0.42s ease,
    opacity 0.28s ease,
    transform 0.28s ease;
}

.alyxia-card[open] .alyxia-card__more {
  max-height: 200px;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .alyxia-card {
    flex: 0 0 calc((100% - 25px) / 2);
    height: 300px;
  }

  .alyxia-track {
    padding: 32px 28px 26px;
    margin: 0 14px;
  }
}

@media (max-width: 640px) {
  .alyxia-card {
    flex: 0 0 85%;
    height: 290px;
  }

  .alyxia-track {
    padding: 26px 18px 22px;
    margin: 0 10px;
  }
}

/* ——— Bloc contact : tout centré ——— */
#contact.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

#contact .section__title,
#contact .intro-after-title,
#contact .form-alert {
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

#contact .contact-form {
  margin-left: auto;
  margin-right: auto;
}

#contact .contact-extra {
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  box-sizing: border-box;
}

/* ——— Contact form ——— */
.contact-form {
  position: relative;
  max-width: var(--content-max);
  margin: 2rem auto 0;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__field {
  margin-bottom: 20px;
}

.contact-form__field label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #f3f5f8;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1a1f28;
  color: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition:
    border-color 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8d97aa;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(124, 77, 255, 0.55);
  background: #202633;
  box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.1);
}

.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus,
.contact-form textarea:-webkit-autofill,
.contact-form textarea:-webkit-autofill:hover,
.contact-form textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px #1a1f28 inset;
  transition: background-color 99999s ease-out;
}

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

.contact-form__submit {
  margin-top: 10px;
}

.btn-submit {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 18px 26px;
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(
    90deg,
    #5f7cff 0%,
    #7c52ff 34%,
    #b94dff 63%,
    #e04f7a 82%,
    #e24d45 100%
  );
  box-shadow:
    0 14px 34px rgba(124, 82, 255, 0.22),
    0 8px 22px rgba(226, 77, 69, 0.14);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.form-alert {
  max-width: var(--content-max);
  margin: 1rem auto 0;
  padding: 14px 16px;
  border-radius: 14px;
  text-align: center;
}

.form-alert--success {
  background: rgba(80, 200, 120, 0.12);
  border: 1px solid rgba(80, 200, 120, 0.35);
  color: #b8f0c8;
}

.form-alert--error {
  background: rgba(255, 100, 100, 0.1);
  border: 1px solid rgba(255, 100, 100, 0.35);
  color: #ffb4b4;
}

.contact-extra {
  margin-top: 3rem;
  color: #fff;
  padding: 0 1rem;
}

.contact-extra a:hover {
  color: #b8c5ff;
  text-decoration: none;
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg);
  padding: var(--pad-section);
}

.site-footer__grid {
  max-width: var(--wide-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.site-footer__brand {
  flex: 1 1 200px;
}

.site-footer__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.site-footer__title a:hover {
  text-decoration: none;
  opacity: 0.85;
}

.site-footer__tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  flex: 2 1 400px;
  justify-content: space-between;
}

.site-footer__heading {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links li {
  margin-bottom: 0.5rem;
}

.site-footer__links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer__links a:hover {
  color: #fff;
}

.section--page .section__narrow a {
  color: #8ab4ff;
  text-decoration: underline;
}

.section--page .section__narrow a:hover {
  color: #c4d4ff;
}

/* ——— Titres de section centrés (largeur page) ——— */
.section .section__title.text-center {
  width: 100%;
  max-width: min(100%, var(--wide-max));
  box-sizing: border-box;
}

.section .text-gradient.text-center {
  display: block;
}

/* ——— Responsive global ——— */
@media (max-width: 768px) {
  .site-nav a {
    font-size: 13px;
    padding: 6px 10px;
  }

  .hero__title {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
  }

  .hero {
    min-height: clamp(20rem, 65svh, 40rem);
  }

  .alyxia-carousel {
    padding: 1.25rem 0.5rem;
    border-radius: 1.25rem;
  }

  .alyxia-track {
    padding: 1.5rem 1rem 1.25rem;
    margin: 0;
    border-radius: 1.25rem;
  }

  .site-footer__grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer__cols {
    justify-content: center;
    width: 100%;
  }
}

/* Très petits écrans (ex. 320px) : une seule ligne, marges réduites, tailles homogènes */
@media (max-width: 420px) {
  .site-header {
    padding: 0.4rem 0.35rem;
  }

  .site-header__inner {
    gap: 0.2rem;
  }

  .site-logo__primary {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
  }

  .site-logo__secondary {
    font-size: 0.48rem;
    letter-spacing: 0.06em;
    margin-top: 0;
    line-height: 1.1;
  }

  .site-nav {
    gap: 0.06rem;
    justify-content: flex-end;
    min-width: 0;
  }

  .site-nav a {
    font-size: 9px;
    padding: 2px 4px;
    line-height: 1.2;
    border-radius: 999px;
  }
}

/* Maquette AlyxIA : colonne — FAQ puis chat+saisie, barre latérale compacte en bas */
@media (max-width: 700px) {
  .alyxia-demo-standalone-wrap {
    overflow-x: hidden;
    padding-left: 0;
    padding-right: 0;
  }

  .alyxia-demo {
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
    grid-template-rows: unset;
    height: auto;
    min-height: 0;
    min-width: 0 !important;
    max-width: 100%;
    border-radius: 16px;
  }

  .alyxia-demo .demo-sidebar,
  .alyxia-demo .demo-main,
  .alyxia-demo .demo-templates {
    grid-row: auto;
    width: 100%;
    min-height: 0;
  }

  .alyxia-demo .demo-templates {
    order: 1;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    max-height: none;
    flex: 0 0 auto;
  }

  .alyxia-demo .demo-main {
    order: 2;
    flex: 1 1 auto;
    min-height: 13rem;
  }

  .alyxia-demo .demo-sidebar {
    order: 3;
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex: 0 0 auto;
    max-height: 7.5rem;
    overflow: hidden;
  }

  .demo-templates-list {
    max-height: 12rem;
    overflow-y: auto;
  }

  .demo-chat-area {
    min-height: 6rem;
    max-height: min(38vh, 14rem);
    overflow-y: auto;
  }

  .demo-input-zone {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    padding: 0 14px 12px;
    background: linear-gradient(180deg, rgba(12, 16, 23, 0) 0%, #0c1017 28%);
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    max-width: 20rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }
}
