/* ============================================
   Lyzeo — styles.css
   ============================================ */

:root {
  --color-bg: #FFFFFF;
  --color-bg-warm: #FAF7F2;
  --color-dark: #14161A;
  --color-dark-2: #1B1E23;
  --color-text: #1A1A1A;
  --color-muted: #6B6B6B;
  --color-muted-light: #B5B5B5;
  --color-border: #E8E4DC;
  --color-border-dark: #2A2D33;
  --color-primary: #F04E37;
  --color-primary-hover: #DC3F2A;
  --color-orange-soft: #FFE9E3;

  --color-hl-bg: rgba(240, 78, 55, 0.10);

  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 8px;

  --shadow-sm: 0 1px 2px rgba(20, 22, 26, 0.05);
  --shadow-md: 0 4px 16px rgba(20, 22, 26, 0.06);
  --shadow-lg: 0 12px 40px rgba(20, 22, 26, 0.08);

  --container: 1320px;
  --gutter: 32px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 96px 0; }
.section--light { background: var(--color-bg); }
.section--alt   { background: var(--color-bg-warm); }
.section--dark  { background: var(--color-dark); color: #fff; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0;
  background: var(--color-bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
.loader__logo {
  width: 110px; height: auto;
  animation: loader-pulse 1.6s ease-in-out infinite;
}
.loader--done { opacity: 0; pointer-events: none; }
@keyframes loader-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.96); }
  50%      { opacity: 1;   transform: scale(1); }
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}
.header__inner {
  display: flex; align-items: center; gap: 32px;
  height: 80px;
}
.header__brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 26px; letter-spacing: -0.025em;
}
.header__logo { width: 40px; height: 40px; object-fit: contain; }
.header__nav {
  display: flex; gap: 28px; margin-left: auto;
  font-size: 14px; font-weight: 500; color: var(--color-muted);
}
.header__nav a:hover { color: var(--color-text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(240, 78, 55, 0.28);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}
.btn--sm    { padding: 10px 16px; font-size: 14px; }
.btn--block { width: 100%; padding: 16px 22px; font-size: 16px; }

/* ---------- Eyebrows / titles ---------- */
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 24px;
}
.eyebrow--light {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.75);
}
.eyebrow--orange {
  background: var(--color-orange-soft);
  border-color: transparent;
  color: var(--color-primary);
}
/* Hero eyebrow : plus gros, en orange */
.eyebrow--hero {
  background: var(--color-orange-soft);
  border: 1px solid rgba(240, 78, 55, 0.25);
  color: var(--color-primary);
  font-size: 14px;
  padding: 9px 20px;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.section__title {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin-bottom: 56px;
  max-width: 960px;
}
.section__title--light { color: #fff; }
.hl { color: var(--color-primary); }

.section__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}
.section__head .section__title { margin-bottom: 0; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 56px 0 96px;
  background: #ffffff;
  overflow: hidden;
}
.hero__grid {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(20,22,26,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20,22,26,0.05) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 50%, transparent 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
}
.hero__watermark {
  position: absolute;
  top: 50%; right: -6%;
  width: min(720px, 60vw);
  height: auto;
  transform: translateY(-50%);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
@media (max-width: 720px) {
  .hero__watermark { right: -20%; width: 90vw; opacity: 0.05; }
}
.hero__title {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  margin-top: 18px;
}
.hero__lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--color-muted);
  margin-bottom: 16px;
  max-width: 780px;
}
.hero__note {
  font-size: 15px;
  color: var(--color-muted);
  margin-bottom: 36px;
  max-width: 780px;
}
.hero__hl {
  color: var(--color-primary);
  font-weight: 600;
  background: linear-gradient(transparent 55%, var(--color-hl-bg) 55%);
  display: inline;
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  gap: 14px;
  height: 100%;
}
.card--dark {
  background: var(--color-dark-2);
  border: 1px solid var(--color-border-dark);
  color: rgba(255, 255, 255, 0.78);
}
.card--light {
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.card__icon, .card__icon-light {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
}
.card__icon { background: rgba(240, 78, 55, 0.15); color: var(--color-primary); flex-shrink: 0; }
.card__icon svg, .card__icon-light svg { width: 20px; height: 20px; }
.card__icon-light { background: var(--color-orange-soft); color: var(--color-primary); flex-shrink: 0; min-width: 40px; min-height: 40px; }

.card__head {
  display: flex; align-items: center; gap: 12px;
}
.card--dark .card__head { align-items: flex-start; }
.card__title {
  font-size: 17px; font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.card--light .card__title { padding-right: 50px; }
.card--light .card__title { color: var(--color-text); }
.card__text {
  font-size: 14.5px; line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}
.card--light .card__text { color: var(--color-muted); }

.card__num {
  position: absolute; top: 18px; right: 22px;
  font-size: 36px; font-weight: 800; letter-spacing: -0.04em;
  color: rgba(240, 78, 55, 0.14);
  pointer-events: none;
  line-height: 1;
}
.card--light .card__head {
  padding-right: 56px;
}

.card__list {
  margin-top: 6px;
  display: flex; flex-direction: column; gap: 8px;
}
.card__list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--color-text);
}
.card__list li::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
}
.carousel__main {
  display: flex;
  align-items: stretch;
  gap: 16px;
}
.carousel__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.carousel__track {
  display: flex;
  width: 100%;
  gap: 20px;
  align-items: stretch;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.carousel__track > .card {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
}
#concerne .carousel__track > .card { min-height: 280px; }
#piliers .carousel__track > .card { min-height: 400px; }

.carousel__arrow {
  flex-shrink: 0;
  align-self: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 20px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 6px 18px rgba(240, 78, 55, 0.28);
}
.carousel__arrow:hover:not(:disabled) {
  background: var(--color-primary-hover);
  transform: scale(1.05);
}
.carousel__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.carousel__dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 28px;
}
.carousel__dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: width 0.2s ease, background 0.2s ease;
}
.carousel__dot.is-active {
  width: 22px;
  background: var(--color-primary);
}
.section--light .carousel__dot { background: var(--color-border); }
.section--light .carousel__dot.is-active { background: var(--color-primary); }

/* ---------- Steps (timeline horizontale) ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 24px 0 12px;
}
.steps__line {
  position: absolute;
  top: 51px;
  left: 44px;
  right: calc((100% - 64px) / 3 - 44px);
  height: 2px;
  background: linear-gradient(to right, #F5C518 0%, #F5A623 50%, #F04E37 100%);
  border-radius: 2px;
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  padding: 0 16px;
  text-align: left;
}
.step__bullet {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 36px;
  box-shadow: 0 8px 22px rgba(20, 22, 26, 0.12);
  position: relative;
  z-index: 2;
}
.step__bullet--1 { background: #F5C518; box-shadow: 0 8px 22px rgba(245, 197, 24, 0.35); }
.step__bullet--2 { background: #F5A623; box-shadow: 0 8px 22px rgba(245, 166, 35, 0.35); }
.step__bullet--3 { background: var(--color-primary); box-shadow: 0 8px 22px rgba(240, 78, 55, 0.35); }
.step__eyebrow {
  display: block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.step__title {
  font-size: 21px; font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  line-height: 1.25;
}
.step__text {
  font-size: 15px; line-height: 1.65;
  color: var(--color-muted);
}
.steps__cta {
  margin-top: 56px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.steps__cta-note {
  font-size: 13px;
  color: var(--color-muted);
}

/* ---------- Team ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.team__card {
  display: flex; gap: 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  align-items: flex-start;
}
.team__photo {
  flex: 0 0 180px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: var(--color-orange-soft);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.team__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.team__photo--placeholder {
  font-size: 12px;
  color: var(--color-primary);
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.team__name {
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.01em;
}
.team__role {
  font-size: 13px; font-weight: 600;
  color: var(--color-primary);
  margin: 4px 0 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.team__bio {
  font-size: 14.5px; line-height: 1.65;
  color: var(--color-muted);
}

/* ---------- CTA / Form ---------- */
.section--cta {
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(240, 78, 55, 0.18), transparent 60%),
    var(--color-dark);
}
.cta__lead {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 760px;
  margin-top: -32px;
  margin-bottom: 40px;
}
.section--centered { text-align: center; }
.section--centered .eyebrow,
.section--centered .section__title,
.section--centered .cta__lead { margin-left: auto; margin-right: auto; }
.section--centered .section__title { max-width: none; }
.section--centered .form { margin-left: auto; margin-right: auto; text-align: left; }

.form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  max-width: 920px;
}
.form__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.form__field { display: block; position: relative; }
.form__label {
  position: absolute; left: -9999px;
}
.form input {
  width: 100%;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 15px;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.form input::placeholder { color: rgba(255, 255, 255, 0.4); }
.form input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.09);
}
.form__note {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}
.form__note a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form__note a:hover { color: #fff; }
.form__honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.form__status {
  font-size: 14px;
  text-align: center;
  margin-top: 4px;
  min-height: 0;
}
.form__status:empty { display: none; }
.form__status--success {
  color: #6BD49A;
  background: rgba(107, 212, 154, 0.08);
  border: 1px solid rgba(107, 212, 154, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.form__status--error {
  color: #FF8A75;
  background: rgba(255, 138, 117, 0.08);
  border: 1px solid rgba(255, 138, 117, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

/* ---------- Pages legales / contenu long ---------- */
.legal {
  padding: 72px 0 96px;
  background: var(--color-bg);
}
.legal__container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.legal__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600;
  color: var(--color-muted);
  margin-bottom: 24px;
}
.legal__back:hover { color: var(--color-primary); }
.legal__title {
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.legal__updated {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 40px;
}
.legal__content { color: var(--color-text); }
.legal__content h2 {
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.015em;
  margin: 40px 0 14px;
  line-height: 1.25;
}
.legal__content h3 {
  font-size: 17px; font-weight: 700;
  margin: 24px 0 10px;
}
.legal__content p,
.legal__content ul,
.legal__content ol {
  font-size: 15.5px; line-height: 1.7;
  color: var(--color-muted);
  margin-bottom: 14px;
}
.legal__content ul,
.legal__content ol {
  padding-left: 22px;
}
.legal__content ul { list-style: disc; }
.legal__content ol { list-style: decimal; }
.legal__content li { margin-bottom: 6px; }
.legal__content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal__content a:hover { color: var(--color-primary-hover); }
.legal__content strong { color: var(--color-text); font-weight: 700; }
.legal__placeholder {
  display: inline-block;
  background: rgba(240, 78, 55, 0.1);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px dashed rgba(240, 78, 55, 0.4);
  letter-spacing: 0.02em;
}

/* ---------- Page d'erreur 404 / page de confirmation ---------- */
.notice {
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 0;
  background: var(--color-bg);
}
.notice__inner { max-width: 560px; padding: 0 var(--gutter); }
.notice__code {
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.notice__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.notice__text {
  font-size: 16px;
  color: var(--color-muted);
  margin-bottom: 28px;
}
.notice__actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ---------- Contact strip ---------- */
.contact-strip {
  padding: 48px 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}
.contact-strip__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}
.contact-strip__title {
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 4px;
}
.contact-strip__items {
  display: flex; gap: 40px;
}
.contact-strip__item {
  display: flex; align-items: center; gap: 14px;
  transition: color 0.15s ease;
}
.contact-strip__item:hover { color: var(--color-primary); }
.contact-strip__icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--color-orange-soft);
  color: var(--color-primary);
}
.contact-strip__icon svg { width: 18px; height: 18px; }
.contact-strip__meta { display: flex; flex-direction: column; gap: 2px; }
.contact-strip__label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-muted);
}
.contact-strip__value {
  font-size: 15px; font-weight: 600;
  color: var(--color-text);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 32px 0;
  font-size: 14px;
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 700;
}
.footer__logo { width: 24px; height: 24px; }
.footer__nav { display: flex; gap: 24px; }
.footer__nav a:hover { color: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .carousel__track > .card { flex: 0 0 calc((100% - 20px) / 2); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps__line { display: none; }
  .team { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(36px, 7vw, 56px); }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .section { padding: 64px 0; }
  .hero { padding: 40px 0 56px; }
  .header__nav { display: none; }
  .carousel__main { gap: 8px; }
  .carousel__arrow { width: 40px; height: 40px; }
  .carousel__track > .card { flex: 0 0 100%; }
  .form__row { grid-template-columns: 1fr; }
  .contact-strip__inner { grid-template-columns: 1fr; }
  .contact-strip__items { flex-direction: column; gap: 20px; }
  .team__card { flex-direction: column; align-items: center; text-align: center; }
  .footer__inner { flex-direction: column; text-align: center; }
}
