/* =========================================================
   /offres — Overrides locaux, compatibles avec homepage.css
   Scopés sur .tedcraft-custom-page.tc-offres
   ========================================================= */

/* 0) Garde-fous généraux (aucun effet hors /offres) */
.tedcraft-custom-page.tc-offres {
  box-sizing: border-box;
}
.tedcraft-custom-page.tc-offres *, 
.tedcraft-custom-page.tc-offres *::before, 
.tedcraft-custom-page.tc-offres *::after {
  box-sizing: inherit;
}

/* 1) Container : s’aligner strictement sur la largeur de la page */
.tedcraft-custom-page.tc-offres .tc-section > .tc-container {
  /* si homepage.css définit déjà tc-container, on ne casse rien.
     On assure juste marges internes pour éviter tout débordement visuel. */
  padding-left: clamp(16px, 4vw, 24px);
  padding-right: clamp(16px, 4vw, 24px);
}

/* 2) Sous-nav ancrée (ne doit pas pousser horizontalement) */
.tedcraft-custom-page.tc-offres .tc-offers-subnav {
  position: sticky; top: 72px; z-index: 20;
  display: flex; gap: 1rem; 
  padding: .75rem 0 1rem;
  border-bottom: 1px solid var(--sage-100, #e5ecdf);
  background: linear-gradient(135deg, var(--stone-50, #fafaf8) 0%, #fff 100%);
  overflow-x: auto;      /* sécurité petits écrans */
  -webkit-overflow-scrolling: touch;
}
.tedcraft-custom-page.tc-offres .tc-offers-subnav a {
  flex: 0 0 auto;
  font-weight: 600; text-decoration: none; color: var(--stone-700, #3f443f);
  padding: 6px 8px; border-radius: 8px;
  transition: background .2s ease, color .2s ease;
}
.tedcraft-custom-page.tc-offres .tc-offers-subnav a:hover,
.tedcraft-custom-page.tc-offres .tc-offers-subnav a:focus-visible {
  background: rgba(107,124,90,.06);
  color: var(--stone-800, #2a2f2a);
  outline: none;
}

/* 3) Grilles offres : ne jamais dépasser le container */
.tedcraft-custom-page.tc-offres .tc-cards-grid.tc-offers-grid {
  display: grid;
  gap: var(--space-8, 2rem);
  /* auto-fit + minmax dynamique : s’adapte sans sortir du flux */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

/* 4) Cartes : hauteur cohérente + CTA collé en bas */
.tedcraft-custom-page.tc-offres .tc-offer {
  display: flex; flex-direction: column;
}
.tedcraft-custom-page.tc-offres .tc-offer .tc-cta-container {
  margin-top: auto;
}

/* 5) Comparatif : même logique, jamais hors container */
.tedcraft-custom-page.tc-offres .tc-compare-grid {
  display: grid;
  gap: var(--space-6, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.tedcraft-custom-page.tc-offres .tc-compare-col {
  border: 1px solid var(--sage-100, #e5ecdf);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff 0%, var(--sage-50, #f7faf5) 100%);
  padding: var(--space-5, 1.25rem);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.06));
  display: flex; flex-direction: column; gap: var(--space-3, .75rem);
}
.tedcraft-custom-page.tc-offres .tc-compare-head {
  font-weight: 700;
  color: var(--stone-800, #2a2f2a);
  border-bottom: 1px solid var(--sage-100, #e5ecdf);
  padding-bottom: var(--space-3, .75rem);
}
.tedcraft-custom-page.tc-offres .tc-compare-list {
  list-style: none; margin: 0; padding: 0;
  color: var(--stone-600, #6b706b);
  display: grid; gap: .25rem;
}

/* 6) Boutons : harmonisation stricte locale (sans toucher au global) */
.tedcraft-custom-page.tc-offres .tc-cta-primary,
.tedcraft-custom-page.tc-offres .tc-cta-secondary,
.tedcraft-custom-page.tc-offres .tc-compare-col .tc-cta-secondary,
.tedcraft-custom-page.tc-offres .tc-offer .tc-cta-secondary,
.tedcraft-custom-page.tc-offres .tc-offer .tc-cta-primary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; line-height: 1;
  padding: 0 .9rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .02s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.tedcraft-custom-page.tc-offres .tc-cta-primary {
  background: var(--sage-700, #647a5a);
  color: #fff;
  border: 1px solid transparent;
}
.tedcraft-custom-page.tc-offres .tc-cta-primary:hover { filter: brightness(0.95); }
.tedcraft-custom-page.tc-offres .tc-cta-primary:active { transform: translateY(1px); }

.tedcraft-custom-page.tc-offres .tc-cta-secondary {
  background: #fff;
  color: var(--stone-800, #2a2f2a);
  border: 2px solid rgba(86, 108, 64, .45);
}
.tedcraft-custom-page.tc-offres .tc-cta-secondary:hover {
  background: rgba(86,108,64,.06);
}
.tedcraft-custom-page.tc-offres .tc-cta-secondary:active { transform: translateY(1px); }

/* Accessibilité : focus visibles */
.tedcraft-custom-page.tc-offres .tc-cta-primary:focus-visible,
.tedcraft-custom-page.tc-offres .tc-cta-secondary:focus-visible,
.tedcraft-custom-page.tc-offres .tc-offers-subnav a:focus-visible {
  outline: 2px solid #000; outline-offset: 2px;
}

/* 7) Micro-typo locale pour cohérence verticale */
.tedcraft-custom-page.tc-offres .tc-card-text { margin: .5rem 0 .75rem; }
.tedcraft-custom-page.tc-offres .tc-offres-hero .tc-section-header { margin-bottom: 1rem; }

/* 8) Sécurité anti-dépassement qu’on voit parfois avec box-shadows */
.tedcraft-custom-page.tc-offres #offres .tc-container,
.tedcraft-custom-page.tc-offres #comparatif .tc-container {
  overflow: visible;
}
/* =========================
   /offres — Finition "premium"
   ========================= */

/* Carte : élévation et douceur */
.tedcraft-custom-page.tc-offres .tc-offer {
  border-radius: 20px;
  border: 1px solid rgba(86,108,64,.15);                    /* sage */
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: box-shadow .25s ease, transform .06s ease, border-color .25s ease;
}
.tedcraft-custom-page.tc-offres .tc-offer:hover {
  transform: translateY(-2px);
  border-color: rgba(86,108,64,.25);
  box-shadow: 0 10px 24px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.04);
}

/* En-tête de carte : icône "chip", titre fort, barre d'accent */
.tedcraft-custom-page.tc-offres .tc-offer .tc-card-header {
  align-items: center;
  margin-bottom: .35rem;
}
.tedcraft-custom-page.tc-offres .tc-offer .tc-card-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 20%, rgba(125,145,108,.18), rgba(125,145,108,.10));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.tedcraft-custom-page.tc-offres .tc-offer .tc-card-icon .material-symbols-outlined {
  font-size: 22px; color: #2a2f2a; opacity: .85;
}

.tedcraft-custom-page.tc-offres .tc-offer .tc-card-title {
  letter-spacing: .1px;
}

/* Ligne d’accent sous le header (sans balisage supplémentaire) */
.tedcraft-custom-page.tc-offres .tc-offer .tc-card-header + .tc-card-text {
  position: relative;
  margin-top: .5rem;
  padding-top: .85rem;
}
.tedcraft-custom-page.tc-offres .tc-offer .tc-card-header + .tc-card-text::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(86,108,64,.28), rgba(86,108,64,.12) 40%, transparent 100%);
}

/* Paragraphe d’intro : rythme court */
.tedcraft-custom-page.tc-offres .tc-offer .tc-card-text {
  color: var(--stone-700, #3f443f);
  margin-bottom: .75rem;
}

/* Liste des points : puces custom, respiration nette */
.tedcraft-custom-page.tc-offres .tc-offer .tc-offer-features {
  list-style: none; margin: 1rem 0 1.25rem; padding: 0;
  display: grid; gap: .35rem;
  color: var(--stone-700, #3f443f);
}
.tedcraft-custom-page.tc-offres .tc-offer .tc-offer-features li {
  position: relative; padding-left: 1.1rem;
}
.tedcraft-custom-page.tc-offres .tc-offer .tc-offer-features li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #3f443f 0, #3f443f 40%, transparent 41%),
              radial-gradient(circle at 70% 70%, rgba(86,108,64,.45), rgba(86,108,64,.15));
  opacity: .9;
}

/* CTA : cohérence, relief léger */
.tedcraft-custom-page.tc-offres .tc-offer .tc-cta-container { margin-top: auto; }

.tedcraft-custom-page.tc-offres .tc-offer .tc-cta-primary,
.tedcraft-custom-page.tc-offres .tc-offer .tc-cta-secondary {
  min-height: 46px;
  border-radius: 14px;
  font-weight: 700;
  padding: 0 1rem;
  box-shadow: 0 8px 22px rgba(28, 49, 21, .10);
}

.tedcraft-custom-page.tc-offres .tc-offer .tc-cta-primary {
  background: linear-gradient(180deg, #6b7f60, #566c40);
  border: 1px solid rgba(24,36,18,.22);
  color: #fff;
}
.tedcraft-custom-page.tc-offres .tc-offer .tc-cta-primary:hover {
  filter: brightness(0.98);
  box-shadow: 0 10px 28px rgba(28,49,21,.14);
}
.tedcraft-custom-page.tc-offres .tc-offer .tc-cta-secondary {
  background: #fff;
  color: var(--stone-900, #222);
  border: 2px solid rgba(86,108,64,.45);
}
.tedcraft-custom-page.tc-offres .tc-offer .tc-cta-secondary:hover {
  background: rgba(86,108,64,.06);
}

/* Variante "mise en avant" pour le Pass Pro */
.tedcraft-custom-page.tc-offres .tc-offer.tc-offer--highlight {
  border-width: 1.5px;
  border-color: rgba(86,108,64,.35);
  box-shadow: 0 14px 34px rgba(28,49,21,.12), 0 2px 6px rgba(0,0,0,.04);
  position: relative;
}
.tedcraft-custom-page.tc-offres .tc-offer.tc-offer--highlight::before {
  /* liseré haut discret, premium */
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, #6b7f60, #8da37f 60%, transparent 100%);
  opacity: .9;
}

/* Comparatif : mêmes finitions internes pour les boutons */
.tedcraft-custom-page.tc-offres .tc-compare-col .tc-cta-secondary {
  min-height: 44px; border-radius: 12px; font-weight: 700;
  border: 2px solid rgba(86,108,64,.45);
  background: #fff; color: var(--stone-900, #222);
  box-shadow: 0 6px 16px rgba(28,49,21,.08);
}
.tedcraft-custom-page.tc-offres .tc-compare-col .tc-cta-secondary:hover {
  background: rgba(86,108,64,.06);
}
/* =========================
   /offres — Grille comparative premium
   ========================= */

.tedcraft-custom-page.tc-offres .tc-compare-premium {
  display: grid;
  gap: var(--space-6, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tedcraft-custom-page.tc-offres .tc-plan {
  display: flex; flex-direction: column;
  border: 1px solid rgba(86,108,64,.18);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, rgba(247,250,245,.55) 100%);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  overflow: hidden;
  transition: transform .06s ease, box-shadow .25s ease, border-color .25s ease;
}
.tedcraft-custom-page.tc-offres .tc-plan:hover {
  transform: translateY(-2px);
  border-color: rgba(86,108,64,.28);
  box-shadow: 0 12px 26px rgba(0,0,0,.08);
}

.tedcraft-custom-page.tc-offres .tc-plan__header {
  padding: 1rem 1rem .5rem 1rem;
}
.tedcraft-custom-page.tc-offres .tc-plan__badge {
  display: inline-block;
  font-size: .8rem; font-weight: 700;
  color: var(--stone-800, #2a2f2a);
  background: rgba(125,145,108,.14);
  padding: .25rem .5rem; border-radius: 999px;
  margin-bottom: .5rem;
}
.tedcraft-custom-page.tc-offres .tc-plan__badge--primary {
  color: #fff; background: linear-gradient(180deg, #6b7f60, #566c40);
  box-shadow: inset 0 0 0 1px rgba(24,36,18,.18);
}
.tedcraft-custom-page.tc-offres .tc-plan__title {
  margin: 0 0 .25rem;
}
.tedcraft-custom-page.tc-offres .tc-plan__subtitle {
  margin: 0; color: var(--stone-600, #6b706b);
}

.tedcraft-custom-page.tc-offres .tc-plan__features {
  margin: .5rem 0 0; padding: .75rem 1rem 1rem;
  list-style: none; display: grid; gap: .5rem;
  border-top: 1px solid rgba(86,108,64,.12);
}
.tedcraft-custom-page.tc-offres .tc-plan__features li {
  display: grid; grid-template-columns: 20px 1fr; align-items: start; column-gap: .5rem;
  color: var(--stone-700, #3f443f);
}
.tedcraft-custom-page.tc-offres .tc-plan__features .material-symbols-outlined {
  font-size: 18px; line-height: 1; margin-top: .15rem; opacity: .9;
}
.tedcraft-custom-page.tc-offres .tc-plan__features .tc-plan__limitation {
  color: var(--stone-600, #6b706b);
  opacity: .95;
}
.tedcraft-custom-page.tc-offres .tc-plan__features .tc-plan__note {
  color: var(--stone-600, #6b706b);
}

.tedcraft-custom-page.tc-offres .tc-plan__footer {
  margin-top: auto;
  padding: .75rem 1rem 1rem;
  display: flex; align-items: center; justify-content: flex-start;
}
.tedcraft-custom-page.tc-offres .tc-plan__cta {
  min-height: 44px; border-radius: 12px; font-weight: 700;
  padding: 0 1rem;
  box-shadow: 0 8px 22px rgba(28,49,21,.10);
}
.tedcraft-custom-page.tc-offres .tc-plan.tc-plan--highlight {
  border-width: 1.5px; border-color: rgba(86,108,64,.32);
  box-shadow: 0 16px 38px rgba(28,49,21,.12), 0 2px 6px rgba(0,0,0,.04);
  position: relative;
}
.tedcraft-custom-page.tc-offres .tc-plan.tc-plan--highlight::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, #6b7f60, #8da37f 60%, transparent 100%);
}
