/* ==========================================================================
   Accueil — liste compacte des formations (évite le doublon avec la page Formations)
   ========================================================================== */

.formule-list { display: grid; gap: 16px; margin-top: 8px; }

.formule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 26px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}

.formule:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 162, 75, 0.45);
}

.formule-tag {
  display: block;
  font-size: .68rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}

.formule-main h3 { font-size: 1.35rem; margin-bottom: 6px; }

.formule-main p {
  font-size: .93rem;
  color: var(--slate);
  max-width: 58ch;
}

.formule-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  text-align: right;
}

.formule-price {
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.05;
  white-space: nowrap;
}

.formule-price small {
  display: block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .2px;
  margin-top: 3px;
  white-space: normal;
}

/* Lien d'action de la carte : même bouton bleu que partout sur le site */
.formule-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: 1.1px;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(60, 108, 168, 0.24);
  transition: background .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s;
}

.formule:hover .formule-go {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(60, 108, 168, 0.32);
}

.formule-go svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform .4s var(--ease);
}

.formule:hover .formule-go svg { transform: translateX(4px); }

/* Téléphone : tout empilé, rien de serré ni de coupé */
@media (max-width: 768px) {
  .formule {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 20px;
  }
  .formule-main h3 { font-size: 1.18rem; }
  .formule-main p { font-size: .9rem; }
  .formule-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 14px;
    width: 100%;
    text-align: left;
  }
  .formule-price { font-size: 1.45rem; white-space: normal; }
  .formule-go { font-size: .8rem; }
}

/* ==========================================================================
   Accueil — prix ACACED : deux tarifs bien distincts, lisibles d'un coup d'œil
   ========================================================================== */

.formule-prices {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  min-width: 250px;
  padding: 14px 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.formule-price-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-bottom: 10px;
  text-align: center;
  border-bottom: 1px dashed rgba(60, 108, 168, 0.22);
}

.formule-price-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.fp-label {
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: .2px;
  line-height: 1.35;
  text-align: center;
}

.fp-label em {
  display: block;
  font-style: normal;
  font-size: .76rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 1px;
}

.fp-amount {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.formule-note {
  display: block;
  width: 100%;
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .2px;
  text-align: right;
  line-height: 1.4;
}

/* Téléphone : les deux tarifs restent côte à côte avec le montant, jamais coupés */
@media (max-width: 768px) {
  .formule-side {
    flex-direction: column;
    align-items: stretch;
  }
  .formule-prices { min-width: 0; padding: 13px 15px; }
  .fp-label { font-size: .85rem; }
  .fp-amount { font-size: 1.4rem; }
  .formule-note { text-align: left; }
}

/* ==========================================================================
   Accueil — témoignages : début de l'avis + lien vers la page détaillée
   ========================================================================== */

.quote-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 16px;
  padding: 9px 18px;
  font-style: normal;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: 1.1px;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(60, 108, 168, 0.24);
  transition: background .3s var(--ease), border-color .3s var(--ease),
              transform .3s var(--ease), box-shadow .3s;
}

.quote-link::after {
  content: "→";
  font-size: .95rem;
  line-height: 1;
  transition: transform .3s var(--ease);
}

.quote-link:hover,
.quote-link:focus-visible {
  color: var(--white);
  background: var(--primary);
  border-color: var(--primary);
}

.quote-link:hover::after,
.quote-link:focus-visible::after { transform: translateX(3px); }

/* Téléphone : la pastille reste bien visible et facile à toucher */
@media (max-width: 768px) {
  .quote-link {
    padding: 9px 16px;
    font-size: .84rem;
  }
}

/* ==========================================================================
   Ordinateur — alignement du bouton sur l'encadré des prix
   Le bouton prend exactement la largeur de l'encadré : bords droit et gauche
   confondus, plus de bouton flottant sous un bloc centré.
   ========================================================================== */

@media (min-width: 769px) {
  .formule-side { align-items: stretch; }
  .formule-side .formule-go {
    align-self: stretch;
    justify-content: center;
  }
}

/* ==========================================================================
   Accueil — les 3 boutons « Lire la suite » sur la même ligne
   La citation prend la place disponible, le bouton est plaqué en bas :
   les trois boutons tombent donc exactement à la même hauteur.
   ========================================================================== */

.quotes .quote {
  display: flex;
  flex-direction: column;
}

.quotes .quote > p {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.quotes .quote .quote-link {
  margin-top: auto;
  align-self: flex-start;
}

/* ==========================================================================
   Accueil — les 3 citations tiennent sur 3 lignes
   Chaque texte est calé sur la même hauteur (3 lignes) : les trois cartes ont
   donc exactement la même allure et les boutons tombent à la même hauteur.
   Sur téléphone, aucune limite : le texte reste entier, bien lisible.
   ========================================================================== */

.quotes .quote-text {
  display: block;
  /* Espace garanti entre la citation et le bouton : le bouton n'est plus collé
     au texte quand les trois lignes remplissent toute la carte. */
  margin-bottom: 20px;
}

@media (min-width: 769px) {
  .quotes .quote-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.65em;
  }
}
