/* =========================================================
   SEO.CSS
   iartherapie
   Sections commerciales / SEO / configurateur
   ========================================================= */


/* =========================================================
   STRUCTURE GENERALE DES SECTIONS SEO
   ========================================================= */

.seo-section {
  width: min(940px, calc(100% - 32px));
  margin: 0 auto 28px;
}

.seo-section-header {
  max-width: 780px;
  margin: 0 auto 26px;
  text-align: center;
}

.seo-eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0 0 14px;
  padding: 7px 13px;

  border: 1px solid rgba(140, 240, 196, 0.35);
  border-radius: 999px;

  background: rgba(8, 20, 32, 0.68);
  color: var(--accent-2);

  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.seo-section-title {
  max-width: 820px;

  margin: 0 auto 14px;

  color: var(--text);

  font-size: clamp(1.65rem, 3.6vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.seo-section-intro,
.services-intro {
  max-width: 760px;

  margin: 0 auto;

  color: rgba(237, 242, 255, 0.76);

  font-size: clamp(1rem, 2vw, 1.08rem);
  line-height: 1.68;
}


/* =========================================================
   HERO SEO INTRO
   Complète les styles déjà présents dans style.css
   ========================================================= */

.hero-seo-intro {
  max-width: 760px;

  margin: 0 auto 14px;

  color: var(--accent-2);

  font-size: clamp(0.98rem, 2vw, 1.08rem);
  font-weight: 700;
  line-height: 1.62;
}

.hero-section .hero-subtitle {
  margin-top: 6px;
}


/* =========================================================
   SERVICES
   ========================================================= */

.services-section {
  padding: clamp(26px, 4vw, 42px);

  border: 1px solid rgba(220, 235, 255, 0.13);
  border-radius: 28px;

  background:
    radial-gradient(
      circle at 14% 12%,
      rgba(140, 240, 196, 0.08),
      transparent 34%
    ),
    radial-gradient(
      circle at 92% 8%,
      rgba(110, 168, 255, 0.09),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      rgba(18, 27, 44, 0.76),
      rgba(7, 12, 23, 0.9)
    );

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.24);
}

.services-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 18px;
}

.service-card {
  position: relative;

  min-height: 180px;

  padding: 24px;

  border: 1px solid rgba(220, 235, 255, 0.13);
  border-radius: 22px;

  background:
    linear-gradient(
      180deg,
      rgba(24, 35, 55, 0.76),
      rgba(8, 13, 24, 0.9)
    );

  overflow: hidden;

  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.service-card::before {
  content: "";

  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 2px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(140, 240, 196, 0.8),
      rgba(110, 168, 255, 0.8),
      transparent
    );

  opacity: 0.65;
}

.service-card:hover {
  transform: translateY(-2px);

  border-color: rgba(140, 240, 196, 0.28);

  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.24);
}

.service-card h3 {
  margin: 0 0 11px;

  color: var(--accent-2);

  font-size: 1.15rem;
  line-height: 1.3;
}

.service-card p {
  margin: 0;

  color: rgba(237, 242, 255, 0.76);

  line-height: 1.62;
}


/* =========================================================
   CONFIGURATEUR / PERSONNALISATION
   ========================================================= */

.personalization-section {
  padding: clamp(28px, 5vw, 48px);

  border: 1px solid rgba(110, 168, 255, 0.22);
  border-radius: 30px;

  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(110, 168, 255, 0.14),
      transparent 38%
    ),
    radial-gradient(
      circle at 15% 85%,
      rgba(140, 240, 196, 0.08),
      transparent 35%
    ),
    linear-gradient(
      180deg,
      rgba(16, 26, 46, 0.88),
      rgba(7, 13, 25, 0.95)
    );

  box-shadow:
    0 22px 68px rgba(0, 0, 0, 0.26);
}

.personalization-section .seo-section-header {
  margin-bottom: 30px;
}

.personalization-flow {
  position: relative;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 16px;
}

.personalization-step {
  position: relative;

  min-height: 155px;

  padding: 22px 20px;

  border: 1px solid rgba(220, 235, 255, 0.12);
  border-radius: 20px;

  background:
    rgba(5, 10, 22, 0.52);

  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.personalization-step:hover {
  transform: translateY(-2px);

  border-color: rgba(110, 168, 255, 0.32);

  background:
    rgba(10, 19, 34, 0.72);
}

.personalization-step strong {
  display: block;

  margin: 0 0 9px;

  color: var(--accent-3);

  font-size: 1rem;
  font-weight: 900;
}

.personalization-step p {
  margin: 0;

  color: rgba(237, 242, 255, 0.75);

  line-height: 1.56;
}


/* =========================================================
   LIEN VISUEL ENTRE LES ETAPES
   Desktop uniquement
   ========================================================= */

.personalization-step:not(:last-child)::after {
  content: "→";

  position: absolute;

  top: 50%;
  right: -14px;

  z-index: 4;

  display: grid;
  place-items: center;

  width: 28px;
  height: 28px;

  border: 1px solid rgba(110, 168, 255, 0.26);
  border-radius: 50%;

  background: #0b1322;
  color: var(--accent);

  font-size: 0.95rem;
  font-weight: 900;

  transform: translateY(-50%);
}


/* =========================================================
   MODES DE CREATION
   Ajustements du value-grid existant
   ========================================================= */

.value-grid {
  margin-top: 28px;
}

.value-card {
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.value-card:hover {
  transform: translateY(-2px);

  border-color: rgba(140, 240, 196, 0.25);

  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.22);
}


/* =========================================================
   GENERATEUR PAR ELEMENTS
   Séparation visuelle après les sections commerciales
   ========================================================= */

.element-selection-shell {
  margin-top: 30px;
  margin-bottom: 30px;
}

.element-selector-card {
  position: relative;
}

.element-selector-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 50%;

  width: 34%;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(140, 240, 196, 0.65),
      transparent
    );

  transform: translateX(-50%);
}


/* =========================================================
   GEMINI
   Raccord avec le nouveau positionnement
   ========================================================= */

.banana-fusion-section {
  margin-top: 30px;
  margin-bottom: 30px;
}

.banana-intro {
  max-width: 760px;

  margin-left: auto;
  margin-right: auto;

  text-align: center;
}

.banana-intro h2 {
  margin-top: 0;
}

.banana-intro p {
  color: rgba(237, 242, 255, 0.76);
  line-height: 1.62;
}


/* =========================================================
   FAQ SEO
   ========================================================= */

.faq-section {
  margin-top: 34px;
}

.faq-section details {
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.faq-section details:hover {
  border-color: rgba(140, 240, 196, 0.24);
}

.faq-section details[open] {
  border-color: rgba(110, 168, 255, 0.28);

  background:
    linear-gradient(
      180deg,
      rgba(18, 30, 50, 0.9),
      rgba(8, 15, 28, 0.92)
    );
}

.faq-section summary {
  position: relative;

  padding-right: 30px;

  list-style: none;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::after {
  content: "+";

  position: absolute;

  top: 50%;
  right: 0;

  color: var(--accent-2);

  font-size: 1.25rem;
  font-weight: 900;

  transform: translateY(-50%);
}

.faq-section details[open] summary::after {
  content: "−";
}


/* =========================================================
   ACCESSIBILITE / FOCUS
   ========================================================= */

.hero-cta:focus-visible,
.service-card:focus-visible,
.personalization-step:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}


/* =========================================================
   RESPONSIVE TABLETTE
   ========================================================= */

@media (max-width: 900px) {
  .services-section,
  .personalization-section {
    padding:
      28px 22px;
  }

  .services-grid {
    gap: 14px;
  }

  .personalization-flow {
    gap: 14px;
  }
}


/* =========================================================
   RESPONSIVE MOBILE
   ========================================================= */

@media (max-width: 760px) {
  .seo-section {
    width: 100%;
    margin-bottom: 22px;
  }

  .seo-section-header {
    margin-bottom: 22px;
  }

  .seo-section-title {
    font-size:
      clamp(1.5rem, 8vw, 2rem);
  }

  .seo-section-intro,
  .services-intro {
    font-size: 0.98rem;
  }

  .hero-seo-intro {
    font-size: 0.96rem;
  }

  .services-section,
  .personalization-section {
    padding: 22px 16px;

    border-radius: 24px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    padding: 20px;
  }

  .personalization-flow {
    grid-template-columns: 1fr;
  }

  .personalization-step {
    min-height: auto;
  }

  .personalization-step:not(:last-child)::after {
    content: "↓";

    top: auto;
    right: 50%;
    bottom: -15px;

    transform: translateX(50%);
  }

  .element-selection-shell {
    margin-top: 22px;
    margin-bottom: 22px;
  }

  .banana-fusion-section {
    margin-top: 22px;
    margin-bottom: 22px;
  }

  .faq-section {
    margin-top: 26px;
  }
}


/* =========================================================
   PETITS ECRANS
   ========================================================= */

@media (max-width: 480px) {
  .services-section,
  .personalization-section {
    padding: 20px 14px;
  }

  .service-card,
  .personalization-step {
    border-radius: 18px;
  }

  .seo-eyebrow,
  .section-eyebrow {
    font-size: 0.78rem;
  }

  .seo-section-title {
    font-size: 1.55rem;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .personalization-step,
  .value-card {
    transition: none;
  }

  .service-card:hover,
  .personalization-step:hover,
  .value-card:hover {
    transform: none;
  }
}