/* =========================================================
   AKLIO — style-v12.css
   Compléments communs aux pages SEO.

   Cette feuille doit être chargée APRÈS /css/style-v2.css.
   Elle ne remplace pas le socle graphique du site : elle ajoute
   uniquement la mise en page propre aux pages SEO.
   ========================================================= */


/* =========================================================
   1. BANDEAU DES PAGES SEO
   ========================================================= */

.seo-page .hero-buttons-overlay {
  height: clamp(500px, 48vw, 680px);
  min-height: 500px;
  background: var(--universe-strong);
}

.seo-page .hero-buttons-overlay > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.seo-page .hero-buttons-overlay::after {
  display: block;
  background:
    linear-gradient(
      90deg,
      rgba(8, 27, 57, 0.82) 0%,
      rgba(8, 27, 57, 0.55) 42%,
      rgba(8, 27, 57, 0.10) 78%
    ),
    linear-gradient(
      0deg,
      rgba(8, 27, 57, 0.58) 0%,
      transparent 48%
    );
}

.seo-page .hero-buttons-overlay .hero-top,
.seo-page .hero-buttons-overlay .hero-bottom {
  left: max(32px, calc((100vw - var(--max)) / 2));
  right: 32px;
  width: auto;
  max-width: 780px;
  transform: none;
  text-align: left;
}

.seo-page .hero-buttons-overlay .hero-top {
  top: auto;
  bottom: 235px;
}

.seo-page .hero-buttons-overlay .hero-top h1 {
  margin: 0;
  max-width: 780px;
  color: var(--almond);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.58);
}

.seo-page .hero-buttons-overlay .hero-bottom {
  bottom: 50px;
}

.seo-page .hero-buttons-overlay .hero-bottom p {
  max-width: 720px;
  margin: 0;
  color: var(--almond);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.45;
  text-shadow: 0 2px 9px rgba(0, 0, 0, 0.72);
}

.seo-page .hero-buttons-overlay .hero-buttons {
  justify-content: flex-start;
  margin-top: 26px;
  padding: 0;
}

.seo-page .hero-buttons-overlay .btn-primary {
  background: var(--almond);
  color: var(--universe-strong);
  border: 1.5px solid var(--almond);
}

.seo-page .hero-buttons-overlay .btn-secondary {
  background: rgba(8, 27, 57, 0.48);
  color: var(--almond);
  border: 1.5px solid rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(3px);
}

.seo-page .hero-buttons-overlay .btn-primary:hover,
.seo-page .hero-buttons-overlay .btn-primary:focus-visible {
  background: var(--universe-strong);
  color: var(--almond);
}

.seo-page .hero-buttons-overlay .btn-secondary:hover,
.seo-page .hero-buttons-overlay .btn-secondary:focus-visible {
  background: var(--almond);
  color: var(--universe-strong);
  border-color: var(--almond);
}


/* =========================================================
   2. RYTHME ET LARGEUR DE LECTURE
   ========================================================= */

.seo-page .seo-hero-brand {
  height: auto;
  min-height: 0;
  overflow: visible;
  background: var(--almond);
}

.seo-page .seo-hero-brand > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.seo-page .seo-hero-brand::after {
  display: none;
}

.seo-page > .section.seo-home-intro {
  padding: 28px 24px 34px;
  text-align: center;
  background: var(--almond);
}

.seo-page .seo-home-intro h1 {
  max-width: 940px;
  margin: 0 auto;
  color: var(--navy);
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.seo-page .seo-home-intro p {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.55;
}

.seo-page .home-level-links .hero-buttons {
  justify-content: center;
  margin-top: 24px;
  padding: 0;
  gap: 34px;
}

.seo-page .section-neutral.home-level-links .btn-secondary {
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  background: color-mix(in srgb, var(--cornflower) 80%, white);
  color: var(--almond);
  border: 2px solid color-mix(in srgb, var(--cornflower) 80%, white);
}

.seo-page .section-neutral.home-level-links .btn-primary {
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  background: var(--yellow);
  color: var(--cornflower);
  border: 2px solid var(--yellow);
}

.seo-page .section-neutral.home-level-links .btn-secondary:hover,
.seo-page .section-neutral.home-level-links .btn-secondary:focus-visible {
  background: var(--dark-blue);
  color: var(--almond);
  border-color: var(--dark-blue);
}

.seo-page .section-neutral.home-level-links .btn-primary:hover,
.seo-page .section-neutral.home-level-links .btn-primary:focus-visible {
  background: var(--yellow);
  color: var(--navy);
  border-color: var(--yellow);
}

.seo-page > .section {
  padding: clamp(58px, 7vw, 94px) 24px;
}

.seo-page > .section-universe-soft:nth-of-type(odd) {
  background: color-mix(in srgb, var(--universe-soft) 78%, var(--almond));
}

.seo-page > .section > h2 {
  max-width: 900px;
  margin-right: auto;
  margin-bottom: 28px;
  margin-left: auto;
  text-wrap: balance;
}

.seo-page > .section > .section-lead {
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
}

.seo-page > .section > p:not(.section-lead) {
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
}

.seo-page > .section > p:not(.section-lead) + p:not(.section-lead) {
  margin-top: 20px;
}

.seo-page .split {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  gap: clamp(38px, 6vw, 76px);
}

.seo-page .split > div > p,
.seo-page .split > p {
  max-width: 720px;
}

.seo-page .buttons {
  justify-content: center;
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
}


/* =========================================================
   3. CARTES D'ORIENTATION ET FAQ
   ========================================================= */

.seo-page .intro-grid,
.seo-page .faq-grid {
  gap: 24px;
}

.seo-page .intro-card {
  min-width: 0;
  min-height: 0;
  padding: 32px 28px;
  border: 1px solid color-mix(in srgb, var(--universe-strong) 12%, transparent);
}

.seo-page .intro-card h3 {
  min-height: 0;
  margin-bottom: 14px;
  line-height: 1.22;
  text-wrap: balance;
}

.seo-page .intro-card p {
  margin-bottom: 22px;
  line-height: 1.65;
}

.seo-page .intro-card p:last-child {
  margin-bottom: 0;
}

.seo-page .intro-card .btn {
  align-self: center;
  margin-top: auto;
}

.seo-page .faq-grid-two {
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
}

.seo-page .faq-grid .intro-card {
  text-align: left;
}

.seo-page .faq-grid .intro-card .btn {
  align-self: flex-start;
}

/*
 * Comme sur la page Home, chaque jeu de cartes partage une couleur.
 * La palette alterne d'une section à l'autre, sans modifier le fond
 * Almond des sections ni nécessiter de classe supplémentaire en PHP.
 */

.seo-page > .section:nth-of-type(4n + 2) .intro-card {
  background: var(--navy);
  color: var(--almond);
  border-color: var(--navy);
}

.seo-page > .section:nth-of-type(4n + 2) .intro-card h3 {
  color: var(--corn);
}

.seo-page > .section:nth-of-type(4n + 2) .intro-card p,
.seo-page > .section:nth-of-type(4n + 2) .intro-card li {
  color: var(--almond);
}

.seo-page > .section:nth-of-type(4n + 2) .intro-card .btn {
  background: var(--almond);
  color: var(--navy);
  border: 2px solid var(--corn);
}

.seo-page > .section:nth-of-type(4n + 2) .intro-card .btn:hover,
.seo-page > .section:nth-of-type(4n + 2) .intro-card .btn:focus-visible {
  background: var(--corn);
  color: var(--navy);
}

.seo-page > .section:nth-of-type(4n + 3) .intro-card {
  background: var(--corn);
  color: var(--navy);
  border-color: var(--corn);
}

.seo-page > .section:nth-of-type(4n + 3) .intro-card h3,
.seo-page > .section:nth-of-type(4n + 3) .intro-card p,
.seo-page > .section:nth-of-type(4n + 3) .intro-card li {
  color: var(--navy);
}

.seo-page > .section:nth-of-type(4n + 3) .intro-card .btn {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.seo-page > .section:nth-of-type(4n + 3) .intro-card .btn:hover,
.seo-page > .section:nth-of-type(4n + 3) .intro-card .btn:focus-visible {
  background: var(--navy);
  color: var(--almond);
}

.seo-page > .section:nth-of-type(4n) .intro-card {
  background: var(--sky-blue);
  color: var(--navy);
  border-color: var(--sky-blue);
}

.seo-page > .section:nth-of-type(4n) .intro-card h3,
.seo-page > .section:nth-of-type(4n) .intro-card p,
.seo-page > .section:nth-of-type(4n) .intro-card li {
  color: var(--navy);
}

.seo-page > .section:nth-of-type(4n) .intro-card .btn {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.seo-page > .section:nth-of-type(4n) .intro-card .btn:hover,
.seo-page > .section:nth-of-type(4n) .intro-card .btn:focus-visible {
  background: var(--navy);
  color: var(--almond);
}

.seo-page > .section:nth-of-type(4n + 1) .intro-card {
  background: var(--pale-yellow);
  color: var(--navy);
  border-color: var(--pale-yellow);
}

.seo-page > .section:nth-of-type(4n + 1) .intro-card h3,
.seo-page > .section:nth-of-type(4n + 1) .intro-card p,
.seo-page > .section:nth-of-type(4n + 1) .intro-card li {
  color: var(--navy);
}

.seo-page > .section:nth-of-type(4n + 1) .intro-card .btn {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.seo-page > .section:nth-of-type(4n + 1) .intro-card .btn:hover,
.seo-page > .section:nth-of-type(4n + 1) .intro-card .btn:focus-visible {
  background: var(--navy);
  color: var(--almond);
}


/* =========================================================
   4. ÉTAPES ET MÉTHODE
   ========================================================= */

.seo-page .method-row {
  gap: 0;
}

.seo-page .method-item {
  padding: 8px clamp(20px, 3vw, 34px);
}

.seo-page .method-item h3 {
  margin-bottom: 14px;
  line-height: 1.25;
}

.seo-page .method-item p {
  margin: 0;
  line-height: 1.6;
}


/* =========================================================
   5. BOUCLES DÉCORATIVES
   ========================================================= */

.seo-page .section-loop {
  width: clamp(130px, 16vw, 235px);
  opacity: 0.78;
}

.seo-page .section-loop.top-right {
  top: 8px;
  right: -42px;
}

.seo-page .section-loop.top-left {
  top: 8px;
  left: -42px;
}


/* =========================================================
   6. APPEL À L'ACTION FINAL
   ========================================================= */

.seo-page > .section-universe:last-child {
  text-align: center;
}

.seo-page > .section-universe:last-child .section-lead {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.seo-page > .section-universe:last-child .buttons {
  justify-content: center;
}


/* =========================================================
   7. TABLETTE
   ========================================================= */

@media (max-width: 980px) {
  .seo-page .seo-hero-brand {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .seo-page .seo-hero-brand > img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
  }

  .seo-page .hero-buttons-overlay {
    height: 540px;
    min-height: 0;
  }

  .seo-page .hero-buttons-overlay .hero-top,
  .seo-page .hero-buttons-overlay .hero-bottom {
    left: 36px;
    right: 36px;
  }

  .seo-page .hero-buttons-overlay .hero-top {
    bottom: 250px;
  }

  .seo-page .hero-buttons-overlay .hero-top h1 {
    font-size: clamp(38px, 7vw, 54px);
  }

  .seo-page .split {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .seo-page .split > div > p,
  .seo-page .split > p {
    max-width: none;
  }

  .seo-page .section-loop {
    width: 150px;
    opacity: 0.48;
  }
}


/* =========================================================
   8. MOBILE
   ========================================================= */

@media (max-width: 700px) {
  .seo-page > .section.seo-home-intro {
    padding: 26px 20px 30px;
  }

  .seo-page .seo-home-intro h1 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .seo-page .seo-home-intro p {
    font-size: 16px;
  }

  .seo-page .home-level-links .hero-buttons {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .seo-page .home-level-links .hero-buttons .btn {
    flex: 1;
    width: auto;
    min-width: 0;
    padding: 10px 8px;
    font-size: 14px;
    line-height: 1.15;
    text-align: center;
  }

  .seo-page .hero-buttons-overlay {
    height: auto;
    min-height: 0;
    overflow: visible;
    background: var(--universe-strong);
  }

  .seo-page .hero-buttons-overlay > img {
    height: clamp(230px, 66vw, 340px);
    object-fit: cover;
    object-position: center;
  }

  .seo-page .hero-buttons-overlay::after {
    display: none;
  }

  .seo-page .hero-buttons-overlay .hero-overlay {
    position: static;
    padding: 26px 20px 30px;
    background: var(--universe-strong);
  }

  .seo-page .hero-buttons-overlay .hero-top,
  .seo-page .hero-buttons-overlay .hero-bottom {
    position: static;
    width: 100%;
    max-width: none;
    margin: 0;
    text-align: center;
  }

  .seo-page .hero-buttons-overlay .hero-top h1 {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.06;
  }

  .seo-page .hero-buttons-overlay .hero-bottom {
    margin-top: 18px;
  }

  .seo-page .hero-buttons-overlay .hero-bottom p {
    margin-right: auto;
    margin-left: auto;
    font-size: 17px;
    line-height: 1.5;
  }

  .seo-page .hero-buttons-overlay .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 22px;
  }

  .seo-page .hero-buttons-overlay .btn {
    width: 100%;
    text-align: center;
  }

  .seo-page > .section {
    padding: 52px 20px;
  }

  .seo-page > .section > h2 {
    margin-bottom: 22px;
    font-size: clamp(28px, 8vw, 36px);
  }

  .seo-page .intro-card {
    padding: 28px 24px;
  }

  .seo-page .method-row {
    gap: 28px;
  }

  .seo-page .method-item {
    padding: 0 0 28px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .seo-page .method-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .seo-page .section-loop {
    display: none;
  }
}


/* =========================================================
   9. ACCESSIBILITÉ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .seo-page .intro-card,
  .seo-page .btn {
    transition: none;
  }
}
