/* =========================
   Lbee Développement - Landing page
   Breakpoint principal : 900px
   ========================= */

/* ---------- CSS Variables ---------- */
:root {
  --color-bg: #f3eef8;          /* lilas très clair (maquette) */
  --color-surface: #ffffff;
  --color-text: #141020;
  --color-text-soft: #4d465c;
  --color-border: #dfd2f7;
  --color-border-strong: #d0b9fb;

  --color-accent: #8b3dff;
  --color-accent-2: #6f35ef;
  --color-accent-text: #ffffff;

  --shadow-soft: 0 10px 30px rgba(32, 12, 66, 0.06);
  --shadow-header: 0 8px 24px rgba(20, 16, 32, 0.06);

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container-max: 1200px;
  --container-padding: 24px;

  --header-height-mobile: 76px;
  --header-height-desktop: 80px;

  --section-y: 112px;
  --section-y-mobile: 72px;

  --font-title: "Sora", system-ui, sans-serif;
  --font-body: "Onest", system-ui, sans-serif;

  --transition-fast: 160ms ease;
  --transition-base: 240ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.4;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

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

p,
h1,
h2,
h3,
ol,
ul {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

.container {
  width: min(100%, calc(var(--container-max) + (var(--container-padding) * 2)));
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: var(--section-y);
  background: var(--color-bg);
}

.section--white {
  background: #f7f5fa;
}

.section-header {
  margin-bottom: 44px;
  text-align: center;
}

.section-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(2rem, 2.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.skip-link,
.sr-only {
  position: absolute;
}

.skip-link {
  top: -100px;
  left: 12px;
  z-index: 9999;
  background: var(--color-text);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.text-gradient {
  background: linear-gradient(90deg, var(--color-accent) 0%, #9a52ff 55%, #7e40f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    opacity var(--transition-fast);
}

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

.button:active {
  transform: translateY(0);
}

.button:focus-visible {
  outline: 3px solid rgba(139, 61, 255, 0.25);
  outline-offset: 3px;
}

.button--primary {
  color: var(--color-accent-text);
  background: linear-gradient(90deg, var(--color-accent) 0%, #8e43ff 35%, #7d3cf0 100%);
  box-shadow: 0 10px 24px rgba(139, 61, 255, 0.18);
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 238, 248, 0.6);
  backdrop-filter: blur(40px);
}

.site-header.is-menu-open {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-header);
}

.header-inner {
  min-height: var(--header-height-mobile);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}

.site-nav {
  display: none;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-list a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-soft);
  transition: color var(--transition-fast);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--color-text);
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 3px solid rgba(139, 61, 255, 0.25);
  outline-offset: 2px;
}

.nav-toggle__line {
  width: 100%;
  height: 2.5px;
  border-radius: 999px;
  background: var(--color-text);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.site-header.is-menu-open .nav-toggle__line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.site-header.is-menu-open .nav-toggle__line:nth-child(2) {
  opacity: 0;
}
.site-header.is-menu-open .nav-toggle__line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-menu {
  border-top: 1px solid var(--color-border);
  background: rgba(243, 238, 248, 0.98);
}

.mobile-nav {
  padding-top: 10px;
  padding-bottom: 16px;
}

.mobile-nav-list {
  list-style: none;
  display: grid;
  gap: 6px;
}

.mobile-nav-list a {
  display: block;
  padding: 14px 8px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--color-text);
}

.mobile-nav-list a:hover,
.mobile-nav-list a:focus-visible {
  background: rgba(139, 61, 255, 0.06);
  outline: none;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 24px;
  padding-bottom: 24px;
}

.hero__layout {
  display: flex;
  flex-direction: column-reverse;
  gap: 28px;
  align-items: center;
}

.hero__visual {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero__visual img {
  width: min(100%, 380px);
  object-fit: contain;
}

.hero__text {
  max-width: 720px;
  text-align: center;
}

.hero__title {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 9vw, 4.9rem);
  line-height: 0.97;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin-bottom: 26px;
}

.hero__subtitle {
  max-width: 700px;
  font-size: clamp(1.05rem, 2.6vw, 1.12rem);
  color: var(--color-text-soft);
  line-height: 1.45;
  margin-bottom: 28px;
}

.button {
  min-width: 224px;
  min-height: 58px;
  font-size: 1rem;
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.project-card {
  border: 1px solid var(--color-border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: 0 6px 16px rgba(37, 16, 79, 0.03);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 22px rgba(37, 16, 79, 0.08);
}

.project-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #efeaf8;
}

.project-card__body {
  padding: 16px 16px 18px;
}

.project-card__title {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 0;
}

.service-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
}

.service-card:first-child {
  border-top: 0;
}

.service-card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}

.service-card__icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: grayscale(100%) contrast(120%);
}

.service-card__title {
  font-family: var(--font-title);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.service-card__desc {
  color: var(--color-text-soft);
  line-height: 1.35;
  margin-bottom: 12px;
}

.service-card__list {
  list-style: none;
  display: grid;
  gap: 7px;
}

.service-card__list li {
  position: relative;
  padding-left: 22px;
  line-height: 1.25;
}

.service-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 12px;
  height: 12px;
  border: 1.8px solid var(--color-text);
  border-radius: 50%;
}

.service-card__list li::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.58em;
  width: 5px;
  height: 3px;
  border-left: 1.6px solid var(--color-text);
  border-bottom: 1.6px solid var(--color-text);
  transform: rotate(-45deg);
}

/* ---------- Process ---------- */
.process-steps {
  list-style: none;
  display: grid;
  gap: 26px;
  max-width: 980px;
  margin-inline: auto;
}

.process-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
}

.process-step__illustration {
  display: none; /* mobile maquette: texte only */
}

.process-step__content {
  max-width: 680px;
}

.process-step__title {
  font-family: var(--font-title);
  font-size: clamp(1.25rem, 3.2vw, 1.55rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.step-number {
  display: inline-block;
  margin-right: 8px;
  font-size: 1.25em;
  line-height: 1;
  font-weight: 800;
}

.process-step__meta {
  color: var(--color-text);
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.15;
}

.process-step__desc {
  color: var(--color-text-soft);
  line-height: 1.35;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 860px;
}

.faq-list {
  display: grid;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 0;
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
}

.faq-question span:first-child {
  font-family: var(--font-title);
  font-size: clamp(1.18rem, 3vw, 1.45rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.faq-question:focus-visible {
  outline: 3px solid rgba(139, 61, 255, 0.2);
  outline-offset: 4px;
  border-radius: 8px;
}

.faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 16px;
  height: 2px;
  background: var(--color-text);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0.4);
}

.faq-answer {
  padding: 0 0 20px;
}

.faq-answer p {
  color: var(--color-text-soft);
  line-height: 1.4;
  max-width: 90%;
}

/* ---------- Contact ---------- */
.contact {
  max-width: 860px;
}

.contact-form {
  max-width: 760px;
  margin-inline: auto;
}

.form-field {
  border: 1px solid var(--color-border);
  border-bottom: 0;
  background: transparent;
}

.form-field:first-of-type {
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  overflow: hidden;
}

.form-field--textarea {
  border-bottom: 1px solid var(--color-border);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  overflow: hidden;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 16px 18px;
  color: var(--color-text);
  outline: none;
}

.contact-form input {
  min-height: 54px;
}

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

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

.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(255, 255, 255, 0.45);
}

.contact-form__submit {
  margin: 26px auto 0;
  font-size: 1rem;
}

/* ---------- Footer ---------- */
/* ---------- Footer ---------- */
.site-footer {
  padding-block: 44px 28px;
  background: var(--color-bg);
  border-top: 1px solid rgba(223, 210, 247, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.footer-block {
  padding: 18px 18px;
}

.footer-title {
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.footer-text {
  color: var(--color-text-soft);
  line-height: 1.45;
  font-size: 0.95rem;
}

.footer-meta {
  margin-top: 12px;
}

.footer-label {
  color: var(--color-text);
  font-weight: 700;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--color-text-soft);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-text);
  outline: none;
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 18px;
  text-align: center;
  border-top: 1px solid rgba(223, 210, 247, 0.6);
}

.site-footer small {
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.35;
}

/* Desktop: 3 colonnes */
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 22px;
    align-items: start;
  }

  .footer-block {
    padding: 20px 22px;
  }

  .footer-bottom {
    margin-top: 22px;
    padding-top: 16px;
  }

  .site-footer small {
    font-size: 0.82rem;
  }
}

/* =========================
   Thank you page (/merci/)
   ========================= */

.thankyou-page {
  min-height: calc(100dvh - var(--header-height-mobile));
  display: grid;
  align-items: center;
}

.thankyou {
  padding-block: 64px;
}

.thankyou__inner {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 22px;
  max-width: 760px;
}

.thankyou__text {
  font-family: var(--font-body);
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.thankyou__cta {
  min-width: 220px;
}

/* Desktop adjustment to keep vertical centering perfect with desktop header height */
@media (min-width: 900px) {
  .thankyou-page {
    min-height: calc(100dvh - var(--header-height-desktop));
  }

  .thankyou {
    padding-block: 80px;
  }
}

/* ---------- Desktop (>=900px) ---------- */
@media (min-width: 900px) {
  html {
    scroll-padding-top: 96px;
  }

  .site-header {
    border-bottom-color: transparent;
  }

  .site-header:not(.is-menu-open) {
    box-shadow: none;
  }

  .header-inner {
    min-height: var(--header-height-desktop);
    gap: 32px;
  }

  .brand {
    font-size: 1.5rem;
  }

  .site-nav {
    display: block;
    margin-left: auto;
  }

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

  .hero {
    padding-top: 36px;
    padding-bottom: 0px;
  }

  .hero__layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
  }

  .hero__text {
    text-align: left;
    margin-inline: auto;
    transform: translateY(-10px);
  }

  .hero__title {
    margin-bottom: 22px;
    font-size: clamp(3rem, 4.5vw, 5.2rem);
  }

  .hero__subtitle {
    max-width: 560px;
    margin-bottom: 24px;
    font-size: 1rem;
  }

  .hero__visual {
    justify-content: flex-end;
    align-self: stretch;
  }

  .hero__visual img {
    width: min(100%, 510px);
    margin-right: -6px;
  }

  .section {
    padding-block: 124px;
  }

  .section-header {
    margin-bottom: 52px;
  }

  /* Projects layout desktop: 3 columns then 2 cards on second row */
  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 28px;
    align-items: start;
  }

  .projects-grid .project-card:nth-child(4) {
    grid-column: 1 / 2;
  }

  .projects-grid .project-card:nth-child(5) {
    grid-column: 2 / 3;
  }

  .project-card {
    border-radius: 16px;
  }

  .project-card__body {
    padding: 12px 14px 16px;
  }

  .project-card__title {
    font-size: 1rem;
    line-height: 1.12;
  }

  /* Services desktop */
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    border-top: 0;
    gap: 0;
  }

  .service-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 12px 28px;
    border-top: 0;
    border-left: 1px solid var(--color-border);
  }

  .service-card:first-child {
    border-left: 0;
  }

  .service-card__icon {
    width: 46px;
    height: 46px;
  }

  .service-card__icon img {
    width: 36px;
    height: 36px;
  }

  .service-card__title {
    font-size: 1.25rem;
    min-height: 2.4em;
  }

  .service-card__desc {
    font-size: 0.94rem;
    margin-bottom: 10px;
  }

  .service-card__list li {
    font-size: 0.92rem;
  }

  /* Process desktop with alternating illustrations */
  .process-steps {
    gap: 32px;
    max-width: 600px;
  }

  .process-step {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 18px;
    min-height: 120px;
  }

  .process-step__illustration {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .process-step__illustration img {
    width: 230px;
    height: auto;
    object-fit: contain;
  }

  .process-step:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) 240px;
  }

  .process-step:nth-child(even) .process-step__illustration {
    order: 2;
  }

  .process-step:nth-child(even) .process-step__content {
    order: 1;
    text-align: left;
  }

  .process-step__title {
    font-size: 1.28rem;
    line-height: 1.05;
    margin-bottom: 2px;
  }

  .process-step__meta {
    font-size: 0.92rem;
    margin-bottom: 4px;
  }

  .process-step__desc {
    font-size: 0.9rem;
    max-width: 520px;
  }

  /* FAQ desktop spacing */
  .faq .section-header {
    margin-bottom: 38px;
  }

  .faq-question {
    padding: 19px 0 18px;
  }

  .faq-question span:first-child {
    font-size: 1.05rem;
    font-family: var(--font-body);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .faq-answer {
    padding-bottom: 18px;
  }

  .faq-answer p {
    font-size: 0.9rem;
    max-width: 100%;
  }

  /* Contact desktop */
  .contact .section-header {
    margin-bottom: 34px;
  }

  .contact-form {
    max-width: 520px;
  }

  .contact-form input {
    min-height: 48px;
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .contact-form textarea {
    min-height: 124px;
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .contact-form__submit {
    margin-top: 22px;
    padding-inline: 24px;
    font-size: 0.95rem;
  }

  .site-footer {
    padding-top: 22px;
    padding-bottom: 26px;
  }

  .site-footer small {
    font-size: 0.78rem;
  }
}

/* ---------- Mobile/Tablet (<900px) tuning ---------- */
@media (max-width: 899.98px) {
  html {
    scroll-padding-top: 84px;
  }

  .section {
    padding-block: var(--section-y-mobile);
  }

  .section-header {
    margin-bottom: 34px;
  }

  .section-title {
    font-size: clamp(2.15rem, 9vw, 2.85rem);
    line-height: 0.98;
  }

  .button {
    width: 100%;
    max-width: 520px;
  }

  .faq-answer p {
    max-width: 100%;
    font-size: 0.98rem;
  }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

/* Cards projets cliquables */
.project-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-card--link:focus-visible {
  outline: 3px solid rgba(139, 61, 255, 0.22);
  outline-offset: 4px;
  border-radius: 18px;
}

.project-card--link .project-card__title {
  transition: color 180ms ease;
}
