/* ==========================================================================
   Sections — dans l'ordre de la page.
   1. Hero            2. Chiffres        3. Histoire      4. Témoignages
   5. Par où commencer  6. Les packs     7. FAQ           8. Appel final
   ========================================================================== */


/* ==========================================================================
   1. Hero
   ========================================================================== */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap-xl);
  padding-top: var(--hero-pt);
  padding-bottom: var(--hero-pb);
}

/* `flex: 999` : la colonne de texte absorbe l'espace disponible, l'image
   garde sa largeur de base jusqu'à ce que les deux passent l'une sous l'autre. */
.hero__text {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hero__heading {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Trait vert dessiné à la main sous le titre. */
.hero__underline {
  max-width: 100%;
  stroke: var(--color-accent);
}

.hero__intro {
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__media {
  flex: 1 1 360px;
  min-width: 0;
  position: relative;
}

.hero__portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

/* Encart « +60K $ » qui déborde sur la gauche du portrait. */
.hero__badge {
  position: absolute;
  left: -28px;
  bottom: 36px;
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: var(--shadow-badge);
}

.hero__badge-label {
  font-size: var(--fs-2xs);
  font-weight: 500;
}

.hero__badge-value {
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.5px;
}

/* Flèche décorative sous le portrait, masquée sur mobile. */
.hero__doodle {
  position: absolute;
  right: -10px;
  bottom: -84px;
  stroke: var(--color-accent);
}


/* ==========================================================================
   2. Chiffres
   ========================================================================== */

/* `padding-block` et non `padding` : le raccourci écraserait la marge
   latérale posée par .container. */
.results {
  padding-block: 24px 40px;
}

.results__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

/* La première carte est un aplat vert. */
.stat-card--accent {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
}

.stat-card__value {
  font-weight: 800;
  font-size: var(--fs-stat);
  line-height: 1;
  letter-spacing: var(--ls-stat);
}

.stat-card__value--accent {
  color: var(--color-accent);
}

.stat-card__label {
  font-size: var(--fs-base);
  font-weight: 600;
}

/* Capture du profil Upwork + liste de preuves. */
.proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 10px;
}

.proof__figure-col {
  flex: 1 1 520px;
  min-width: 0;
}

.proof__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.proof__screenshot {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.proof__caption {
  font-size: var(--fs-2xs);
  font-style: italic;
  color: var(--color-text-dim);
}

.proof__list {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-size: var(--fs-base);
  border-top: 1px solid var(--color-border);
}

.proof__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}


/* ==========================================================================
   3. Histoire
   ========================================================================== */

.story {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap-xl);
}

.story__text {
  flex: 999 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.story__cta {
  align-self: flex-start;
}

.story__media {
  flex: 1 1 340px;
  min-width: 0;
}

.story__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 30% 50%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}


/* ==========================================================================
   4. Témoignages — carrousel (js/carousel.js)

   C'est une zone défilante native : `overflow-x` + `scroll-snap`. Le doigt
   et le trackpad fonctionnent donc sans JavaScript ; le script n'ajoute que
   les flèches, les puces et le défilement automatique.

   `--carousel-per-view` décide combien de vignettes tiennent à l'écran.
   C'est la seule valeur à changer pour densifier ou aérer le carrousel ; la
   largeur des vignettes et le nombre de puces en découlent.
   ========================================================================== */

.carousel {
  --carousel-gap: 20px;
  --carousel-per-view: 4;
}

.carousel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.carousel__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  /* La barre de défilement est masquée : les puces et les flèches disent
     déjà où l'on est. */
  scrollbar-width: none;
}

.carousel__viewport::-webkit-scrollbar {
  display: none;
}

.carousel__track {
  display: flex;
  gap: var(--carousel-gap);
}

.testimonial {
  /* Largeur d'une vignette : la fenêtre moins les gouttières, divisée par
     le nombre de vignettes visibles. */
  flex: 0 0 calc(
    (100% - (var(--carousel-per-view) - 1) * var(--carousel-gap)) /
      var(--carousel-per-view)
  );
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Captures de profils Upwork. `contain` et non `cover` : ces visuels sont
   du texte, rien ne doit être rogné. Les captures n'ayant pas toutes le même
   rapport, le fond comble l'écart et sert de cadre. */
.testimonial__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
}

.testimonial__title {
  margin: 0;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
}

.testimonial__meta {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* Puces engendrées par le script : autant que de pages. */
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel__dots:empty {
  display: none;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-border-strong);
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.carousel__dot[aria-current="true"] {
  width: 34px;
  background: var(--color-accent);
}

@media (prefers-reduced-motion: reduce) {
  .carousel__viewport {
    scroll-behavior: auto;
  }

  .carousel__dot {
    transition: none;
  }
}


/* ==========================================================================
   5. Par où commencer — sélecteur de profil
   Onglets accessibles : un bouton par situation, un panneau par pack.
   ========================================================================== */

.picker__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
}

.picker__options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.picker__option {
  min-height: 50px;
  padding: 15px 22px;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
}

.picker__option:hover {
  border-color: var(--color-accent);
}

.picker__option[aria-selected="true"] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
}

/* Carte de recommandation : un seul panneau visible à la fois. */
.reco {
  padding: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.reco__panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px;
}

.reco__panel[hidden] {
  display: none;
}

.reco__cover {
  width: 220px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-cover);
}

.reco__body {
  flex: 999 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reco__title {
  font-weight: 800;
  font-size: 32px;
  line-height: 1.15;
}

.reco__text {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.reco__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 6px;
}

.reco__price {
  font-size: 28px;
  color: var(--color-text);
}

/* ==========================================================================
   6. Les packs
   ========================================================================== */

.packs__intro {
  max-width: 720px;
}

/* Visuel de tête d'une carte. On ne force aucun rapport : les coffrets
   fournis n'ont pas tous le même format et ce sont des images chargées de
   texte, qu'un recadrage amputerait. */
.pack__visual {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

/* --- Couverture dessinée du pack Accompagnement ---------------------------
   Judeferry n'a pas fourni de coffret pour ce pack : celle-ci est composée
   en CSS, dans les couleurs du site.

   Tout y est exprimé en `em`. Le `font-size` de .cover-30j ci-dessous est
   donc l'unique molette : le changer redimensionne la couverture entière,
   sans toucher à aucune autre valeur. Il est réglé pour une carte de pack
   d'environ 320 px de large (la largeur réelle va de 294 à 354 px selon
   l'écran — un écart trop faible pour mériter un point de rupture). */

.cover-30j {
  font-size: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1 / 1;
  padding: 1.625em;
  overflow: hidden;
  background: var(--color-bg);
}

.cover-30j__photo {
  position: absolute;
  right: -8%;
  bottom: -8%;
  /* En pourcentages, donc proportionnée à la couverture quelle que soit la
     largeur de la carte — contrairement au texte, qui reste en em. */
  width: 52%;
  aspect-ratio: 130 / 150;
  object-fit: cover;
  object-position: 50% 15%;
  border: 2px solid var(--color-accent);
  border-radius: 54% 54% 0 0 / 47% 47% 0 0;
}

.cover-30j__tag {
  position: relative;
  align-self: flex-start;
  padding: 0.54em 0.92em;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: 0.8125em;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.cover-30j__caption {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.18em;
  /* La photo occupe 52 % à droite : on borne le texte à 55 % de la zone de
     contenu. Les deux étant exprimés en pourcentages, ils ne peuvent pas se
     chevaucher, quelle que soit la largeur de la carte. */
  max-width: 55%;
}

.cover-30j__number {
  font-weight: 800;
  font-size: 5.75em;
  line-height: 0.9;
  letter-spacing: -0.047em;
  color: var(--color-accent);
}

.cover-30j__unit {
  font-weight: 800;
  font-size: 1.8em;
  line-height: 1;
  letter-spacing: -0.024em;
  color: var(--color-text);
}

.cover-30j__note {
  margin-top: 0.375em;
  font-size: 0.9em;
  font-style: italic;
  color: var(--color-text);
}

/* « pas à pas » ne doit pas se couper en « pas à / pas ». */
.cover-30j__note .title-accent {
  white-space: nowrap;
}

.cover-30j__squiggle {
  width: 100%;
  height: auto;
  margin-top: 0.375em;
  color: var(--color-accent);
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  align-items: start;
}

.pack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

/* Le pack mis en avant : liseré vert et halo. */
.pack--featured {
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-featured);
}

.pack__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pack__kicker {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-accent);
}

.pack__name {
  margin: 0;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.8px;
}

.pack__quote {
  margin: 0;
  font-size: var(--fs-base);
  font-style: italic;
  color: var(--color-text-muted);
}

.pack__pricing {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 0;
  border-block: 1px solid var(--color-border);
}

.pack__price {
  font-weight: 800;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.pack__currency {
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--color-text-dim);
}

.pack__price-note {
  font-size: var(--fs-2xs);
  color: var(--color-text-dim);
}

.pack__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.pack__feature {
  display: flex;
  gap: 10px;
  font-size: var(--fs-sm);
  line-height: 1.5;
}

/* --- Dépliant « Voir le programme » ---------------------------------------- */

.program {
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.program__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-accent);
}

.program__steps {
  margin: 8px 0 0;
}

.program__step {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.program__step-title {
  font-size: var(--fs-xs);
  color: var(--color-text);
}

.program__step-text {
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* --- Bandeau de réassurance sous les packs --------------------------------- */

.reassurance {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.reassurance__item {
  display: flex;
  align-items: center;
  gap: 8px;
}


/* ==========================================================================
   7. FAQ
   ========================================================================== */

.faq {
  display: flex;
  flex-direction: column;
}

.faq__title {
  margin-bottom: 32px;
}

.faq__eyebrow {
  margin-bottom: 16px;
}

.faq__item {
  padding: 24px 0;
  border-top: 1px solid var(--color-border-soft);
}

.faq__item:last-of-type {
  border-bottom: 1px solid var(--color-border-soft);
}

.faq__question {
  font-family: var(--font-sans);
  font-size: var(--fs-faq);
}

.faq__answer {
  margin: 14px 0 0;
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--color-text-muted);
}


/* ==========================================================================
   8. Appel final
   ========================================================================== */

.final-cta {
  margin-bottom: 96px;
}

.final-cta__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 72px 48px;
  border-radius: var(--radius-lg);
  background: var(--color-accent);
  color: var(--color-on-accent);
  text-align: center;
}

.final-cta__title {
  max-width: 780px;
  line-height: 1.08;
}

.final-cta__subtitle {
  margin: 0;
  font-size: 20px;
  font-style: italic;
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}


/* ==========================================================================
   Dépliants (<details>) — flèche native retirée au profit de notre chevron.
   ========================================================================== */

details summary {
  cursor: pointer;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details[open] .program__summary .icon {
  transform: rotate(180deg);
}
