/* =========================
   Base
========================= */

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

:root {
  --fl-color-me: #00ffa8;
  --fl-color-others: #f93884;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #111111;
  background: #f5f5f5;
  line-height: 1.5;
}

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

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

a:hover {
  text-decoration: none;
}

/* =========================
   Layout
========================= */

.site-wrapper {
  min-height: 100vh;
}

.site-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.site-main {
  padding-top: 40px;
  padding-bottom: 180px;
}

.site-main-front {
  padding-top: 56px;
  padding-bottom: 150px;
}

.site-main-how {
  padding-top: 56px;
  padding-bottom: 80px;
}

/* =========================
   Header
========================= */

.site-header {
  background: #f5f5f5;
  border-bottom: 1px solid #e8e8e8;
}

.site-header-inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  align-items: center;
  gap: 20px;
}

.site-header-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.site-header-menu {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header-lang {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* =========================
   Header Lang
========================= */

.site-lang-switcher {
  position: relative;
}

.site-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #d7d7d7;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.site-lang-arrow {
  font-size: 0.8rem;
  line-height: 1;
}

.site-lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  padding: 8px;
  border: 1px solid #e2e2e2;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
  z-index: 50;
}

.site-lang-switcher:hover .site-lang-dropdown,
.site-lang-switcher:focus-within .site-lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-lang-dropdown .language-switcher-language-url ul,
.site-lang-dropdown .links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}

.site-lang-dropdown li {
  margin: 0;
  padding: 0;
}

.site-lang-dropdown a {
  display: block;
  min-height: auto;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: #111111;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
}

.site-lang-dropdown a:hover,
.site-lang-dropdown a.is-active,
.site-lang-dropdown a[aria-current="page"] {
  background: #f3f3f3;
  color: #111111;
}

/* =========================
   Logo
========================= */

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.site-logo img {
  display: block;
  width: auto;
  height: 42px;
  max-width: none;
}

.site-logo-baseline {
  margin-top: 0;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 400;
  color: #000000;
  text-align: center;
  letter-spacing: 0.01em;
}

/* =========================
   Menu principal
========================= */

.site-nav {
  width: 100%;
}

.site-nav nav {
  width: 100%;
}

.site-nav ul.menu,
.site-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 42px;
  margin: 0;
  padding: 0;
}

.site-nav li {
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 400;
  color: #6b6b6b;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active,
.site-nav a[aria-current="page"] {
  color: #111111;
}

/* =========================
   Main content
========================= */

.block-system-main-block,
#block-fabuloop-content {
  background: transparent;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
}

#block-fabuloop-page-title h1,
.page-title,
h1 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: clamp(1.5rem, 4.8vw, 2.5rem);
  line-height: 1.02;
  font-weight: 600;
  color: #0d0d0d;
}

h2 {
  margin-top: 36px;
  margin-bottom: 14px;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  line-height: 1.15;
  font-weight: 500;
  color: #111111;
}

h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 1.18rem;
  font-weight: 700;
  color: #111111;
}

p,
ul,
ol {
  font-size: 1rem;
  color: #333333;
}

p {
  margin-top: 0;
  margin-bottom: 16px;
}

ul,
ol {
  padding-left: 22px;
  margin-bottom: 18px;
}

li {
  margin-bottom: 8px;
}

/* =========================
   Breadcrumb
========================= */

nav.breadcrumb {
  margin-bottom: 24px;
}

.breadcrumb {
  font-size: 0.92rem;
  color: #666666;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb li {
  margin: 0;
}

/* =========================
   Helpers / CTA
========================= */

.fab-home-intro {
  max-width: 760px;
  margin-top: 28px;
}

.fab-home-kicker {
  font-size: 1.35rem;
  color: #444444;
  margin-bottom: 12px;
}

.fab-home-text {
  font-size: 1.18rem;
  line-height: 1.45;
  color: #222222;
}

.fab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

a.button,
.button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid #111111;
  border-radius: 999px;
  background: transparent;
  color: #111111;
  font-size: 1.38rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

a.button:hover,
.button:hover,
input[type="submit"]:hover {
  background: #111111;
  color: #ffffff;
}

/* =========================
   Footer
========================= */

.site-footer {
  padding-top: 16px;
  padding-bottom: 30px;
  color: #666666;
  font-size: 0.95rem;
}

/* =========================
   Front page
========================= */

.home-hero {
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
}

.home-hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

.home-hero-logo img {
  max-height: 86px;
  width: auto;
}

.home-title h1,
.fl-hero {
  margin-top: 0;
  margin-bottom: 15px;
  padding: 0;
  font-size: clamp(1.8rem, 2.4vw, 2.8rem);
  line-height: 1.02;
  font-weight: 500;
}

.home-slogan h2 {
  margin-top: 0;
  margin-bottom: 18px;
  padding: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  line-height: 1.02;
  font-weight: 500;
}

.home-intro {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(1.2rem, 2vw, 1.9rem);
  line-height: 1.3;
  color: #000000;
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto 36px;
}

.home-card {
  display: flex;
  flex-direction: column;
  min-height: 180px;
  padding: 26px 26px 24px;
  border: none;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
}

.home-card-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 10px;
}

.home-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
}

.home-card-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.home-card-text {
  padding-top: 4px;
}

.home-card h2 {
  margin: 0 0 8px;
  padding: 0;
  font-size: 2rem;
  line-height: 1;
  font-weight: 500;
}

.home-card-subtitle {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.1;
  font-weight: 500;
  color: #222222;
}

.home-card-body {
  margin-top: 0;
  flex: 1 1 auto;
}

.home-card-body p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.48;
  color: #111111;
}

.home-card-actions {
  margin-top: 22px;
}

.home-card-button {
  width: 100%;
  min-height: 56px;
  font-size: 1rem;
  font-weight: 700;
  border-width: 2px;
}

.home-card--perso h2 { color: #7e55d8; }
.home-card--campus h2 { color: #20bfa5; }
.home-card--pro h2 { color: #ff4d8d; }
.home-card--free h2 { color: #58a8ff; }
.home-card--fun h2 { color: #7b63ff; }
.home-card--agora h2 { color: #ff4f97; }

.home-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 980px;
  margin: 0 auto 28px;
}

.button--xl {
  min-height: 78px;
  font-size: 1.85rem;
  font-weight: 500;
  border-width: 1px;
}

.home-links {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.home-links-all {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 400;
  color: #757575;
  text-decoration: none;
  text-underline-offset: 3px;
}

.home-links-all:hover {
  color: #000000;
}

/* =========================
   Sticky retour Loop
========================= */

.fabuloop-loop-return-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  width: 100%;
  padding: 20px 18px;
  background-color: #000000;
  pointer-events: none;
}

.fabuloop-loop-return-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 720px;
  min-height: 74px;
  margin: 0 auto;
  padding: 0 28px;
  border: 1px solid var(--fl-color-others);
  border-radius: 999px;
  background: #ffffff;
  color: var(--fl-color-others);
  font-size: clamp(1.05rem, 2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.fabuloop-loop-return-link:hover {
  background: var(--fl-color-others);
  border-color: var(--fl-color-others);
  color: #ffffff;
  transform: translateY(-1px);
  text-decoration: none;
}

/* =========================
   Comment ça marche
========================= */

.how-hero {
  max-width: 920px;
  margin: 0 auto 36px;
  text-align: center;
}

.how-hero h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4.2vw, 2.5rem);
  line-height: 1.08;
  font-weight: 500;
  color: #000000;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 980px;
  margin: 0 auto 36px;
}

.how-step-card {
  padding: 20px 20px 18px;
  border-radius: 22px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.how-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
}

.how-step-icon img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.how-step-card h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  font-weight: 500;
  color: #000000;
}

.how-step-subtitle {
  margin-top: 6px;
  font-size: 1.1rem;
  line-height: 1.15;
  color: #222222;
}

.how-step-note {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #666666;
}

.how-explanation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto 44px;
}

.how-info-card {
  padding: 24px 22px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.how-info-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.how-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.how-info-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.how-info-card h3 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.05;
  font-weight: 700;
  color: #111111;
}

.how-info-list {
  margin: 10px 0;
  padding-left: 22px;
  text-align: left;
}

.how-info-list li {
  margin-bottom: 14px;
  font-size: 1.02rem;
  line-height: 1.45;
  color: #222222;
}

.how-result {
  max-width: 980px;
  margin: 0 auto 40px;
  text-align: center;
}

.how-result h2 {
  margin: 0 0 8px;
  font-size: 2.2rem;
  line-height: 1.1;
  font-weight: 700;
}

.how-result-intro {
  margin: 0 0 26px;
  font-size: 1.05rem;
  color: #555555;
}

.how-result-visual {
  display: grid;
  grid-template-columns: 1fr 360px 1fr;
  align-items: center;
  gap: 24px;
}

.how-result-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.how-result-label {
  font-size: 2.1rem;
  font-weight: 700;
  color: #111111;
}

.how-result-score {
  font-size: 2rem;
  font-weight: 400;
  color: #111111;
}

.how-result-center {
  position: relative;
  width: 360px;
  height: 360px;
  margin: 0 auto;
}

.how-result-ring {
  position: absolute;
  border-radius: 50%;
}

.how-result-ring-outer {
  inset: 0;
  background: conic-gradient(#19e3ba 0 86%, #b8f2e5 86% 100%);
}

.how-result-ring-inner {
  inset: 34px;
  background: conic-gradient(#ff3f87 0 80%, #f6bfd1 80% 100%);
}

.how-result-core {
  position: absolute;
  inset: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
}

.how-result-main-score {
  font-size: 4.6rem;
  line-height: 1;
  font-weight: 700;
  color: #111111;
}

.how-result-main-score span {
  font-size: 2rem;
  vertical-align: top;
}

.how-result-caption {
  margin-top: 8px;
  font-size: 1.3rem;
  line-height: 1.1;
  color: #111111;
}

.how-actions {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

/* =========================
   Responsive
========================= */

@media (max-width: 1100px) {
  .site-header-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
    padding-top: 20px;
    padding-bottom: 20px;
    min-height: auto;
  }

  .site-header-brand,
  .site-header-menu,
  .site-header-lang {
    width: 100%;
    justify-content: center;
  }

  .site-nav ul.menu,
  .site-nav ul {
    flex-wrap: wrap;
    gap: 24px;
  }

  .how-steps,
  .how-explanation-grid,
  .how-result-visual {
    grid-template-columns: 1fr;
  }

  .how-steps,
  .how-result,
  .how-actions {
    max-width: 760px;
  }

  .how-explanation-grid {
    max-width: 760px;
  }

  .how-result-visual {
    gap: 18px;
  }

  .how-result-center {
    width: 320px;
    height: 320px;
  }

  .how-result-label {
    font-size: 1.8rem;
  }

  .how-result-score {
    font-size: 1.7rem;
  }
}

@media (max-width: 900px) {
  .home-cards {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 760px;
  }

  .home-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .site-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-main {
    padding-top: 28px;
    padding-bottom: 40px;
  }

  .site-main-front {
    padding-top: 28px;
    padding-bottom: 44px;
  }

  .site-main-how {
    padding-top: 28px;
    padding-bottom: 44px;
  }

  .site-logo img {
    max-height: 60px;
  }

  .site-nav ul.menu,
  .site-nav ul {
    gap: 14px 18px;
  }

  .site-nav a {
    font-size: 0.9rem;
  }

  .site-header-lang {
    justify-content: center;
  }

  #block-fabuloop-page-title h1,
  .page-title,
  h1 {
    font-size: clamp(1.5rem, 9vw, 2.8rem);
  }

  h2 {
    font-size: clamp(1.1rem, 5vw, 1.7rem);
  }

  p,
  ul,
  ol {
    font-size: 0.97rem;
  }

  .fab-home-kicker {
    font-size: 1.12rem;
  }

  .fab-home-text {
    font-size: 1.02rem;
  }

  .fab-actions {
    flex-direction: column;
  }

  a.button,
  .button,
  input[type="submit"] {
    width: 100%;
  }

  .home-hero-logo img {
    max-height: 88px;
  }

  .home-intro {
    font-size: 1.05rem;
    line-height: 1.35;
  }

  .home-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .home-card-head {
    gap: 14px;
    margin-bottom: 16px;
  }

  .home-card-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
  }

  .home-card-icon img {
    width: 54px;
    height: 54px;
  }

  .home-card h2 {
    font-size: 1.8rem;
  }

  .home-card-subtitle {
    font-size: 0.98rem;
  }

  .home-card-body p {
    font-size: 1rem;
    line-height: 1.45;
  }

  .home-card-button,
  .button--xl {
    min-height: 62px;
    font-size: 1.05rem;
  }

  .fabuloop-loop-return-sticky {
    padding: 8px 12px;
  }

  .fabuloop-loop-return-link {
    min-height: 62px;
    padding: 0 18px;
    font-size: 1.02rem;
    border-width: 1px;
  }

  .how-hero {
    margin-bottom: 24px;
  }

  .how-hero h1 {
    font-size: clamp(1.8rem, 9vw, 2.8rem);
    line-height: 1.12;
  }

  .how-step-card {
    padding: 20px 14px 16px;
    border-radius: 20px;
  }

  .how-step-card h2 {
    font-size: 1.7rem;
  }

  .how-step-subtitle {
    font-size: 1rem;
  }

  .how-info-card {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .how-info-card h3 {
    font-size: 1.35rem;
  }

  .how-info-list li {
    font-size: 1rem;
    line-height: 1.4;
  }

  .how-result h2 {
    font-size: 1.8rem;
  }

  .how-result-center {
    width: 280px;
    height: 280px;
  }

  .how-result-ring-inner {
    inset: 28px;
  }

  .how-result-core {
    inset: 56px;
  }

  .how-result-main-score {
    font-size: 3.8rem;
  }

  .how-result-main-score span {
    font-size: 1.5rem;
  }

  .how-result-caption {
    font-size: 1.05rem;
  }
}
