/*
 * Page offres/ruza-drive/ : Ruza Drive Standard offert avec les offres AzurHOSTS.
 * Couleurs Ruza Drive (--ruza-*) : assets/css/ruzadrive.css.
 *
 * Developped by AzurHOSTS.com and powered by AzurWare.fr.
 */

.ruza-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ruza-section .se-title {
  max-width: 820px;
  margin: 0 auto 50px;
  text-align: center;
}

/* ---------- En-tête ---------- */

/*
 * Deux colonnes : le texte, et une carte d'abonnement Ruza Drive dessinée en HTML (aucune image).
 * Fond ciel aux couleurs de Ruza Drive, quadrillage léger estompé vers les bords.
 */
.ruza-hero {
  --ruza-strong: linear-gradient(90deg, #0e7490 0%, #047857 100%); /* blanc lisible dessus (> 5:1) */
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
  background: linear-gradient(180deg, #e8f5fa 0%, #f3f9fb 55%, #fff 100%);
}

.ruza-hero-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 420px at 0% 0%, rgba(var(--theme-accent-500-rgb, 0, 157, 225), 0.12), transparent 70%),
    radial-gradient(520px 380px at 84% 26%, rgba(16, 185, 129, 0.16), transparent 70%),
    radial-gradient(560px 380px at 70% 82%, rgba(6, 182, 212, 0.14), transparent 70%);
  pointer-events: none;
}

.ruza-hero-sky::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 41, 84, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 41, 84, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 15%, transparent 75%);
}

.ruza-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 64px;
}

/* Texte */

.ruza-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 5px 16px 5px 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--darkBlue);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(13, 167, 158, 0.25);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(14, 41, 84, 0.06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.ruza-hero-eyebrow-new {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ruza-strong);
  border-radius: 999px;
}

.ruza-hero-title {
  margin: 0 0 22px;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--darkBlue);
  text-wrap: balance;
}

/* Dégradé assombri : reste lisible en grand sur fond clair (> 3:1). */
.ruza-hero-accent {
  display: block;
  padding-bottom: 0.06em;
  font-family: inherit;
  font-weight: inherit;
  background: linear-gradient(90deg, #0891b2 0%, #0d9488 50%, #059669 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ruza-hero-desc {
  max-width: 560px;
  margin: 0 0 32px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--lightBlue);
}

.ruza-hero-desc strong {
  color: var(--darkBlue);
}

.ruza-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.ruza-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--lightBlue);
}

.ruza-hero-trust i {
  margin-right: 7px;
  font-size: 13px;
  color: var(--ruza-text);
}

/* Logo commun AzurHOSTS × Ruza Drive : les deux marques en tuiles, les noms en dessous. */

.ruza-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

/* Halo bleu AzurHOSTS à gauche, lagon Ruza Drive à droite. */
.ruza-hero-visual::before {
  content: '';
  position: absolute;
  inset: 0 4%;
  background:
    radial-gradient(closest-side at 28% 45%, rgba(var(--theme-accent-500-rgb, 0, 157, 225), 0.22), transparent),
    radial-gradient(closest-side at 72% 45%, rgba(16, 185, 129, 0.24), transparent);
  filter: blur(28px);
  pointer-events: none;
}

.ruza-collab {
  --tile: clamp(120px, 11vw, 176px);
  position: relative;
  display: grid;
  grid-template-columns: var(--tile) auto var(--tile);
  align-items: center;
  justify-items: center;
  gap: 24px clamp(22px, 2.4vw, 38px);
}

.ruza-collab-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--tile);
  height: var(--tile);
  filter: drop-shadow(0 16px 18px rgba(14, 41, 84, 0.16));
}

/* Marges propres à chaque marque : le logo AH contient déjà du vide autour du dessin. */
.ruza-collab-tile.is-azur {
  padding: 2%;
  animation: ruza-collab-left 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.ruza-collab-tile.is-ruza {
  padding: 12%;
  animation: ruza-collab-right 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.ruza-collab-tile img,
.ruza-collab-tile svg {
  display: block;
  width: 100%;
  height: 100%;
}

.ruza-collab-x {
  position: relative;
  width: 26px;
  height: 26px;
  animation: ruza-collab-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

.ruza-collab-x::before,
.ruza-collab-x::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  margin-top: -1.5px;
  background: #8fa1b5;
  border-radius: 3px;
  transform: rotate(45deg);
}

.ruza-collab-x::after {
  transform: rotate(-45deg);
}

.ruza-collab-name {
  font-family: var(--primary-font);
  font-size: clamp(17px, 1.55vw, 23px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--darkBlue);
  animation: ruza-hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.ruza-collab-name b {
  font-weight: inherit;
}

/* Logotype Ruza Drive : « Ruza » neutre, « Drive » au dégradé de la marque. */
.ruza-collab-name.is-ruza b {
  background: var(--ruza-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Apparition */

.ruza-hero-copy > * {
  animation: ruza-hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ruza-hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.ruza-hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.ruza-hero-copy > :nth-child(4) { animation-delay: 0.18s; }
.ruza-hero-copy > :nth-child(5) { animation-delay: 0.24s; }

@keyframes ruza-hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* Les deux tuiles arrivent des côtés et se rejoignent. */
@keyframes ruza-collab-left {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
}

@keyframes ruza-collab-right {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
}

@keyframes ruza-collab-pop {
  from {
    opacity: 0;
    transform: scale(0.4) rotate(-90deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ruza-hero-copy > *,
  .ruza-collab-tile,
  .ruza-collab-x,
  .ruza-collab-name {
    animation: none;
  }
}

/* ---------- En bref ---------- */

.ruza-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.ruza-feature {
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: -4px 4px 0 var(--primary-shadow);
}

.ruza-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  font-size: 18px;
  color: var(--ruza-text);
  background: var(--ruza-tint);
  border: 1px solid var(--ruza-tint-border);
  border-radius: 10px;
}

.ruza-feature-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--darkBlue);
}

.ruza-feature-text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--lightBlue);
}

.ruza-more {
  margin: 36px 0 0;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}

.ruza-more a,
.ruza-footnote a,
.ruza-end-outro a,
.ruza-step-text a,
.ruza-faq-a a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.ruza-more a:hover,
.ruza-footnote a:hover,
.ruza-end-outro a:hover,
.ruza-step-text a:hover,
.ruza-faq-a a:hover {
  text-decoration: underline;
}

.ruza-more i {
  margin-left: 4px;
  font-size: 12px;
}

/* ---------- Comparatif ---------- */

.ruza-compare-wrap {
  max-width: 900px;
  margin: 0 auto;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: -4px 4px 0 var(--primary-shadow);
}

.ruza-compare {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
}

.ruza-compare th,
.ruza-compare td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.ruza-compare tbody tr:last-child th,
.ruza-compare tbody tr:last-child td {
  border-bottom: 0;
}

.ruza-compare thead th {
  font-size: 15px;
  font-weight: 800;
  color: var(--darkBlue);
  background: var(--light);
}

.ruza-compare tbody th {
  font-weight: 600;
  color: var(--lightBlue);
}

.ruza-compare td {
  font-weight: 600;
  color: var(--darkBlue);
  font-variant-numeric: tabular-nums;
}

.ruza-compare .is-standard {
  background: var(--ruza-tint);
}

.ruza-compare thead .is-standard {
  background: rgba(13, 167, 158, 0.12);
}

.ruza-compare-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ruza-gradient);
  border-radius: 999px;
  vertical-align: 2px;
}

.ruza-yes {
  color: var(--ruza-text);
}

.ruza-no {
  color: #9aa9b8;
}

.ruza-compare-price td s {
  margin-right: 6px;
  font-weight: 500;
  color: var(--lightBlue);
}

.ruza-compare-price td strong {
  color: var(--ruza-text);
}

.ruza-footnote {
  max-width: 900px;
  margin: 18px auto 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--lightBlue);
}

/* ---------- Offres éligibles ---------- */

.ruza-ranges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.ruza-range {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: -4px 4px 0 var(--primary-shadow);
}

.ruza-range-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.ruza-range-name {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--darkBlue);
}

.ruza-range-note {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--lightBlue);
}

.ruza-range-link {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.ruza-range-link:hover {
  text-decoration: underline;
}

.ruza-range-link i {
  margin-left: 4px;
  font-size: 12px;
}

.ruza-range-offers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ruza-offer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #7d8fa3;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.ruza-offer.is-on {
  color: var(--ruza-text);
  background: var(--ruza-tint);
  border-color: var(--ruza-tint-border);
}

.ruza-offer i {
  font-size: 11px;
}

.ruza-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--lightBlue);
}

.ruza-legend-sep {
  width: 1px;
  height: 18px;
  margin: 0 10px;
  background: var(--border);
}

/* ---------- Activation ---------- */

.ruza-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.ruza-step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: -4px 4px 0 var(--primary-shadow);
}

.ruza-step-num {
  flex-shrink: 0;
  padding-right: 16px;
  border-right: 2px solid var(--border);
  font-family: var(--primary-font);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--ruza-text);
}

.ruza-step-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--darkBlue);
}

.ruza-step-text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--lightBlue);
}

/* ---------- Fin de l'offre ---------- */

.ruza-end {
  max-width: 820px;
  margin: 0 auto;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: -4px 4px 0 var(--primary-shadow);
}

.ruza-end-intro,
.ruza-end-outro {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--darkBlue);
}

.ruza-end-outro {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--lightBlue);
}

.ruza-timeline {
  position: relative;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.ruza-timeline-item {
  position: relative;
  padding: 0 0 20px 30px;
}

.ruza-timeline-item::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 3px solid var(--ruza-to);
  border-radius: 50%;
}

.ruza-timeline-item::after {
  content: '';
  position: absolute;
  top: 22px;
  bottom: 0;
  left: 5px;
  width: 2px;
  background: var(--border);
}

.ruza-timeline-item.is-last {
  padding-bottom: 0;
}

.ruza-timeline-item.is-last::before {
  border-color: #e5484d;
}

.ruza-timeline-item.is-last::after {
  display: none;
}

.ruza-timeline-when {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 800;
  color: var(--darkBlue);
}

.ruza-timeline-what {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--lightBlue);
}

/* ---------- Questions ---------- */

.ruza-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

/*
 * Ouverture et fermeture animées par assets/js/ruza-drive-faq.js (hauteur et fondu de .ruza-faq-a).
 * .is-closing : posée pendant la fermeture, l'attribut open n'est retiré qu'à la fin ;
 * l'icône et l'ombre basculent donc dès le clic.
 */
.ruza-faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.ruza-faq-item[open]:not(.is-closing) {
  border-color: rgba(var(--theme-accent-500-rgb, 0, 157, 225), 0.35);
  box-shadow: -4px 4px 0 var(--primary-shadow);
}

.ruza-faq-q {
  position: relative;
  padding: 18px 56px 18px 22px;
  font-size: 16px;
  font-weight: 700;
  color: var(--darkBlue);
  list-style: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.ruza-faq-q:hover {
  color: var(--primary);
}

.ruza-faq-q::-webkit-details-marker {
  display: none;
}

/* Icône + qui devient − : la barre verticale pivote jusqu'à l'horizontale. */
.ruza-faq-q::before,
.ruza-faq-q::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 22px;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}

.ruza-faq-q::after {
  transform: rotate(90deg);
}

.ruza-faq-item[open]:not(.is-closing) .ruza-faq-q::before {
  transform: rotate(180deg);
}

.ruza-faq-item[open]:not(.is-closing) .ruza-faq-q::after {
  transform: rotate(180deg);
}

.ruza-faq-q:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 12px;
}

.ruza-faq-a {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--lightBlue);
}

.ruza-faq-a-inner {
  padding: 0 22px 18px;
}

.ruza-faq-a p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ruza-faq-item,
  .ruza-faq-q,
  .ruza-faq-q::before,
  .ruza-faq-q::after {
    transition: none;
  }
}

/* ---------- Appel final ---------- */

.ruza-cta {
  text-align: center;
}

.ruza-cta-logo {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
}

.ruza-cta-title {
  margin: 0 0 12px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--darkBlue);
  text-wrap: balance;
}

.ruza-cta-text {
  max-width: 560px;
  margin: 0 auto 26px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--lightBlue);
}

.ruza-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- Écrans étroits ---------- */

@media (max-width: 1399px) {
  .ruza-hero-grid {
    gap: 40px;
  }
}

/* En dessous de 1200 px : une seule colonne, le logo commun au-dessus du texte. */
@media (max-width: 1199px) {
  .ruza-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ruza-hero {
    padding: 56px 0 72px;
  }

  .ruza-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .ruza-hero-copy {
    text-align: center;
  }

  .ruza-hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .ruza-hero-actions,
  .ruza-hero-trust {
    justify-content: center;
  }

  .ruza-hero-visual {
    order: -1;
    padding: 0 0 8px;
  }

  .ruza-collab {
    --tile: 108px;
    row-gap: 16px;
  }

  .ruza-collab-name {
    font-size: 17px;
  }
}

@media (max-width: 991px) {
  .ruza-ranges,
  .ruza-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 575px) {
  .ruza-hero-eyebrow {
    font-size: 12px;
  }

  .ruza-hero-desc {
    font-size: 16px;
  }

  .ruza-collab {
    --tile: 88px;
    column-gap: 18px;
  }

  .ruza-collab-x {
    width: 20px;
    height: 20px;
  }

  .ruza-collab-name {
    font-size: 15px;
  }

  .ruza-features {
    grid-template-columns: minmax(0, 1fr);
  }

  .ruza-range-head {
    flex-direction: column;
    gap: 10px;
  }

  .ruza-end {
    padding: 22px 18px;
  }

  .ruza-cta-title {
    font-size: 26px;
  }
}
