/* ==========================================================
   LISORA — accueil.css
   ========================================================== */

/* Utilitaires de section */
.sec {
  padding: var(--section) 0;
}
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.sec-title {
  margin-top: 18px;
  font: 300 clamp(1.5rem, 3vw, 2.5rem)/1.2 var(--font-title);
  letter-spacing: -0.015em;
}

/* ---------- 1. HERO (champ de points : l'ordre dans le bruit) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 860px;
  padding: calc(var(--header-h) + 48px) 0 40px;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}
/* Voile sombre côté texte, pour la lisibilité */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(12, 12, 14, 0.94) 0%,
    rgba(12, 12, 14, 0.72) 36%,
    rgba(12, 12, 14, 0) 68%
  );
}
/* Fondu vers la section suivante */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 160px;
  pointer-events: none;
  background: linear-gradient(to top, var(--color-bg), transparent);
}
.hero__inner {
  display: flex;
  flex-direction: column;
}
.hero__main {
  margin: auto 0;
  padding-top: 24px;
}

.hero h1 {
  margin: 28px 0 40px;
  font: 300 clamp(2.2rem, 7.4vw, 7rem)/1.02 var(--font-title);
  letter-spacing: -0.035em;
}
.hero h1 .grad {
  font-weight: 500;
  font-style: normal;
}
.hero__key {
  font-weight: 500;
  color: var(--white);
}
.noisy {
  display: inline-block;
  color: var(--text-muted);
  font-weight: 200;
  animation: noise 3s steps(1) infinite;
}
@keyframes noise {
  0% {
    transform: none;
    text-shadow: none;
  }
  8% {
    transform: translate(2px, -1px);
    text-shadow:
      3px 0 rgba(150, 96, 120, 0.7),
      -3px 0 rgba(197, 243, 250, 0.6);
  }
  12% {
    transform: none;
    text-shadow: none;
  }
  52% {
    transform: translate(-2px, 1px);
    text-shadow:
      -3px 0 rgba(150, 96, 120, 0.7),
      3px 0 rgba(197, 243, 250, 0.6);
  }
  56% {
    transform: none;
    text-shadow: none;
  }
  100% {
    transform: none;
    text-shadow: none;
  }
}

.hero__row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 32px 64px;
}
.hero__lead {
  max-width: 460px;
  color: rgba(243, 240, 233, 0.72);
  font-size: 1.05rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__coords {
  position: absolute;
  left: 72%;
  top: 50%;
  margin: 22px 0 0 22px;
  font: 400 0.58rem var(--font-title);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  pointer-events: none;
}
.hero__foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font: 400 0.64rem var(--font-title);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .hero {
    min-height: 780px;
  }
  .hero::before {
    background: linear-gradient(
      to bottom,
      rgba(12, 12, 14, 0.35),
      rgba(12, 12, 14, 0.8)
    );
  }
  .hero__coords {
    left: 80%;
    top: 20%;
  }
  .hero__row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 2. MANIFESTE (grille 25 / 75) ---------- */
.manifesto__grid {
  display: grid;
  grid-template-columns: 25% 1fr;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.manifesto__label {
  opacity: 0.45;
}
.manifesto p {
  max-width: 900px;
  font: 300 clamp(1.35rem, 3vw, 2.6rem)/1.38 var(--font-body);
  letter-spacing: -0.01em;
}
.manifesto .w {
  color: rgba(243, 240, 233, 0.2);
  transition: color 0.6s;
}
.manifesto .w.on {
  color: var(--white-cream);
}
.manifesto .w.hl.on {
  color: var(--blue-light);
}

/* ---------- 3. CRÉATION WEB (image de fond) ---------- */
.domains {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-block: 1px solid var(--border);
}
.domains__bg {
  position: absolute;
  inset: -12% 0;
  z-index: -2;
  background:
    url("../assets/images/background.webp") center / cover no-repeat,
    var(--bg-secondary);
}
/* Voile : dense à gauche (texte), léger à droite (l'image respire) */
.domains::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(12, 12, 14, 0.9) 0%,
    rgba(12, 12, 14, 0.62) 55%,
    rgba(12, 12, 14, 0.35) 100%
  );
}
.dom__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.dom__text .sec-title {
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}
.dom__intro {
  max-width: 480px;
  margin: 24px 0 36px;
  color: rgba(243, 240, 233, 0.78);
}

/* Panneau en verre dépoli */
.dom__panel {
  padding: clamp(8px, 1.5vw, 16px) clamp(20px, 3vw, 36px);
  background: rgba(12, 12, 14, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
}
.dom__item + .dom__item {
  border-top: 1px solid var(--border);
}
.dom__item summary {
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  align-items: center;
  gap: 8px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}
.dom__item summary::-webkit-details-marker {
  display: none;
}
.dom__n {
  font: 400 0.68rem var(--font-title);
  letter-spacing: 0.14em;
  color: var(--text-muted);
  transition: color 0.3s;
}
.dom__t {
  font: 300 clamp(1rem, 1.7vw, 1.3rem) / 1.3 var(--font-title);
  transition: transform 0.5s var(--ease);
}
.dom__item summary:hover .dom__t {
  transform: translateX(8px);
}
.dom__item[open] .dom__n {
  color: var(--blue-light);
}
.dom__item summary i {
  position: relative;
  width: 14px;
  height: 14px;
  justify-self: end;
}
.dom__item summary i::before,
.dom__item summary i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--white-cream);
  transition: transform 0.4s var(--ease);
}
.dom__item summary i::after {
  transform: rotate(90deg);
}
.dom__item[open] summary i::after {
  transform: rotate(0);
}
.dom__c {
  padding: 0 0 26px 52px;
  animation: domOpen 0.5s var(--ease);
}
.dom__c p {
  max-width: 440px;
  color: rgba(243, 240, 233, 0.78);
}
.dom__c .chips {
  margin-top: 16px;
}
@keyframes domOpen {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 960px) {
  .dom__grid {
    grid-template-columns: 1fr;
  }
  .domains::before {
    background: rgba(12, 12, 14, 0.78);
  } /* voile uniforme en une colonne */
}
@media (max-width: 640px) {
  .dom__text .btn {
    width: 100%;
  }
  .dom__c {
    padding-left: 0;
  }
}

/* ---------- 3b. QUI EST LISORA ---------- */
.who {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.who__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
}
.who h2 {
  margin: 22px 0 clamp(24px, 3vw, 36px);
  font: 300 clamp(1.4rem, 2.6vw, 2.2rem) / 1.2 var(--font-title);
  letter-spacing: -0.02em;
}
.who__text {
  max-width: 520px;
  margin-bottom: 32px;
  color: rgba(243, 240, 233, 0.78);
  font-size: 1.05rem;
}
.who__text strong {
  color: var(--white-cream);
  font-weight: 500;
}

/* Diagramme : deux cercles qui se rejoignent */
.venn {
  position: relative;
}
.venn svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.venn .ring {
  fill: none;
  stroke: rgba(243, 240, 233, 0.28);
  stroke-width: 1;
}
.venn .lens {
  opacity: 0.3;
}
.js .venn .ring {
  stroke-dasharray: 1006;
  stroke-dashoffset: 1006;
  transition: stroke-dashoffset 2.2s var(--ease);
}
.js .venn .ring--b {
  transition-delay: 0.35s;
}
.js .venn.is-in .ring {
  stroke-dashoffset: 0;
}
.js .venn .lens {
  opacity: 0;
  transition: opacity 1.6s ease 1.1s;
}
.js .venn.is-in .lens {
  opacity: 0.3;
}

.venn__l {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  font: 500 0.56rem var(--font-title);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: var(--text-muted);
}
.venn__l--a {
  left: 23.3%;
}
.venn__l--b {
  left: 76.7%;
}
.venn__l--c {
  left: 50%;
  color: var(--white-cream);
  font-size: 0.66rem;
}
.venn__l--c::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--gradient);
  animation: pulse 3.2s ease-in-out infinite;
}

/* Les qualités sous chaque cercle */
.who__traits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin-top: 28px;
}
.who__traits li {
  position: relative;
  padding: 12px 0 12px 18px;
  border-top: 1px solid var(--border);
  font: 500 0.62rem var(--font-title);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-grey);
}
.who__traits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 1px;
  background: var(--gradient);
}

@media (max-width: 900px) {
  .who__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 4. RÉALISATIONS (grille décalée) ---------- */
.works__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(40px, 5vw, 64px) 32px;
}
.work {
  display: block;
  text-decoration: none;
}
.work:nth-child(1) {
  grid-column: 1 / 8;
}
.work:nth-child(2) {
  grid-column: 9 / 13;
  align-self: start;
  margin-top: clamp(0px, 8vw, 112px);
}
.work:nth-child(3) {
  grid-column: 3 / 10;
}
.work__v {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: border-color 0.6s;
}
.work__img {
  position: absolute;
  inset: 0;
  transition: transform 1.4s var(--ease);
  /* Remplace --img via style="" dans le HTML. Sans image, le motif de lignes reste visible. */
  background:
    var(--img, none) center / cover no-repeat,
    repeating-linear-gradient(
      135deg,
      transparent 0 22px,
      rgba(243, 240, 233, 0.045) 22px 23px
    );
}
.work:hover .work__img {
  transform: scale(1.05);
}
.work:hover .work__v {
  border-color: rgba(197, 243, 250, 0.5);
}
.work__ph {
  position: absolute;
  top: 14px;
  left: 14px;
  font: 400 0.56rem var(--font-title);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.work__go {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  background: var(--white-cream);
  color: var(--color-bg);
  font: 600 0.58rem var(--font-title);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.5s,
    transform 0.6s var(--ease);
}
.work:hover .work__go,
.work:focus-visible .work__go {
  opacity: 1;
  transform: none;
}
.work__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 18px;
}
.work h3 {
  font: 400 1rem var(--font-title);
}
.work__type {
  font: 500 0.6rem var(--font-title);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-grey);
}
.work p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 460px;
}

/* ---------- 5. POURQUOI CHOISIR LISORA (cartes rectangle / carré) ---------- */
/* Conteneur élargi : presque toute la largeur de l'écran, avec une petite marge */
.wrap--wide {
  width: min(100% - 2 * clamp(16px, 2vw, 32px), 1800px);
}
.adv__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch; /* les deux colonnes ont la même hauteur */
}
.adv__col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.adv {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}
.adv--rect {
  flex: 1 1 auto; /* absorbe la différence de hauteur entre les colonnes */
  aspect-ratio: 16 / 10;
  border-radius: 16px;
}
.adv--sq {
  flex: none;
  aspect-ratio: 1;
  border-radius: 48px;
}
.adv__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  transition: transform 1.4s var(--ease);
  /* Image via style="--img:url(...)" dans le HTML ; sans image, le motif de lignes reste visible */
  background:
    var(--img, none) center / cover no-repeat,
    repeating-linear-gradient(
      135deg,
      transparent 0 22px,
      rgba(243, 240, 233, 0.04) 22px 23px
    );
}
.adv::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(12, 12, 14, 0.92) 8%,
    rgba(12, 12, 14, 0.5) 70%,
    rgba(12, 12, 14, 0.32)
  );
}
.adv:hover .adv__img {
  transform: scale(1.05);
}
.adv__in {
  width: 100%;
  padding: clamp(22px, 3vw, 40px);
}
.adv__n {
  font: 400 0.7rem var(--font-title);
  letter-spacing: 0.14em;
  color: var(--blue-light);
}
.adv h3 {
  margin: 12px 0 10px;
  font: 300 clamp(1.1rem, 2vw, 1.9rem)/1.25 var(--font-title);
}
.adv p {
  max-width: 560px;
  color: rgba(243, 240, 233, 0.82);
  font-size: 1rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.chips li {
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(12, 12, 14, 0.4);
  font: 500 0.56rem var(--font-title);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-grey);
}

/* ---------- 6. APPROCHE ---------- */
.rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-bottom: 0;
}
.rail::before,
.rail::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}
.rail::after {
  background: var(--gradient);
}
.js .rail::after {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 2.4s var(--ease);
}
.js .rail.is-in::after {
  transform: scaleX(1);
}
.step {
  position: relative;
  padding-top: 34px;
}
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--blue-grey);
}
.step b {
  display: block;
  margin-bottom: 6px;
  font: 400 0.8rem var(--font-title);
}
.step span {
  display: block;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

/* ---------- 7. APPEL À L'ACTION ---------- */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--section) * 1.15) 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(1400px, 170%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: repeating-radial-gradient(
    circle,
    transparent 0 88px,
    var(--border) 88px 89px
  );
  -webkit-mask: radial-gradient(circle, #000 0, transparent 60%);
  mask: radial-gradient(circle, #000 0, transparent 60%);
}
.cta h2 {
  margin: 22px auto 22px;
  max-width: 900px;
  font: 300 clamp(1.8rem, 5vw, 4rem)/1.12 var(--font-title);
  letter-spacing: -0.02em;
}
.cta p {
  max-width: 520px;
  margin: 0 auto 40px;
  color: var(--text-muted);
}
.cta__btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .beacon {
    width: min(100%, 380px);
  }
  .manifesto__grid {
    grid-template-columns: 1fr;
  }
  .works__grid {
    grid-template-columns: 1fr; /* une seule colonne : plus de 11 espaces de 32px */
  }
  .work:nth-child(n) {
    grid-column: auto;
    margin-top: 0;
  }

  .domains__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 32px;
  }
  .domains__list li,
  .domains__list li + li {
    padding: 24px 0;
    border-left: 0;
    border-bottom: 1px solid var(--border);
  }
  .who__body {
    margin-left: 0;
  }
}
@media (max-width: 900px) {
  .adv__grid {
    grid-template-columns: 1fr;
  }
  .adv__col {
    display: contents;
  }
  .adv--rect,
  .adv--sq {
    flex: none;
    aspect-ratio: auto;
    min-height: 340px;
  }
  .adv__col:nth-child(1) .adv:nth-child(1) {
    order: 1;
  }
  .adv__col:nth-child(2) .adv:nth-child(1) {
    order: 2;
  }
  .adv__col:nth-child(1) .adv:nth-child(2) {
    order: 3;
  }
  .adv__col:nth-child(2) .adv:nth-child(2) {
    order: 4;
  }
  .adv__col:nth-child(1) .adv:nth-child(3) {
    order: 5;
  }
  .adv__col:nth-child(2) .adv:nth-child(3) {
    order: 6;
  }
}
@media (max-width: 800px) {
  .rail {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .rail::before,
  .rail::after {
    display: none;
  }
  .step {
    padding: 0 0 0 30px;
    border-left: 1px solid var(--border);
  }
  .step::before {
    top: 4px;
    left: -7px;
  }
}
@media (max-width: 640px) {
  .domains__list {
    grid-template-columns: 1fr;
  }
  .adv--sq {
    border-radius: 32px;
  }
  .hero__cta .btn,
  .cta__btns .btn,
  .domains__intro .btn {
    width: 100%;
  }
  .work__go {
    opacity: 1;
    transform: none;
  }
}
