/* ============================================================
   RIDE UP — sections-c.css (Builder C)
   Sections : 07 témoignages (.avis-) · 08 club (.club-) ·
   09 FAQ (.faq-) · 10 blog (.blog-) · 11 CTA final (.cta-) ·
   12 footer (.footer-)
   Desktop-first (design ≥1200) ; breakpoints ≤1024 et ≤767.
   Couleurs/ombres/typo/motion : uniquement via var(--…) de base.css.
   ============================================================ */

/* ------------------------------------------------------------
   Soulignement marqueur — UN mot-clé par H2 (da.json).
   SVG data-URI : trait ~6px #E8590C (palette da.json), round caps,
   légère ondulation, posé sous la baseline.
   ------------------------------------------------------------ */
.avis-mark,
.faq-mark,
.blog-mark,
.cta-mark {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8.5C25 5 45 9.5 62 7.5 79 5.5 100 8.2 117 6.2' fill='none' stroke='%23E8590C' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left bottom / 100% .14em;
  padding-bottom: .16em;
}

/* ------------------------------------------------------------
   07. TÉMOIGNAGES — #temoignages (fond --bg)
   Note globale géante + étoiles, 5 cartes (2 + 3),
   carrousel scroll-snap sur mobile.
   ------------------------------------------------------------ */
.avis-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--sp-8);
}

.avis-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
}

.avis-note-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-num-giant);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--heading);
}

.avis-note-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  text-align: left;
}

.avis-stars {
  width: 128px;
  height: 24px;
}

.avis-mention {
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 500;
}

.avis-title {
  margin-top: var(--sp-5);
}

.avis-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap-grid);
}

.avis-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
}

.avis-card:nth-child(-n+2) {
  grid-column: span 3;
}

.avis-card-title {
  font-size: var(--fs-h4);
  line-height: 1.3;
}

.avis-card-text {
  flex: 1;
}

.avis-card-author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.avis-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex: none;
}

.avis-card-name {
  font-weight: 600;
  color: var(--heading);
  line-height: 1.3;
}

.avis-card-since {
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: 1.4;
}

.avis-footnote {
  text-align: center;
  margin-top: var(--sp-6);
  font-size: var(--fs-small);
  color: var(--muted);
}

/* Léger décalé « masonry simple » (da.json §7) : les cartes paires
   descendent de 24px sur desktop. margin-top (et non transform) pour
   ne pas entrer en conflit avec le transform du système [data-reveal]
   et conserver le hover translateY(-4px) de .card. */
@media (min-width: 1025px) {
  .avis-card:nth-child(even) {
    margin-top: var(--sp-5);
  }
}

@media (max-width: 1024px) {
  .avis-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .avis-card,
  .avis-card:nth-child(-n+2) {
    grid-column: span 1;
  }

  .avis-card:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 767px) {
  .avis-note {
    flex-direction: column;
    gap: var(--sp-3);
  }

  .avis-note-side {
    align-items: center;
    text-align: center;
  }

  /* Carrousel scroll-snap : une carte ≈ 85% du viewport,
     la gouttière du container reste visible de part et d'autre */
  .avis-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--sp-4);
    margin-inline: calc(-1 * var(--container-pad));
    padding-inline: var(--container-pad);
    padding-bottom: var(--sp-2);
    scrollbar-width: none;
  }

  .avis-grid::-webkit-scrollbar {
    display: none;
  }

  .avis-card,
  .avis-card:last-child {
    flex: 0 0 85%;
    scroll-snap-align: center;
    padding: var(--sp-5);
  }
}

/* ------------------------------------------------------------
   08. LE CLUB — #club (bande --surface-warm)
   « 1 800 chauffeurs » en Bricolage 800, chiffre gradient-clippé,
   4 citations en cartes blanches.
   ------------------------------------------------------------ */
.club {
  background: var(--surface-warm);
}

.club-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto var(--sp-8);
}

.club-strong {
  font-weight: 800;
  white-space: nowrap;
}

.club-count {
  background: var(--grad-signature-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.club-sub {
  margin-top: var(--gap-stack-sub);
}

.club-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-grid);
}

.club-quote {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
}

.club-quote-text {
  flex: 1;
}

.club-quote-text p {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-h4);
  line-height: 1.4;
  color: var(--heading);
}

.club-quote-author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.club-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
}

.club-quote-name {
  font-weight: 600;
  color: var(--heading);
}

@media (max-width: 1024px) {
  .club-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .club-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
}

/* ------------------------------------------------------------
   09. FAQ — #faq (fond --bg, zone la plus calme)
   Accordéon accessible : bouton dans <h3>, panneaux hidden,
   demi-soleil qui « se lève » à l'ouverture.
   Sans JS : premier panneau ouvert par défaut.
   ------------------------------------------------------------ */
.faq-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--sp-7);
}

.faq-list {
  max-width: 800px;
  margin-inline: auto;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-heading {
  font-size: var(--fs-h4);
  line-height: 1.3;
}

.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-1);
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-h4);
  line-height: 1.3;
  color: var(--heading);
  transition: color var(--dur-hover) ease;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  --horizon-w: 22px;
}

.faq-icon::before {
  transition: transform var(--dur-hover) ease;
}

/* Ouverture : le soleil monte de 4px (pas de rotation du disque —
   un rotate(180deg) retournait le demi-soleil arrondi vers le bas) */
.faq-question[aria-expanded="true"] .faq-icon::before {
  transform: translateX(-50%) translateY(-4px);
}

.faq-answer {
  max-width: 700px;
  padding: 0 var(--sp-1) var(--sp-5);
}

.faq-more {
  text-align: center;
  margin-top: var(--sp-6);
}

@media (max-width: 767px) {
  .faq-question {
    padding-block: var(--sp-4);
  }
}

/* ------------------------------------------------------------
   10. BLOG — #blog (bande --surface)
   3 cartes ; en-têtes décoratifs en tranches de ciel d'aube
   (SVG inline, pas d'image), tondo d'icône qui chevauche.
   ------------------------------------------------------------ */
.blog {
  background: var(--surface);
}

.blog-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--sp-8);
}

.blog-intro {
  margin-top: var(--gap-stack-sub);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-grid);
  align-items: stretch;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.blog-cover {
  position: relative;
  height: 150px;
  flex: none;
}

.blog-cover-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.blog-cover-icon {
  position: absolute;
  left: var(--sp-5);
  bottom: calc(-1 * var(--sp-4));
  box-shadow: 0 0 0 4px var(--surface);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
  padding: calc(var(--sp-5) + var(--sp-4)) var(--sp-5) var(--sp-5);
}

.blog-meta {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--muted);
}

.blog-card-title {
  font-size: var(--fs-h4);
  line-height: 1.35;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: auto;
  padding-top: var(--sp-2);
}

.blog-link svg {
  width: 14px;
  height: 14px;
  flex: none;
  transition: transform var(--dur-hover) ease;
}

.blog-link:hover svg {
  transform: translateX(3px);
}

.blog-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-7);
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }

  .blog-cover {
    height: 120px;
  }
}

/* ------------------------------------------------------------
   11. CTA FINAL — #contact (second lever de soleil)
   Gradient ciel d'aube inversé (SVG inline : les teintes du ciel
   ne sont pas des tokens CSS) + filigrane Horizon Levant géant
   à 10% d'opacité (déclinaison n°7 de la signature).
   ------------------------------------------------------------ */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: calc(var(--section-pad) * 1.2);
}

.cta-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cta-filigrane {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 6vw, 56px);
  transform: translateX(-50%);
  --horizon-w: min(860px, 94vw);
  --horizon-line: 3px;
}

.cta-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-title span {
  display: block;
}

.cta-line2 {
  color: var(--accent-xl);
}

.cta-sub {
  max-width: 640px;
  margin-top: var(--gap-stack-sub);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4);
  margin-top: var(--gap-stack-cta);
}

@media (max-width: 767px) {
  .cta-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    max-width: 360px;
  }
}

/* ------------------------------------------------------------
   12. FOOTER — --surface-warm (jamais sombre)
   Marque + baseline + réseaux + badge app | 3 colonnes de liens,
   puis mentions, micro-mention marques et copyright.
   ------------------------------------------------------------ */
.footer {
  background: var(--surface-warm);
  border-top: 1px solid var(--border);
  padding-block: var(--sp-8) var(--sp-6);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}

.footer-logo:hover {
  text-decoration: none;
}

.footer-logo-mark {
  --horizon-w: 32px;
}

.footer-logo-word {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-h3);
  letter-spacing: -0.02em;
  color: var(--heading);
  line-height: 1;
}

.footer-baseline {
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: var(--sp-3);
}

.footer-social-link {
  transition: color var(--dur-hover) ease, transform var(--dur-hover) ease;
}

.footer-social-link:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-social-link svg {
  width: 22px;
  height: 22px;
}

.footer-app {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--heading);
  font-weight: 600;
  font-size: var(--fs-ui-nav);
  line-height: 1;
  transition: border-color var(--dur-hover) ease, transform var(--dur-hover) ease;
}

.footer-app:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  text-decoration: none;
}

.footer-app svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-grid);
}

.footer-col-title {
  font-size: var(--fs-body);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-col-links a {
  color: var(--text);
  font-weight: 500;
}

.footer-col-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
}

.footer-mentions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
}

.footer-mentions a {
  color: var(--text);
  font-size: var(--fs-small);
  font-weight: 500;
}

.footer-mentions a:hover {
  color: var(--accent);
}

.footer-micro,
.footer-copyright {
  font-size: var(--fs-small);
  /* var(--text) : --muted tombait à 4,35:1 sur le footer #FFF2E3 */
  color: var(--text);
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--sp-7);
  }
}

@media (max-width: 767px) {
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
    row-gap: var(--sp-6);
  }
}
